Add obstack-printf and obstack-printf-posix modules.
[gnulib.git] / ChangeLog
1 2008-06-13  Eric Blake  <ebb9@byu.net>
2
3         Add obstack-printf and obstack-printf-posix modules.
4         * modules/obstack-printf: New file.
5         * modules/obstack-printf-posix: Likewise.
6         * MODULES.html.sh (Misc): Mention them.
7         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
8         Likewise.
9         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
10         Likewise.
11         * modules/stdio (Makefile.am): Accomodate new modules.
12         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
14         Declare.
15         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
16         functions.
17         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
18         (gl_REPLACE_OBSTACK_PRINTF): New macros
19         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
20         * tests/test-obstack-printf.c: New file.
21         * modules/obstack-printf-tests: Likewise.
22         * modules/obstack-printf-posix-tests: Likewise.
23
24 2008-06-11  Bruno Haible  <bruno@clisp.org>
25
26         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
27         * lib/open.c: Include errno.h.
28         (open): Fail when attempting to write to a file that has a trailing
29         slash.
30         * tests/test-open.c (main): Test against trailing slash bug.
31         * doc/posix-functions/open.texi: Mention the trailing slash bug.
32
33 2008-06-10  Bruno Haible  <bruno@clisp.org>
34
35         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
36         for $? to work inside the trap command, with various /bin/sh-s.
37         * tests/test-vc-list-files-cvs.sh: Likewise.
38
39 2008-06-10  Bruno Haible  <bruno@clisp.org>
40
41         * lib/acl-internal.h: Don't include gettext.h here.
42         * lib/set-mode-acl.c: Include gettext.h here.
43         * lib/copy-acl.c: Likewise.
44
45 2008-06-10  Bruno Haible  <bruno@clisp.org>
46
47         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48         * lib/wait-process.c (wait_subprocess): Likewise.
49         * lib/execute.h (execute): Add termsigp argument.
50         * lib/execute.c (execute): Likewise.
51         * lib/csharpcomp.c (compile_csharp_using_pnet,
52         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53         * lib/csharpexec.c (execute_csharp_using_pnet,
54         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
56         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58         is_jikes_present): Update.
59         * lib/javaexec.c (execute_java_class): Update.
60         * lib/javaversion.c (execute_and_read_line): Update.
61         * NEWS: Document the changes.
62         Reported by Eric Blake.
63
64 2008-06-10  Eric Blake  <ebb9@byu.net>
65
66         Add missing include.
67         * tests/test-strstr.c (includes): Add <signal.h>.
68         * tests/test-strcasestr.c (includes): Likewise.
69         * tests/test-memmem.c (includes): Likewise.
70
71 2008-06-10  Bruno Haible  <bruno@clisp.org>
72
73         * lib/wait-process.c (wait_subprocess): Add an assertion.
74
75 2008-06-10  Bruno Haible  <bruno@clisp.org>
76
77         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
78
79 2008-06-10  Bruno Haible  <bruno@clisp.org>
80
81         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
82         using alarm().
83         * tests/test-strcasestr.c (main): Likewise.
84         * tests/test-strstr.c (main): Likewise.
85
86 2008-06-09  Bruno Haible  <bruno@clisp.org>
87
88         Work around the Solaris 10 ACE ACLs ABI change.
89         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
90         declare if ACL_NO_TRIVIAL is present.
91         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
92         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
93         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
94         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
95         define if ACL_NO_TRIVIAL is present.
96         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
97         and use the current ABI.
98         (file_has_acl): Use same #if condition as elsewhere.
99         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
100         in use, and use the current ABI.
101         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
102         Reported by Jim Meyering.
103
104 2008-06-09  Eric Blake  <ebb9@byu.net>
105
106         Work around environments that (stupidly) ignore SIGALRM.
107         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
108         before using alarm().
109         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
110         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
111         Reported by Ian Beckwith <ianb@erislabs.net>.
112
113         Produce autobuild blurb earlier in log.
114         * modules/autobuild (configure.ac-early): Move AB_INIT here.
115
116 2008-06-09  Jim Meyering  <meyering@redhat.com>
117         and Ondřej Vašík  <ovasik@redhat.com>
118
119         utimens.c: correct kernel bug work-around
120         Ondřej Vašík found that the invalid return value of 280 indicates
121         failure, not success, and the kernel bug we're trying to work
122         around affects not just the utimensat call, but also the fallback
123         futimens call.
124         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
125         not success.
126         [HAVE_FUTIMENS]: Use the same work-around, here.
127
128 2008-06-09  Jim Meyering  <meyering@redhat.com>
129
130         add more guards around definition of ACE_-related code
131         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
132         ALLOW and ACE_OWNER are also defined.
133
134 2008-06-08  Bruno Haible  <bruno@clisp.org>
135
136         * lib/acl-internal.h: Add me as co-author.
137         * lib/file-has-acl.c: Likewise.
138         * lib/set-mode-acl.c: Likewise.
139         * lib/copy-acl.c: Likewise.
140
141 2008-06-08  Bruno Haible  <bruno@clisp.org>
142
143         Add support for AIX ACLs.
144         * lib/acl-internal.h (acl_nontrivial): New declaration.
145         * lib/file-has-acl.c (acl_nontrivial): New function.
146         (file_has_acl): Add implementation using AIX 4 ACL API.
147         * lib/set-mode-acl.c (qset_acl): Likewise.
148         * lib/copy-acl.c (qcopy_acl): Likewise.
149
150 2008-06-08  Bruno Haible  <bruno@clisp.org>
151
152         Add support for HP-UX ACLs.
153         * lib/acl-internal.h (acl_nontrivial): New declaration.
154         * lib/file-has-acl.c (acl_nontrivial): New function.
155         (file_has_acl): Add implementation using HP-UX 11 ACL API.
156         * lib/set-mode-acl.c (qset_acl): Likewise.
157         * lib/copy-acl.c (qcopy_acl): Likewise.
158
159 2008-06-08  Bruno Haible  <bruno@clisp.org>
160
161         Add support for Cygwin ACLs.
162         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
163         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
164         the chmod_or_fchmod call.
165         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
166
167 2008-06-08  Bruno Haible  <bruno@clisp.org>
168
169         Fix bug with setuid modes in Solaris 10+ code.
170         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
171         succeeded, when the mode contains some special bits.
172
173 2008-06-08  Bruno Haible  <bruno@clisp.org>
174
175         Add support for Solaris 7..10 ACLs.
176         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
177         declarations.
178         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
179         functions.
180         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
181         * lib/set-mode-acl.c (qset_acl): Likewise.
182         * lib/copy-acl.c (qcopy_acl): Likewise.
183
184 2008-06-08  Bruno Haible  <bruno@clisp.org>
185
186         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
187         declaration.
188         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
189         (acl_access_nontrivial): Remove MacOS X case.
190         (file_has_acl): Use acl_extended_nontrivial.
191         * lib/copy-acl.c (qcopy_acl): Likewise.
192
193 2008-06-08  Bruno Haible  <bruno@clisp.org>
194
195         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
196
197 2008-06-08  Jim Meyering  <meyering@redhat.com>
198
199         * modules/acl (Maintainer): Add Bruno Haible.
200
201 2008-06-07  Bruno Haible  <bruno@clisp.org>
202
203         Improve support for Tru64 ACLs.
204         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
205         ACL on OSF/1.
206
207 2008-06-07  Bruno Haible  <bruno@clisp.org>
208
209         Add support for MacOS X ACLs.
210         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
211         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
212         * lib/set-mode-acl.c (qset_acl): Likewise.
213         * lib/copy-acl.c (qcopy_acl): Likewise.
214
215 2008-06-07  Bruno Haible  <bruno@clisp.org>
216
217         Fix memory leak introduced on 2008-05-22.
218         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
219         use.
220
221 2008-06-07  Bruno Haible  <bruno@clisp.org>
222
223         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
224         to construct an empty ACL.
225
226 2008-06-07  Bruno Haible  <bruno@clisp.org>
227
228         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
229         precisely.
230         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
231
232 2008-06-07  Bruno Haible  <bruno@clisp.org>
233
234         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
235         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
236
237 2008-06-07  Bruno Haible  <bruno@clisp.org>
238
239         * doc/posix-functions/_setjmp.texi: Explain the use of this function
240         regardless of POSIX.
241         * doc/posix-functions/_longjmp.texi: Likewise.
242         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
243         SystemV platform in this case.
244
245 2008-06-06  Eric Blake  <ebb9@byu.net>
246
247         Document abort() bugs.
248         * doc/posix-functions/abort.texi (abort): Mention anomalies.
249
250         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
251         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
252         sigsetjmp.
253         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
254         siglongjmp, but only as a macro.
255         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
256         is obsolete.
257         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
258
259         Tweak documentation to cover cygwin argz bugs.
260         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
261         argz bug fix; no code change needed since no cygwin releases
262         occurred between the last fix and the bug being tested.
263         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
264         module and recently fixed cygwin bugs.
265         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
266         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
267         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
268         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
269         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
270         Likewise.
271         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
272         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
273         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
274         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
275         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
276         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
277         Likewise.
278
279         Avoid gcc warning on cygwin.
280         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
281         !ACL_NO_TRIVIAL]: Avoid unused variable.
282
283 2008-06-05  Eric Blake  <ebb9@byu.net>
284
285         Be tolerant of UNKNOWN version in gnulib-tool test dir.
286         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
287         git-version-gen fails to come up with a version.
288         Reported by Simon Josefsson.
289
290 2008-06-05  Jim Meyering  <meyering@redhat.com>
291             Paul Eggert  <eggert@cs.ucla.edu>
292
293         utimens.c: work around a probable Linux kernel bug
294         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
295         appears to be a kernel bug that causes utimensat to return 280
296         instead of 0, indicating success.
297
298 2008-06-04  Bruno Haible  <bruno@clisp.org>
299
300         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
301         2008-06-01 commit.
302
303 2008-06-04  Bruno Haible  <bruno@clisp.org>
304
305         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
306         * lib/file-has-acl.c (acl_access_nontrivial): New function.
307         (file_has_acl): Use it. Save errno afterwards.
308         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
309
310 2008-06-03  Bruno Haible  <bruno@clisp.org>
311
312         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
313         draft code. Simplify #ifs.
314         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
315         Put Solaris code after POSIX-draft code. Fix comments regarding
316         Solaris 10, HP-UX. Mention Cygwin.
317         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
318
319 2008-06-03  Eric Blake  <ebb9@byu.net>
320
321         Provide fallback for older kernels.
322         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
323         Provide runtime fallback if kernel lacks support.
324         Reported by Mike Frysinger.
325
326 2008-06-02  Bruno Haible  <bruno@clisp.org>
327
328         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
329         it exists.
330
331 2008-06-02  Bruno Haible  <bruno@clisp.org>
332
333         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
334         * lib/copy-acl.c (qcopy_acl): Update comment.
335
336 2008-06-02  Bruno Haible  <bruno@clisp.org>
337
338         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
339         like ACL APIs.
340
341 2008-06-02  Bruno Haible  <bruno@clisp.org>
342
343         * tests/test-file-has-acl.sh: Use different code for Cygwin.
344         * tests/test-set-mode-acl.sh: Likewise.
345         * tests/test-copy-acl.sh: Likewise.
346         * tests/test-copy-file.sh: Likewise.
347
348 2008-06-02  Bruno Haible  <bruno@clisp.org>
349
350         * tests/test-file-has-acl.sh: Remove unused code.
351
352 2008-06-01  Bruno Haible  <bruno@clisp.org>
353
354         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
355         (copy_acl): Just a wrapper around qcopy_acl that emits the error
356         messages.
357         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
358
359 2008-06-01  Bruno Haible  <bruno@clisp.org>
360
361         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
362         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
363         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
364         APIs.
365         * modules/acl-tests (configure.ac): Remove tests now contained in
366         m4/acl.m4.
367
368 2008-06-02  Jim Meyering  <meyering@redhat.com>
369
370         announce-gen: use a better key-server host name
371         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
372         it may be more consistently reliable.  Suggested by Werner Koch
373         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
374
375 2008-06-01  Bruno Haible  <bruno@clisp.org>
376
377         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
378         Reported by Voroskoi Andras <voroskoi@gmail.com>.
379
380 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
381
382         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
383
384 2008-06-01  Bruno Haible  <bruno@clisp.org>
385
386         New ACL tests.
387         * tests/test-file-has-acl.sh: New file.
388         * tests/test-file-has-acl.c: New file.
389         * tests/test-set-mode-acl.sh: New file.
390         * tests/test-set-mode-acl.c: New file.
391         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
392         * tests/test-copy-acl.c: New file.
393         * modules/acl-tests: New file, based on modules/copy-file-tests.
394         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
395         (Depends-on): Add acl-tests.
396         (configure.ac): Remove checks.
397         (Makefile.am): Don't create test-sameacls program here any more.
398
399 2008-06-01  Bruno Haible  <bruno@clisp.org>
400
401         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
402         * tests/test-sameacls.c: Include progname.h.
403         (main): Invoke set_program_name. Portability fixes for MacOS X,
404         Solaris, HP-UX.
405
406 2008-06-01  Bruno Haible  <bruno@clisp.org>
407
408         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
409         function.
410         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
411
412 2008-06-01  Bruno Haible  <bruno@clisp.org>
413
414         * modules/rpmatch (Depends-on): Add strdup.
415
416 2008-06-01  Bruno Haible  <bruno@clisp.org>
417
418         * lib/pipe.c: Include unistd-safer.h.
419         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
420         * modules/pipe (Depends-on): Add unistd-safer.
421
422 2008-05-30  Simon Josefsson  <simon@josefsson.org>
423
424         * modules/autobuild (configure.ac): Call AB_INIT.
425
426 2008-05-30  Simon Josefsson  <simon@josefsson.org>
427
428         * tests/test-getaddrinfo.c: Don't print debug messages by default.
429         Suggested by Bruno Haible <bruno@clisp.org>.
430
431 2008-05-30  Simon Josefsson  <simon@josefsson.org>
432
433         * tests/test-base64.c: Cast size_t to unsigned long when invoking
434         printf.  Use %lu instead of %d.  Reported by Bruno Haible
435         <bruno@clisp.org>.
436
437 2008-05-29  Eric Blake  <ebb9@byu.net>
438
439         Prefer new POSIX 200x interfaces over futimesat.
440         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
441         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
442         when available.
443         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
444
445 2008-05-28  Bruno Haible  <bruno@clisp.org>
446
447         * modules/stpcpy (License): Change to LGPLv2+.
448         Requested by David Lutterkort <dlutter@redhat.com>.
449
450 2008-05-27  Bruno Haible  <bruno@clisp.org>
451
452         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
453         current mingw.
454         Reported by Jose E. Marchesi <jemarch@gnu.org>.
455
456 2008-05-27  Bruno Haible  <bruno@clisp.org>
457
458         * modules/iconv_open (Link): New section, from module 'iconv'.
459         * modules/striconv (Link): Likewise.
460         * modules/striconveh (Link): Likewise.
461         * modules/xstriconv (Link): Likewise.
462         * modules/unicodeio (Link): Likewise.
463         * modules/propername (Link): Likewise.
464         Reported by Jim Meyering.
465
466 2008-05-26  Jim Meyering  <meyering@redhat.com>
467
468         sha256: do not artificially restrict buffer length to be < 2^32
469         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
470         uint32_t to size_t.
471         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
472         to match.
473
474         avoid unaligned access errors, e.g., on sparc
475         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
476         direct access through a possibly-unaligned uint64* pointer.
477         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
478         direct access through a possibly-unaligned uint32* pointer.
479         Prompted by this patch from Tom "spot" Callaway:
480         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
481
482         sha512.c: fix typo in comment
483         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
484
485 2008-05-25  Bruno Haible  <bruno@clisp.org>
486
487         * lib/set-mode-acl.c: Renamed from lib/acl.c.
488         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
489         (Makefile.am): Update lib_SOURCES.
490
491 2008-05-25  Bruno Haible  <bruno@clisp.org>
492
493         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
494
495 2008-05-25  Jim Meyering  <meyering@redhat.com>
496
497         useless-if-before-free: freed expr may have white-space differences
498         * build-aux/useless-if-before-free: Recognize cases in which the
499         freed expression differs from the tested one in embedded white
500         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
501         $1 was used, so we can't make any regexp shy.  Improved tests now
502         detect this.
503
504         useless-if-before-free: accept white space in the expression.
505         * build-aux/useless-if-before-free: For now, any white space
506         in the expression must be identical in the free argument.
507
508         useless-if-before-free: efficiency tweak
509         * build-aux/useless-if-before-free: Make the expression-matching
510         regexp "shy".
511         Make the *outer* regexp shy, not the expr-matching one.
512
513         update code-in-comment to accept cast of free arg
514         * build-aux/useless-if-before-free: Update regexp.
515
516 2008-05-25  Bruno Haible  <bruno@clisp.org>
517
518         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
519         * modules/copy-file-tests (Files, Makefile.am): Update.
520         * tests/test-copy-file.c (func_test_copy): Update.
521
522 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
523
524         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
525
526 2008-05-23  Bruno Haible  <bruno@clisp.org>
527
528         Improve support for ACLs on OSF/1.
529         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
530         Remove fallback for unknown flavors of ACLs.
531
532 2008-05-22  Bruno Haible  <bruno@clisp.org>
533
534         Add support for ACLs on OSF/1.
535         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
536         replacements.
537         (acl_free_text): New macro fallback.
538         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
539         acl_free.
540         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
541         acl_free_text function. Require AC_C_INLINE.
542
543 2008-05-22  Bruno Haible  <bruno@clisp.org>
544
545         Make copy_acl work on MacOS X 10.5.
546         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
547         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
548         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
549         If MODE_INSIDE_ACL, don't assume that every system has the same text
550         representation for ACLs as FreeBSD.
551         * lib/copy-acl.c (copy_acl): Add support for platforms with
552         !MODE_INSIDE_ACL.
553         * lib/file-has-acl.c (file_has_acl): Likewise.
554         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
555         FreeBSD, MacOS X, or IRIX, respectively.
556
557 2008-05-22  Bruno Haible  <bruno@clisp.org>
558
559         * lib/acl.h: Don't include <sys/acl.h>.
560         (GETACLCNT): Move fallback to lib/acl-internal.h.
561         * lib/acl-internal.h: Include <sys/acl.h> here.
562         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
563
564 2008-05-22  Bruno Haible  <bruno@clisp.org>
565
566         Split off copy_acl function to separate file.
567         * lib/copy-acl.c: New file, extracted from lib/acl.c.
568         * lib/acl.c (copy_acl): Moved function to separate file.
569         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
570         * modules/acl (Files): Add lib/copy-acl.c.
571         (Makefiles.am): Augment lib_SOURCES.
572
573 2008-05-22  Bruno Haible  <bruno@clisp.org>
574
575         * modules/copy-file-tests: New file.
576         * tests/test-copy-file.sh: New file.
577         * tests/test-copy-file.c: New file.
578         * tests/test-copy-file-sameacls.c: New file.
579
580 2008-05-22  Eric Blake  <ebb9@byu.net>
581
582         Avoid gcc warning.
583         * tests/test-memcmp.c (main): Pass NULL indirectly.
584
585 2008-05-21  Bruno Haible  <bruno@clisp.org>
586
587         Add reference doc about ACLs.
588         * doc/acl-resources.txt: New file.
589         * doc/acl-cygwin.txt: New file.
590
591 2008-05-21  Bruno Haible  <bruno@clisp.org>
592
593         Avoid one more warning from gcc.
594         * lib/vasnprintf.c (IF_LINT): Update comments.
595         (VASNPRINTF): Use it also for the 'prefix' array initializer.
596
597 2008-05-21  Jim Meyering  <meyering@redhat.com>
598
599         avoid a warning from gcc
600         * lib/vasnprintf.c (IF_LINT): Define.
601         (scale10_round_decimal_long_double):
602         Use it to avoid a "may be used uninitialized" warning.
603         (scale10_round_decimal_double): Likewise.
604
605 2008-05-21  Simon Josefsson  <simon@josefsson.org>
606
607         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
608         declared.
609
610 2008-05-20  Bruno Haible  <bruno@clisp.org>
611
612         * tests/test-memcmp.c (main): Test also the sign of the result. Test
613         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
614
615 2008-05-20  Simon Josefsson  <simon@josefsson.org>
616
617         * modules/memcmp-tests: New file.
618         * tests/test-memcmp.c: New file.
619
620 2008-05-19  Bruno Haible  <bruno@clisp.org>
621
622         * modules/propername (Notice, configure.ac): Put quoted "..." into
623         --keyword option.
624         * lib/propername.h: Update comments accordingly.
625         Reported by Eric Blake.
626
627 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
628
629         * modules/getpass-gnu (Depends-on): Add fseeko.
630
631 2008-05-19  Simon Josefsson  <simon@josefsson.org>
632
633         * modules/base64-tests: New file.
634
635 2008-05-19  Bo Borgerson <gigabo@gmail.com>
636
637         * lib/base64.c (base64_decode_ctx): If a decode context structure
638         was passed in use it to ignore newlines.  If a context structure
639         was _not_ passed in, continue to treat newlines as garbage (this
640         is the historical behavior).  Formerly base64_decode.
641         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
642         takes a decode context structure.
643         * lib/base64.h (base64_decode): Macro for four-argument calls.
644         (base64_decode_alloc): Likewise.
645         * lib/base64.c (base64_decode_ctx): If a decode context structure
646         was passed in use it to ignore newlines.  If a context structure
647         was _not_ passed in, continue to treat newlines as garbage (this
648         is the historical behavior).  Formerly base64_decode.
649         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
650         takes a decode context structure.
651         * lib/base64.h (base64_decode): Macro for four-argument calls.
652         (base64_decode_alloc): Likewise.
653
654 2008-05-19  Jim Meyering  <meyering@redhat.com>
655
656         avoid a warning from gcc
657         * lib/trim.c (IF_LINT): Define.
658         (trim2): Use it to avoid a "may be used uninitialized" warning.
659
660         Fix doc typo.
661         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
662
663 2008-05-19  Bruno Haible  <bruno@clisp.org>
664
665         * doc/glibc-functions/getpass.texi: Document limits of other
666         implementations.
667
668 2008-05-19  Simon Josefsson  <simon@josefsson.org>
669             Bruno Haible <bruno@clisp.org>
670
671         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
672
673 2008-05-18  Bruno Haible  <bruno@clisp.org>
674
675         * modules/propername: New file, from GNU gettext.
676         * lib/propername.h: New file, from GNU gettext.
677         * lib/propername.c: New file, from GNU gettext.
678         * MODULES.html.sh (Internationalization functions): Add propername.
679
680 2008-05-16  Jim Meyering  <meyering@redhat.com>
681             Bruno Haible  <bruno@clisp.org>
682
683         Avoid some warnings from "gcc -Wshadow".
684         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
685
686 2008-05-15  Eric Blake  <ebb9@byu.net>
687
688         Extend previous patch to cygwin 1.7.0.
689         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
690         fast implementation in cygwin >= 1.7.0.
691         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
692         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
693
694 2008-05-15  Bruno Haible  <bruno@clisp.org>
695
696         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
697         implementation in glibc >= 2.9.
698         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
699         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
700
701 2008-05-15  Bruno Haible  <bruno@clisp.org>
702
703         * MODULES.html.sh (Internationalization functions): Remove linebreak.
704         (Unicode string functions): Add unilbrk/*.
705         Reported by Karl Berry.
706
707 2008-05-15  Eric Blake  <ebb9@byu.net>
708
709         Fix violation of <stdbool.h> replacement in regex.
710         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
711         * lib/regexec.c (re_search_internal): Likewise.
712         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
713
714 2008-05-15  Jim Meyering  <meyering@redhat.com>
715
716         avoid distracting test output when git or cvs is not found
717         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
718         * tests/test-vc-list-files-git.sh: Likewise.
719
720 2008-05-15  Eric Blake  <ebb9@byu.net>
721
722         Glibc finally accepted the memmem speedup code, bugzilla #5514.
723         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
724         glibc version.
725         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
726         * doc/posix-functions/strstr.texi (strstr): Likewise.
727         * lib/str-two-way.h (MAX): Sychronize with glibc.
728
729 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
730
731         * lib/regcomp.c (optimize_utf8): Add a note on why we test
732         opr.ctx_type.
733         (calc_first): Initialize constraint field.
734         (duplicate_node_closure): Use it instead of special casing ANCHORS.
735         Fix grammar.
736         (duplicate_node): Merge constraint field for all node types.
737         (calc_eclosure_iter): Look at constraint field for all node types.
738         * lib/regex_internal.c (create_cd_newstate): Don't look at
739         opr.ctx_type.
740
741 2008-05-14  Bruno Haible  <bruno@clisp.org>
742
743         Help GCC to do better code generation.
744         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
745         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
746         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
747         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
748         Declare with attribute 'malloc' if supported.
749
750 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
751
752         use "echo STR|wc -c" rather than unportable "expr length STR"
753         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
754         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
755
756 2008-05-14  Jim Meyering  <meyering@redhat.com>
757
758         use dd ibs=$n count=1 ... rather than less-portable head -c$n
759         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
760         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
761         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
762         via Collin Lasse.
763
764 2008-05-14  Eric Blake  <ebb9@byu.net>
765
766         Avoid quadratic growth in gl_LIBSOURCES.
767         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
768         Suggested by Bruno Haible.
769
770         Test xmemdup0.
771         * modules/xmemdup0-tests: New file.
772         * tests/test-xmemdup0.c: Likewise.
773
774 2008-05-13  Eric Blake  <ebb9@byu.net>
775
776         Split xmemdup0 into its own module.
777         * modules/xmemdup0: New file.
778         * lib/xmemdup0.h: Likewise.
779         * lib/xmemdup0.c: Likewise.
780         * MODULES.html.sh (Memory management functions): Add xmemdup0.
781         * lib/xalloc.h (xmemdup0): Remove.
782         * lib/xmalloc.c (xmemdup0): Likewise.
783
784 2008-05-13  Eric Blake  <ebb9@byu.net>
785             Bruno Haible  <bruno@clisp.org>
786
787         Reduce number of forks required during autoconf.
788         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
789         and gl_LIBSOURCES_DIR.
790         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
791         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
792         m4_syscmd per file.
793         <m4_foreach_w>: Move...
794         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
795
796 2008-05-13  Eric Blake  <ebb9@byu.net>
797
798         * gnulib-tool: Fix various comment typos.
799
800 2008-05-12  Bruno Haible  <bruno@clisp.org>
801
802         Tailor the linebreaking algorithm.
803         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
804
805 2008-05-12  Bruno Haible  <bruno@clisp.org>
806
807         Update to Unicode 5.0.0.
808         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
809         LBP_JV, LBP_JT. Redistribute values.
810         (unilbrk_table): Change size.
811         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
812         Unicode TR#14 rev. 22.
813         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
814         LBP_JV, LBP_JT. Redistribute values.
815         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
816         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
817         Update.
818         * lib/unilbrk/lbrkprop1.h: Regenerated.
819         * lib/unilbrk/lbrkprop2.h: Regenerated.
820         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
821         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
822         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
823         Likewise.
824         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
825         Likewise.
826         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
827         result.
828         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
829         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
830         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
831         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
832         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
833         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
834
835 2008-05-11  Bruno Haible  <bruno@clisp.org>
836
837         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
838
839 2008-05-11  Bruno Haible  <bruno@clisp.org>
840
841         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
842         * modules/unilbrk/gen-lbrk: New file.
843
844 2008-05-11  Bruno Haible  <bruno@clisp.org>
845
846         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
847         * m4/sha512.m4 (gl_SHA512): Likewise.
848
849 2008-05-11  Jim Meyering  <meyering@redhat.com>
850
851         New modules: crypto/sha256, crypto/sha512 (from coreutils)
852         * modules/crypto/sha256: New file.
853         * modules/crypto/sha512: Likewise.
854         * lib/sha256.c: Likewise.
855         * lib/sha256.h: Likewise.
856         * lib/sha512.c: Likewise.
857         * lib/sha512.h: Likewise.
858         * lib/u64.h: Likewise.
859         * m4/sha256.m4: Likewise.
860         * m4/sha512.m4: Likewise.
861         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
862
863 2008-05-10  Bruno Haible  <bruno@clisp.org>
864
865         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
866         (Input/Output <stdio.h>): Add xprintf.
867         (Signal handling <signal.h>): Add strsignal.
868         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
869         (Core language properties): Add func.
870         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
871         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
872         strings.
873         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
874         (Input/output): New section.
875         (File system functions): Add openat-die, stat-macros.
876         (Networking functions): Add sockets.
877         (Unicode string functions): Add unictype/*.
878         (Support for building libraries and executables): Add gperf.
879         (Support for building documentation): Add agpl-3.0.
880         (Misc): Add nocrash.
881
882 2008-05-10  Bruno Haible  <bruno@clisp.org>
883
884         * modules/unictype/gen-ctype: New file.
885
886 2008-05-10  Jim Meyering  <meyering@redhat.com>
887
888         Make chdir-safer.c more efficient on a system with no symlinks.
889         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
890         also if ELOOP is zero.  Suggested by Bruno Haible.
891
892         Make chdir-safer.c slightly safer.
893         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
894         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
895
896         Avoid compile failure on systems without ELOOP (like mingw).
897         * lib/chdir-safer.c (ELOOP): Define if not already defined.
898         Reported by Bruno Haible.
899
900 2008-05-10  Bruno Haible  <bruno@clisp.org>
901
902         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
903         (is_utf8_encoding): Use a case-insensitive comparison.
904         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
905         streq.
906
907 2008-05-10  Bruno Haible  <bruno@clisp.org>
908
909         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
910         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
911         * lib/unilbrk/ulc-common.h (iconv_string_length,
912         iconv_string_keeping_offsets): Remove declarations.
913         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
914         Don't include <iconv.h>, streq.h, xsize.h.
915         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
916         conversion.
917         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
918         <iconv.h>, streq.h, xsize.h.
919         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
920         conversion.
921         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
922         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
923         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
924         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
925
926 2008-05-10  Bruno Haible  <bruno@clisp.org>
927
928         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
929         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
930
931         * modules/unilbrk/u32-width-linebreaks-tests: New file.
932         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
933
934         * modules/unilbrk/u16-width-linebreaks-tests: New file.
935         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
936
937         * modules/unilbrk/u8-width-linebreaks-tests: New file.
938         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
939
940         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
941         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
942
943         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
944         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
945
946         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
947         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
948
949         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
950         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
951
952 2008-05-10  Bruno Haible  <bruno@clisp.org>
953
954         Split up 'linebreak' module.
955         * lib/unilbrk.h: New file, based on lib/linebreak.h.
956         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
957         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
958         modifications.
959         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
960         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
961         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
962         lib/linebreak.c.
963         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
964         lib/linebreak.c.
965         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
966         lib/linebreak.c.
967         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
968         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
969         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
970         lib/linebreak.c.
971         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
972         lib/linebreak.c.
973         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
974         lib/linebreak.c.
975         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
976         lib/linebreak.c.
977         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
978         lib/linebreak.c.
979         * modules/unilbrk/base: New file.
980         * modules/unilbrk/tables: New file.
981         * modules/unilbrk/u8-possible-linebreaks: New file.
982         * modules/unilbrk/u16-possible-linebreaks: New file.
983         * modules/unilbrk/u32-possible-linebreaks: New file.
984         * modules/unilbrk/ulc-common: New file.
985         * modules/unilbrk/ulc-possible-linebreaks: New file.
986         * modules/unilbrk/u8-width-linebreaks: New file.
987         * modules/unilbrk/u16-width-linebreaks: New file.
988         * modules/unilbrk/u32-width-linebreaks: New file.
989         * modules/unilbrk/ulc-width-linebreaks: New file.
990         * lib/linebreak.h: Remove file.
991         * lib/linebreak.c: Remove file.
992         * m4/linebreak.m4: Remove file.
993         * modules/linebreak: Remove file.
994         * NEWS: Mention the changes.
995
996 2008-05-09  Eric Blake  <ebb9@byu.net>
997
998         Add xmemdup0.
999         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
1000         implementation.
1001         * lib/xmalloc.c (xmemdup0): New C implementation.
1002
1003 2008-05-08  Bruno Haible  <bruno@clisp.org>
1004
1005         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
1006
1007 2008-05-07  Eric Blake  <ebb9@byu.net>
1008
1009         Support cross-compilation of <wctype.h>.
1010         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
1011         AC_CACHE_CHECK.
1012
1013 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
1014
1015         * build-aux/vc-list-files: Add support for bzr.
1016
1017 2008-05-03  Jim Meyering  <meyering@redhat.com>
1018
1019         avoid failed assertion with tight malloc
1020         * tests/test-getndelim2.c: Correct an off-by-one assertion.
1021
1022 2008-05-03  Simon Josefsson  <simon@josefsson.org>
1023
1024         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
1025         are needed from arpa/inet.h.
1026         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
1027         Reported by Bruno Haible.
1028
1029 2008-05-02  Jim Meyering  <meyering@redhat.com>
1030
1031         avoid compilation error on FreeBSD 6
1032         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
1033
1034 2008-05-01  Jim Meyering  <meyering@redhat.com>
1035
1036         useless-if-before-free: correct --help's exit status description
1037         * build-aux/useless-if-before-free (usage): Like grep, exit 0
1038         for one or more matches, etc.  Reported by Bruno Haible.
1039
1040         vc-list-files: make the stand-alone gnulib test work
1041         * modules/vc-list-files-tests (configure.ac):
1042         Define and AC_SUBST abs_aux_dir.
1043         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
1044         $(abs_top_srcdir) to each script and having each of them
1045         duplicate the work of setting PATH, set PATH here, using
1046         the new variable, abs_aux_dir instead.
1047         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
1048         * tests/test-vc-list-files-git.sh: Likewise.
1049         Reported by Bruno Haible.
1050
1051 2008-05-01  Bruno Haible  <bruno@clisp.org>
1052
1053         * lib/getndelim2.c (getndelim2): Fix newsize computation during
1054         reallocation. Rename 'done' to 'found_delimiter'.
1055
1056 2008-05-01  Jim Meyering  <meyering@redhat.com>
1057
1058         vc-list-files: accommodate /bin/sh like the one from Solaris 10
1059         * build-aux/vc-list-files: Use `...`, not $(...).
1060
1061 2008-04-30  Jim Meyering  <meyering@redhat.com>
1062
1063         add tests for vc-list-files
1064         * modules/vc-list-files-tests: New module.
1065         * tests/test-vc-list-files-cvs.sh: New file.
1066         * tests/test-vc-list-files-git.sh: New file.
1067
1068         avoid a warning from gcc
1069         * lib/getndelim2.c (IF_LINT): Define.
1070         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
1071
1072         vc-list-files: work properly with build-aux/cvsu, too
1073         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
1074         to all cvs-based clauses.
1075
1076         vc-list-files: work properly in the CVS+awk case, too
1077         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
1078
1079         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
1080         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
1081         take more than one file argument, so .  Add quotes, just in case $dir
1082         ever contains a shell meta-character.  Prompted by Soren Hansen in
1083         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
1084
1085 2008-04-29  Eric Blake  <ebb9@byu.net>
1086
1087         Optimize getndelim2 to use block operations when possible.
1088         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
1089         freadseek, and memchr2.
1090         * lib/getndelim2.c (getndelim2): Use them for block reads.
1091
1092 2008-04-29  Bruno Haible  <bruno@clisp.org>
1093
1094         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
1095         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1096         * modules/inet_ntop (Depends-on): Add extensions.
1097         * modules/inet_pton (Depends-on): Likewise.
1098         Reported by Simon Josefsson.
1099
1100 2008-04-29  Jim Meyering  <meyering@redhat.com>
1101
1102         When the is more than one match in a block, match all of them.
1103         * build-aux/useless-if-before-free: Iterate through each block
1104         until there are no more matches.
1105
1106         Fix broken useless-if-before-free script.
1107         * build-aux/useless-if-before-free: Fix typo: missing "?" after
1108         the expression to match cast of argument to free-like function.
1109
1110 2008-04-29  Eric Blake  <ebb9@byu.net>
1111
1112         Use new header.
1113         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
1114
1115 2008-04-29  Jim Meyering  <meyering@redhat.com>
1116
1117         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
1118         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
1119         by gnulib to exist and to declare e.g., inet_ntop.
1120         Don't include "inet_ntop.h", now removed.
1121
1122         * m4/arpa_inet_h.m4: Remove trailing blanks.
1123
1124 2008-04-29  Eric Blake  <ebb9@byu.net>
1125
1126         Silence valgrind on safe reads beyond potential array bounds.
1127         * lib/rawmemchr.valgrind: New file.
1128         * lib/strchrnul.valgrind: Likewise.
1129         * modules/rawmemchr (Files): Distribute new file.
1130         * modules/strchrnul (Files): Likewise.
1131         Suggested by Bruno Haible.
1132
1133 2008-04-29  Bruno Haible  <bruno@clisp.org>
1134
1135         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
1136         (inet_ntop, inet_pton): Change portability warning's wording.
1137         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
1138         Invoke gl_CHECK_NEXT_HEADERS.
1139         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
1140         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
1141         set ARPA_INET_H.
1142         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1143         * modules/arpa_inet (Description): No longer only for systems that
1144         lack it.
1145         (Depends-on): Add include_next.
1146         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
1147         HAVE_ARPA_INET_H.
1148
1149 2008-04-29  Jim Meyering  <meyering@redhat.com>
1150
1151         * modules/mkdir (License): Re-license as LGPLv2+.
1152
1153 2008-04-29  Bruno Haible  <bruno@clisp.org>
1154
1155         * modules/rawmemchr (Maintainer): Set to Eric.
1156         * modules/strchrnul (Maintainer): Likewise.
1157
1158 2008-04-29  Simon Josefsson  <simon@josefsson.org>
1159
1160         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
1161         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
1162
1163         * modules/arpa_inet (arpa/inet.h): Use them.
1164
1165 2008-04-28  Eric Blake  <ebb9@byu.net>
1166
1167         Test getndelim2.
1168         * modules/getndelim2-tests: New file.
1169         * tests/test-getndelim2.c: Likewise.
1170         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
1171         stream.
1172         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
1173
1174         * MODULES.html.sh: Document new module.
1175
1176 2008-04-20  Bruno Haible  <bruno@clisp.org>
1177
1178         * lib/c-stack.c (die): Use raise.
1179         * modules/c-stack (Depends-on): Add raise.
1180
1181 2008-04-28  Bruno Haible  <bruno@clisp.org>
1182
1183         Expect rpmatch to be declared.
1184         * lib/yesno.c (rpmatch): Remove declaration.
1185
1186         Declare rpmatch.
1187         * lib/stdlib.in.h (rpmatch): New declaration.
1188         * lib/rpmatch.c: Include <stdlib.h> first.
1189         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
1190         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
1191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
1192         HAVE_RPMATCH.
1193         * modules/rpmatch (Depends-on): Add stdlib, extensions.
1194         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1195         (Include): Set to <stdlib.h>.
1196         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
1197         HAVE_RPMATCH.
1198         * NEWS: Document the change.
1199
1200 2008-04-28  Bruno Haible  <bruno@clisp.org>
1201
1202         Change rpmatch to use nl_langinfo when appropriate.
1203         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
1204         (N_): New macro.
1205         (localized_pattern): New function/macro.
1206         (try): Remove match, nomatch arguments. Copy the pattern into safe
1207         memory before caching it.
1208         (rpmatch): Use localized_pattern. Add translator comments.
1209         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
1210         Suggested by Eric Blake.
1211         * modules/rpmatch (Depends-on): Add stdbool.
1212
1213 2008-04-28  Eric Blake  <ebb9@byu.net>
1214
1215         Add rawmemchr module, matching glibc.
1216         * modules/string (Makefile.am): New indicator.
1217         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
1218         * lib/string.in.h (rawmemchr): Declare when appropriate.
1219         * modules/rawmemchr: New file.
1220         * m4/rawmemchr.m4: Likewise.
1221         * lib/rawmemchr.c: Likewise.
1222         * modules/rawmemchr-tests: Likewise.
1223         * tests/test-rawmemchr.c: Likewise.
1224         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
1225         module.
1226         * modules/strchrnul (Depends-on): Add rawmemchr.
1227         * lib/strchrnul.c (strchrnul): Optimize a corner case.
1228
1229         Whitespace cleanup.
1230         * tests/test-strchrnul.c: Reindent.
1231         * lib/strchrnul.c: Likewise.
1232
1233         Optimize and test strchrnul.
1234         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
1235         * modules/strchrnul-tests: New file.
1236         * tests/test-strchrnul.c: Likewise.
1237
1238         Remove intprops dependency.
1239         * modules/memchr (Depends-on): Remove intprops.
1240         * modules/memrchr (Depends-on): Likewise.
1241         * modules/memchr2 (Depends-on): Likewise.
1242         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
1243         * lib/memrchr.c (__memrchr): Likewise.
1244         * lib/memrchr2.c (memchr2): Likewise.
1245         Reported by Simon Josefsson.
1246
1247 2008-04-28  Simon Josefsson  <simon@josefsson.org>
1248
1249         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
1250         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1251
1252 2008-04-28  Simon Josefsson  <simon@josefsson.org>
1253
1254         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
1255
1256         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
1257
1258         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
1259
1260         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
1261         declarations.
1262         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
1263
1264         * m4/inet_pton.m4: Don't check for header files.
1265
1266         * m4/inet_ntop.m4: Don't check for header files.
1267
1268 2008-04-28  Simon Josefsson  <simon@josefsson.org>
1269
1270         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
1271         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
1272         trigger for cygwin).
1273         Reported by Bruno Haible  <bruno@clisp.org>.
1274
1275 2008-04-28  Bruno Haible  <bruno@clisp.org>
1276
1277         * doc/posix-functions/strdup.texi: Mention mingw problem.
1278
1279 2008-04-27  Bruno Haible  <bruno@clisp.org>
1280
1281         * modules/stat-time-tests (Depends-on): Add sleep.
1282         * tests/test-stat-time.c (force_unlink): New function.
1283         (cleanup): Use it.
1284         (test_mtime): Remove the ctime related tests.
1285         (test_ctime): New function, containing the ctime related tests.
1286         (main): Call test_ctime, except on native Windows platforms.
1287
1288 2008-04-27  Bruno Haible  <bruno@clisp.org>
1289
1290         * lib/rpmatch.c (rpmatch): Add some comments.
1291         Reported by James Youngman <jay@gnu.org>.
1292
1293 2008-04-27  Bruno Haible  <bruno@clisp.org>
1294
1295         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
1296         quiet NaNs.
1297
1298 2008-04-27  Bruno Haible  <bruno@clisp.org>
1299
1300         Make test-yesno.sh work on mingw.
1301         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
1302         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
1303         (main): Set stdin to binary mode.
1304         * modules/yesno-tests (Depends-on): Add binary-io.
1305
1306 2008-04-27  Bruno Haible  <bruno@clisp.org>
1307
1308         Fix 'isfinite' on x86, x86_64, ia64 platforms.
1309         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
1310         argument that lie outside the IEEE 854 domain.
1311         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
1312         (gl_ISFINITE): Use it.
1313         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
1314
1315 2008-04-27  Bruno Haible  <bruno@clisp.org>
1316
1317         Allow local renaming in config.h.
1318         * lib/memrchr.c (memrchr): Don't undefine outside libc.
1319
1320 2008-04-27  Bruno Haible  <bruno@clisp.org>
1321
1322         * lib/memchr.c (__memchr): Change type of 'i'.
1323         * lib/memchr2.c (memchr2): Likewise.
1324
1325 2008-04-26  Eric Blake  <ebb9@byu.net>
1326         and Bruno Haible  <bruno@clisp.org>
1327
1328         Optimize and test memrchr.
1329         * modules/memrchr (Depends-on): Add intprops.
1330         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
1331         * modules/memrchr-tests: New file.
1332         * tests/test-memrchr.c: New file.
1333
1334 2008-04-26  Bruno Haible  <bruno@clisp.org>
1335
1336         Add tentative support for DragonFly BSD.
1337         * lib/stdio-impl.h: Add macros for DragonFly BSD.
1338         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
1339         fp.
1340         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
1341         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
1342         * lib/fpurge.c (fpurge): Likewise.
1343         * lib/freadable.c (freaadable): Likewise.
1344         * lib/freadahead.c (freadahead): Likewise.
1345         * lib/freading.c (freading): Likewise.
1346         * lib/freadptr.c (freadptr): Likewise.
1347         * lib/freadseek.c (freadptrinc): Likewise.
1348         * lib/fseeko.c (fseeko): Likewise.
1349         * lib/fseterr.c (fseterr): Likewise.
1350         * lib/fwritable.c (fwritable): Likewise.
1351         * lib/fwriting.c (fwriting): Likewise.
1352
1353 2008-04-26  Bruno Haible  <bruno@clisp.org>
1354
1355         * lib/stdio-impl.h: New file.
1356         * lib/fbufmode.c: Include stdio-impl.h.
1357         (fbufmode): Use fp_, remove redundant #defines.
1358         * lib/fflush.c: Include stdio-impl.h.
1359         (clear_ungetc_buffer): Remove redundant #defines.
1360         * lib/fpurge.c: Include stdio-impl.h.
1361         (fpurge): Remove redundant #defines.
1362         * lib/freadable.c: Include stdio-impl.h.
1363         (freadable): Remove redundant #defines.
1364         * lib/freadahead.c: Include stdio-impl.h.
1365         (freadahead): Remove redundant #defines.
1366         * lib/freading.c: Include stdio-impl.h.
1367         (freading): Remove redundant #defines.
1368         * lib/freadptr.c: Include stdio-impl.h.
1369         (freadptr): Remove redundant #defines.
1370         * lib/freadseek.c: Include stdio-impl.h.
1371         (freadptrinc): Remove redundant #defines.
1372         * lib/fseeko.c: Include stdio-impl.h.
1373         (rpl_fseeko): Remove redundant #defines.
1374         * lib/fseterr.c: Include stdio-impl.h.
1375         (fseterr): Remove redundant #defines.
1376         * lib/fwritable.c: Include stdio-impl.h.
1377         (fwritable: Remove redundant #defines.
1378         * lib/fwriting.c: Include stdio-impl.h.
1379         (fwriting): Remove redundant #defines.
1380         * modules/fbufmode (Files): Add lib/stdio-impl.h.
1381         * modules/fflush (Files): Likewise.
1382         * modules/fpurge (Files): Likewise.
1383         * modules/freadable (Files): Likewise.
1384         * modules/freadahead (Files): Likewise.
1385         * modules/freading (Files): Likewise.
1386         * modules/freadptr (Files): Likewise.
1387         * modules/freadseek (Files): Likewise.
1388         * modules/fseeko (Files): Likewise.
1389         * modules/fseterr (Files): Likewise.
1390         * modules/fwritable (Files): Likewise.
1391         * modules/fwriting (Files): Likewise.
1392
1393 2008-04-26  Bruno Haible  <bruno@clisp.org>
1394
1395         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
1396         restore_seek_optimization, update_fpos_cache): New functions, extracted
1397         from rpl_fflush.
1398         (rpl_fflush): Use them.
1399         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
1400         (gl_REPLACE_FFLUSH): Use it.
1401
1402 2008-04-26  Bruno Haible  <bruno@clisp.org>
1403
1404         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
1405         on Solaris.
1406         * tests/test-xstrtoimax.sh: Likewise.
1407         * tests/test-xstrtoumax.sh: Likewise.
1408         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1409
1410 2008-04-26  Bruno Haible  <bruno@clisp.org>
1411
1412         * modules/memchr-tests: New file.
1413         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
1414
1415 2008-04-26  Eric Blake  <ebb9@byu.net>
1416             Bruno Haible  <bruno@clisp.org>
1417
1418         * lib/memchr.c: Include intprops.h.
1419         (__memchr): Optimize parallel detection of matching bytes. Rename local
1420         variables. Add explanatory comments.
1421
1422 2008-04-26  Bruno Haible  <bruno@clisp.org>
1423
1424         Fix module 'memchr', broken since 2000-10-28.
1425         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
1426
1427 2008-04-26  Bruno Haible  <bruno@clisp.org>
1428
1429         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
1430         comments.
1431
1432 2008-04-25  Eric Blake  <ebb9@byu.net>
1433
1434         Use native fstatat on cygwin 1.7.0.
1435         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
1436         first.
1437
1438 2008-04-23  Eric Blake  <ebb9@byu.net>
1439
1440         Improve memchr2 performance.
1441         * lib/memchr2.c (memchr2): Further optimize parallel detection of
1442         NUL bytes.
1443         * modules/memchr2 (Depends-on): Use intprops.h.
1444
1445 2008-04-23  Simon Josefsson  <simon@josefsson.org>
1446
1447         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
1448         an inline function instead of a CPP macro.  Patch by Ben Pfaff
1449         <blp@cs.stanford.edu>.
1450
1451 2008-04-23  Simon Josefsson  <simon@josefsson.org>
1452
1453         * lib/arpa_inet.in.h: New file.
1454
1455         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
1456         (Makefile.am): Sed in substitute header file.
1457
1458         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
1459         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
1460
1461         * modules/inet_ntop (configure.ac): Use
1462         gl_ARPA_INET_MODULE_INDICATOR.
1463
1464         * modules/inet_pton (configure.ac): Use
1465         gl_ARPA_INET_MODULE_INDICATOR.
1466
1467 2008-04-22  Jim Meyering  <meyering@redhat.com>
1468
1469         * modules/verify (License): Re-license as LGPLv2+.
1470
1471 2008-04-22  Simon Josefsson  <simon@josefsson.org>
1472
1473         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
1474         parameter to void* as per POSIX standard (MinGW uses char*).
1475
1476 2008-04-21  Bruno Haible  <bruno@clisp.org>
1477
1478         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
1479         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
1480         Define to replacements if REPLACE_ISWCNTRL is 1.
1481         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
1482         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
1483         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
1484         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
1485         what it fixes.
1486         * doc/posix-functions/iswalpha.texi: Likewise.
1487         * doc/posix-functions/iswblank.texi: Likewise.
1488         * doc/posix-functions/iswcntrl.texi: Likewise.
1489         * doc/posix-functions/iswdigit.texi: Likewise.
1490         * doc/posix-functions/iswgraph.texi: Likewise.
1491         * doc/posix-functions/iswlower.texi: Likewise.
1492         * doc/posix-functions/iswprint.texi: Likewise.
1493         * doc/posix-functions/iswpunct.texi: Likewise.
1494         * doc/posix-functions/iswspace.texi: Likewise.
1495         * doc/posix-functions/iswupper.texi: Likewise.
1496         * doc/posix-functions/iswxdigit.texi: Likewise.
1497         Reported by Alain Guibert.
1498
1499 2008-04-21  Bruno Haible  <bruno@clisp.org>
1500
1501         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
1502         Patch by Alain Guibert.
1503
1504 2008-04-21  Bruno Haible  <bruno@clisp.org>
1505
1506         Fix test failures on mingw.
1507         * tests/test-xstrtol.c (print_no_progname): New function.
1508         (main): Install it in error_print_progname hook.
1509         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
1510         * tests/test-xstrtoimax.sh: Likewise.
1511         * tests/test-xstrtoumax.sh: Likewise.
1512
1513 2008-04-21  Bruno Haible  <bruno@clisp.org>
1514
1515         Fix test failure on mingw.
1516         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
1517
1518 2008-04-21  Bruno Haible  <bruno@clisp.org>
1519
1520         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
1521         Actually assign a value.
1522
1523 2008-04-20  Bruno Haible  <bruno@clisp.org>
1524
1525         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
1526         take 2.
1527         * lib/canonicalize.c (canonicalize_file_name): Elide if the
1528         'canonicalize-lgpl' module is also used.
1529         * lib/canonicalize-lgpl.c: Undo last change.
1530         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
1531
1532 2008-04-20  Bruno Haible  <bruno@clisp.org>
1533
1534         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
1535         config.h. Provide _mkdir based fallback for mingw.
1536         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
1537         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
1538         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
1539         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
1540         rather than defining mkdir in config.h.
1541         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
1542         (gl_SYS_STAT_H_DEFAULTS): New macro.
1543         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
1544         HAVE_IO_H any more.
1545         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
1546         HAVE_DECL_MKDIR and HAVE_IO_H.
1547
1548 2008-04-20  Bruno Haible  <bruno@clisp.org>
1549
1550         * lib/isapipe.c: Port to native Windows platforms.
1551
1552 2008-04-20  Bruno Haible  <bruno@clisp.org>
1553
1554         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
1555
1556 2008-04-21  Eric Blake  <ebb9@byu.net>
1557
1558         Work around preprocessors that don't handle UINTMAX_MAX.
1559         * lib/memchr2.c (memchr2): Avoid embedded #if.
1560         Reported by Alain Guibert, fix suggested by Bruno Haible.
1561
1562 2008-04-21  Simon Josefsson  <simon@josefsson.org>
1563
1564         * doc/posix-functions/strftime.texi (strftime): Explain better
1565         Windows incompatibility.  Suggested by Micah Cowan
1566         <micah@cowan.name>.
1567
1568 2008-04-20  Bruno Haible  <bruno@clisp.org>
1569
1570         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
1571         unistr/u8-mblen.
1572
1573 2008-04-20  Bruno Haible  <bruno@clisp.org>
1574
1575         Fix test failure on platforms with non-GNU iconv.
1576         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
1577         (U_TO_U8): Use it, rather than u16_to_u8.
1578         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
1579         units at the end of the input string.
1580         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
1581
1582 2008-04-20  Bruno Haible  <bruno@clisp.org>
1583
1584         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
1585         when the resulting length is 0.
1586         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
1587
1588 2008-04-20  Bruno Haible  <bruno@clisp.org>
1589
1590         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
1591         works.
1592         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
1593
1594 2008-04-20  Bruno Haible  <bruno@clisp.org>
1595
1596         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
1597         * modules/tsearch-tests (configure.ac): Test for initstate function.
1598
1599 2008-04-20  Bruno Haible  <bruno@clisp.org>
1600
1601         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
1602         for nlink_t if missing.
1603         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
1604
1605 2008-04-19  Bruno Haible  <bruno@clisp.org>
1606
1607         Work around snprintf bug on Linux libc5.
1608         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
1609         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1610         gl_SNPRINTF_SIZE1.
1611         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1612         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
1613         that test failed.
1614         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1615         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
1616         * modules/snprintf (Files): Add m4/printf.m4.
1617         * modules/vsnprintf (Files): Likewise.
1618         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
1619         * doc/posix-functions/vsnprintf.texi: Likewise.
1620
1621 2008-04-19  Bruno Haible  <bruno@clisp.org>
1622
1623         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
1624         from 0.0058 to less than 10^-7.
1625
1626 2008-04-19  Bruno Haible  <bruno@clisp.org>
1627
1628         Fix rounding when a precision is given.
1629         * lib/vasnprintf.c (is_borderline): New function.
1630         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
1631         9...9x.
1632         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
1633         %e, %g.
1634         * tests/test-vasprintf-posix.c (test_function): Likewise.
1635         * tests/test-snprintf-posix.h (test_function): Likewise.
1636         * tests/test-sprintf-posix.h (test_function): Likewise.
1637         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
1638         * tests/test-printf-posix.h (test_function): Likewise.
1639         * tests/test-printf-posix.output: Update.
1640         Reported by John Darrington <john@darrington.wattle.id.au> via
1641         Ben Pfaff <blp@cs.stanford.edu>.
1642
1643 2008-04-18  Simon Josefsson  <simon@josefsson.org>
1644
1645         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
1646         Suggested by Bruno Haible <bruno@clisp.org>.
1647
1648 2008-04-17  Bruno Haible  <bruno@clisp.org>
1649
1650         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
1651         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
1652         implementation.
1653         Patch by Bruce Merry <bmerry@gmail.com>.
1654
1655 2008-04-17  Simon Josefsson  <simon@josefsson.org>
1656
1657         * doc/posix-functions/strftime.texi (strftime): Mention that %e
1658         doesn't work under Windows.
1659
1660 2008-04-16  Bruno Haible  <bruno@clisp.org>
1661
1662         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
1663         New macros.
1664         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
1665         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
1666         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
1667         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
1668         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
1669         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
1670         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
1671         macros.
1672         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
1673         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
1674         Northern Sotho, Uighur.
1675
1676 2008-04-16  Bruno Haible  <bruno@clisp.org>
1677
1678         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
1679         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
1680         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
1681         Reported by Daniel Bergström <daniel@octocode.com>.
1682
1683 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
1684             Bruno Haible  <bruno@clisp.org>
1685
1686         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
1687         function.
1688         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
1689         New functions, mostly extracted from gl_locale_name_default.
1690         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
1691
1692 2008-04-16  Eric Blake  <ebb9@byu.net>
1693
1694         Adjust strtod detection to catch glibc 2.7 bug.
1695         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
1696         Reported by John Gatewood Ham.
1697
1698 2008-04-16  Bruno Haible  <bruno@clisp.org>
1699
1700         Add tentative support for Linux libc5.
1701         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
1702         * lib/fpurge.c (fpurge): Likewise.
1703         * lib/freadable.c (freadable): Likewise.
1704         * lib/freadahead.c (freadahead): Likewise.
1705         * lib/freading.c (freading): Likewise.
1706         * lib/freadptr.c (freadptr): Likewise.
1707         * lib/freadseek.c (freadptrinc): Likewise.
1708         * lib/fseeko.c (rpl_fseeko): Likewise.
1709         * lib/fseterr.c (fseterr): Likewise.
1710         * lib/fwritable.c (fwritable): Likewise.
1711         * lib/fwriting.c (fwriting): Likewise.
1712         Reported by Alain Guibert <alguibert+bts@free.fr>.
1713
1714 2008-04-15  Bruno Haible  <bruno@clisp.org>
1715
1716         * modules/mathl (configure.ac): Define module indicator.
1717
1718 2008-04-15  Bruno Haible  <bruno@clisp.org>
1719
1720         * lib/logl.c (logl): Remove unused variables.
1721
1722 2008-04-15  Bruno Haible  <bruno@clisp.org>
1723
1724         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
1725         fails.
1726
1727 2008-04-15  Bruno Haible  <bruno@clisp.org>
1728
1729         * lib/trim.c (trim2): Fix argument of isspace() macro.
1730
1731 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
1732
1733         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
1734         to 0.
1735         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
1736
1737 2008-04-14  Bruno Haible  <bruno@clisp.org>
1738
1739         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
1740         AC_LANG_PROGRAM argument.
1741         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
1742         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
1743         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1744         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1745         * m4/math_h.m4 (gl_MATH_H): Likewise.
1746         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1747         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1748         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1749         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
1750         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1751         * m4/regex.m4 (gl_REGEX): Likewise.
1752         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
1753         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
1754         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1755         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
1756         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
1757         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1758         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1759         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1760
1761 2008-04-14  Jim Meyering  <meyering@redhat.com>
1762
1763         test-strtod: fix typos: s/abs/fabs/
1764         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
1765
1766 2008-04-13  Bruno Haible  <bruno@clisp.org>
1767
1768         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
1769         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
1770         module is also used and while not building the reloc-wrapper.
1771
1772 2008-04-13  Bruno Haible  <bruno@clisp.org>
1773
1774         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
1775
1776 2008-04-13  Bruno Haible  <bruno@clisp.org>
1777
1778         Fix AIX compilation failure introduced on 2008-04-02.
1779         * tests/test-frexp.c (exp): Undefine before redefining.
1780         * tests/test-frexpl.c (exp): Likewise.
1781
1782 2008-04-13  Bruno Haible  <bruno@clisp.org>
1783
1784         Work around a HP-UX stdio bug.
1785         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
1786         * tests/test-ftello.c (main): Likewise.
1787         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
1788         * doc/posix-functions/ftello.texi: Likewise.
1789
1790 2008-04-13  Bruno Haible  <bruno@clisp.org>
1791
1792         Make test-signbit pass on HP-UX/hppa.
1793         * tests/test-signbit.c (minus_zerol): New variable.
1794         (test_signbitl): Use it.
1795
1796 2008-04-13  Bruno Haible  <bruno@clisp.org>
1797
1798         Make truncl work on OSF/1 4.0.
1799         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
1800         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1801         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
1803         HAVE_DECL_TRUNCL.
1804         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
1805         HAVE_DECL_TRUNCL.
1806         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
1807
1808 2008-04-13  Bruno Haible  <bruno@clisp.org>
1809
1810         * lib/unictype.h: Remove trailing comma from enumeration definitions.
1811
1812 2008-04-13  Bruno Haible  <bruno@clisp.org>
1813
1814         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
1815         expression, so as to avoid HP-UX 11 cc compiler bug.
1816
1817 2008-04-13  Bruno Haible  <bruno@clisp.org>
1818
1819         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
1820
1821 2008-04-13  Bruno Haible  <bruno@clisp.org>
1822
1823         * lib/git-merge-changelog.c: Remove empty declaration outside of
1824         functions.
1825
1826 2008-04-13  Bruno Haible  <bruno@clisp.org>
1827
1828         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
1829
1830 2008-04-13  Bruno Haible  <bruno@clisp.org>
1831
1832         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
1833         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
1834         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
1835         also if it exists but lacks definitions of the SHUT_* macros.
1836         * modules/sys_socket (Description): Update.
1837         Reported by Elbert Pol <e.pol@chello.nl>.
1838
1839 2008-04-13  Bruno Haible  <bruno@clisp.org>
1840
1841         * lib/localcharset.c (OS2): Don't redefine if already defined.
1842         Reported by Elbert Pol <e.pol@chello.nl>.
1843
1844 2008-04-13  Bruno Haible  <bruno@clisp.org>
1845
1846         * lib/binary-io.h [__EMX__]: Include <io.h>.
1847         Reported by Elbert Pol <e.pol@chello.nl>.
1848
1849 2008-04-12  Bruno Haible  <bruno@clisp.org>
1850
1851         * lib/fpucw.h: Enable the definitions also for x86_64.
1852         Needed for NetBSD/x86_64.
1853         Reported by Thomas Klausner <tk@giga.or.at>.
1854
1855 2008-04-12  Bruno Haible  <bruno@clisp.org>
1856
1857         * tests/test-strtod.c: Include isnand.h.
1858         (main): Use isnand instead of isnan.
1859         Reported by Jim Meyering.
1860
1861 2008-04-12  Bruno Haible  <bruno@clisp.org>
1862
1863         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
1864         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1865
1866 2008-04-12  Jim Meyering  <meyering@redhat.com>
1867
1868         * m4/math_h.m4 (gl_MATH_H): Fix typos.
1869
1870 2008-04-12  Bruno Haible  <bruno@clisp.org>
1871
1872         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
1873         Reported by Elbert Pol <e.pol@chello.nl>.
1874
1875 2008-04-12  Eric Blake  <ebb9@byu.net>
1876
1877         Work around Solaris 10 math.h bug.
1878         * m4/math_h.m4 (gl_MATH_H): Check for bug.
1879         (gl_MATH_H_DEFAULTS): Set up default.
1880         * modules/math (Makefile.am): Replace new indicators.
1881         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
1882         * tests/test-math.c (main): Test this.
1883         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
1884         * doc/posix-headers/math.texi (math.h): Mention bug.
1885         Reported by Nelson H. F. Beebe and Jim Meyering.
1886
1887 2008-04-11  Bruno Haible  <bruno@clisp.org>
1888
1889         Adapt to future versions of Apple GCC.
1890         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
1891         Reported by Peter O'Gorman <peter@pogma.com>.
1892
1893 2008-04-11  Bruno Haible  <bruno@clisp.org>
1894
1895         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
1896
1897 2008-04-11  Bruno Haible  <bruno@clisp.org>
1898
1899         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
1900
1901         * modules/getaddrinfo-tests (Makefile.am): Define
1902         test_getaddrinfo_LDADD.
1903
1904 2008-04-11  Bruno Haible  <bruno@clisp.org>
1905
1906         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
1907         (init): Fix syntax error.
1908         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
1909         is declared.
1910
1911 2008-04-11  Bruno Haible  <bruno@clisp.org>
1912
1913         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
1914         * modules/glob (Depends-on): Add stdbool.
1915
1916 2008-04-11  Bruno Haible  <bruno@clisp.org>
1917
1918         * lib/trim.c: Include <string.h>.
1919
1920 2008-04-11  Eric Blake  <ebb9@byu.net>
1921
1922         Avoid compile failure on OS/2.
1923         * lib/regex_internal.h (internal_function): Disable optimization
1924         on OS/2 (__EMX__), where it caused compiler error.
1925         Reported by Elbert Pol.
1926
1927 2008-04-11  Bruno Haible  <bruno@clisp.org>
1928
1929         Flush the standard error stream before aborting. Needed on mingw.
1930         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
1931         * tests/test-array_list.c (ASSERT): Likewise.
1932         * tests/test-array_oset.c (ASSERT): Likewise.
1933         * tests/test-avltree_list.c (ASSERT): Likewise.
1934         * tests/test-avltree_oset.c (ASSERT): Likewise.
1935         * tests/test-avltreehash_list.c (ASSERT): Likewise.
1936         * tests/test-binary-io.c (ASSERT): Likewise.
1937         * tests/test-byteswap.c (ASSERT): Likewise.
1938         * tests/test-c-ctype.c (ASSERT): Likewise.
1939         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
1940         * tests/test-c-strcasestr.c (ASSERT): Likewise.
1941         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
1942         * tests/test-c-strstr.c (ASSERT): Likewise.
1943         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
1944         * tests/test-canonicalize.c (ASSERT): Likewise.
1945         * tests/test-carray_list.c (ASSERT): Likewise.
1946         * tests/test-ceilf1.c (ASSERT): Likewise.
1947         * tests/test-ceilf2.c (ASSERT): Likewise.
1948         * tests/test-ceill.c (ASSERT): Likewise.
1949         * tests/test-count-one-bits.c (ASSERT): Likewise.
1950         * tests/test-fbufmode.c (ASSERT): Likewise.
1951         * tests/test-fflush2.c (ASSERT): Likewise.
1952         * tests/test-floorf1.c (ASSERT): Likewise.
1953         * tests/test-floorf2.c (ASSERT): Likewise.
1954         * tests/test-floorl.c (ASSERT): Likewise.
1955         * tests/test-fopen.c (ASSERT): Likewise.
1956         * tests/test-fpending.c (ASSERT): Likewise.
1957         * tests/test-fprintf-posix.c (ASSERT): Likewise.
1958         * tests/test-fpurge.c (ASSERT): Likewise.
1959         * tests/test-freadable.c (ASSERT): Likewise.
1960         * tests/test-freadahead.c (ASSERT): Likewise.
1961         * tests/test-freading.c (ASSERT): Likewise.
1962         * tests/test-freadptr.c (ASSERT): Likewise.
1963         * tests/test-freadptr2.c (ASSERT): Likewise.
1964         * tests/test-freadseek.c (ASSERT): Likewise.
1965         * tests/test-freopen.c (ASSERT): Likewise.
1966         * tests/test-frexp.c (ASSERT): Likewise.
1967         * tests/test-frexpl.c (ASSERT): Likewise.
1968         * tests/test-fseek.c (ASSERT): Likewise.
1969         * tests/test-fseeko.c (ASSERT): Likewise.
1970         * tests/test-fstrcmp.c (ASSERT): Likewise.
1971         * tests/test-ftell.c (ASSERT): Likewise.
1972         * tests/test-ftello.c (ASSERT): Likewise.
1973         * tests/test-func.c (ASSERT): Likewise.
1974         * tests/test-fwritable.c (ASSERT): Likewise.
1975         * tests/test-fwriting.c (ASSERT): Likewise.
1976         * tests/test-getdelim.c (ASSERT): Likewise.
1977         * tests/test-getline.c (ASSERT): Likewise.
1978         * tests/test-i-ring.c (ASSERT): Likewise.
1979         * tests/test-iconv-utf.c (ASSERT): Likewise.
1980         * tests/test-iconv.c (ASSERT): Likewise.
1981         * tests/test-isfinite.c (ASSERT): Likewise.
1982         * tests/test-isnand.c (ASSERT): Likewise.
1983         * tests/test-isnanf.c (ASSERT): Likewise.
1984         * tests/test-isnanl.h (ASSERT): Likewise.
1985         * tests/test-ldexpl.c (ASSERT): Likewise.
1986         * tests/test-linked_list.c (ASSERT): Likewise.
1987         * tests/test-linkedhash_list.c (ASSERT): Likewise.
1988         * tests/test-localename.c (ASSERT): Likewise.
1989         * tests/test-lseek.c (ASSERT): Likewise.
1990         * tests/test-mbscasecmp.c (ASSERT): Likewise.
1991         * tests/test-mbscasestr1.c (ASSERT): Likewise.
1992         * tests/test-mbscasestr2.c (ASSERT): Likewise.
1993         * tests/test-mbscasestr3.c (ASSERT): Likewise.
1994         * tests/test-mbscasestr4.c (ASSERT): Likewise.
1995         * tests/test-mbschr.c (ASSERT): Likewise.
1996         * tests/test-mbscspn.c (ASSERT): Likewise.
1997         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
1998         * tests/test-mbspbrk.c (ASSERT): Likewise.
1999         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
2000         * tests/test-mbsrchr.c (ASSERT): Likewise.
2001         * tests/test-mbsspn.c (ASSERT): Likewise.
2002         * tests/test-mbsstr1.c (ASSERT): Likewise.
2003         * tests/test-mbsstr2.c (ASSERT): Likewise.
2004         * tests/test-mbsstr3.c (ASSERT): Likewise.
2005         * tests/test-memchr2.c (ASSERT): Likewise.
2006         * tests/test-memmem.c (ASSERT): Likewise.
2007         * tests/test-open.c (ASSERT): Likewise.
2008         * tests/test-printf-frexp.c (ASSERT): Likewise.
2009         * tests/test-printf-frexpl.c (ASSERT): Likewise.
2010         * tests/test-printf-posix.c (ASSERT): Likewise.
2011         * tests/test-quotearg.c (ASSERT): Likewise.
2012         * tests/test-rbtree_list.c (ASSERT): Likewise.
2013         * tests/test-rbtree_oset.c (ASSERT): Likewise.
2014         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
2015         * tests/test-round1.c (ASSERT): Likewise.
2016         * tests/test-roundf1.c (ASSERT): Likewise.
2017         * tests/test-roundl.c (ASSERT): Likewise.
2018         * tests/test-signbit.c (ASSERT): Likewise.
2019         * tests/test-sleep.c (ASSERT): Likewise.
2020         * tests/test-snprintf-posix.c (ASSERT): Likewise.
2021         * tests/test-snprintf.c (ASSERT): Likewise.
2022         * tests/test-sprintf-posix.c (ASSERT): Likewise.
2023         * tests/test-stat-time.c (ASSERT): Likewise.
2024         * tests/test-strcasestr.c (ASSERT): Likewise.
2025         * tests/test-strerror.c (ASSERT): Likewise.
2026         * tests/test-striconv.c (ASSERT): Likewise.
2027         * tests/test-striconveh.c (ASSERT): Likewise.
2028         * tests/test-striconveha.c (ASSERT): Likewise.
2029         * tests/test-strsignal.c (ASSERT): Likewise.
2030         * tests/test-strstr.c (ASSERT): Likewise.
2031         * tests/test-strtod.c (ASSERT): Likewise.
2032         * tests/test-trunc1.c (ASSERT): Likewise.
2033         * tests/test-trunc2.c (ASSERT): Likewise.
2034         * tests/test-truncf1.c (ASSERT): Likewise.
2035         * tests/test-truncf2.c (ASSERT): Likewise.
2036         * tests/test-truncl.c (ASSERT): Likewise.
2037         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
2038         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
2039         * tests/test-vasnprintf.c (ASSERT): Likewise.
2040         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
2041         * tests/test-vasprintf.c (ASSERT): Likewise.
2042         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
2043         * tests/test-vprintf-posix.c (ASSERT): Likewise.
2044         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
2045         * tests/test-vsnprintf.c (ASSERT): Likewise.
2046         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
2047         * tests/test-wcwidth.c (ASSERT): Likewise.
2048         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
2049         * tests/test-xprintf-posix.c (ASSERT): Likewise.
2050         * tests/test-xvasprintf.c (ASSERT): Likewise.
2051         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
2052         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
2053         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
2054         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
2055         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
2056         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
2057         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
2058         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
2059         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
2060         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
2061         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
2062         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
2063         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
2064         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
2065         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
2066         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
2067         * tests/unictype/test-block_list.c (ASSERT): Likewise.
2068         * tests/unictype/test-block_of.c (ASSERT): Likewise.
2069         * tests/unictype/test-block_test.c (ASSERT): Likewise.
2070         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
2071         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
2072         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
2073         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
2074         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
2075         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
2076         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
2077         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
2078         * tests/unictype/test-combining.c (ASSERT): Likewise.
2079         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
2080         * tests/unictype/test-digit.c (ASSERT): Likewise.
2081         * tests/unictype/test-mirror.c (ASSERT): Likewise.
2082         * tests/unictype/test-numeric.c (ASSERT): Likewise.
2083         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
2084         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
2085         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
2086         * tests/unictype/test-scripts.c (ASSERT): Likewise.
2087         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
2088         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
2089         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
2090         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
2091         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
2092         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
2093         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
2094         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
2095         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
2096         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
2097         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
2098         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
2099         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
2100         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
2101         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
2102         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
2103         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
2104         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
2105         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
2106         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
2107         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
2108         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
2109         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
2110         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
2111         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
2112         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
2113         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
2114         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
2115         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
2116         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
2117         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
2118         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
2119         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
2120         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
2121         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
2122         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
2123         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
2124         Reported by Eric Blake.
2125
2126 2008-04-11  Bruno Haible  <bruno@clisp.org>
2127
2128         * lib/wchar.in.h: Tweak comment.
2129
2130 2008-04-11  Bruno Haible  <bruno@clisp.org>
2131
2132         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
2133         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
2134         gl_COMMON.
2135         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
2136
2137 2008-04-11  Bruno Haible  <bruno@clisp.org>
2138
2139         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
2140
2141 2008-04-11  Simon Josefsson  <simon@josefsson.org>
2142
2143         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
2144         of attempting to use non-existing /dev/*random.  Based on patch
2145         from Adam Strzelecki <ono@java.pl> in
2146         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
2147
2148 2008-04-08  Bruno Haible  <bruno@clisp.org>
2149
2150         Add tentative support for emx+gcc.
2151         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
2152         * lib/fpurge.c (fpurge): Likewise.
2153         * lib/freadable.c (freadable): Likewise.
2154         * lib/freadahead.c (freadahead): Likewise.
2155         * lib/freading.c (freading): Likewise.
2156         * lib/freadptr.c (freadptr): Likewise.
2157         * lib/freadseek.c (freadptrinc): Likewise.
2158         * lib/fseeko.c (rpl_fseeko): Likewise.
2159         * lib/fseterr.c (fseterr): Likewise.
2160         * lib/fwritable.c (fwritable): Likewise.
2161         * lib/fwriting.c (fwriting): Likewise.
2162         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
2163
2164 2008-04-09  Eric Blake  <ebb9@byu.net>
2165
2166         Avoid some autoconf warnings.
2167         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
2168         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
2169         * m4/afs.m4 (gl_AFS): Likewise.
2170         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
2171         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
2172         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2173         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
2174         (gl_INTEGER_TYPE_SUFFIX): Likewise.
2175         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
2176         (AC_CHECK_DECLS_ONCE): Likewise.
2177         Rename file...
2178         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
2179         gnulib-tool requires autoconf 2.59 or better.
2180         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
2181
2182 2008-04-08  Eric Blake  <ebb9@byu.net>
2183
2184         Use 'git describe --match' if present (added in git 1.5.5).
2185         * build-aux/git-version-gen: Limit result to tags that match 'v*'
2186         if possible.
2187
2188 2008-04-08  Bruno Haible  <bruno@clisp.org>
2189
2190         Add tentative support for OpenServer.
2191         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
2192         _ptr, _cnt.
2193         * lib/fpurge.c (fpurge): Likewise.
2194         * lib/freadable.c (freadable): Likewise.
2195         * lib/freadahead.c (freadahead): Likewise.
2196         * lib/freading.c (freading): Likewise.
2197         * lib/freadptr.c (freadptr): Likewise.
2198         * lib/freadseek.c (freadptrinc): Likewise.
2199         * lib/fseeko.c (rpl_fseeko): Likewise.
2200         * lib/fseterr.c (fseterr): Likewise.
2201         * lib/fwritable.c (fwritable): Likewise.
2202         * lib/fwriting.c (fwriting): Likewise.
2203         Reported by Roger Cornelius <rac@tenzing.org> and
2204         Brian K. White <brian@aljex.com>.
2205
2206 2008-04-06  Jim Meyering  <meyering@redhat.com>
2207
2208         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
2209
2210 2008-04-06  Bruno Haible  <bruno@clisp.org>
2211
2212         Avoid possible error with non-ASCII bytes in UTF-8 locales.
2213         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
2214         * tests/test-printf-posix.sh: Likewise.
2215         * tests/test-vfprintf-posix.sh: Likewise.
2216         * tests/test-vprintf-posix.sh: Likewise.
2217         * tests/test-xprintf-posix.sh: Likewise.
2218
2219 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2220
2221         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
2222         hide error from 'ls', needed on OS/2.
2223         Report by Elbert Pol <elbert.pol@gmail.com>.
2224
2225 2008-04-04  Eric Blake  <ebb9@byu.net>
2226
2227         Make test-fseeko.c failures meaningful.
2228         * tests/test-fseeko.c: Print line number on failure.
2229         * tests/test-fseek.c: Likewise.
2230         Reported by Nelson H. F. Beebe.
2231
2232         Improve strtod bug detection check.
2233         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
2234         required for Solaris 10.
2235         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
2236
2237 2008-04-04  Bruno Haible  <bruno@clisp.org>
2238
2239         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
2240         by m4/setenv.m4.
2241
2242 2008-04-03  Eric Blake  <ebb9@byu.net>
2243
2244         Ensure sane .version contents.
2245         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
2246         version string.
2247         * build-aux/git-version-gen: Improve documentation.
2248
2249         Make GNU make output nicer.
2250         * top/GNUmakefile [!_have-Makefile]: Add dependency on
2251         MAKECMDGOALS to enforce message for all command line targets.  Set
2252         srcdir for use in maint.mk.
2253
2254         Another maintainer tweak.
2255         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
2256         a target that regenerates version.
2257
2258 2008-04-03  Jim Meyering  <meyering@redhat.com>
2259
2260         vc-list-files: don't cause coreutils "make po-check" failure
2261         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
2262
2263 2008-04-03  Eric Blake  <ebb9@byu.net>
2264
2265         Allow VPATH usage of vc-list-files.
2266         * build-aux/vc-list-files (scriptversion): Add timestamp.
2267         (options): Add --help, --version, -C.
2268         (CVS): Support installed cvsu.
2269
2270 2008-04-02  Bruno Haible  <bruno@clisp.org>
2271
2272         Avoid some "statement with no effect" warnings from gcc.
2273         * tests/test-wctype.c (main): Explicitly ignore unused values.
2274         Reported by Jim Meyering.
2275
2276 2008-04-02  Jim Meyering  <meyering@redhat.com>
2277
2278         Avoid some warnings from "gcc -Wshadow".
2279         * tests/test-frexp.c (exp): Define to a different identifier.
2280         * tests/test-frexpl.c (exp): Likewise.
2281
2282 2008-04-03  Jim Meyering  <meyering@redhat.com>
2283
2284         bootstrap: remove dangling *.[ch] symlinks from lib
2285         * build-aux/bootstrap [dangling symlink removal]: Move find's
2286         -depth option to precede all others, to avoid a warning.
2287         Remove *.[ch] files too, and from "$source_base" (usually lib/).
2288
2289 2008-04-02  Bruno Haible  <bruno@clisp.org>
2290
2291         Avoid some warnings from "gcc -Wshadow".
2292         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
2293         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
2294         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
2295         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
2296         Reported by Jim Meyering.
2297
2298 2008-04-01  Bruno Haible  <bruno@clisp.org>
2299
2300         Fix test to work on IRIX 6.5 with cc.
2301         * tests/test-math.c (numeric_equal): New function.
2302         (main): Use it.
2303
2304 2008-04-01  Bruno Haible  <bruno@clisp.org>
2305
2306         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
2307
2308 2008-04-01  Bruno Haible  <bruno@clisp.org>
2309
2310         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
2311         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2312         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
2313         (Depends-on): Remove math.
2314
2315         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
2316         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2317         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
2318         (Depends-on): Remove math.
2319
2320         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
2321         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2322         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
2323         (Depends-on): Remove math.
2324         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
2325         (Depends-on): Remove math.
2326
2327         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
2328         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2329         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
2330         (Depends-on): Remove math.
2331         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
2332         (Depends-on): Remove math.
2333
2334         * tests/test-round1.c: Include nan.h.
2335         (main): Use NaNd instead of NAN.
2336         * modules/round-tests (Files): Add tests/nan.h.
2337
2338         * tests/test-trunc1.c: Include nan.h.
2339         (main): Use NaNd instead of NAN.
2340         * modules/trunc-tests (Files): Add tests/nan.h.
2341
2342         * tests/test-roundf1.c: Include nan.h.
2343         (main): Use NaNf instead of NAN.
2344         * modules/roundf-tests (Files): Add tests/nan.h.
2345
2346         * tests/test-truncf1.c: Include nan.h.
2347         (main): Use NaNf instead of NAN.
2348         * modules/truncf-tests (Files): Add tests/nan.h.
2349
2350         * tests/test-ceilf1.c: Include nan.h.
2351         (main): Use NaNf instead of NAN.
2352         * modules/ceilf-tests (Files): Add tests/nan.h.
2353
2354         * tests/test-floorf1.c: Include nan.h.
2355         (main): Use NaNf instead of NAN.
2356         * modules/floorf-tests (Files): Add tests/nan.h.
2357
2358         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
2359         (main): Use NaNf instead of NAN.
2360         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
2361
2362         * tests/test-isnand.c: Include nan.h instead of <math.h>.
2363         (main): Use NaNd instead of NAN.
2364         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
2365
2366         * tests/test-frexp.c: Include nan.h.
2367         (main): Use NaNd instead of NAN.
2368         * modules/frexp-tests (Files): Add tests/nan.h.
2369
2370         * lib/isnan.c: Don't include <math.h>.
2371         (FUNC): Don't use NAN macro.
2372         * modules/isnand-nolibm (Depends-on): Remove math.
2373         * modules/isnanf-nolibm (Depends-on): Remove math.
2374         * modules/isnanl (Depends-on): Remove math.
2375         * modules/isnanl-nolibm (Depends-on): Remove math.
2376
2377         * tests/nan.h: New file.
2378
2379 2008-04-01  Eric Blake  <ebb9@byu.net>
2380
2381         Fix typos.
2382         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
2383         values to be the right type.
2384
2385         For now, cater to gnulib strtod inaccuracies.
2386         * tests/test-strtod.c (main): Allow 1-ulp error on expected
2387         fractional results.  While not as nice from a QoI perspective, it
2388         is a quicker patch than correctly implementing decimal to binary
2389         rounding.
2390
2391 2008-03-31  Eric Blake  <ebb9@byu.net>
2392
2393         Guarantee a definition of NAN.
2394         * lib/math.in.h (NAN): Define if missing.
2395         * tests/test-math.c (main): Test it.
2396         * doc/posix-headers/math.texi (math.h): Document this.
2397         * lib/isnan.c (rpl_isnand): Use it.
2398         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
2399         * tests/test-floorf1.c (NaN): Likewise.
2400         * tests/test-frexp.c (NaN): Likewise.
2401         * tests/test-isnand.c (NaN): Likewise.
2402         * tests/test-isnanf.c (NaN): Likewise.
2403         * tests/test-round1.c (NaN): Likewise.
2404         * tests/test-roundf1.c (NaN): Likewise.
2405         * tests/test-snprintf-posix.h (NaN): Likewise.
2406         * tests/test-sprintf-posix.h (NaN): Likewise.
2407         * tests/test-trunc1.c (NaN): Likewise.
2408         * tests/test-truncf1.c (NaN): Likewise.
2409         * tests/test-vasnprintf-posix.c (NaN): Likewise.
2410         * tests/test-vasprintf-posix.c (NaN): Likewise.
2411         * modules/isnand-nolibm (Depends-on): Add math.
2412         * modules/isnanf-nolibm (Depends-on): Likewise.
2413         * modules/isnanl (Depends-on): Likewise.
2414         * modules/isnanl-nolibm (Depends-on): Likewise.
2415         * modules/snprintf-posix-tests (Depends-on): Likewise.
2416         * modules/sprintf-posix-tests (Depends-on): Likewise.
2417         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
2418         * modules/vsprintf-posix-tests (Depends-on): Likewise.
2419         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
2420         * modules/vasprintf-posix-tests (Depends-on): Likewise.
2421
2422 2008-03-31  Bruno Haible  <bruno@clisp.org>
2423
2424         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
2425         * doc/posix-functions/strtod.texi: Likewise.
2426
2427 2008-03-31  Bruno Haible  <bruno@clisp.org>
2428
2429         * tests/test-strtod.c (main): Don't use C99 syntax.
2430
2431 2008-03-31  Bruno Haible  <bruno@clisp.org>
2432
2433         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
2434         Reported by Eric Blake.
2435
2436 2008-03-31  Jim Meyering  <meyering@redhat.com>
2437
2438         Don't compare actual signbit return values.
2439         * tests/test-strtod.c (main): Rather, compare only their
2440         zero/non-zero nature.
2441
2442 2008-03-31  Eric Blake  <ebb9@byu.net>
2443
2444         More strtod documentation.
2445         * doc/posix-functions/strtod.texi (strtod): Interpret more test
2446         failures as distinct bugs.
2447
2448 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2449
2450         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
2451         Problem reported by Erik Benada in
2452         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
2453
2454 2008-03-30  Bruno Haible  <bruno@clisp.org>
2455
2456         * tests/test-strtod.c: Add comments about which assertion fails on which
2457         platform.
2458         * doc/posix-functions/strtod.texi: Add info about many more platforms.
2459
2460 2008-03-30  Eric Blake  <ebb9@byu.net>
2461
2462         Test signbit behavior on zeros.
2463         * tests/test-signbit.c (test_signbitf): Add tests for zero.
2464         (test_signbitd, test_signbitl): Likewise.
2465
2466         More strtod touchups.
2467         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
2468         sign of negative underflow, for now.  Use .5, not .1.
2469         * doc/posix-functions/strtod.texi (strtod): Mention these
2470         limitations.
2471         Reported by Jim Meyering.
2472
2473 2008-03-30  Bruno Haible  <bruno@clisp.org>
2474
2475         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
2476         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
2477
2478 2008-03-30  Bruno Haible  <bruno@clisp.org>
2479
2480         Avoid failure when attempting to return empty iconv results on some
2481         platforms.
2482         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
2483         allocation, don't report ENOMEM when the resulting string is empty.
2484
2485 2008-03-30  Bruno Haible  <bruno@clisp.org>
2486
2487         Fix buffer overrun.
2488         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
2489         Don't consider the width for tmp_length. Check count against tmp_length
2490         before doing the padding. Ensure enough allocation during padding.
2491
2492 2008-03-30  Eric Blake  <ebb9@byu.net>
2493
2494         strtod touchups.
2495         * lib/strtod.c (strtod): Avoid compiler warnings.
2496         Reported by Jim Meyering.
2497
2498 2008-03-30  Bruno Haible  <bruno@clisp.org>
2499
2500         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
2501         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
2502         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
2503         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
2504         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
2505         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
2506         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
2507         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
2508
2509         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
2510         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
2511         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
2512         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
2513         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
2514         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
2515         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
2516         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
2517
2518         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
2519         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
2520         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
2521         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
2522         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
2523         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
2524         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
2525         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
2526
2527         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
2528         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
2529
2530         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
2531         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
2532
2533         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
2534         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
2535
2536         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
2537         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
2538         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
2539
2540         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
2541         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
2542         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
2543
2544         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
2545         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
2546         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
2547
2548         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
2549         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
2550         * modules/vasprintf (Depends-on): Add EOVERFLOW.
2551
2552         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
2553         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
2554         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
2555         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
2556         (Depends-on): Add EOVERFLOW.
2557         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
2558         (Depends-on): Add EOVERFLOW.
2559         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2560         (Depends-on): Add EOVERFLOW.
2561         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2562         (Depends-on): Add EOVERFLOW.
2563         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2564         (Depends-on): Add EOVERFLOW.
2565         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2566         (Depends-on): Add EOVERFLOW.
2567         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2568         (Depends-on): Add EOVERFLOW.
2569         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2570         (Depends-on): Add EOVERFLOW.
2571
2572         * lib/sprintf.c (EOVERFLOW): Remove fallback.
2573         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
2574         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
2575
2576         * lib/snprintf.c (EOVERFLOW): Remove fallback.
2577         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
2578         * modules/snprintf (Depends-on): Add EOVERFLOW.
2579
2580         * lib/poll.c (EOVERFLOW): Remove fallback.
2581         * modules/poll (Depends-on): Add EOVERFLOW.
2582
2583         * lib/getugroups.c (EOVERFLOW): Remove fallback.
2584         * modules/getugroups (Depends-on): Add EOVERFLOW.
2585
2586         * lib/getdelim.c (EOVERFLOW): Remove fallback.
2587         * modules/getdelim (Depends-on): Add EOVERFLOW.
2588
2589         * lib/ftell.c (EOVERFLOW): Remove fallback.
2590         * modules/ftell (Depends-on): Add EOVERFLOW.
2591
2592         * lib/fprintf.c (EOVERFLOW): Remove fallback.
2593         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
2594         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
2595
2596         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
2597
2598         * modules/EOVERFLOW-tests: New file.
2599         * tests/test-EOVERFLOW.c: New file.
2600
2601         * modules/EOVERFLOW: New file.
2602         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
2603
2604 2008-03-30  Bruno Haible  <bruno@clisp.org>
2605
2606         Fix bug introduced on 2007-06-10.
2607         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
2608         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
2609
2610 2008-03-30  Bruno Haible  <bruno@clisp.org>
2611
2612         Improve freadseek's efficiency after ungetc.
2613         * lib/freadseek.c: Include freadahead.h.
2614         (freadptrinc): New function, extracted from freadseek.
2615         (freadseek): Use it in a loop. Use freadahead to determine the number
2616         of loop iterations.
2617         * modules/freadseek (Depends-on): Add freadahead.
2618         (configure.ac): Require AC_C_INLINE.
2619
2620 2008-03-30  Bruno Haible  <bruno@clisp.org>
2621
2622         * lib/freadseek.c (freadseek): Don't ignore the return value of
2623         freadptr.
2624
2625 2008-03-29  Eric Blake  <ebb9@byu.net>
2626
2627         Add hex float support.
2628         * modules/strtod (Depends-on): Add c-ctype.
2629         (Link): Mention POW_LIB.
2630         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
2631         whitespace between 'e' and exponent.
2632         * tests/test-strtod.c (main): Enable hex float tests.
2633         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
2634         now provides.
2635
2636         Document various strtod bugs, with some fixes.
2637         * doc/posix-functions/strtod.texi (strtod): Document bugs with
2638         "-0x", "inf", "nan", and hex constants.
2639         * doc/posix-functions/atof.texi (atof): Likewise.
2640         * modules/stdlib (Makefile.am): Support strtod.
2641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
2642         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
2643         detect additional strtod bugs.
2644         * lib/stdlib.in.h (rpl_strtod): Add declarations.
2645         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
2646         bool where appropriate.  Parse 'inf' and 'nan'.
2647         * tests/test-strtod.c: New file.
2648         * modules/strtod (Depends-on): Add stdbool, stdlib.
2649         (configure.ac): Turn on module indicator.
2650         * modules/strtod-tests: New module.
2651
2652 2008-03-29  Eric Blake  <ebb9@byu.net>
2653
2654         Fix ftell on mingw.
2655         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
2656         * modules/ftell-tests (Depends-on): Add binary-io.
2657         * modules/ftello-tests (Depends-on): Likewise.
2658         * tests/test-ftell.c (main): Enhance test to cover behavior after
2659         ungetc.  Enforce binary mode.
2660         * tests/test-ftello.c (main): Likewise.
2661
2662         Pass test-freadseek on cygwin.
2663         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
2664         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
2665         ungetc buffer.
2666
2667         * tests/test-fflush2.c (main): Fix typo.
2668
2669 2008-03-29  Bruno Haible  <bruno@clisp.org>
2670
2671         * tests/test-fflush2.c (main): Temporarily disable the contents of
2672         this test.
2673         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
2674         Reported by Eric Blake.
2675
2676 2008-03-28  Simon Josefsson  <simon@josefsson.org>
2677
2678         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
2679         (GC_SHA224_DIGEST_SIZE): Add.
2680
2681         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
2682         (gc_hash_digest_length): Likewise.
2683         (gc_hash_buffer): Likewise.
2684
2685 2008-03-25  Bruno Haible  <bruno@clisp.org>
2686
2687         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
2688         detail which gettext release to use.
2689         Reported by Simon Josefsson.
2690
2691 2008-03-26  Jim Meyering  <meyering@redhat.com>
2692
2693         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
2694         * modules/gnumakefile (clean-GNUmakefile): Also, use
2695         test ... && ... || : syntax rather than if-then ... fi.
2696
2697         gnumakefile: Don't double-quote-expand $(VPATH) value.
2698         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
2699
2700 2008-03-24  Eric Blake  <ebb9@byu.net>
2701
2702         Alter GNUmakefile to install into top directory.
2703         * modules/maintainer-makefile: Split, and add dependency...
2704         * modules/gnumakefile: to this new module.
2705         * build-aux/GNUmakefile: Move...
2706         * top/GNUmakefile: ...here.
2707         * build-aux/maint.mk: Move...
2708         * top/maint.mk: ...here.
2709         * MODULES.html.sh (Support for maintaining...): Document new
2710         module.
2711
2712 2008-03-23  Bruno Haible  <bruno@clisp.org>
2713
2714         * gnulib-tool: New options --vc-files, --no-vc-files.
2715         (func_usage): Document them.
2716         (vc_files): New variable.
2717         (func_import): Consider vc_files.
2718         (func_create_testdir): Set vc_files to empty.
2719         Suggested by Jim Meyering and Karl Berry.
2720
2721 2008-03-23  Bruno Haible  <bruno@clisp.org>
2722
2723         Fix regex compilation error on HP-UX 11.
2724         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
2725         * modules/regex (Files): Add m4/mbstate_t.m4.
2726         Reported by Ton Voon <ton.voon@altinity.com>.
2727
2728 2008-03-23  Bruno Haible  <bruno@clisp.org>
2729
2730         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
2731
2732 2008-03-23  Eric Blake  <ebb9@byu.net>
2733             Bruno Haible  <bruno@clisp.org>
2734
2735         Install files from top/ in the destination directory.
2736         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
2737         augmentation also for the files from top/.
2738         (func_import, func_create_testdir): Rewrite file names:
2739         top/filename -> filename.
2740
2741 2008-03-23  Bruno Haible  <bruno@clisp.org>
2742
2743         Tweak "gnulib --version" output.
2744         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
2745
2746 2008-03-23  Bruno Haible  <bruno@clisp.org>
2747
2748         Tweak "gnulib --version" output.
2749         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
2750         rather than contents of ChangeLog, when possible.
2751
2752 2008-03-21  Eric Blake  <ebb9@byu.net>
2753
2754         More --version tweaks.
2755         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
2756         date of last ChangeLog entry.
2757
2758 2008-03-21  Jim Meyering  <meyering@redhat.com>
2759
2760         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
2761
2762 2008-03-20  Eric Blake  <ebb9@byu.net>
2763
2764         VPATH fix.
2765         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
2766
2767 2008-03-20  Simon Josefsson  <simon@josefsson.org>
2768
2769         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
2770         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
2771
2772 2008-03-20  Eric Blake  <ebb9@byu.net>
2773
2774         Sync GNUmakefile with coreutils.
2775         * build-aux/GNUmakefile (have-Makefile): Rename...
2776         (_have-Makefile): ...to this, for namespace consideration.
2777         (GNUmakefile.cfg): Include, if present.
2778         (_autoreconf): Define a default.
2779         (_is-dist-target): New rule for rebuilds to pick up intra-release
2780         version.
2781         (maint-cfg.mk): Rename...
2782         (cfg.mk): ...to this.
2783
2784 2008-03-18  Jim Meyering  <meyering@redhat.com>
2785
2786         New script and module: mktempd
2787         * MODULES.html.sh (maint+release support): Add mktempd.
2788         * build-aux/mktempd: New file.
2789         * modules/mktempd: New file.
2790
2791 2008-03-15  Jim Meyering  <meyering@redhat.com>
2792
2793         Undo last change.
2794         * lib/sha1.c, lib/md5.c: 63 != ~63.
2795         Reported by Andreas Schwab.
2796
2797         sha1.c, md5.c: Hoist a redundant expression.
2798         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
2799         "ctx->buflen" only once, before calling *_process_block.
2800         * lib/md5.c (md5_process_bytes): Likewise.
2801
2802 2008-03-14  Eric Blake  <ebb9@byu.net>
2803
2804         Bump copyright year in files generated by gnulib-tool.
2805         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
2806         gnulib-tool, rather than hard-coding it.
2807
2808         Fix 'gnulib-tool --version' output to work with git.
2809         * gnulib-tool (func_gnulib_dir): New function, extracted from...
2810         (startup): ...here.
2811         (func_version): Use it to invoke git-version-gen, rather than
2812         relying on CVS keyword expansion.  Modernize wording.
2813         (cvsdatestamp, last_checkin_date, version): Kill unused
2814         variables.
2815
2816 2008-03-12  Jim Meyering  <meyering@redhat.com>
2817
2818         Recognize optional cast of the argument to free.
2819         * build-aux/useless-if-before-free: Update regexps.
2820
2821         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
2822
2823 2008-03-11  Bruno Haible  <bruno@clisp.org>
2824
2825         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
2826         by a single package.
2827         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
2828         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
2829         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
2830         Reported by Sam Steingold <sds@gnu.org>.
2831
2832 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
2833
2834         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
2835         repositories.
2836
2837 2008-03-11  Bruno Haible  <bruno@clisp.org>
2838
2839         Avoid conflicts between local macro definitions.
2840         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2841         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
2842
2843 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
2844             Bruno Haible  <bruno@clisp.org>
2845
2846         Make va_copy work with some version of xlc on AIX 5.1.
2847         * lib/stdarg.in.h: New file.
2848         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
2849         On AIX, use a <stdarg.h> file substitute.
2850         * modules/stdarg (Files): Add lib/stdarg.in.h.
2851         (Depends-on): Add include_next.
2852         (Makefile.am): Build a stdarg.h substitute if requested.
2853         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
2854
2855 2008-03-10  Bruno Haible  <bruno@clisp.org>
2856
2857         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
2858         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2859         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
2860
2861 2008-03-10  Bruno Haible  <bruno@clisp.org>
2862
2863         * modules/stdlib (Depends-on): Add include_next, remove
2864         absolute-header.
2865
2866 2008-03-09  Bruno Haible  <bruno@clisp.org>
2867
2868         * lib/freadahead.h (freadahead): Document more precisely.
2869         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
2870         the sum of both buffer sizes.
2871         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
2872         * NEWS: Document the change.
2873
2874 2008-03-09  Bruno Haible  <bruno@clisp.org>
2875
2876         Extend freadptr to return also the buffer size.
2877         * lib/freadptr.h (freadptr): Add sizep argument.
2878         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
2879         (freadptr): Add sizep argument. Determine buffer size like freadahead
2880         does.
2881         * tests/test-freadptr.c: Don't include freadahead.h.
2882         (main): Adapt for new calling convention of freadptr.
2883         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
2884         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
2885         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
2886         tests/test-freadptr2.sh.
2887         (Depends): Remove freadahead.
2888         (TESTS): Add test-freadptr2.sh.
2889         (check_PROGRAMS): Add test-freadptr2.
2890
2891 2008-03-09  Bruno Haible  <bruno@clisp.org>
2892
2893         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
2894         Report and solution by Simon Josefsson.
2895
2896 2008-03-06  Bruno Haible  <bruno@clisp.org>
2897
2898         Make fflush after ungetc work on BSD platforms.
2899         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
2900         * tests/test-fflush2.c: New file.
2901         * tests/test-fflush2.sh: New file.
2902         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
2903         tests/test-fflush2.c.
2904         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
2905         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
2906
2907 2008-03-06  Eric Blake  <ebb9@byu.net>
2908
2909         Likewise for ftello.
2910         * modules/ftello (Dependencies): Add extensions.
2911         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
2912
2913 2008-03-06  Bruno Haible  <bruno@clisp.org>
2914
2915         * modules/fseeko (Dependencies): Add extensions.
2916         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
2917         Needed on glibc systems.
2918
2919 2008-03-06  Bruno Haible  <bruno@clisp.org>
2920
2921         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
2922         email address.
2923         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2924
2925 2008-03-06  Bruno Haible  <bruno@clisp.org>
2926
2927         * users.txt: Add libgnupdf.
2928
2929 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2930
2931         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
2932         (Header File Substitutes, Function Substitutes,
2933         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
2934         (Build robot for gnulib): Fix typo.
2935
2936 2008-03-06  Bruno Haible  <bruno@clisp.org>
2937
2938         * doc/gnulib-tool.texi (VCS Issues): Small updates.
2939         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2940
2941 2008-03-06  Bruno Haible  <bruno@clisp.org>
2942
2943         * doc/func.texi: New file, extracted from doc/gnulib.texi.
2944         * doc/gnulib.texi: Include it.
2945
2946 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2947
2948         * modules/func (License): Change license to unlimited; there was
2949         no LGPL parts in the module anyway.
2950
2951 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2952
2953         * modules/__func__: Renamed to modules/func.
2954         * modules/__func__-tests: Renamed to modules/func-tests.
2955         * tests/test-__func__.c: Renamed to tests/test-func.c.
2956         * m4/__func__.m4: Renamed to m4/func.m4.
2957         * doc/gnulib.texi (__func__): Section renamed to func.
2958         Suggested by Eric Blake <ebb9@byu.net>.
2959
2960 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2961
2962         * doc/gnulib.texi (__func__): Use C99 terminology when talking
2963         about __func__.  Make example self-contained.  Suggested by Eric
2964         Blake <ebb9@byu.net>.
2965
2966         * tests/test-__func__.c (main): Avoid extraneous () around __func.
2967         Suggested by Eric Blake <ebb9@byu.net>.
2968
2969 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2970
2971         * modules/__func__: New file.
2972         * modules/__func__-tests: New file.
2973         * tests/test-__func__.c: New file.
2974         * m4/__func__.m4: New file.
2975         * doc/gnulib.texi (__func__): Document __func__ module.
2976
2977 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2978
2979         * modules/byteswap (License): Re-license as LGPLv2+.
2980
2981 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2982
2983         * doc/Makefile: Add pdf target.
2984
2985 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2986
2987         * modules/inline (License): Use 'unlimited', since there are only
2988         *.m4 files in this module.
2989
2990 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
2991             Bruno Haible  <bruno@clisp.org>
2992
2993         Add support for HP C 7.1 on OpenVMS 8.3.
2994         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
2995
2996 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
2997
2998         Update VMS specifics.
2999         * lib/getopt.c [VMS]: Remove include of unixlib.h.
3000
3001 2008-03-02  Jim Meyering  <meyering@redhat.com>
3002
3003         Remove the last dependency on the "free" module.
3004         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
3005         Reported by Bob Proulx.
3006
3007         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
3008
3009         Remove useless "if" tests before free.  Deprecate "free" module.
3010         * doc/posix-functions/free.texi: Mention that this
3011         module is no longer useful.
3012         * modules/free (Notice): Say this module is obsolete.
3013         * modules/readutmp (Depends-on): Remove free.
3014         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
3015         * lib/putenv.c (putenv): Likewise.
3016         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
3017         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
3018         * tests/test-c-strcasestr.c (main): Likewise.
3019         * tests/test-c-strstr.c (main): Likewise.
3020         * tests/test-mbscasestr1.c (main): Likewise.
3021         * tests/test-mbscasestr2.c (main): Likewise.
3022         * tests/test-mbsstr1.c (main): Likewise.
3023         * tests/test-mbsstr2.c (main): Likewise.
3024         * tests/test-memmem.c (main): Likewise.
3025         * tests/test-strcasestr.c (main): Likewise.
3026         * tests/test-striconv.c (main): Likewise.
3027         * tests/test-striconveh.c (main): Likewise.
3028         * tests/test-striconveha.c (main): Likewise.
3029         * tests/test-strstr.c (main): Likewise.
3030
3031         * build-aux/git-version-gen: Adjust a comment and the Usage string.
3032
3033         bootstrap: sync from coreutils again
3034         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
3035
3036 2008-03-01  Jim Meyering  <meyering@redhat.com>
3037
3038         bootstrap: sync from coreutils
3039         * build-aux/bootstrap (update_po_files): Copy a .po file into place
3040         also when the target doesn't exist.
3041
3042 2008-03-01  Eric Blake  <ebb9@byu.net>
3043
3044         Fix bugs in last patch.
3045         * lib/memchr2.c (memchr2): Fix typo.
3046         * tests/test-memchr2.c: Test previous bug, and don't use GNU
3047         extension.
3048         Reported by Bruce Korb.
3049
3050         New module 'memchr2'.
3051         * modules/memchr2: New file.
3052         * modules/memchr2-tests: Likewise.
3053         * lib/memchr2.h: Likewise.
3054         * lib/memchr2.c: Likewise, based on memchr.c.
3055         * tests/test-memchr2.c: New test.
3056         * MODULES.html.sh (String handling): Add memchr2.
3057
3058 2008-02-29  Bruno Haible  <bruno@clisp.org>
3059
3060         * modules/freadseek-tests: New file.
3061         * tests/test-freadseek.sh: New file.
3062         * tests/test-freadseek.c: New file.
3063
3064         New module 'freadseek'.
3065         * modules/freadseek: New file.
3066         * lib/freadseek.h: New file.
3067         * lib/freadseek.c: New file.
3068         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
3069
3070 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
3071
3072         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
3073         wydawca.
3074
3075         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
3076         program_invocation_name and program_invocation_short_name are
3077         present.
3078
3079 2008-02-28  Bruno Haible  <bruno@clisp.org>
3080
3081         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
3082         * tests/test-freadptr.sh: Also test non-seekable stdin.
3083
3084 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
3085
3086         * build-aux/bootstrap (source_base, m4_base)
3087         (doc_base, tests_base): New variables.
3088         (gnulib_tool_options): Do not hardcode base directories, use
3089         the above variables instead.
3090
3091 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
3092
3093         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
3094
3095 2008-02-28  Bruno Haible  <bruno@clisp.org>
3096
3097         * modules/freadptr-tests: New file.
3098         * tests/test-freadptr.sh: New file.
3099         * tests/test-freadptr.c: New file.
3100
3101         New module 'freadptr'.
3102         * modules/freadptr: New file.
3103         * lib/freadptr.h: New file.
3104         * lib/freadptr.c: New file.
3105         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
3106
3107 2008-02-26  Karl Berry  <karl@freefriends.org>
3108
3109         Sync from Libtool:
3110         * libltdl/argz.c (argz_add, argz_count): New functions.
3111         * libltdl/argz.in.h: Declare them.
3112         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
3113
3114 2008-02-22  Bruno Haible  <bruno@clisp.org>
3115
3116         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
3117         is a pointer type.  Needed for HP-UX 10.
3118         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
3119         * doc/posix-functions/gmtime_r.texi: Likewise.
3120         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
3121
3122 2008-02-24  Bruno Haible  <bruno@clisp.org>
3123
3124         * modules/environ-tests: New file.
3125         * tests/test-environ.c: New file.
3126
3127         New module 'environ'.
3128         * modules/environ: New file.
3129         * lib/unistd.in.h (environ): New declaration.
3130         * m4/environ.m4: New file.
3131         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
3132         after use.
3133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
3134         HAVE_DECL_ENVIRON.
3135         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
3136         HAVE_DECL_ENVIRON.
3137         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
3138         wrong claim that 'environ' is missing on some systems.
3139         * modules/execute (Depends-on): Add environ.
3140         * lib/execute.c (environ): Remove fallback declaration.
3141         * modules/pipe (Depends-on): Add environ.
3142         * lib/pipe.c (environ): Remove fallback declaration.
3143         * modules/setenv (Depends-on): Add environ.
3144         * lib/setenv.c (environ): Remove fallback declaration.
3145         * modules/unsetenv (Depends-on): Add environ.
3146         * lib/unsetenv.c (environ): Remove fallback declaration.
3147         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
3148         m4/environ.m4.
3149         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
3150         (gl_PREREQ_UNSETENV): Likewise.
3151
3152 2008-02-24  Bruno Haible  <bruno@clisp.org>
3153
3154         * doc/posix-functions/environ.texi: Document the MacOS X problem.
3155
3156 2008-02-20  Bob Proulx  <bob@proulx.com>
3157
3158         Enable use of older two part flavor 'git describe'.
3159         * build-aux/git-version-gen: If using the older two part flavor of
3160         git version then recreate the third part now present in the
3161         newer three part flavor of git describe.
3162
3163 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
3164
3165         * lib/fts.c (fts_build): Typo correction to comment.
3166
3167 2008-02-17  Bruno Haible  <bruno@clisp.org>
3168
3169         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
3170         generating no-op conflicts.
3171
3172 2008-02-17  Bruno Haible  <bruno@clisp.org>
3173
3174         Speed up by 10%.
3175         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
3176         result_entries, rather than an index-based loop.
3177
3178 2008-02-17  Bruno Haible  <bruno@clisp.org>
3179
3180         Speed up by 25%.
3181         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
3182         'hashcode_cached'.
3183         (entry_create): New function.
3184         (entry_hashcode): Use the cached hashcode if possible.
3185         (read_changelog_file, try_split_merged_entry): Use entry_create.
3186
3187 2008-02-17  Bruno Haible  <bruno@clisp.org>
3188
3189         Speed up from O(n^2) to O(n) for long ChangeLog files.
3190         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
3191         (read_changelog_file): Change implementation of entries_reversed list
3192         to rbtreehash.
3193         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
3194
3195 2008-02-17  Bruno Haible  <bruno@clisp.org>
3196
3197         New option --split-merged-entry.
3198         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
3199         (find_paragraph_end, try_split_merged_entry): New functions.
3200         (long_options): Add option --split-merged-entry.
3201         (usage): Document option --split-merged-entry.
3202         (main): Implement option --split-merged-entry.
3203         Reported by Eric Blake.
3204
3205 2008-02-17  Bruno Haible  <bruno@clisp.org>
3206
3207         * lib/git-merge-changelog.c: Include c-strstr.h.
3208         (main): Support the "git pull --rebase" situation.
3209         * modules/git-merge-changelog (Depends-on): Add c-strstr.
3210         Reported by Eric Blake.
3211
3212 2008-02-16  Eric Blake  <ebb9@byu.net>
3213
3214         Avoid doubling \ in common case of "c-maybe" quoting style.
3215         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
3216         eliding outer quotes.
3217         * lib/quotearg.h: Document this.
3218         * tests/test-quotearg.c (result_strings, inputs, results_g)
3219         (flag_results, locale_results): Test it by adding a new string to
3220         each test group.
3221         (compare_strings): Test new string.
3222
3223 2008-02-13  Eric Blake  <ebb9@byu.net>
3224
3225         Avoid trigraph quoting in default output.
3226         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
3227         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
3228         unless explicitly requested.
3229         * tests/test-quotearg.c (flag_results, main): Add additional tests.
3230
3231 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
3232
3233         Don't rely on signed integer overflowing to negative value.
3234         * lib/getugroups.c (getugroups): Include <limits.h>.
3235         Instead, compare against INT_MAX, and increment only if the test passes.
3236
3237 2008-02-13  Jim Meyering  <meyering@redhat.com>
3238         and Eric Blake  <ebb9@byu.net>
3239
3240         Avoid shadowing warning and compile errors on Linux.
3241         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
3242         forwarding macros on Linux.
3243         (dcgettext): Define a stub, for Linux.
3244         (results_g, main): Avoid warnings.
3245
3246 2008-02-12  Eric Blake  <ebb9@byu.net>
3247
3248         Silence warning in last patch.
3249         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
3250
3251         Quotearg part 4: add tests, fix c-maybe colon quoting.
3252         * lib/quotearg.h: Improve documentation.
3253         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
3254         escapes when adding outer quotes.  When quoting trigraphs, use
3255         valid C notation.  When quoting NUL, omit extra characters if next
3256         character is not digit.  Alter prototype.
3257         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
3258         callers.
3259         * modules/quotearg-tests: New module.
3260         * tests/test-quotearg.c: New test.
3261
3262 2008-02-07  Eric Blake  <ebb9@byu.net>
3263
3264         Quotearg part 3: add flag to control outer quote elision.
3265         * lib/quotearg.h (c_maybe_quoting_style): New style.
3266         (enum quoting_flags): Better documentation of flags.
3267         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
3268         c-maybe style.
3269         (quotearg_buffer_restyled): Handle new flag to elide outer
3270         quotes.
3271
3272         Quotearg part 2: add flag that can control NUL elision.
3273         * lib/quotearg.h (set_quoting_flags): New prototype.
3274         * lib/quotearg.c (struct quoting_options): Add flag field.
3275         (set_quoting_flags): New function.
3276         (quotearg_buffer_restyled): Add flags parameter.
3277         (quotearg_alloc_mem): Set the flag if length cannot be returned.
3278         (quotearg_n_options): Set the flag, since length cannot be
3279         returned.
3280         (quoting_options_from_style): Default flags correctly.
3281
3282         Quotearg part 1: more wrappers, restore quotearg_char state.
3283         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
3284         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
3285         (quotearg_colon_mem): New wrappers.
3286         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
3287         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
3288         functions.
3289         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
3290         (quotearg_colon_mem): New functions.
3291
3292 2008-02-11  Bruno Haible  <bruno@clisp.org>
3293
3294         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
3295         library in the current directory: it does not work with parallel make.
3296         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3297
3298 2008-02-11  Bruno Haible  <bruno@clisp.org>
3299
3300         * .gitattributes: New file.
3301
3302 2008-02-11  Jim Meyering  <meyering@redhat.com>
3303
3304         useless-if-before-free: Fix reversed exit values.
3305         * build-aux/useless-if-before-free: Use correct values
3306         for EXIT_MATCH and EXIT_NO_MATCH.
3307
3308         * build-aux/useless-if-before-free: Close stdout carefully.
3309
3310 2008-02-10  Bruno Haible  <bruno@clisp.org>
3311
3312         New module 'git-merge-changelog'.
3313         * modules/git-merge-changelog: New file.
3314         * lib/git-merge-changelog.c: New file.
3315
3316 2008-02-10  Jim Meyering  <meyering@redhat.com>
3317
3318         useless-if-before-free: New option: --list (-l).
3319
3320         useless-if-before-free: Don't exit immediately upon open failure.
3321         * build-aux/useless-if-before-free: Exit 2 for errors.
3322         Upon failure to open a file, don't exit immediately.
3323         Rather, just warn and continue with any remaining files.
3324
3325 2008-02-10  Bruno Haible  <bruno@clisp.org>
3326
3327         New abstract list operation 'node_set_value'.
3328         * lib/gl_list.h (gl_list_node_set_value): New function.
3329         (struct gl_list_implementation): New field node_set_value.
3330         * lib/gl_list.c (gl_list_node_set_value): New function.
3331         * lib/gl_array_list.c (gl_array_node_set_value): New function.
3332         (gl_array_list_implementation): Update.
3333         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
3334         (gl_carray_list_implementation): Update.
3335         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
3336         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3337         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3338         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
3339         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3340         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3341         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3342         Update.
3343         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
3344         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
3345         (gl_sublist_list_implementation): Update.
3346
3347 2008-02-10  Bruno Haible  <bruno@clisp.org>
3348
3349         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
3350         Needed when ELEMENT is #defined to 'some_type *'.
3351
3352 2008-02-10  Jim Meyering  <meyering@redhat.com>
3353
3354         New script and module: useless-if-before-free
3355         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
3356         * build-aux/useless-if-before-free: New file.
3357         * modules/useless-if-before-free: New file.
3358
3359         * build-aux/gitlog-to-changelog: Use committer date, not author date.
3360
3361         xstrtol_error: Fix typo.
3362         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
3363         s/exit_failure/exit_status/.
3364
3365 2008-02-09  Jim Meyering  <meyering@redhat.com>
3366
3367         New script and module: gitlog-to-changelog
3368         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
3369         * modules/gitlog-to-changelog: New file.
3370         * build-aux/gitlog-to-changelog: New file.
3371
3372 2008-02-08  Jim Meyering  <meyering@redhat.com>
3373
3374         Avoid two "parameter unused" warnings.
3375         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
3376         Mark "st" as used.
3377
3378         Use "git COMMAND", not "git-COMMAND".
3379         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
3380         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
3381         * build-aux/git-version-gen: Use "git status", not "git-status".
3382
3383 2008-02-07  Bruno Haible  <bruno@clisp.org>
3384
3385         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
3386         Avoids a crash on Windows Vista.
3387         Reported by Adam Strzelecki <ono@java.pl> via
3388         Simon Josefsson <simon@josefsson.org>.
3389
3390 2008-02-06  Bruno Haible  <bruno@clisp.org>
3391
3392         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
3393         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
3394         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
3395         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
3396         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3397         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3398         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
3399         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
3400         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3401         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3402         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3403         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3404         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3405         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3406         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3407         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
3408         left-adjust flag.
3409         * tests/test-snprintf-posix.h (test_function): Likewise.
3410         * tests/test-sprintf-posix.h (test_function): Likewise.
3411         * tests/test-vasprintf-posix.c (test_function): Likewise.
3412         * doc/posix-functions/fprintf.texi: Update.
3413         * doc/posix-functions/printf.texi: Update.
3414         * doc/posix-functions/snprintf.texi: Update.
3415         * doc/posix-functions/sprintf.texi: Update.
3416         * doc/posix-functions/vfprintf.texi: Update.
3417         * doc/posix-functions/vprintf.texi: Update.
3418         * doc/posix-functions/vsnprintf.texi: Update.
3419         * doc/posix-functions/vsprintf.texi: Update.
3420         Reported by Peter Fales <psfales@alcatel-lucent.com>.
3421
3422 2008-02-06  Bruno Haible  <bruno@clisp.org>
3423
3424         Fix bug introduced on 2008-01-26.
3425         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
3426
3427 2008-02-06  Bruno Haible  <bruno@clisp.org>
3428
3429         Fix bug introduced on 2007-06-10.
3430         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
3431         !NEED_PRINTF_FLAG_ZERO.
3432
3433 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
3434
3435         getloadavg: use libperfstat on AIX5
3436         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
3437
3438 2008-02-03  Bruno Haible  <bruno@clisp.org>
3439
3440         * lib/diffseq.h: Add comments about required #includes.
3441         Reported by Michael Biggs <gnulib@doubleplum.net>.
3442
3443 2008-02-01  Bruno Haible  <bruno@clisp.org>
3444
3445         * users.txt: Add gnuit.
3446
3447 2008-01-31  Bruno Haible  <bruno@clisp.org>
3448
3449         * lib/md4.c (set_uint32): Mark as inline.
3450         * lib/md5.c (set_uint32): Likewise.
3451         * lib/sha1.c (set_uint32): Likewise.
3452         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
3453         * m4/md5.m4 (gl_MD5): Likewise.
3454         * m4/sha1.m4 (gl_SHA1): Likewise.
3455
3456 2008-01-31  Jim Meyering  <meyering@redhat.com>
3457
3458         Use "sizeof VAR", rather than a literal "4".
3459         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
3460         * lib/md4.c (md4_read_ctx): Likewise.
3461         * lib/sha1.c (sha1_read_ctx): Likewise.
3462
3463 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3464
3465         * tests/test-sha1.c: New file, based on test-md5.c.
3466
3467         * modules/crypto/sha1-tests: New file.
3468
3469 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3470
3471         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
3472
3473 2008-01-31  Jim Meyering  <meyering@redhat.com>
3474
3475         Prefer "sizeof v" over the equivalent "4".
3476         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
3477         * lib/md5.c (set_uint32): Likewise.
3478         * lib/sha1.c (set_uint32): Likewise.
3479
3480 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3481
3482         * lib/sha1.c (set_uint32): Mark function as static.
3483
3484 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3485
3486         md2: clarify comments to say that alignment is not required.
3487         * lib/md2.h: Remove warning about alignment in comment.
3488         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
3489         never been required.
3490
3491 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3492
3493         md4: adapt alignment constraint fix from sha1.
3494         * lib/md4.c (set_uint32): New function, from sha1.c
3495         (md4_read_ctx): Use it.
3496         (md4_finish_ctx): Doc fix.
3497         * lib/md4.h: Doc fix.
3498
3499 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3500
3501         md5: adapt alignment constraint fix from sha1.
3502         * lib/md5.c (set_uint32): New function, from sha1.c
3503         (md5_read_ctx): Use it.
3504         (md5_finish_ctx): Doc fix.
3505         * lib/md5.h: Doc fix.
3506
3507 2008-01-30  Peter Palfrader  <weasel@debian.org>
3508
3509         sha1: remove the result buffer alignment constraint
3510         * lib/sha1.c (set_uint32): New function.
3511         (sha1_read_ctx): Rewrite to remove the result buffer alignment
3512         constraint.
3513         (sha1_finish_ctx): Remove comment warning about alignment constraint.
3514         * lib/sha1.h: Likewise.
3515
3516 2008-01-30  Andreas Schwab  <schwab@suse.de>
3517             Bruno Haible  <bruno@clisp.org>
3518
3519         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
3520         correct definition of LDBL_MIN_EXP.
3521
3522 2008-01-30  Karl Berry  <karl@gnu.org>
3523
3524         * config/srclist-update: try to preserve x bit on updates.
3525         * config/srclistvars.sh: update for karl.
3526
3527 2008-01-29  Jim Meyering  <meyering@redhat.com>
3528
3529         vasnprintf.c: Avoid warning about unused label
3530         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
3531         "overflow" label definition and associated code with the
3532         same cpp condition that guards the sole use of that label.
3533
3534 2008-01-26  Bruno Haible  <bruno@clisp.org>
3535
3536         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3537         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
3538         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
3539         * lib/isnanl-nolibm.h (isnanl): Likewise.
3540         Reported by Paul Eggert <eggert@cs.ucla.edu>.
3541
3542 2008-01-26  Bruno Haible  <bruno@clisp.org>
3543
3544         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
3545         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
3546
3547 2008-01-26  Bruno Haible  <bruno@clisp.org>
3548
3549         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
3550         GCC >= 4.0 built-in.
3551         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
3552
3553 2008-01-26  Bruno Haible  <bruno@clisp.org>
3554
3555         Rename isnan, applicable to 'double' only, to isnand.
3556         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
3557         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
3558         (configure.ac): Update.
3559         (Include): Replace "isnan.h" with "isnand.h".
3560         * m4/isnand.m4: Renamed from m4/isnan.m4.
3561         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
3562         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
3563         instead of isnan.c.
3564         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
3565         instead of HAVE_ISNAN_IN_LIBC.
3566         (isnand): Renamed from isnan.
3567         * lib/isnand.c: New file.
3568         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
3569         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
3570         (Makefile.am): Update.
3571         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
3572         Include isnand.h instead of isnan.h.
3573         (main): Test isnand instead of isnan.
3574         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
3575         isnan-nolibm.
3576         * modules/frexp (Depends-on): Likewise.
3577         * modules/frexp-tests (Depends-on): Likewise.
3578         * modules/frexp-nolibm (Depends-on): Likewise.
3579         * modules/frexp-nolibm-tests (Depends-on): Likewise.
3580         * modules/isfinite (Depends-on): Likewise.
3581         * modules/round-tests (Depends-on): Likewise.
3582         * modules/signbit (Depends-on): Likewise.
3583         * modules/signbit-tests (Depends-on): Likewise.
3584         * modules/snprintf-posix (Depends-on): Likewise.
3585         * modules/sprintf-posix (Depends-on): Likewise.
3586         * modules/trunc-tests (Depends-on): Likewise.
3587         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3588         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3589         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3590         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3591         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3592         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3593         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3594         * modules/vasnprintf-posix (Depends-on): Likewise.
3595         * modules/vasprintf-posix (Depends-on): Likewise.
3596         * modules/vfprintf-posix (Depends-on): Likewise.
3597         * modules/vsnprintf-posix (Depends-on): Likewise.
3598         * modules/vsprintf-posix (Depends-on): Likewise.
3599         * lib/frexp.c: Include isnand.h instead of isnan.h.
3600         (ISNAN): Set to isnand instead of isnan.
3601         * lib/isfinite.c: Include isnand.h instead of isnan.h.
3602         (gl_isfinited): Use isnand instead of isnan.
3603         * lib/signbitd.c: Include isnand.h instead of isnan.h.
3604         (gl_signbitd): Use isnand instead of isnan.
3605         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
3606         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
3607         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
3608         (main): Use isnand instead of isnan.
3609         * tests/test-round1.c: Include isnand.h.
3610         (main): Use isnand instead of isnan.
3611         * tests/test-round2.c: Include isnand.h instead of isnan.h.
3612         (ISNAN): Set to isnand instead of isnan.
3613         * tests/test-trunc1.c: Include isnand.h.
3614         (main): Use isnand instead of isnan.
3615         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
3616         (equal): Use isnand instead of isnan.
3617         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
3618         isnand-nolibm.
3619         * NEWS: Mention the change.
3620
3621 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3622             Bruno Haible  <bruno@clisp.org>
3623
3624         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
3625         the GCC builtins for signbits are present and set
3626         REPLACE_SIGNBIT_USING_GCC if so.
3627         * lib/math.in.h (signbit): Define using GCC builtins if
3628         REPLACE_SIGNBIT_USING_GCC is set.
3629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3630         REPLACE_SIGNBIT_USING_GCC.
3631         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
3632
3633 2008-01-25  Jim Meyering  <meyering@redhat.com>
3634
3635         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
3636         * lib/poll.c: Include <config.h>, not "config.h".
3637         * tests/test-getaddrinfo.c: Likewise.
3638
3639 2008-01-25  Simon Josefsson  <simon@josefsson.org>
3640
3641         * modules/sockets-tests: New file.
3642
3643 2008-01-24  Simon Josefsson  <simon@josefsson.org>
3644
3645         * modules/sockets: New module, can be used to call WSA_Startup and
3646         WSA_Cleanup when needed.
3647
3648         * lib/sockets.h, lib/sockets.c: New files.
3649
3650         * m4/sockets.m4: New file.
3651
3652         * tests/test-sockets.c: New file.
3653
3654 2008-01-19  Bruno Haible  <bruno@clisp.org>
3655
3656         * doc/posix-headers: Renamed from doc/headers.
3657         * doc/posix-functions: Renamed from doc/functions.
3658         * doc/gnulib.texi: Update.
3659
3660 2008-01-19  Bruno Haible  <bruno@clisp.org>
3661
3662         * doc/glibc-functions/strcasestr.texi: Include contents of
3663         doc/functions/strcasestr.texi, fixing the list of platforms.
3664         * doc/functions/strcasestr.texi: Remove file.
3665
3666 2008-01-19  Bruno Haible  <bruno@clisp.org>
3667
3668         * doc/glibc-functions/memmem.texi: Include contents of
3669         doc/functions/memmem.texi.
3670         * doc/functions/memmem.texi: Remove file.
3671
3672 2008-01-18  Bruno Haible  <bruno@clisp.org>
3673
3674         * doc/glibc-functions/*.texi: New files.
3675         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
3676         to use the new files.
3677
3678 2008-01-17  Bruno Haible  <bruno@clisp.org>
3679
3680         * tests/test-gethostname.c (main): Fix printf statement.
3681
3682 2008-01-17  Simon Josefsson  <simon@josefsson.org>
3683
3684         * modules/gethostname-tests: New file.
3685
3686         * tests/test-gethostname.c: New file.
3687
3688 2008-01-17  Simon Josefsson  <simon@josefsson.org>
3689
3690         * lib/gethostname.c: Include string.h unconditionally, strncpy is
3691         used by the UNAME case.  Reported by Bruno Haible
3692         <bruno@clisp.org>.
3693
3694 2008-01-17  Eric Blake  <ebb9@byu.net>
3695
3696         Convert c-strcasestr to be more efficient.
3697         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
3698         (Depends-on): Add c-strcase, remove malloca, strnlen.
3699         * tests/test-c-strcasestr.c (main): Enhance test.
3700         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
3701
3702 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
3703
3704         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
3705         Use it in creating po/Makevars.
3706
3707 2008-01-15  Simon Josefsson  <simon@josefsson.org>
3708
3709         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
3710         Applications that requires it should initialize libgcrypt
3711         manually.
3712
3713 2008-01-16  Simon Josefsson  <simon@josefsson.org>
3714
3715         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
3716
3717 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
3718
3719         Fix problem with getdate on mingw32 reported by Simon Josefsson
3720         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
3721         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
3722         tzname", when deciding whether to declare tzname.
3723         * lib/strftime.c (tzname): Likewise.
3724
3725 2008-01-15  Bruno Haible  <bruno@clisp.org>
3726
3727         Work around a MacOS X 10.5 bug in frexpl().
3728         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
3729         * doc/functions/frexpl.texi: Document the bug.
3730         Reported by Elias Pipping <pipping@gentoo.org>.
3731
3732 2008-01-14  Eric Blake  <ebb9@byu.net>
3733
3734         Touch up previous patch.
3735         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
3736         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
3737
3738         Convert strcasestr module to use Two-Way algorithm.
3739         * modules/strcasestr-simple: New module, based on the old
3740         strcasestr, but with Two-Way rather than KMP.
3741         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
3742         * lib/string.in.h (rpl_strcasestr): Declare.
3743         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
3744         performance.
3745         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
3746         * modules/string (Makefile.am): Support strcasestr.
3747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
3748         * modules/strcasestr-tests (Depends-on): Check for alarm.
3749         * tests/test-strcasestr.c: Augment test.
3750         * lib/str-two-way.h: Clean up stray macro.
3751         * NEWS: Document new module.
3752         * MODULES.html.sh (string handling): Likewise.
3753         * doc/functions/strcasestr.texi: New file.
3754         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
3755         here, since it is not a POSIX function.
3756
3757 2008-01-14  Colin Watson  <cjwatson@debian.org>
3758             Bruno Haible  <bruno@clisp.org>
3759
3760         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
3761         works fine; if not, set REPLACE_STRSIGNAL.
3762         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
3763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3764         REPLACE_STRSIGNAL.
3765         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
3766         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
3767         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
3768
3769 2008-01-14  Bruno Haible  <bruno@clisp.org>
3770
3771         * modules/strsignal (Include): Change to <string.h>.
3772
3773 2008-01-14  Colin Watson  <cjwatson@debian.org>
3774
3775         * modules/argp (Notice): Add a notice recommending to change
3776         XGETTEXT_OPTIONS.
3777         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
3778
3779 2008-01-13  Colin Watson  <cjwatson@debian.org>
3780
3781         * modules/strsignal-tests: New file.
3782         * tests/test-strsignal.c: New file.
3783
3784         * lib/strsignal.c: New file, from glibc with modifications.
3785         * lib/siglist.h: New file, from glibc with modifications.
3786         * lib/string.in.h (strsignal): New declaration.
3787         * m4/strsignal.m4: New file.
3788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3789         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
3790         * modules/strsignal: New file.
3791         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
3792         HAVE_DECL_STRSIGNAL.
3793
3794 2008-01-13  Bruno Haible  <bruno@clisp.org>
3795
3796         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
3797         locale encoding is not ASCII. Needed for OpenBSD 4.0.
3798         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3799         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3800
3801 2008-01-13  Bruno Haible  <bruno@clisp.org>
3802
3803         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
3804         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
3805         * lib/argp.h (__attribute__): Likewise.
3806         * lib/c-stack.c (__attribute__): Likewise.
3807         * lib/error.h (__attribute__): Likewise.
3808         * lib/fts.c (__attribute__): Likewise.
3809         * lib/openat.h (__attribute__): Likewise.
3810         * lib/stdio.in.h (__attribute__): Likewise.
3811         * lib/string.in.h (__attribute__): Likewise.
3812         * lib/utimens.c (__attribute__): Likewise.
3813         * lib/vasnprintf.h (__attribute__): Likewise.
3814         * lib/xalloc.h (__attribute__): Likewise.
3815         * lib/xprintf.h (__attribute__): Likewise.
3816         * lib/xstrtol.h (__attribute__): Likewise.
3817         * lib/xvasprintf.h (__attribute__): Likewise.
3818
3819 2008-01-12  Bruno Haible  <bruno@clisp.org>
3820
3821         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
3822         * doc/glibc-headers/a.out.texi: New file.
3823         * doc/glibc-headers/aliases.texi: New file.
3824         * doc/glibc-headers/alloca.texi: New file.
3825         * doc/glibc-headers/ar.texi: New file.
3826         * doc/glibc-headers/argp.texi: New file.
3827         * doc/glibc-headers/argz.texi: New file.
3828         * doc/glibc-headers/byteswap.texi: New file.
3829         * doc/glibc-headers/crypt.texi: New file.
3830         * doc/glibc-headers/endian.texi: New file.
3831         * doc/glibc-headers/envz.texi: New file.
3832         * doc/glibc-headers/err.texi: New file.
3833         * doc/glibc-headers/error.texi: New file.
3834         * doc/glibc-headers/execinfo.texi: New file.
3835         * doc/glibc-headers/fpu_control.texi: New file.
3836         * doc/glibc-headers/fstab.texi: New file.
3837         * doc/glibc-headers/fts.texi: New file.
3838         * doc/glibc-headers/getopt.texi: New file.
3839         * doc/glibc-headers/ieee754.texi: New file.
3840         * doc/glibc-headers/ifaddrs.texi: New file.
3841         * doc/glibc-headers/libintl.texi: New file.
3842         * doc/glibc-headers/mcheck.texi: New file.
3843         * doc/glibc-headers/mntent.texi: New file.
3844         * doc/glibc-headers/obstack.texi: New file.
3845         * doc/glibc-headers/paths.texi: New file.
3846         * doc/glibc-headers/printf.texi: New file.
3847         * doc/glibc-headers/pty.texi: New file.
3848         * doc/glibc-headers/resolv.texi: New file.
3849         * doc/glibc-headers/shadow.texi: New file.
3850         * doc/glibc-headers/sysexits.texi: New file.
3851         * doc/glibc-headers/ttyent.texi: New file.
3852
3853 2008-01-12  Jim Meyering  <meyering@redhat.com>
3854
3855         announce-gen: emit Gnulib's git-based version string.
3856         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
3857         New option --gnulib-version=V, where V is expected to be
3858         the output of running git describe in the gnulib directory.
3859         (get_tool_versions): Request feedback on xdelta.  I suspect it's
3860         not useful, and plan to stop publishing an xdelta file with each
3861         coreutils release.
3862
3863         * build-aux/announce-gen: Also check for lzma-compressed files.
3864
3865 2008-01-11  Bruno Haible  <bruno@clisp.org>
3866
3867         * tests/test-memmem.c (main): Increase maximum allowed time.
3868         * tests/test-strstr.c (main): Likewise.
3869
3870 2008-01-11  Bruno Haible  <bruno@clisp.org>
3871
3872         * doc/functions/memmem.texi: Add more precisions about platforms.
3873         * doc/functions/strstr.texi: Likewise.
3874
3875 2008-01-10  Eric Blake  <ebb9@byu.net>
3876
3877         * m4/strstr.m4: Delete cruft from copy-n-paste.
3878         Reported by Bruno Haible.
3879
3880 2008-01-10  Bruno Haible  <bruno@clisp.org>
3881
3882         Make c-strstr rely on strstr.
3883         * lib/c-strstr.c: Don't include str-kmp.h.
3884         (c_strstr): Define in terms of strstr.
3885         * modules/c-strstr (Files): Remove lib/str-kmp.h.
3886         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
3887
3888 2008-01-10  Bruno Haible  <bruno@clisp.org>
3889
3890         * doc/gnulib.texi (String Functions in C Locale): New section.
3891         * doc/c-ctype.texi: New file.
3892         * doc/c-strcase.texi: New file.
3893         * doc/c-strcaseeq.texi: New file.
3894         * doc/c-strcasestr.texi: New file.
3895         * doc/c-strstr.texi: New file.
3896         * doc/c-strtod.texi: New file.
3897         * doc/c-strtold.texi: New file.
3898
3899 2008-01-10  Eric Blake  <ebb9@byu.net>
3900
3901         * lib/relocatable.h: Fix a comment.
3902
3903 2008-01-10  Eric Blake  <ebb9@byu.net>
3904
3905         Share two-way algorithm.
3906         * lib/str-two-way.h: New file, merged from...
3907         * lib/memmem.c: ...here...
3908         * lib/strstr.c: ...and here.
3909         * modules/memmem (Files): Use it.
3910         * modules/strstr (Files): Likewise.
3911
3912         Avoid quadratic strstr implementations.
3913         * lib/strstr.c: New file.
3914         * m4/strstr.m4: Likewise.
3915         * modules/strstr: Likewise.
3916         * modules/strstr-tests: Likewise.
3917         * tests/test-strstr.c: Likewise.
3918         * lib/string.in.h (rpl_strstr): Declare.
3919         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
3920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
3921         * modules/string (Makefile.am): Likewise.
3922         * MODULES.html.sh (string handling): Mention new module.
3923         * doc/functions/strstr.texi (strstr): Document the bug.
3924
3925 2008-01-10  Bruno Haible  <bruno@clisp.org>
3926
3927         * lib/relocatable.h (relocate): State whether result is freshly
3928         allocated or not.
3929         * lib/relocatable.c (relocate): Return a freshly allocated string
3930         instead of a pointer to a privately held string.
3931         Reported by Sylvain Beucler <beuc@gnu.org>.
3932
3933 2008-01-10  Colin Watson  <cjwatson@debian.org>
3934
3935         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
3936         s/S_ISNLK/S_ISLNK/.
3937
3938 2008-01-09  Bruno Haible  <bruno@clisp.org>
3939
3940         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
3941         and other files.
3942         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
3943         if it's only a guess.
3944         * modules/memmem: Simplify by depending on memmem-simple.
3945
3946 2008-01-09  Bruno Haible  <bruno@clisp.org>
3947
3948         Work around OpenBSD 4.0 tdelete() bug.
3949         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
3950         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
3951         macros and don't redefine the enum values.
3952         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
3953         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
3954         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
3955
3956 2008-01-09  Bruno Haible  <bruno@clisp.org>
3957
3958         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
3959         (main): Don't perform the tests if setlocale did not install a UTF-8
3960         locale. Needed on OpenBSD 4.0.
3961         * modules/wcwidth-tests (Depends-on): Add localcharset.
3962
3963 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
3964
3965         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
3966         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
3967         * NEWS: announce this.
3968         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
3969
3970 2008-01-09  Simon Josefsson  <simon@josefsson.org>
3971         and Eric Blake  <ebb9@byu.net>
3972
3973         Add memmem-simple module.
3974         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
3975         (gl_FUNC_MEMMEM): Separate performance from presence checks.
3976         * modules/memmem-simple: New file.
3977         * modules/memmem (Description): Tweak.
3978         * MODULES.html.sh (string handling): Mention new module.
3979         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
3980         addressed by memmem-simple.
3981         * NEWS: Document the difference.
3982
3983 2008-01-09  Eric Blake  <ebb9@byu.net>
3984
3985         Give gcc some memmem optimization hints.
3986         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
3987         (strcasestr): Declare as pure.
3988         * modules/memmem (Maintainer): Claim my implementation.
3989
3990 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3991
3992         Support AIX 6.1 and higher.
3993         * build-aux/config.libpath: Likewise.
3994         * build-aux/config.rpath: Likewise.
3995
3996 2008-01-08  Jim Meyering  <meyering@redhat.com>
3997             Bruno Haible  <bruno@clisp.org>
3998
3999         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
4000         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
4001         Reported by Peter Fales in
4002         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
4003
4004 2008-01-08  Bruno Haible  <bruno@clisp.org>
4005
4006         * modules/unictype/category-of (Depends-on): Add
4007         unictype/category-none.
4008         * modules/unictype/category-and-tests (Depends-on): Add
4009         unictype/category-{L,N,Lu,Nd}.
4010         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
4011         * modules/unictype/category-or-tests (Depends-on): Add
4012         unictype/category-{L,N}.
4013         * modules/unictype/category-name-tests (Depends-on): Add
4014         unictype/category-{Z,Nl}.
4015         Reported by Simon Josefsson.
4016
4017 2008-01-08  Bruno Haible  <bruno@clisp.org>
4018
4019         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
4020         convention better.
4021         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
4022         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
4023         Reported by Peter Miller <millerp@canb.auug.org.au>.
4024
4025 2008-01-08  Eric Blake  <ebb9@byu.net>
4026
4027         Rewrite memmem to guarantee linear complexity without malloc.
4028         * lib/memmem.c (memmem): Use Two-Way rather than
4029         Knuth-Morris-Pratt, to allow O(1) space usage.
4030         (critical_factorization, two_way_short_needle)
4031         (two_way_long_needle): New functions.
4032         (knuth_morris_pratt): Delete.
4033         * modules/memmem (Depends-on): No longer need malloca or stdbool.
4034         Add stdint.
4035         * tests/test-memmem.c (main): Add tests for periodic needle and
4036         sublinear performance.
4037         * doc/functions/memmem.texi (memmem): Document other deficiencies
4038         in cygwin and older glibc.
4039
4040 2008-01-08  Bruno Haible  <bruno@clisp.org>
4041
4042         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
4043         augmentation.
4044
4045 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
4046
4047         Add a configure time option: --disable-acl.
4048         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
4049         AC_ARG_ENABLE(acl).
4050
4051 2008-01-06  Simon Josefsson  <simon@josefsson.org>
4052
4053         * tests/test-localename.c: Don't include obsolete "setenv.h".
4054
4055         * modules/localename-tests (Depends-on): Need unsetenv.
4056
4057 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4058
4059         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
4060
4061 2008-01-06  Colin Watson  <cjwatson@debian.org>
4062
4063         * users.txt: Add man-db.
4064
4065 2008-01-07  Bruno Haible  <bruno@clisp.org>
4066
4067         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
4068         previous section name.
4069
4070 2008-01-07  Bruno Haible  <bruno@clisp.org>
4071
4072         * lib/progname.c (set_program_name): Don't strip off a leading
4073         "lt-" prefix outside a .libs directory.
4074         Suggested by Paul Eggert.
4075
4076 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
4077             Bruno Haible  <bruno@clisp.org>
4078
4079         Improve memory cleanup in 'relocatable' module.
4080         * lib/relocatable.h (compute_curr_prefix): Change return type to
4081         'char *'.
4082         * lib/relocatable.c (compute_curr_prefix): Change return type to
4083         'char *'. Free curr_installdir after use.
4084         (relocate): Free curr_prefix_better after use.
4085         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
4086
4087 2008-01-01  Bruno Haible  <bruno@clisp.org>
4088
4089         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
4090         failure on older glibc systems.
4091         Reported by Peter Fales <psfales@alcatel-lucent.com>.
4092
4093 2008-01-05  Eric Blake  <ebb9@byu.net>
4094
4095         Avoid quadratic system memmem.
4096         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
4097         Reported by Ralf Wildenhues.
4098
4099         Fix memmem test for mingw.
4100         * modules/memmem-tests (configure.ac): Check for alarm.
4101         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
4102         it.
4103         * doc/functions/memmem.texi: New file.
4104         * doc/gnulib.texi (Function Substitutes): Add memmem.
4105         Reported by Bruno Haible.
4106
4107 2008-01-04  Bruno Haible  <bruno@clisp.org>
4108
4109         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
4110         Require gl_HEADER_STRINGS_H_DEFAULTS, not
4111         gl_HEADER_STRING_H_DEFAULTS.
4112
4113 2008-01-04  Eric Blake  <ebb9@byu.net>
4114
4115         Shorten duration of memmem test.
4116         * tests/test-memmem.c (main): Use alarm to declare failure if test
4117         is taking too long.
4118         Reported by Ralf Wildenhues.
4119
4120 2007-12-21  Simon Josefsson  <simon@josefsson.org>
4121
4122         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
4123         string, needed by strerror.
4124
4125 2008-01-03  Colin Watson  <cjwatson@debian.org>
4126             Bruno Haible  <bruno@clisp.org>
4127
4128         * doc/gnulib-tool.texi (Localization): New section.
4129
4130 2008-01-02  Bruno Haible  <bruno@clisp.org>
4131
4132         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
4133         variables to 'unsigned char *' type.
4134         Reported by Paul Eggert.
4135
4136 2008-01-02  Jim Meyering  <jim@meyering.net>
4137
4138         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
4139
4140 2007-12-31  Jim Meyering  <jim@meyering.net>
4141
4142         Avoid use of private FTS type name.
4143         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
4144
4145 2007-12-30  Karl Berry  <karl@gnu.org>
4146
4147         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
4148         work around defect in Texinfo and/or the standalone Info browser.
4149
4150 2007-12-30  Bruno Haible  <bruno@clisp.org>
4151
4152         Unify 5 copies of the KMP code.
4153         * lib/str-kmp.h: New file.
4154         * lib/c-strcasestr.c: Include str-kmp.h.
4155         (knuth_morris_pratt): Remove function.
4156         (c_strcasestr): Update.
4157         * lib/c-strstr.c: Include str-kmp.h.
4158         (knuth_morris_pratt): Remove function.
4159         (c_strcasestr): Update.
4160         * lib/mbscasestr.c: Include str-kmp.h.
4161         (knuth_morris_pratt_unibyte): Remove function.
4162         * lib/mbsstr.c: Include str-kmp.h.
4163         (knuth_morris_pratt_unibyte): Remove function.
4164         * lib/strcasestr.c: Include str-kmp.h.
4165         (knuth_morris_pratt): Remove function.
4166         (strcasestr): Update.
4167         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
4168         * modules/c-strstr (Files): Likewise.
4169         * modules/mbscasestr (Files): Likewise.
4170         * modules/mbsstr (Files): Likewise.
4171         * modules/strcasestr (Files): Likewise.
4172         Suggested by Paul Eggert.
4173
4174 2007-12-30  Bruno Haible  <bruno@clisp.org>
4175
4176         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
4177         defined.
4178
4179 2007-12-30  Bruno Haible  <bruno@clisp.org>
4180
4181         * lib/xmalloca.h: Include xalloc.h.
4182         (xnmalloca): New macro.
4183
4184 2007-12-30  Bruno Haible  <bruno@clisp.org>
4185
4186         * lib/malloca.h (nmalloca): New macro.
4187         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
4188         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
4189         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
4190         knuth_morris_pratt_multibyte): Likewise.
4191         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
4192         knuth_morris_pratt_multibyte): Likewise.
4193         * lib/memmem.c (knuth_morris_pratt): Likewise.
4194         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
4195
4196 2007-12-25  Bruno Haible  <bruno@clisp.org>
4197
4198         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
4199         * lib/glob.c: Don't include openat.h.
4200         (link_exists2_p): Add back the code that deals with the
4201         !GLOB_ALTDIRFUNC case.
4202         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
4203         let it do the filename concatenation.
4204         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
4205         * modules/glob (Depends-on): Remove openat.
4206
4207 2007-12-31  Bruno Haible  <bruno@clisp.org>
4208
4209         * modules/dirfd (License): Change to LGPLv2+.
4210         Approved by Jim Meyering.
4211
4212 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4213
4214         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
4215         when multiplying M by sizeof (size_t).
4216
4217 2007-12-10  Martin Lambers  <marlam@marlam.de>
4218
4219         Override getpagesize on mingw.
4220         * lib/getpagesize.c: New file.
4221         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
4222         * modules/getpagesize (Files): Add lib/getpagesize.c.
4223         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
4224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4225         REPLACE_GETPAGESIZE.
4226         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
4227
4228 2007-12-25  Bruno Haible  <bruno@clisp.org>
4229
4230         * modules/localcharset (Notice): New field.
4231         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
4232         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4233
4234 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4235             Bruno Haible  <bruno@clisp.org>
4236
4237         Avoid using the syntax symbol() in formatted documentation.
4238         * MODULES.html.sh (func_module): When replacing symbol() with a
4239         hyperlink, remove the parentheses. Show an error if some remain.
4240         Recognize and render the '...' syntax.
4241         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
4242         Rework. Add paragraph about GCC's inlining.
4243         * doc/alloca.texi: Likewise.
4244         * doc/error.texi: Remove parentheses from symbol reference.
4245         * doc/gnulib-intro.texi: Likewise.
4246         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
4247         * modules/fnmatch (Description): Reword to say "the ... function".
4248         * modules/full-read (Description): Likewise.
4249         * modules/full-write (Description): Likewise.
4250         * modules/safe-read (Description): Likewise.
4251         * modules/safe-write (Description): Likewise.
4252         * modules/strchrnul (Description): Likewise.
4253         * modules/trim (Description): Likewise.
4254         * modules/error (Description): Remove parentheses from symbol
4255         references.
4256         * modules/verror (Description): Likewise.
4257         Reported by Karl Berry.
4258
4259 2007-12-25  Bruno Haible  <bruno@clisp.org>
4260
4261         Fixup after 2007-10-16 commit.
4262         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
4263
4264 2007-12-24  Bruno Haible  <bruno@clisp.org>
4265
4266         Make --enable-relocatable work with DESTDIR.
4267         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
4268         to compute installdir from destprog.
4269         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
4270         also set the RELOC_DESTDIR variable.
4271         Reported by Левашев Иван <octagram@bluebottle.com>.
4272
4273 2007-12-24  Bruno Haible  <bruno@clisp.org>
4274
4275         Fix link error due to xalloc_die().
4276         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
4277         of xreadlink.
4278         * lib/relocwrapper.c: Update comments.
4279         * build-aux/install-reloc: Remove xreadlink.c from file list.
4280         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
4281         xreadlink.c.
4282         Reported by Левашев Иван <octagram@bluebottle.com>.
4283
4284 2007-12-24  Bruno Haible  <bruno@clisp.org>
4285
4286         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
4287         * lib/setenv.h: Remove file.
4288         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
4289         lib/setenv.h.
4290         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
4291         (Depends-on): Add stdlib.
4292         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
4293         gl_FUNC_UNSETENV.
4294         (Include): Replace setenv.h with <stdlib.h>.
4295         * modules/unsetenv: New file.
4296         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
4297         * lib/unsetenv.c: Include <stdlib.h> first.
4298         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
4299         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
4300         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
4301         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
4302         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
4303         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
4304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
4305         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
4306         * doc/functions/unsetenv.texi: Update.
4307         * modules/xsetenv (Depends-on): Add unsetenv.
4308         * modules/getdate (Depends-on): Likewise.
4309         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
4310         * lib/xsetenv.c: Don't include setenv.h.
4311         * lib/getdate.y: Likewise.
4312         * lib/relocwrapper.c: Likewise.
4313         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
4314         (Depends-on): Add stdlib.
4315         * NEWS: Mention the changes.
4316         Reported by Левашев Иван <octagram@bluebottle.com>.
4317
4318 2007-12-23  Bruno Haible  <bruno@clisp.org>
4319
4320         * lib/memmem.c (memmem): Use lowercase variable names. Tab
4321         indentation.
4322
4323 2007-12-23  Bruno Haible  <bruno@clisp.org>
4324
4325         * lib/c-strcasestr.c: Add more comments.
4326         * lib/c-strstr.c: Likewise.
4327         * lib/mbscasestr.c: Likewise.
4328         * lib/mbsstr.c: Likewise.
4329         * lib/strcasestr.c: Likewise.
4330         * lib/memmem.c: Likewise.
4331
4332 2007-12-23  Bruno Haible  <bruno@clisp.org>
4333
4334         * tests/test-memmem.c: Include <string.h> first.
4335
4336 2007-12-22  Bruno Haible  <bruno@clisp.org>
4337
4338         * gnulib-tool (func_create_testdir): Change $auxdir while generating
4339         the contents of $testsbase.
4340         Reported by Ralf Wildenhues.
4341
4342 2007-12-22  Bruno Haible  <bruno@clisp.org>
4343
4344         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
4345         two variables local_ldadd_before, local_ldadd_last.
4346
4347 2007-12-20  Eric Blake  <ebb9@byu.net>
4348
4349         Work around circular library issue when cross-compiling.
4350         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
4351         that progname.o does not need to pull in rpl_memcmp.
4352
4353 2007-12-19  Eric Blake  <ebb9@byu.net>
4354
4355         Fix memmem to avoid O(n^2) worst-case complexity.
4356         * lib/memmem.c (knuth_morris_pratt): New function.
4357         (memmem): Use it if first few naive iterations fail.
4358         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
4359         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
4360         * modules/memchr (License): Likewise.
4361         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
4362         malloca.
4363         * tests/test-memmem.c: Rewrite, borrowing ideas from
4364         test-mbsstr1.c; the old version wouldn't even compile!
4365         * modules/memmem-tests: New file.
4366         * lib/string.in.h (rpl_memmem): Add declaration.
4367         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
4368         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
4369         REPLACE_MEMMEM.
4370
4371 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4372
4373         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
4374         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
4375         before any system include files, and undef after them all.  This
4376         should fix a problem on VMS reported by John E. Malmberg in
4377         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
4378
4379 2007-12-17  Eric Blake  <ebb9@byu.net>
4380
4381         Revert addition of verify, for BSD/OS.
4382         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
4383         can't handle large files, for the sake of obsolete platforms.
4384         * modules/fseeko (Depends-on): Remove verify.
4385         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
4386         * doc/functions/ftello.texi (ftello): Likewise.
4387         * doc/functions/fgetpos.texi (fgetpos): Likewise.
4388         Reported by Larry Jones.
4389
4390 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
4391
4392         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
4393         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
4394
4395 2007-12-17  Jim Meyering  <meyering@redhat.com>
4396
4397         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
4398         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
4399         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
4400         * modules/getcwd (Depends-on): Add openat.
4401         Reported by Petr Salinger.
4402
4403 2007-12-17  Bruno Haible  <bruno@clisp.org>
4404
4405         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
4406         avoid a segmentation fault of the configure test on x86_64 systems.
4407
4408 2007-12-15  Jim Meyering  <meyering@redhat.com>
4409
4410         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
4411
4412 2007-12-13  Eric Blake  <ebb9@byu.net>
4413
4414         Another fseek test.
4415         * tests/test-fseek.c (main): Also test ungetc handling.
4416         * tests/test-fseeko.c (main): Likewise.
4417         * modules/fseeko (Depends-on): Add verify.
4418         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
4419         large.
4420         Reported by Larry Jones.
4421
4422         Fix fseeko on mingw.
4423         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
4424         seek.
4425
4426         Beef up fseek tests.
4427         * tests/test-fseek.c (main): Also test eof handling.
4428         * tests/test-fseeko.c (main): Likewise.
4429         Reported by Larry Jones.
4430
4431 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
4432
4433         Fix fseeko on BSD-based platforms.
4434         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
4435         successful seek.
4436
4437 2007-12-12  Eric Blake  <ebb9@byu.net>
4438
4439         Allow circular dependency of separate libtests.a
4440         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
4441         when use_libtests.
4442
4443 2007-12-11  Eric Blake  <ebb9@byu.net>
4444
4445         Fix bug with -0.0L in previous patch.
4446         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
4447         * tests/test-isnan.c (main): Also test on zeroes.
4448         * tests/test-isnanf.c (main): Likewise.
4449         * tests/test-isnanl.h (main): Likewise.
4450
4451         Detect pseudo-denormals on x86 even when cross-compiling.
4452         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
4453         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
4454         invalid bit patterns that happen to satisfy ==.
4455
4456         Avoid link failures with separate libtests.a.
4457         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
4458         last, to satisfy circular dependencies.
4459
4460 2007-12-11  Eric Blake  <ebb9@byu.net>
4461         and Bruno Haible  <bruno@clisp.org>
4462
4463         Fix OpenBSD 4.0 <float.h> handling of long double.
4464         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
4465         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
4466         * doc/headers/float.texi (float.h): Document OpenBSD bug.
4467
4468 2007-12-11  Jim Meyering  <meyering@redhat.com>
4469
4470         * users.txt: Add libvirt.
4471
4472         Support versions of autoconf prior to 2.59c.
4473         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
4474         if it is not already defined.
4475
4476 2007-12-09  Bruno Haible  <bruno@clisp.org>
4477
4478         Let 'gnulib-tool --import' collect sources needed for the tests in
4479         tests/ rather than in lib/.
4480         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
4481         argument. If true, add rules to generate libtests.a, and put libtests.a
4482         into $(LDADD). Consider source files in subdirectories and set
4483         uses_subdirs.
4484         (func_emit_initmacro_start, func_emit_initmacro_end,
4485         func_emit_initmacro_done): Pass all arguments explicitly.
4486         (func_import): Determine two module lists main_modules,
4487         testsrelated_modules. Determine use_libtests. Determine two variables
4488         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
4489         instead of just sed_transform_lib_file. Determine two variables
4490         main_files and testsrelated_files. Compute 'files' as the union of
4491         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
4492         func_add_or_update. In the generated gnulib-comp.m4, collect the
4493         object files for tests/ in different variables than those for lib/.
4494         Substitute LIBTESTS_LIBDEPS.
4495         (func_create_testdir): Combine the uses_subdirs results from
4496         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
4497
4498 2007-12-09  Bruno Haible  <bruno@clisp.org>
4499
4500         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
4501         the build-aux directory.
4502
4503 2007-12-09  Bruno Haible  <bruno@clisp.org>
4504
4505         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
4506         introduced on 2006-09-09.
4507
4508 2007-12-07  Jim Meyering  <meyering@redhat.com>
4509
4510         Let these macros work also with autoconf-2.59.
4511         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
4512         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
4513         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4514
4515 2007-12-06  Jim Meyering  <meyering@redhat.com>
4516
4517         Avoid a configure-time syntax error in gl_FUNC_ACL.
4518         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
4519         function in each branch, before testing the cache variable.
4520
4521 2007-12-04  Eric Blake  <ebb9@byu.net>
4522
4523         Make scripts executable.
4524         * build-aux/config.guess: Add execute permissions.
4525         * build-aux/config.sub: Likewise.
4526         * build-aux/gendocs.sh: Likewise.
4527
4528         Fix frexp on mingw.
4529         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
4530         cross-compiling.
4531         * doc/functions/frexp.texi (frexp): Document the bug.
4532
4533         Make cygwin fseeko check more reliable.
4534         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
4535         version numbers, rather than unrelated feature check.
4536         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
4537         * doc/functions/ftello.texi (ftello): Likewise.
4538         Reported by Bruno Haible.
4539
4540         * m4/strerror.m4: Bump version number.
4541
4542 2007-12-03  Bruno Haible  <bruno@clisp.org>
4543
4544         * doc/functions/mprotect.texi: Mention the mingw problem.
4545
4546 2007-12-03  Eric Blake  <ebb9@byu.net>
4547
4548         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
4549         REPLACE_STRERROR is initialized before this macro.
4550
4551 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
4552
4553         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
4554         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
4555         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
4556         put -lsec in even for programs other than 'ls'.  This fixes a problem
4557         for gettext reported by Bruno Haible in
4558         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
4559         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
4560         Add support for Solaris 10.  This isn't efficient, but should get the
4561         job done for now.
4562
4563 2007-12-03  James Youngman  <jay@gnu.org>
4564
4565         * doc/regexprops-generic.texi: change "an close-group" to "a
4566         close-group" and "illegal" to "not allowed".
4567
4568 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4569
4570         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
4571         pr_byname.h. Needed for the rare case when the maintainer has done
4572         "make maintainer-clean" in the source directory and then attempts a
4573         build outside the source directory.
4574         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
4575         scripts_byname.h.
4576
4577 2007-12-02  Martin Lambers <marlam@marlam.de>
4578             Bruno Haible  <bruno@clisp.org>
4579
4580         * lib/getpagesize.h: Remove file.
4581         * lib/unistd.in.h: Include declaration of getpagesize here.
4582         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
4583         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
4584         HAVE_SYS_PARAM_H.
4585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
4586         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4587         * modules/getpagesize (Files): Remove lib/getpagesize.h.
4588         (Depends-on): Add unistd.
4589         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4590         (Include): Use <unistd.h> instead of getpagesize.h.
4591         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
4592         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4593         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
4594         gl_GETPAGESIZE invocation, already handled by module dependency.
4595         * lib/pagealign_alloc.c: Don't include getpagesize.h.
4596
4597 2007-12-02  Bruno Haible  <bruno@clisp.org>
4598
4599         * modules/strings-tests: New file.
4600         * tests/test-strings.c: New file.
4601
4602         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
4603         * lib/strings.in.h: New file.
4604         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
4605         * m4/strings_h.m4: New file.
4606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
4607         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
4608         * modules/strings: New file.
4609         * modules/string (Makefile.am): Update.
4610         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
4611         Reported by Karl Berry.
4612
4613 2007-12-01  Eric Blake  <ebb9@byu.net>
4614
4615         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
4616         accomodate fix in cygwin 1.5.25.
4617
4618 2007-12-01  Jim Meyering  <meyering@redhat.com>
4619
4620         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
4621         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4622         that would inhibit utf8-optimization of a regexp containing line-
4623         or buffer-anchors, e.g., `^', `$'.
4624
4625 2007-11-30  Bruno Haible  <bruno@clisp.org>
4626
4627         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
4628         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
4629         glthread_recursive_lock_init.
4630         * lib/lock.c (glthread_recursive_lock_init)
4631         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
4632         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4633
4634 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4635
4636         New function qset_acl, like set_acl but with syscall semantics.
4637         * lib/acl.h (qset_acl): New decl.
4638         * lib/acl.c (qset_acl): New function.
4639         (set_acl): Use new function.  Use more-consistent diagnostics.
4640
4641 2007-11-28  Jim Meyering  <meyering@redhat.com>
4642
4643         * modules/physmem (License): Change from GPL to LGPLv2+.
4644
4645 2007-11-26  Bruno Haible  <bruno@clisp.org>
4646
4647         * lib/vasnprintf.c (decode_long_double): Don't abort if the
4648         'long double' type has excess precision.
4649         Reported by Jim Meyering in
4650         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
4651
4652 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4653
4654         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
4655         Sync from <http://gnu.org/licenses>.
4656         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
4657         with license text from same location.
4658         * doc/maintain.texi, doc/standards.texi:  Sync from
4659         <http://savannah.gnu.org/projects/gnustandards>.
4660
4661 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
4662         and Jim Meyering  <meyering@redhat.com>
4663
4664         Adjust getdate' grammar to accept a slightly more regular language.
4665         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
4666         Before, the former was rejected.
4667         * lib/getdate.y (digits_to_date_time): New function, factored
4668         out of ...
4669         (number): ...here.  Just call digits_to_date_time.
4670         (hybrid): New non-terminal to handle an <unsigned number,
4671         signed relative offset> sequence consistently.
4672
4673 2007-11-18  Jim Meyering  <meyering@redhat.com>
4674
4675         Pull my changes from coreutils:
4676         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
4677         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
4678         use of $gnulib_tool_option_extras, so that it's separated from the
4679         preceding argument.
4680
4681         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
4682         * build-aux/bootstrap (cp_mark_as_generated): Create any required
4683         parent destination directories before copying a file into place.
4684
4685 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
4686
4687         bootstrap: work also with 4-argument variant of AC_INIT
4688         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
4689
4690 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
4691
4692         Port test-getaddrinfo to Solaris.
4693         Problem reported by Bruno Haible in
4694         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
4695         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
4696         explanation of setting 'hints'.
4697         Don't reject an implementation merely because it returns EAI_SERVICE.
4698         (EAI_SERVICE): Define to 0 if not defined.
4699
4700 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
4701
4702         The license of gnu-make and posix-shell is now "GPLed build tool".
4703         * modules/gnu-make (License): Likewise.
4704         * modules/posix-shell (License): Likewise.
4705
4706         New module posix-shell, for determining a POSIX shell
4707         or perhaps something that is close enough to a POSIX shell.
4708         * m4/posix-shell.m4: New file.
4709         * modules/posix-shell: New file.
4710
4711         * MODULES.html.sh: Mention new module.
4712
4713         New module gnu-make, for determining whether we're using GNU Make.
4714         * m4/gnu-make.m4: New file.
4715         * modules/gnu-make: New file.
4716         * MODULES.html.sh: Mention new module.
4717
4718 2007-11-14  Jim Meyering  <meyering@redhat.com>
4719
4720         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
4721         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
4722         use this macro to create a function _definition_.
4723         Remove useless "#undef ARGMATCH_DIE".
4724
4725 2007-11-14  Bruno Haible  <bruno@clisp.org>
4726
4727         * lib/config.charset: Update for OpenBSD 4.1.
4728         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
4729
4730 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
4731
4732         Document 64-bit #if problems in stdint.texi.
4733         * doc/headers/stdint.texi (stdint.h): Mention problems with
4734         64-bit-#if, and how to work around them.
4735
4736         Don't insist on 'long long int' support in the preprocessor.  It
4737         breaks too many things.  For example, PRIdMAX still uses a 'long
4738         long int' format with the latest Sun compiler, even though
4739         HAVE_LONG_LONG_INT isn't defined due to that compiler's
4740         preprocessor problem.  This causes the latest coreutils to dump
4741         core on Solaris 10 sparc with the Sun C compiler.
4742         Instead, fix the 2007-10-16 problem in a different way, by evaluating
4743         the troublesome expressions at configure-time, not at #if-time.
4744         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
4745         preprocessor.
4746         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
4747         compile-time C checks, done at 'configure'-time.
4748         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
4749         * modules/inttypes (Makefile): Substitute the new symbols that
4750         gl_INTTYPES_H now generates.
4751         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
4752
4753 2007-11-12  Bruno Haible  <bruno@clisp.org>
4754
4755         Tests for Unicode character classification functions.
4756
4757         * modules/unictype/bidicategory-byname-tests: New file.
4758         * modules/unictype/bidicategory-name-tests: New file.
4759         * modules/unictype/bidicategory-of-tests: New file.
4760         * modules/unictype/bidicategory-test-tests: New file.
4761         * modules/unictype/block-list-tests: New file.
4762         * modules/unictype/block-of-tests: New file.
4763         * modules/unictype/block-test-tests: New file.
4764         * modules/unictype/category-C-tests: New file.
4765         * modules/unictype/category-Cc-tests: New file.
4766         * modules/unictype/category-Cf-tests: New file.
4767         * modules/unictype/category-Cn-tests: New file.
4768         * modules/unictype/category-Co-tests: New file.
4769         * modules/unictype/category-Cs-tests: New file.
4770         * modules/unictype/category-L-tests: New file.
4771         * modules/unictype/category-Ll-tests: New file.
4772         * modules/unictype/category-Lm-tests: New file.
4773         * modules/unictype/category-Lo-tests: New file.
4774         * modules/unictype/category-Lt-tests: New file.
4775         * modules/unictype/category-Lu-tests: New file.
4776         * modules/unictype/category-M-tests: New file.
4777         * modules/unictype/category-Mc-tests: New file.
4778         * modules/unictype/category-Me-tests: New file.
4779         * modules/unictype/category-Mn-tests: New file.
4780         * modules/unictype/category-N-tests: New file.
4781         * modules/unictype/category-Nd-tests: New file.
4782         * modules/unictype/category-Nl-tests: New file.
4783         * modules/unictype/category-No-tests: New file.
4784         * modules/unictype/category-P-tests: New file.
4785         * modules/unictype/category-Pc-tests: New file.
4786         * modules/unictype/category-Pd-tests: New file.
4787         * modules/unictype/category-Pe-tests: New file.
4788         * modules/unictype/category-Pf-tests: New file.
4789         * modules/unictype/category-Pi-tests: New file.
4790         * modules/unictype/category-Po-tests: New file.
4791         * modules/unictype/category-Ps-tests: New file.
4792         * modules/unictype/category-S-tests: New file.
4793         * modules/unictype/category-Sc-tests: New file.
4794         * modules/unictype/category-Sk-tests: New file.
4795         * modules/unictype/category-Sm-tests: New file.
4796         * modules/unictype/category-So-tests: New file.
4797         * modules/unictype/category-Z-tests: New file.
4798         * modules/unictype/category-Zl-tests: New file.
4799         * modules/unictype/category-Zp-tests: New file.
4800         * modules/unictype/category-Zs-tests: New file.
4801         * modules/unictype/category-and-not-tests: New file.
4802         * modules/unictype/category-and-tests: New file.
4803         * modules/unictype/category-byname-tests: New file.
4804         * modules/unictype/category-name-tests: New file.
4805         * modules/unictype/category-none-tests: New file.
4806         * modules/unictype/category-of-tests: New file.
4807         * modules/unictype/category-or-tests: New file.
4808         * modules/unictype/category-test-withtable-tests: New file.
4809         * modules/unictype/combining-class-tests: New file.
4810         * modules/unictype/ctype-alnum-tests: New file.
4811         * modules/unictype/ctype-alpha-tests: New file.
4812         * modules/unictype/ctype-blank-tests: New file.
4813         * modules/unictype/ctype-cntrl-tests: New file.
4814         * modules/unictype/ctype-digit-tests: New file.
4815         * modules/unictype/ctype-graph-tests: New file.
4816         * modules/unictype/ctype-lower-tests: New file.
4817         * modules/unictype/ctype-print-tests: New file.
4818         * modules/unictype/ctype-punct-tests: New file.
4819         * modules/unictype/ctype-space-tests: New file.
4820         * modules/unictype/ctype-upper-tests: New file.
4821         * modules/unictype/ctype-xdigit-tests: New file.
4822         * modules/unictype/decimal-digit-tests: New file.
4823         * modules/unictype/digit-tests: New file.
4824         * modules/unictype/mirror-tests: New file.
4825         * modules/unictype/numeric-tests: New file.
4826         * modules/unictype/property-alphabetic-tests: New file.
4827         * modules/unictype/property-ascii-hex-digit-tests: New file.
4828         * modules/unictype/property-bidi-arabic-digit-tests: New file.
4829         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
4830         * modules/unictype/property-bidi-block-separator-tests: New file.
4831         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
4832         * modules/unictype/property-bidi-common-separator-tests: New file.
4833         * modules/unictype/property-bidi-control-tests: New file.
4834         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
4835         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
4836         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
4837         * modules/unictype/property-bidi-european-digit-tests: New file.
4838         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
4839         * modules/unictype/property-bidi-left-to-right-tests: New file.
4840         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
4841         * modules/unictype/property-bidi-other-neutral-tests: New file.
4842         * modules/unictype/property-bidi-pdf-tests: New file.
4843         * modules/unictype/property-bidi-segment-separator-tests: New file.
4844         * modules/unictype/property-bidi-whitespace-tests: New file.
4845         * modules/unictype/property-byname-tests: New file.
4846         * modules/unictype/property-combining-tests: New file.
4847         * modules/unictype/property-composite-tests: New file.
4848         * modules/unictype/property-currency-symbol-tests: New file.
4849         * modules/unictype/property-dash-tests: New file.
4850         * modules/unictype/property-decimal-digit-tests: New file.
4851         * modules/unictype/property-default-ignorable-code-point-tests: New file.
4852         * modules/unictype/property-deprecated-tests: New file.
4853         * modules/unictype/property-diacritic-tests: New file.
4854         * modules/unictype/property-extender-tests: New file.
4855         * modules/unictype/property-format-control-tests: New file.
4856         * modules/unictype/property-grapheme-base-tests: New file.
4857         * modules/unictype/property-grapheme-extend-tests: New file.
4858         * modules/unictype/property-grapheme-link-tests: New file.
4859         * modules/unictype/property-hex-digit-tests: New file.
4860         * modules/unictype/property-hyphen-tests: New file.
4861         * modules/unictype/property-id-continue-tests: New file.
4862         * modules/unictype/property-id-start-tests: New file.
4863         * modules/unictype/property-ideographic-tests: New file.
4864         * modules/unictype/property-ids-binary-operator-tests: New file.
4865         * modules/unictype/property-ids-trinary-operator-tests: New file.
4866         * modules/unictype/property-ignorable-control-tests: New file.
4867         * modules/unictype/property-iso-control-tests: New file.
4868         * modules/unictype/property-join-control-tests: New file.
4869         * modules/unictype/property-left-of-pair-tests: New file.
4870         * modules/unictype/property-line-separator-tests: New file.
4871         * modules/unictype/property-logical-order-exception-tests: New file.
4872         * modules/unictype/property-lowercase-tests: New file.
4873         * modules/unictype/property-math-tests: New file.
4874         * modules/unictype/property-non-break-tests: New file.
4875         * modules/unictype/property-not-a-character-tests: New file.
4876         * modules/unictype/property-numeric-tests: New file.
4877         * modules/unictype/property-other-alphabetic-tests: New file.
4878         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
4879         * modules/unictype/property-other-grapheme-extend-tests: New file.
4880         * modules/unictype/property-other-id-continue-tests: New file.
4881         * modules/unictype/property-other-id-start-tests: New file.
4882         * modules/unictype/property-other-lowercase-tests: New file.
4883         * modules/unictype/property-other-math-tests: New file.
4884         * modules/unictype/property-other-uppercase-tests: New file.
4885         * modules/unictype/property-paired-punctuation-tests: New file.
4886         * modules/unictype/property-paragraph-separator-tests: New file.
4887         * modules/unictype/property-pattern-syntax-tests: New file.
4888         * modules/unictype/property-pattern-white-space-tests: New file.
4889         * modules/unictype/property-private-use-tests: New file.
4890         * modules/unictype/property-punctuation-tests: New file.
4891         * modules/unictype/property-quotation-mark-tests: New file.
4892         * modules/unictype/property-radical-tests: New file.
4893         * modules/unictype/property-sentence-terminal-tests: New file.
4894         * modules/unictype/property-soft-dotted-tests: New file.
4895         * modules/unictype/property-space-tests: New file.
4896         * modules/unictype/property-terminal-punctuation-tests: New file.
4897         * modules/unictype/property-test-tests: New file.
4898         * modules/unictype/property-titlecase-tests: New file.
4899         * modules/unictype/property-unassigned-code-value-tests: New file.
4900         * modules/unictype/property-unified-ideograph-tests: New file.
4901         * modules/unictype/property-uppercase-tests: New file.
4902         * modules/unictype/property-variation-selector-tests: New file.
4903         * modules/unictype/property-white-space-tests: New file.
4904         * modules/unictype/property-xid-continue-tests: New file.
4905         * modules/unictype/property-xid-start-tests: New file.
4906         * modules/unictype/property-zero-width-tests: New file.
4907         * modules/unictype/scripts-tests: New file.
4908         * modules/unictype/syntax-c-ident-tests: New file.
4909         * modules/unictype/syntax-c-whitespace-tests: New file.
4910         * modules/unictype/syntax-java-ident-tests: New file.
4911         * modules/unictype/syntax-java-whitespace-tests: New file.
4912         * tests/unictype/test-bidi_byname.c: New file.
4913         * tests/unictype/test-bidi_name.c: New file.
4914         * tests/unictype/test-bidi_of.c: New file.
4915         * tests/unictype/test-bidi_test.c: New file.
4916         * tests/unictype/test-block_list.c: New file.
4917         * tests/unictype/test-block_of.c: New file.
4918         * tests/unictype/test-block_test.c: New file.
4919         * tests/unictype/test-categ_and.c: New file.
4920         * tests/unictype/test-categ_and_not.c: New file.
4921         * tests/unictype/test-categ_byname.c: New file.
4922         * tests/unictype/test-categ_name.c: New file.
4923         * tests/unictype/test-categ_none.c: New file.
4924         * tests/unictype/test-categ_of.c: New file.
4925         * tests/unictype/test-categ_or.c: New file.
4926         * tests/unictype/test-categ_test_withtable.c: New file.
4927         * tests/unictype/test-combining.c: New file.
4928         * tests/unictype/test-decdigit.c: New file.
4929         * tests/unictype/test-digit.c: New file.
4930         * tests/unictype/test-mirror.c: New file.
4931         * tests/unictype/test-numeric.c: New file.
4932         * tests/unictype/test-pr_byname.c: New file.
4933         * tests/unictype/test-pr_test.c: New file.
4934         * tests/unictype/test-predicate-part1.h: New file.
4935         * tests/unictype/test-predicate-part2.h: New file.
4936         * tests/unictype/test-scripts.c: New file.
4937         * tests/unictype/test-sy_c_ident.c: New file.
4938         * tests/unictype/test-sy_java_ident.c: New file.
4939
4940         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
4941         for Unicode 5.0.0.
4942         * tests/unictype/test-categ_Cc.c: Likewise.
4943         * tests/unictype/test-categ_Cf.c: Likewise.
4944         * tests/unictype/test-categ_Cn.c: Likewise.
4945         * tests/unictype/test-categ_Co.c: Likewise.
4946         * tests/unictype/test-categ_Cs.c: Likewise.
4947         * tests/unictype/test-categ_L.c: Likewise.
4948         * tests/unictype/test-categ_Ll.c: Likewise.
4949         * tests/unictype/test-categ_Lm.c: Likewise.
4950         * tests/unictype/test-categ_Lo.c: Likewise.
4951         * tests/unictype/test-categ_Lt.c: Likewise.
4952         * tests/unictype/test-categ_Lu.c: Likewise.
4953         * tests/unictype/test-categ_M.c: Likewise.
4954         * tests/unictype/test-categ_Mc.c: Likewise.
4955         * tests/unictype/test-categ_Me.c: Likewise.
4956         * tests/unictype/test-categ_Mn.c: Likewise.
4957         * tests/unictype/test-categ_N.c: Likewise.
4958         * tests/unictype/test-categ_Nd.c: Likewise.
4959         * tests/unictype/test-categ_Nl.c: Likewise.
4960         * tests/unictype/test-categ_No.c: Likewise.
4961         * tests/unictype/test-categ_P.c: Likewise.
4962         * tests/unictype/test-categ_Pc.c: Likewise.
4963         * tests/unictype/test-categ_Pd.c: Likewise.
4964         * tests/unictype/test-categ_Pe.c: Likewise.
4965         * tests/unictype/test-categ_Pf.c: Likewise.
4966         * tests/unictype/test-categ_Pi.c: Likewise.
4967         * tests/unictype/test-categ_Po.c: Likewise.
4968         * tests/unictype/test-categ_Ps.c: Likewise.
4969         * tests/unictype/test-categ_S.c: Likewise.
4970         * tests/unictype/test-categ_Sc.c: Likewise.
4971         * tests/unictype/test-categ_Sk.c: Likewise.
4972         * tests/unictype/test-categ_Sm.c: Likewise.
4973         * tests/unictype/test-categ_So.c: Likewise.
4974         * tests/unictype/test-categ_Z.c: Likewise.
4975         * tests/unictype/test-categ_Zl.c: Likewise.
4976         * tests/unictype/test-categ_Zp.c: Likewise.
4977         * tests/unictype/test-categ_Zs.c: Likewise.
4978         * tests/unictype/test-ctype_alnum.c: Likewise.
4979         * tests/unictype/test-ctype_alpha.c: Likewise.
4980         * tests/unictype/test-ctype_blank.c: Likewise.
4981         * tests/unictype/test-ctype_cntrl.c: Likewise.
4982         * tests/unictype/test-ctype_digit.c: Likewise.
4983         * tests/unictype/test-ctype_graph.c: Likewise.
4984         * tests/unictype/test-ctype_lower.c: Likewise.
4985         * tests/unictype/test-ctype_print.c: Likewise.
4986         * tests/unictype/test-ctype_punct.c: Likewise.
4987         * tests/unictype/test-ctype_space.c: Likewise.
4988         * tests/unictype/test-ctype_upper.c: Likewise.
4989         * tests/unictype/test-ctype_xdigit.c: Likewise.
4990         * tests/unictype/test-decdigit.h: Likewise.
4991         * tests/unictype/test-digit.h: Likewise.
4992         * tests/unictype/test-numeric.h: Likewise.
4993         * tests/unictype/test-pr_alphabetic.c: Likewise.
4994         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
4995         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4996         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4997         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
4998         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4999         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
5000         * tests/unictype/test-pr_bidi_control.c: Likewise.
5001         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
5002         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
5003         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5004         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5005         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5006         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5007         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5008         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5009         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
5010         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
5011         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
5012         * tests/unictype/test-pr_combining.c: Likewise.
5013         * tests/unictype/test-pr_composite.c: Likewise.
5014         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5015         * tests/unictype/test-pr_dash.c: Likewise.
5016         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5017         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
5018         * tests/unictype/test-pr_deprecated.c: Likewise.
5019         * tests/unictype/test-pr_diacritic.c: Likewise.
5020         * tests/unictype/test-pr_extender.c: Likewise.
5021         * tests/unictype/test-pr_format_control.c: Likewise.
5022         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5023         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5024         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5025         * tests/unictype/test-pr_hex_digit.c: Likewise.
5026         * tests/unictype/test-pr_hyphen.c: Likewise.
5027         * tests/unictype/test-pr_id_continue.c: Likewise.
5028         * tests/unictype/test-pr_id_start.c: Likewise.
5029         * tests/unictype/test-pr_ideographic.c: Likewise.
5030         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
5031         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
5032         * tests/unictype/test-pr_ignorable_control.c: Likewise.
5033         * tests/unictype/test-pr_iso_control.c: Likewise.
5034         * tests/unictype/test-pr_join_control.c: Likewise.
5035         * tests/unictype/test-pr_left_of_pair.c: Likewise.
5036         * tests/unictype/test-pr_line_separator.c: Likewise.
5037         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
5038         * tests/unictype/test-pr_lowercase.c: Likewise.
5039         * tests/unictype/test-pr_math.c: Likewise.
5040         * tests/unictype/test-pr_non_break.c: Likewise.
5041         * tests/unictype/test-pr_not_a_character.c: Likewise.
5042         * tests/unictype/test-pr_numeric.c: Likewise.
5043         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5044         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
5045         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
5046         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5047         * tests/unictype/test-pr_other_id_start.c: Likewise.
5048         * tests/unictype/test-pr_other_lowercase.c: Likewise.
5049         * tests/unictype/test-pr_other_math.c: Likewise.
5050         * tests/unictype/test-pr_other_uppercase.c: Likewise.
5051         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
5052         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
5053         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
5054         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
5055         * tests/unictype/test-pr_private_use.c: Likewise.
5056         * tests/unictype/test-pr_punctuation.c: Likewise.
5057         * tests/unictype/test-pr_quotation_mark.c: Likewise.
5058         * tests/unictype/test-pr_radical.c: Likewise.
5059         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5060         * tests/unictype/test-pr_soft_dotted.c: Likewise.
5061         * tests/unictype/test-pr_space.c: Likewise.
5062         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5063         * tests/unictype/test-pr_titlecase.c: Likewise.
5064         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5065         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5066         * tests/unictype/test-pr_uppercase.c: Likewise.
5067         * tests/unictype/test-pr_variation_selector.c: Likewise.
5068         * tests/unictype/test-pr_white_space.c: Likewise.
5069         * tests/unictype/test-pr_xid_continue.c: Likewise.
5070         * tests/unictype/test-pr_xid_start.c: Likewise.
5071         * tests/unictype/test-pr_zero_width.c: Likewise.
5072         * tests/unictype/test-sy_c_whitespace.c: Likewise.
5073         * tests/unictype/test-sy_java_whitespace.c: Likewise.
5074
5075 2007-11-12  Bruno Haible  <bruno@clisp.org>
5076
5077         Unicode character classification functions.
5078         * lib/unictype.h: New file.
5079         * modules/unictype/base: New file.
5080         * modules/unictype/category-L: New file.
5081         * modules/unictype/category-Lu: New file.
5082         * modules/unictype/category-Ll: New file.
5083         * modules/unictype/category-Lt: New file.
5084         * modules/unictype/category-Lm: New file.
5085         * modules/unictype/category-Lo: New file.
5086         * modules/unictype/category-M: New file.
5087         * modules/unictype/category-Mn: New file.
5088         * modules/unictype/category-Mc: New file.
5089         * modules/unictype/category-Me: New file.
5090         * modules/unictype/category-N: New file.
5091         * modules/unictype/category-Nd: New file.
5092         * modules/unictype/category-Nl: New file.
5093         * modules/unictype/category-No: New file.
5094         * modules/unictype/category-P: New file.
5095         * modules/unictype/category-Pc: New file.
5096         * modules/unictype/category-Pd: New file.
5097         * modules/unictype/category-Ps: New file.
5098         * modules/unictype/category-Pe: New file.
5099         * modules/unictype/category-Pi: New file.
5100         * modules/unictype/category-Pf: New file.
5101         * modules/unictype/category-Po: New file.
5102         * modules/unictype/category-S: New file.
5103         * modules/unictype/category-Sm: New file.
5104         * modules/unictype/category-Sc: New file.
5105         * modules/unictype/category-Sk: New file.
5106         * modules/unictype/category-So: New file.
5107         * modules/unictype/category-Z: New file.
5108         * modules/unictype/category-Zs: New file.
5109         * modules/unictype/category-Zl: New file.
5110         * modules/unictype/category-Zp: New file.
5111         * modules/unictype/category-C: New file.
5112         * modules/unictype/category-Cc: New file.
5113         * modules/unictype/category-Cf: New file.
5114         * modules/unictype/category-Cs: New file.
5115         * modules/unictype/category-Co: New file.
5116         * modules/unictype/category-Cn: New file.
5117         * modules/unictype/category-or: New file.
5118         * modules/unictype/category-of: New file.
5119         * modules/unictype/category-test: New file.
5120         * modules/unictype/category-test-withtable: New file.
5121         * modules/unictype/category-byname: New file.
5122         * modules/unictype/category-none: New file.
5123         * modules/unictype/category-and: New file.
5124         * modules/unictype/category-and-not: New file.
5125         * modules/unictype/category-name: New file.
5126         * modules/unictype/combining-class: New file.
5127         * modules/unictype/category-all: New file.
5128         * modules/unictype/bidicategory-all: New file.
5129         * modules/unictype/bidicategory-byname: New file.
5130         * modules/unictype/bidicategory-name: New file.
5131         * modules/unictype/bidicategory-of: New file.
5132         * modules/unictype/bidicategory-test: New file.
5133         * modules/unictype/decimal-digit: New file.
5134         * modules/unictype/digit: New file.
5135         * modules/unictype/numeric: New file.
5136         * modules/unictype/mirror: New file.
5137         * modules/unictype/property-white-space: New file.
5138         * modules/unictype/property-alphabetic: New file.
5139         * modules/unictype/property-other-alphabetic: New file.
5140         * modules/unictype/property-not-a-character: New file.
5141         * modules/unictype/property-default-ignorable-code-point: New file.
5142         * modules/unictype/property-other-default-ignorable-code-point: New
5143         file.
5144         * modules/unictype/property-deprecated: New file.
5145         * modules/unictype/property-logical-order-exception: New file.
5146         * modules/unictype/property-variation-selector: New file.
5147         * modules/unictype/property-private-use: New file.
5148         * modules/unictype/property-unassigned-code-value: New file.
5149         * modules/unictype/property-uppercase: New file.
5150         * modules/unictype/property-other-uppercase: New file.
5151         * modules/unictype/property-lowercase: New file.
5152         * modules/unictype/property-other-lowercase: New file.
5153         * modules/unictype/property-titlecase: New file.
5154         * modules/unictype/property-soft-dotted: New file.
5155         * modules/unictype/property-id-start: New file.
5156         * modules/unictype/property-other-id-start: New file.
5157         * modules/unictype/property-id-continue: New file.
5158         * modules/unictype/property-other-id-continue: New file.
5159         * modules/unictype/property-xid-start: New file.
5160         * modules/unictype/property-xid-continue: New file.
5161         * modules/unictype/property-pattern-white-space: New file.
5162         * modules/unictype/property-pattern-syntax: New file.
5163         * modules/unictype/property-join-control: New file.
5164         * modules/unictype/property-grapheme-base: New file.
5165         * modules/unictype/property-grapheme-extend: New file.
5166         * modules/unictype/property-other-grapheme-extend: New file.
5167         * modules/unictype/property-grapheme-link: New file.
5168         * modules/unictype/property-bidi-control: New file.
5169         * modules/unictype/property-bidi-left-to-right: New file.
5170         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
5171         * modules/unictype/property-bidi-arabic-right-to-left: New file.
5172         * modules/unictype/property-bidi-european-digit: New file.
5173         * modules/unictype/property-bidi-eur-num-separator: New file.
5174         * modules/unictype/property-bidi-eur-num-terminator: New file.
5175         * modules/unictype/property-bidi-arabic-digit: New file.
5176         * modules/unictype/property-bidi-common-separator: New file.
5177         * modules/unictype/property-bidi-block-separator: New file.
5178         * modules/unictype/property-bidi-segment-separator: New file.
5179         * modules/unictype/property-bidi-whitespace: New file.
5180         * modules/unictype/property-bidi-non-spacing-mark: New file.
5181         * modules/unictype/property-bidi-boundary-neutral: New file.
5182         * modules/unictype/property-bidi-pdf: New file.
5183         * modules/unictype/property-bidi-embedding-or-override: New file.
5184         * modules/unictype/property-bidi-other-neutral: New file.
5185         * modules/unictype/property-hex-digit: New file.
5186         * modules/unictype/property-ascii-hex-digit: New file.
5187         * modules/unictype/property-ideographic: New file.
5188         * modules/unictype/property-unified-ideograph: New file.
5189         * modules/unictype/property-radical: New file.
5190         * modules/unictype/property-ids-binary-operator: New file.
5191         * modules/unictype/property-ids-trinary-operator: New file.
5192         * modules/unictype/property-zero-width: New file.
5193         * modules/unictype/property-space: New file.
5194         * modules/unictype/property-non-break: New file.
5195         * modules/unictype/property-iso-control: New file.
5196         * modules/unictype/property-format-control: New file.
5197         * modules/unictype/property-dash: New file.
5198         * modules/unictype/property-hyphen: New file.
5199         * modules/unictype/property-punctuation: New file.
5200         * modules/unictype/property-line-separator: New file.
5201         * modules/unictype/property-paragraph-separator: New file.
5202         * modules/unictype/property-quotation-mark: New file.
5203         * modules/unictype/property-sentence-terminal: New file.
5204         * modules/unictype/property-terminal-punctuation: New file.
5205         * modules/unictype/property-currency-symbol: New file.
5206         * modules/unictype/property-math: New file.
5207         * modules/unictype/property-other-math: New file.
5208         * modules/unictype/property-paired-punctuation: New file.
5209         * modules/unictype/property-left-of-pair: New file.
5210         * modules/unictype/property-combining: New file.
5211         * modules/unictype/property-composite: New file.
5212         * modules/unictype/property-decimal-digit: New file.
5213         * modules/unictype/property-numeric: New file.
5214         * modules/unictype/property-diacritic: New file.
5215         * modules/unictype/property-extender: New file.
5216         * modules/unictype/property-ignorable-control: New file.
5217         * modules/unictype/property-test: New file.
5218         * modules/unictype/property-byname: New file.
5219         * modules/unictype/property-all: New file.
5220         * modules/unictype/scripts: New file.
5221         * modules/unictype/scripts-all: New file.
5222         * modules/unictype/block-of: New file.
5223         * modules/unictype/block-test: New file.
5224         * modules/unictype/block-list: New file.
5225         * modules/unictype/block-all: New file.
5226         * modules/unictype/syntax-c-whitespace: New file.
5227         * modules/unictype/syntax-java-whitespace: New file.
5228         * modules/unictype/syntax-c-ident: New file.
5229         * modules/unictype/syntax-java-ident: New file.
5230         * modules/unictype/ctype-alnum: New file.
5231         * modules/unictype/ctype-alpha: New file.
5232         * modules/unictype/ctype-cntrl: New file.
5233         * modules/unictype/ctype-digit: New file.
5234         * modules/unictype/ctype-graph: New file.
5235         * modules/unictype/ctype-lower: New file.
5236         * modules/unictype/ctype-print: New file.
5237         * modules/unictype/ctype-punct: New file.
5238         * modules/unictype/ctype-space: New file.
5239         * modules/unictype/ctype-upper: New file.
5240         * modules/unictype/ctype-xdigit: New file.
5241         * modules/unictype/ctype-blank: New file.
5242         * lib/unictype/bidi_byname.c: New file.
5243         * lib/unictype/bidi_name.c: New file.
5244         * lib/unictype/bidi_of.c: New file.
5245         * lib/unictype/bidi_test.c: New file.
5246         * lib/unictype/bitmap.h: New file.
5247         * lib/unictype/block_test.c: New file.
5248         * lib/unictype/blocks.c: New file.
5249         * lib/unictype/categ_C.c: New file.
5250         * lib/unictype/categ_Cc.c: New file.
5251         * lib/unictype/categ_Cf.c: New file.
5252         * lib/unictype/categ_Cn.c: New file.
5253         * lib/unictype/categ_Co.c: New file.
5254         * lib/unictype/categ_Cs.c: New file.
5255         * lib/unictype/categ_L.c: New file.
5256         * lib/unictype/categ_Ll.c: New file.
5257         * lib/unictype/categ_Lm.c: New file.
5258         * lib/unictype/categ_Lo.c: New file.
5259         * lib/unictype/categ_Lt.c: New file.
5260         * lib/unictype/categ_Lu.c: New file.
5261         * lib/unictype/categ_M.c: New file.
5262         * lib/unictype/categ_Mc.c: New file.
5263         * lib/unictype/categ_Me.c: New file.
5264         * lib/unictype/categ_Mn.c: New file.
5265         * lib/unictype/categ_N.c: New file.
5266         * lib/unictype/categ_Nd.c: New file.
5267         * lib/unictype/categ_Nl.c: New file.
5268         * lib/unictype/categ_No.c: New file.
5269         * lib/unictype/categ_P.c: New file.
5270         * lib/unictype/categ_Pc.c: New file.
5271         * lib/unictype/categ_Pd.c: New file.
5272         * lib/unictype/categ_Pe.c: New file.
5273         * lib/unictype/categ_Pf.c: New file.
5274         * lib/unictype/categ_Pi.c: New file.
5275         * lib/unictype/categ_Po.c: New file.
5276         * lib/unictype/categ_Ps.c: New file.
5277         * lib/unictype/categ_S.c: New file.
5278         * lib/unictype/categ_Sc.c: New file.
5279         * lib/unictype/categ_Sk.c: New file.
5280         * lib/unictype/categ_Sm.c: New file.
5281         * lib/unictype/categ_So.c: New file.
5282         * lib/unictype/categ_Z.c: New file.
5283         * lib/unictype/categ_Zl.c: New file.
5284         * lib/unictype/categ_Zp.c: New file.
5285         * lib/unictype/categ_Zs.c: New file.
5286         * lib/unictype/categ_and.c: New file.
5287         * lib/unictype/categ_and_not.c: New file.
5288         * lib/unictype/categ_byname.c: New file.
5289         * lib/unictype/categ_name.c: New file.
5290         * lib/unictype/categ_none.c: New file.
5291         * lib/unictype/categ_of.c: New file.
5292         * lib/unictype/categ_or.c: New file.
5293         * lib/unictype/categ_test.c: New file.
5294         * lib/unictype/combining.c: New file.
5295         * lib/unictype/ctype_alnum.c: New file.
5296         * lib/unictype/ctype_alpha.c: New file.
5297         * lib/unictype/ctype_blank.c: New file.
5298         * lib/unictype/ctype_cntrl.c: New file.
5299         * lib/unictype/ctype_digit.c: New file.
5300         * lib/unictype/ctype_graph.c: New file.
5301         * lib/unictype/ctype_lower.c: New file.
5302         * lib/unictype/ctype_print.c: New file.
5303         * lib/unictype/ctype_punct.c: New file.
5304         * lib/unictype/ctype_space.c: New file.
5305         * lib/unictype/ctype_upper.c: New file.
5306         * lib/unictype/ctype_xdigit.c: New file.
5307         * lib/unictype/decdigit.c: New file.
5308         * lib/unictype/digit.c: New file.
5309         * lib/unictype/identsyntaxmap.h: New file.
5310         * lib/unictype/mirror.c: New file.
5311         * lib/unictype/numeric.c: New file.
5312         * lib/unictype/pr_alphabetic.c: New file.
5313         * lib/unictype/pr_ascii_hex_digit.c: New file.
5314         * lib/unictype/pr_bidi_arabic_digit.c: New file.
5315         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
5316         * lib/unictype/pr_bidi_block_separator.c: New file.
5317         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
5318         * lib/unictype/pr_bidi_common_separator.c: New file.
5319         * lib/unictype/pr_bidi_control.c: New file.
5320         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
5321         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
5322         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
5323         * lib/unictype/pr_bidi_european_digit.c: New file.
5324         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
5325         * lib/unictype/pr_bidi_left_to_right.c: New file.
5326         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
5327         * lib/unictype/pr_bidi_other_neutral.c: New file.
5328         * lib/unictype/pr_bidi_pdf.c: New file.
5329         * lib/unictype/pr_bidi_segment_separator.c: New file.
5330         * lib/unictype/pr_bidi_whitespace.c: New file.
5331         * lib/unictype/pr_byname.c: New file.
5332         * lib/unictype/pr_byname.gperf: New file.
5333         * lib/unictype/pr_combining.c: New file.
5334         * lib/unictype/pr_composite.c: New file.
5335         * lib/unictype/pr_currency_symbol.c: New file.
5336         * lib/unictype/pr_dash.c: New file.
5337         * lib/unictype/pr_decimal_digit.c: New file.
5338         * lib/unictype/pr_default_ignorable_code_point.c: New file.
5339         * lib/unictype/pr_deprecated.c: New file.
5340         * lib/unictype/pr_diacritic.c: New file.
5341         * lib/unictype/pr_extender.c: New file.
5342         * lib/unictype/pr_format_control.c: New file.
5343         * lib/unictype/pr_grapheme_base.c: New file.
5344         * lib/unictype/pr_grapheme_extend.c: New file.
5345         * lib/unictype/pr_grapheme_link.c: New file.
5346         * lib/unictype/pr_hex_digit.c: New file.
5347         * lib/unictype/pr_hyphen.c: New file.
5348         * lib/unictype/pr_id_continue.c: New file.
5349         * lib/unictype/pr_id_start.c: New file.
5350         * lib/unictype/pr_ideographic.c: New file.
5351         * lib/unictype/pr_ids_binary_operator.c: New file.
5352         * lib/unictype/pr_ids_trinary_operator.c: New file.
5353         * lib/unictype/pr_ignorable_control.c: New file.
5354         * lib/unictype/pr_iso_control.c: New file.
5355         * lib/unictype/pr_join_control.c: New file.
5356         * lib/unictype/pr_left_of_pair.c: New file.
5357         * lib/unictype/pr_line_separator.c: New file.
5358         * lib/unictype/pr_logical_order_exception.c: New file.
5359         * lib/unictype/pr_lowercase.c: New file.
5360         * lib/unictype/pr_math.c: New file.
5361         * lib/unictype/pr_non_break.c: New file.
5362         * lib/unictype/pr_not_a_character.c: New file.
5363         * lib/unictype/pr_numeric.c: New file.
5364         * lib/unictype/pr_other_alphabetic.c: New file.
5365         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
5366         * lib/unictype/pr_other_grapheme_extend.c: New file.
5367         * lib/unictype/pr_other_id_continue.c: New file.
5368         * lib/unictype/pr_other_id_start.c: New file.
5369         * lib/unictype/pr_other_lowercase.c: New file.
5370         * lib/unictype/pr_other_math.c: New file.
5371         * lib/unictype/pr_other_uppercase.c: New file.
5372         * lib/unictype/pr_paired_punctuation.c: New file.
5373         * lib/unictype/pr_paragraph_separator.c: New file.
5374         * lib/unictype/pr_pattern_syntax.c: New file.
5375         * lib/unictype/pr_pattern_white_space.c: New file.
5376         * lib/unictype/pr_private_use.c: New file.
5377         * lib/unictype/pr_punctuation.c: New file.
5378         * lib/unictype/pr_quotation_mark.c: New file.
5379         * lib/unictype/pr_radical.c: New file.
5380         * lib/unictype/pr_sentence_terminal.c: New file.
5381         * lib/unictype/pr_soft_dotted.c: New file.
5382         * lib/unictype/pr_space.c: New file.
5383         * lib/unictype/pr_terminal_punctuation.c: New file.
5384         * lib/unictype/pr_test.c: New file.
5385         * lib/unictype/pr_titlecase.c: New file.
5386         * lib/unictype/pr_unassigned_code_value.c: New file.
5387         * lib/unictype/pr_unified_ideograph.c: New file.
5388         * lib/unictype/pr_uppercase.c: New file.
5389         * lib/unictype/pr_variation_selector.c: New file.
5390         * lib/unictype/pr_white_space.c: New file.
5391         * lib/unictype/pr_xid_continue.c: New file.
5392         * lib/unictype/pr_xid_start.c: New file.
5393         * lib/unictype/pr_zero_width.c: New file.
5394         * lib/unictype/scripts.c: New file.
5395         * lib/unictype/sy_c_ident.c: New file.
5396         * lib/unictype/sy_c_whitespace.c: New file.
5397         * lib/unictype/sy_java_ident.c: New file.
5398         * lib/unictype/sy_java_whitespace.c: New file.
5399
5400         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
5401         Unicode 5.0.0.
5402         * lib/unictype/blocks.h: Likewise.
5403         * lib/unictype/categ_C.h: Likewise.
5404         * lib/unictype/categ_Cc.h: Likewise.
5405         * lib/unictype/categ_Cf.h: Likewise.
5406         * lib/unictype/categ_Cn.h: Likewise.
5407         * lib/unictype/categ_Co.h: Likewise.
5408         * lib/unictype/categ_Cs.h: Likewise.
5409         * lib/unictype/categ_L.h: Likewise.
5410         * lib/unictype/categ_Ll.h: Likewise.
5411         * lib/unictype/categ_Lm.h: Likewise.
5412         * lib/unictype/categ_Lo.h: Likewise.
5413         * lib/unictype/categ_Lt.h: Likewise.
5414         * lib/unictype/categ_Lu.h: Likewise.
5415         * lib/unictype/categ_M.h: Likewise.
5416         * lib/unictype/categ_Mc.h: Likewise.
5417         * lib/unictype/categ_Me.h: Likewise.
5418         * lib/unictype/categ_Mn.h: Likewise.
5419         * lib/unictype/categ_N.h: Likewise.
5420         * lib/unictype/categ_Nd.h: Likewise.
5421         * lib/unictype/categ_Nl.h: Likewise.
5422         * lib/unictype/categ_No.h: Likewise.
5423         * lib/unictype/categ_P.h: Likewise.
5424         * lib/unictype/categ_Pc.h: Likewise.
5425         * lib/unictype/categ_Pd.h: Likewise.
5426         * lib/unictype/categ_Pe.h: Likewise.
5427         * lib/unictype/categ_Pf.h: Likewise.
5428         * lib/unictype/categ_Pi.h: Likewise.
5429         * lib/unictype/categ_Po.h: Likewise.
5430         * lib/unictype/categ_Ps.h: Likewise.
5431         * lib/unictype/categ_S.h: Likewise.
5432         * lib/unictype/categ_Sc.h: Likewise.
5433         * lib/unictype/categ_Sk.h: Likewise.
5434         * lib/unictype/categ_Sm.h: Likewise.
5435         * lib/unictype/categ_So.h: Likewise.
5436         * lib/unictype/categ_Z.h: Likewise.
5437         * lib/unictype/categ_Zl.h: Likewise.
5438         * lib/unictype/categ_Zp.h: Likewise.
5439         * lib/unictype/categ_Zs.h: Likewise.
5440         * lib/unictype/categ_of.h: Likewise.
5441         * lib/unictype/combining.h: Likewise.
5442         * lib/unictype/ctype_alnum.h: Likewise.
5443         * lib/unictype/ctype_alpha.h: Likewise.
5444         * lib/unictype/ctype_blank.h: Likewise.
5445         * lib/unictype/ctype_cntrl.h: Likewise.
5446         * lib/unictype/ctype_digit.h: Likewise.
5447         * lib/unictype/ctype_graph.h: Likewise.
5448         * lib/unictype/ctype_lower.h: Likewise.
5449         * lib/unictype/ctype_print.h: Likewise.
5450         * lib/unictype/ctype_punct.h: Likewise.
5451         * lib/unictype/ctype_space.h: Likewise.
5452         * lib/unictype/ctype_upper.h: Likewise.
5453         * lib/unictype/ctype_xdigit.h: Likewise.
5454         * lib/unictype/decdigit.h: Likewise.
5455         * lib/unictype/digit.h: Likewise.
5456         * lib/unictype/mirror.h: Likewise.
5457         * lib/unictype/numeric.h: Likewise.
5458         * lib/unictype/pr_alphabetic.h: Likewise.
5459         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5460         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5461         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5462         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5463         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5464         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5465         * lib/unictype/pr_bidi_control.h: Likewise.
5466         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5467         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5468         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5469         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5470         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5471         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5472         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5473         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5474         * lib/unictype/pr_bidi_pdf.h: Likewise.
5475         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5476         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5477         * lib/unictype/pr_combining.h: Likewise.
5478         * lib/unictype/pr_composite.h: Likewise.
5479         * lib/unictype/pr_currency_symbol.h: Likewise.
5480         * lib/unictype/pr_dash.h: Likewise.
5481         * lib/unictype/pr_decimal_digit.h: Likewise.
5482         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5483         * lib/unictype/pr_deprecated.h: Likewise.
5484         * lib/unictype/pr_diacritic.h: Likewise.
5485         * lib/unictype/pr_extender.h: Likewise.
5486         * lib/unictype/pr_format_control.h: Likewise.
5487         * lib/unictype/pr_grapheme_base.h: Likewise.
5488         * lib/unictype/pr_grapheme_extend.h: Likewise.
5489         * lib/unictype/pr_grapheme_link.h: Likewise.
5490         * lib/unictype/pr_hex_digit.h: Likewise.
5491         * lib/unictype/pr_hyphen.h: Likewise.
5492         * lib/unictype/pr_id_continue.h: Likewise.
5493         * lib/unictype/pr_id_start.h: Likewise.
5494         * lib/unictype/pr_ideographic.h: Likewise.
5495         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5496         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5497         * lib/unictype/pr_ignorable_control.h: Likewise.
5498         * lib/unictype/pr_iso_control.h: Likewise.
5499         * lib/unictype/pr_join_control.h: Likewise.
5500         * lib/unictype/pr_left_of_pair.h: Likewise.
5501         * lib/unictype/pr_line_separator.h: Likewise.
5502         * lib/unictype/pr_logical_order_exception.h: Likewise.
5503         * lib/unictype/pr_lowercase.h: Likewise.
5504         * lib/unictype/pr_math.h: Likewise.
5505         * lib/unictype/pr_non_break.h: Likewise.
5506         * lib/unictype/pr_not_a_character.h: Likewise.
5507         * lib/unictype/pr_numeric.h: Likewise.
5508         * lib/unictype/pr_other_alphabetic.h: Likewise.
5509         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5510         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5511         * lib/unictype/pr_other_id_continue.h: Likewise.
5512         * lib/unictype/pr_other_id_start.h: Likewise.
5513         * lib/unictype/pr_other_lowercase.h: Likewise.
5514         * lib/unictype/pr_other_math.h: Likewise.
5515         * lib/unictype/pr_other_uppercase.h: Likewise.
5516         * lib/unictype/pr_paired_punctuation.h: Likewise.
5517         * lib/unictype/pr_paragraph_separator.h: Likewise.
5518         * lib/unictype/pr_pattern_syntax.h: Likewise.
5519         * lib/unictype/pr_pattern_white_space.h: Likewise.
5520         * lib/unictype/pr_private_use.h: Likewise.
5521         * lib/unictype/pr_punctuation.h: Likewise.
5522         * lib/unictype/pr_quotation_mark.h: Likewise.
5523         * lib/unictype/pr_radical.h: Likewise.
5524         * lib/unictype/pr_sentence_terminal.h: Likewise.
5525         * lib/unictype/pr_soft_dotted.h: Likewise.
5526         * lib/unictype/pr_space.h: Likewise.
5527         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5528         * lib/unictype/pr_titlecase.h: Likewise.
5529         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5530         * lib/unictype/pr_unified_ideograph.h: Likewise.
5531         * lib/unictype/pr_uppercase.h: Likewise.
5532         * lib/unictype/pr_variation_selector.h: Likewise.
5533         * lib/unictype/pr_white_space.h: Likewise.
5534         * lib/unictype/pr_xid_continue.h: Likewise.
5535         * lib/unictype/pr_xid_start.h: Likewise.
5536         * lib/unictype/pr_zero_width.h: Likewise.
5537         * lib/unictype/scripts.h: Likewise.
5538         * lib/unictype/scripts_byname.gperf: Likewise.
5539         * lib/unictype/sy_c_ident.h: Likewise.
5540         * lib/unictype/sy_c_whitespace.h: Likewise.
5541         * lib/unictype/sy_java_ident.h: Likewise.
5542         * lib/unictype/sy_java_whitespace.h: Likewise.
5543
5544         * lib/unictype/Makefile: New file.
5545         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
5546         glibc.
5547         * lib/unictype/3level.h: New file, copied from glibc.
5548         * lib/unictype/3levelbit.h: New file.
5549
5550 2007-11-11  Bruno Haible  <bruno@clisp.org>
5551
5552         * modules/gperf: New file.
5553         * modules/iconv_open (Depends-on): Add it.
5554         (Makefile.am): Remove the GPERF definition.
5555
5556 2007-11-11  Bruno Haible  <bruno@clisp.org>
5557
5558         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
5559         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
5560
5561 2007-11-11  Bruno Haible  <bruno@clisp.org>
5562
5563         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
5564         (usage): Remove function.
5565
5566 2007-11-11  Bruno Haible  <bruno@clisp.org>
5567
5568         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
5569         gl_FUNC_CEILF_LIBS.
5570         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
5571         gl_FUNC_CEIL_LIBS.
5572         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
5573         gl_FUNC_CEILL_LIBS.
5574         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
5575         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
5576         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
5577
5578 2007-11-11  Bruno Haible  <bruno@clisp.org>
5579
5580         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
5581         roundf were declared but do not exist on functions.
5582         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
5583         roundl were declared but do not exist on functions.
5584         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
5585         HAVE_FLOORL_AND_CEILL, respectively.
5586         Needed for Sun C on Solaris 10.
5587
5588 2007-11-11  Bruno Haible  <bruno@clisp.org>
5589
5590         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
5591         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
5592         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
5593         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
5594         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
5595         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
5596         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
5597         HAVE_DECL_ROUNDF.
5598         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
5599         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
5600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
5601         of HAVE_DECL_ROUND*.
5602         * modules/math (Makefile.am): Update.
5603
5604 2007-11-10  Bruno Haible  <bruno@clisp.org>
5605
5606         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
5607         ptrdiff_t as m4/intl.m4.
5608
5609 2007-11-10  Jim Meyering  <meyering@redhat.com>
5610
5611         Avoid link failure for the argmatch test.
5612         * tests/test-argmatch.c (usage): Define function to avoid a link
5613         failure: argmatch_die requires a usage function.
5614
5615 2007-11-09  Bruno Haible  <bruno@clisp.org>
5616
5617         * doc/functions/snprintf.texi: Mention BeOS deficiency.
5618         * doc/functions/vsnprintf.texi: Likewise.
5619         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
5620         with a size argument < 2.
5621
5622 2007-11-09  Bruno Haible  <bruno@clisp.org>
5623
5624         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
5625         buffer. Fixes an inefficiency introduced on 2007-11-03.
5626
5627 2007-11-09  Bruno Haible  <bruno@clisp.org>
5628
5629         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
5630         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
5631
5632 2007-11-08  Jim Meyering  <meyering@redhat.com>
5633
5634         Change cache variable name prefix "jm_" to "gl_" everywhere.
5635         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
5636         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
5637         * m4/uptime.m4: s/gl_/jm_/
5638
5639 2007-11-07  Bruno Haible  <bruno@clisp.org>
5640
5641         Update to GNU gettext 0.17.
5642         * m4/intl.m4: Update to GNU gettext 0.17.
5643         * m4/po.m4: Likewise.
5644         * modules/gettext (Files): Remove m4/ulonglong.m4.
5645         (configure.ac): Require gettext infrastructure from version 0.17.
5646
5647 2007-11-06  Bruno Haible  <bruno@clisp.org>
5648
5649         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
5650         symbolic values are not defined in a public header.
5651         * lib/freadable.c (freadable) [QNX]: Likewise.
5652         * lib/freadahead.c (freadahead) [QNX]: Likewise.
5653         * lib/freading.c (freading) [QNX]: Likewise.
5654         * lib/fseterr.c (fseterr) [QNX]: Likewise.
5655         * lib/fwritable.c (fwritable) [QNX]: Likewise.
5656         * lib/fwriting.c (fwriting) [QNX]: Likewise.
5657         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
5658         Reported by Alain Magloire.
5659
5660         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
5661
5662 2007-11-05  Bruno Haible  <bruno@clisp.org>
5663
5664         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
5665         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
5666         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
5667         Reported by Eric Blake.
5668
5669 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5670             Bruno Haible  <bruno@clisp.org>
5671
5672         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
5673         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
5674         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
5675         (malloc): Undefine also before including <stdlib.h>.
5676         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
5677         Needed on OSF/1 4.0.
5678
5679 2007-11-05  Jim Meyering  <meyering@redhat.com>
5680
5681         git-version-gen: sync from coreutils.
5682         * build-aux/git-version-gen: Add comments.
5683         Change the first '-' to '.' in the snapshot version string,
5684         e.g., 6.9-377-08144 -> 6.9.377-08144
5685         Remove first parameter.
5686         Don't declare a version "-dirty" merely because a time
5687         stamp has changed.
5688
5689 2007-11-04  Bruno Haible  <bruno@clisp.org>
5690
5691         * lib/lock.h: Protect all macro definitions containing an 'if'
5692         statement through a "do { ... } while (0)".
5693         * lib/tls.h: Likewise.
5694
5695 2007-11-04  Bruno Haible  <bruno@clisp.org>
5696
5697         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
5698
5699 2007-11-04  Bruno Haible  <bruno@clisp.org>
5700
5701         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
5702         * modules/fprintf-posix (Depends-on): Add nocrash.
5703         * modules/snprintf-posix (Depends-on): Likewise.
5704         * modules/sprintf-posix (Depends-on): Likewise.
5705         * modules/vasnprintf-posix (Depends-on): Likewise.
5706         * modules/vasprintf-posix (Depends-on): Likewise.
5707         * modules/vfprintf-posix (Depends-on): Likewise.
5708         * modules/vsnprintf-posix (Depends-on): Likewise.
5709         * modules/vsprintf-posix (Depends-on): Likewise.
5710         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5711         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5712         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5713         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5714         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5715         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5716         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5717
5718 2007-11-04  Bruno Haible  <bruno@clisp.org>
5719
5720         * modules/nocrash: New file.
5721         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
5722         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
5723
5724 2007-11-04  Bruno Haible  <bruno@clisp.org>
5725
5726         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
5727         precision handling.
5728         * tests/test-vasprintf-posix.c (test_function): Likewise.
5729         * tests/test-snprintf-posix.h (test_function): Likewise.
5730         * tests/test-sprintf-posix.h (test_function): Likewise.
5731
5732         Fix *printf behaviour for large precisions on mingw and BeOS.
5733         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
5734         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
5735         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
5736         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5737         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5738         gl_PRINTF_PRECISION and test its result. Invoke
5739         gl_PREREQ_VASNPRINTF_PRECISION.
5740         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5741         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5742         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5743         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5744         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5745         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5746         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5747         * doc/functions/fprintf.texi: Update.
5748         * doc/functions/printf.texi: Update.
5749         * doc/functions/snprintf.texi: Update.
5750         * doc/functions/sprintf.texi: Update.
5751         * doc/functions/vfprintf.texi: Update.
5752         * doc/functions/vprintf.texi: Update.
5753         * doc/functions/vsnprintf.texi: Update.
5754         * doc/functions/vsprintf.texi: Update.
5755
5756 2007-11-04  Bruno Haible  <bruno@clisp.org>
5757
5758         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
5759
5760 2007-11-04  Bruno Haible  <bruno@clisp.org>
5761
5762         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
5763         Reported by Sylvain Beucler <beuc@gnu.org>.
5764
5765 2007-11-03  Bruno Haible  <bruno@clisp.org>
5766
5767         * tests/test-fprintf-posix2.sh: New file.
5768         * tests/test-fprintf-posix2.c: New file.
5769         * modules/fprintf-posix-tests (Files): Add them.
5770         (TESTS): Add test-fprintf-posix2.sh.
5771         (configure.ac): Check for getrlimit and setrlimit.
5772         (check_PROGRAMS): Add test-fprintf-posix2.
5773
5774         * tests/test-printf-posix2.sh: New file.
5775         * tests/test-printf-posix2.c: New file.
5776         * modules/printf-posix-tests (Files): Add them.
5777         (TESTS): Add test-printf-posix2.sh.
5778         (configure.ac): Check for getrlimit and setrlimit.
5779         (check_PROGRAMS): Add test-printf-posix2.
5780
5781         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
5782         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
5783         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
5784         (decode_double): New function, copied from decode_long_double.
5785         (scale10_round_decimal_decoded): New function, extracted from
5786         scale10_round_decimal_long_double.
5787         (scale10_round_decimal_long_double): Use it.
5788         (scale10_round_decimal_double): New function.
5789         (floorlog10): New function.
5790         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
5791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
5792         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5793         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5794         gl_PRINTF_ENOMEM and test its result. Invoke
5795         gl_PREREQ_VASNPRINTF_ENOMEM.
5796         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5797         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5798         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5799         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5800         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5801         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5802         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5803         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
5804         * modules/snprintf-posix (Depends-on): Likewise.
5805         * modules/sprintf-posix (Depends-on): Likewise.
5806         * modules/vasnprintf-posix (Depends-on): Likewise.
5807         * modules/vasprintf-posix (Depends-on): Likewise.
5808         * modules/vfprintf-posix (Depends-on): Likewise.
5809         * modules/vsnprintf-posix (Depends-on): Likewise.
5810         * modules/vsprintf-posix (Depends-on): Likewise.
5811         * doc/functions/fprintf.texi: Update.
5812         * doc/functions/printf.texi: Update.
5813         * doc/functions/snprintf.texi: Update.
5814         * doc/functions/sprintf.texi: Update.
5815         * doc/functions/vfprintf.texi: Update.
5816         * doc/functions/vprintf.texi: Update.
5817         * doc/functions/vsnprintf.texi: Update.
5818         * doc/functions/vsprintf.texi: Update.
5819
5820 2007-11-03  Bruno Haible  <bruno@clisp.org>
5821
5822         * modules/frexp-nolibm-tests: New file.
5823
5824         * modules/frexp-nolibm: New file.
5825         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
5826
5827 2007-11-03  Bruno Haible  <bruno@clisp.org>
5828
5829         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
5830         value is C99 compliant.
5831         Needed for OSF/1 5.1.
5832
5833 2007-11-03  Bruno Haible  <bruno@clisp.org>
5834
5835         Fix out-of-memory handling of vasnprintf.
5836         * lib/printf-parse.c: Include <errno.h>.
5837         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
5838         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
5839         is already set.
5840
5841 2007-11-02  Eric Blake  <ebb9@byu.net>
5842
5843         Fix tests on cygwin.
5844         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
5845
5846 2007-11-01  Bruno Haible  <bruno@clisp.org>
5847
5848         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
5849         warning.
5850         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
5851         needed for POSIX compatibility.
5852
5853 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5854
5855         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
5856         for compatibility with GNU.
5857
5858 2007-11-01  Bruno Haible  <bruno@clisp.org>
5859
5860         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
5861         (putenv): Renamed from rpl_putenv. Change argument type from
5862         'const char *' to 'char *'.
5863         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
5864         of defining putenv in config.h, just set REPLACE_PUTENV.
5865         * modules/putenv (Depends-on): Add stdlib.
5866         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5867         (Include): Use <stdlib.h>.
5868         * lib/stdlib.in.h (putenv): New declaration.
5869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
5870         REPLACE_PUTENV.
5871         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
5872         REPLACE_PUTENV.
5873         Needed for MacOS X 10.5.0.
5874         Reported by Peter O'Gorman <peter@pogma.com>.
5875
5876 2007-11-01  Jim Meyering  <meyering@redhat.com>
5877
5878         Treat an empty date string exactly like "0".
5879         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
5880         if the remaining date string (to be parsed) is empty, use "0".
5881         Reported by Mischa Molhoek and discussed in this thread:
5882         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
5883
5884 2007-10-31  Bruno Haible  <bruno@clisp.org>
5885
5886         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
5887         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
5888         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
5889         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
5890         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
5891         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
5892
5893 2007-10-31  Bruno Haible  <bruno@clisp.org>
5894
5895         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
5896         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
5897         (AC_TYPE_LONG_LONG_INT): Use it.
5898         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
5899         it as well.
5900         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
5901         to m4/longlong.m4.
5902         * modules/stdint (Files): Remove m4/ulonglong.m4.
5903         * modules/strtoull (Files): Use m4/longlong.m4 instead of
5904         m4/ulonglong.m4.
5905         * modules/strtoumax (Files): Likewise.
5906
5907 2007-10-30  Bruno Haible  <bruno@clisp.org>
5908
5909         * modules/xvasprintf-posix: New file.
5910         Suggested by Eric Blake.
5911
5912 2007-10-30  Bruno Haible  <bruno@clisp.org>
5913
5914         * modules/xprintf-posix-tests: New file.
5915         * tests/test-xprintf-posix.sh: New file.
5916         * tests/test-xprintf-posix.c: New file.
5917         * tests/test-xfprintf-posix.c: New file.
5918
5919         * modules/xprintf-posix: New file.
5920
5921 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5922
5923         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
5924         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
5925         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
5926
5927 2007-10-29  Bruno Haible  <bruno@clisp.org>
5928
5929         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
5930         contain the special marker '_cv_'.
5931         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5932         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5933         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5934         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5935         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5936         Reported by Ralf Wildenhues.
5937
5938 2007-10-29  Bruno Haible  <bruno@clisp.org>
5939
5940         * gnulib-tool (func_import): When --lgpl is not specified, set
5941         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
5942         GPLv3.
5943         Reported by Simon Josefsson.
5944
5945 2007-10-28  Bruno Haible  <bruno@clisp.org>
5946
5947         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
5948         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
5949         HAVE_DECL_ISFINITE.
5950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
5951         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
5952         HAVE_DECL_ISFINITE.
5953
5954 2007-10-28  Bruno Haible  <bruno@clisp.org>
5955
5956         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
5957         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
5958
5959 2007-10-28  Bruno Haible  <bruno@clisp.org>
5960
5961         Fix link errors with Sun C 5.0 on Solaris 10.
5962         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
5963         function is declared but not present in the compiler's libm.
5964         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5965         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5966         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
5967         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
5968         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
5969         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
5970         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
5971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
5972         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
5973         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
5974         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
5975         HAVE_DECL_FLOORL.
5976
5977 2007-10-28  Bruno Haible  <bruno@clisp.org>
5978
5979         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
5980         gl_FUNC_FLOORL. Cache the result.
5981         (gl_FUNC_FLOORL): Use it.
5982         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
5983         gl_FUNC_CEILL. Cache the result.
5984         (gl_FUNC_CEILL): Use it.
5985
5986         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
5987         gl_FUNC_FLOOR. Cache the result.
5988         (gl_FUNC_FLOOR): Use it.
5989         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
5990         gl_FUNC_CEIL. Cache the result.
5991         (gl_FUNC_CEIL): Use it.
5992
5993         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
5994         gl_FUNC_FLOORF. Cache the result.
5995         (gl_FUNC_FLOORF): Use it.
5996         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
5997         gl_FUNC_CEILF. Cache the result.
5998         (gl_FUNC_CEILF): Use it.
5999
6000 2007-10-28  Bruno Haible  <bruno@clisp.org>
6001
6002         * gnulib-tool: Allow specifying the LGPL version number through
6003         --lgpl=2 or --lgpl=3.
6004         (func_usage): Document --lgpl with argument.
6005         Handle --lgpl=... arguments.
6006         (func_import): Recognize also gl_LGPL calls with an argument. When
6007         --lgpl=2 is used and the module's license is just LGPL, report an
6008         error. Set sed_transform_lib_file according to the lgpl variable. In
6009         the generated files, use --lgpl or gl_LGPL invocations with argument,
6010         if necessary.
6011         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
6012         an LGPv2+ license.
6013         * doc/gnulib-tool.texi (Modified imports): Update explanation of
6014         gl_LGPL macro.
6015
6016 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6017             Bruno Haible  <bruno@clisp.org>
6018
6019         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
6020         (u16_uctomb_aux): Likewise.
6021         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
6022         !HAVE_INLINE.
6023         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
6024
6025 2007-10-28  Bruno Haible  <bruno@clisp.org>
6026
6027         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
6028         Invoke AM_GETTEXT_OPTION if it exists.
6029         * modules/vasprintf: Likewise.
6030         * modules/verror: Likewise.
6031         * modules/xprintf: Likewise.
6032         * modules/xvasprintf: Likewise.
6033
6034 2007-10-27  Ben Pfaff  <blp@gnu.org>
6035
6036         * lib/math.in.h: Define isfinite macro and prototypes for
6037         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
6038         implementations.
6039         * m4/math_h.m4: New substitutions for isfinite module.
6040         * lib/isfinite.c: New file.
6041         * m4/isfinite.m4: New file.
6042         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
6043         * modules/isfinite: New file.
6044         * modules/isfinite-tests: New file.
6045         * tests/tests-isfinite.c: New file.
6046         * doc/functions/isfinite.texi: Mention isfinite module.
6047         * MODULES.html.sh: Mention new module.
6048
6049 2007-10-27  Ben Pfaff  <blp@gnu.org>
6050
6051         Ralf Wildenhues reported that Tru64 4.0D declares the round
6052         functions but does not have definitions.
6053         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
6054         cannot be found in any library, set the output variable to
6055         "missing" instead of "".
6056         * m4/round.m4: Also use our substitute if we cannot find round in
6057         any library, even if it is declared.
6058         * m4/roundf.m4: Likewise for roundf.
6059         * m4/roundl.m4: Likewise for roundl.
6060         * lib/math.in.h: Undefine roundf, round, roundl before defining
6061         their replacements, to allow for hypothetical systems where these
6062         may be defined as macros but not available in libraries.
6063
6064 2007-10-27  Bruno Haible  <bruno@clisp.org>
6065
6066         * doc/gnulib.texi: Invoke @firstparagraphindent.
6067         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
6068         changes in gnulib.
6069         (Source changes): New section.
6070
6071 2007-10-26  Bruno Haible  <bruno@clisp.org>
6072
6073         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
6074         borrowed from autoconf.
6075
6076 2007-10-26  Bruno Haible  <bruno@clisp.org>
6077
6078         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
6079         strerror returned the empty string. Needed on HP-UX 11.00.
6080
6081 2007-10-24  Micah Cowan  <micah@cowan.name>
6082
6083         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
6084         * build-aux/bootstrap: Remove support for now-unnecessary option,
6085         --cvs-user, and envvars CVS_USER, CVS_RSH.
6086
6087 2007-10-24  Jim Meyering  <meyering@redhat.com>
6088
6089         Avoid diagnostics from sha1sum when there is no cached checksum.
6090         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
6091         if the po.s1 file hasn't been created yet.
6092
6093         * build-aux/bootstrap: Sync from coreutils:
6094         2007-10-24  Jim Meyering  <meyering@redhat.com>
6095         Get gnulib from the git repository, not from an obsolete cvs one.
6096         * build-aux/bootstrap: Suggestion from Micah Cowan.
6097         2007-10-04  Jim Meyering  <jim@meyering.net>
6098         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
6099         (update_po_files): Work also when there are no .po files in po/.
6100
6101 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6102
6103         * README: Append ".git" to git and cg examples.
6104         Problem reported by Benoit Sigoure.
6105
6106 2007-10-23  Micah Cowan  <micah@cowan.name>
6107
6108         * users.txt: Add wget.
6109
6110 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6111
6112         Fix linking of some unistdio tests on FreeBSD.
6113         * modules/unistdio/u16-vsnprintf-tests
6114         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
6115         * modules/unistdio/u16-vsprintf-tests
6116         (test_u16_vsnprintf1_LDADD): Likewise.
6117         * modules/unistdio/u32-vsnprintf-tests
6118         (test_u32_vsnprintf1_LDADD): Likewise.
6119         * modules/unistdio/u32-vsprintf-tests
6120         (test_u32_vsprintf1_LDADD): Likewise.
6121         * modules/unistdio/u8-vsnprintf-tests
6122         (test_u8_vsnprintf1_LDADD): Likewise.
6123         * modules/unistdio/u8-vsprintf-tests
6124         (test_u8_vsprintf1_LDADD): Likewise.
6125         * modules/unistdio/ulc-vsnprintf-tests
6126         (test_ulc_vsnprintf1_LDADD): Likewise.
6127         * modules/unistdio/ulc-vsprintf-tests
6128         (test_ulc_vsprintf1_LDADD): Likewise.
6129
6130         Fix linking of some uniconv tests on FreeBSD.
6131         * modules/uniconv/u16-conv-from-enc-tests
6132         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
6133         * modules/uniconv/u16-conv-to-enc-tests
6134         (test_u16_conv_to_enc_LDADD): Likewise.
6135         * modules/uniconv/u16-strconv-from-enc-tests
6136         (test_u16_strconv_from_enc_LDADD): Likewise.
6137         * modules/uniconv/u16-strconv-to-enc-tests
6138         (test_u16_strconv_to_enc_LDADD): Likewise.
6139         * modules/uniconv/u32-conv-from-enc-tests
6140         (test_u32_conv_from_enc_LDADD): Likewise.
6141         * modules/uniconv/u32-conv-to-enc-tests
6142         (test_u32_conv_to_enc_LDADD): Likewise.
6143         * modules/uniconv/u32-strconv-from-enc-tests
6144         (test_u32_strconv_from_enc_LDADD): Likewise.
6145         * modules/uniconv/u32-strconv-to-enc-tests
6146         (test_u32_strconv_to_enc_LDADD): Likewise.
6147         * modules/uniconv/u8-conv-from-enc-tests
6148         (test_u8_conv_from_enc_LDADD): Likewise.
6149         * modules/uniconv/u8-conv-to-enc-tests
6150         (test_u8_conv_to_enc_LDADD): Likewise.
6151         * modules/uniconv/u8-strconv-from-enc-tests
6152         (test_u8_strconv_from_enc_LDADD): Likewise.
6153         * modules/uniconv/u8-strconv-to-enc-tests
6154         (test_u8_strconv_to_enc_LDADD): Likewise.
6155
6156 2007-10-22  Bruno Haible  <bruno@clisp.org>
6157
6158         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
6159         size.
6160
6161 2007-10-22  Eric Blake  <ebb9@byu.net>
6162
6163         Tweak x*printf documentation.
6164         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
6165         variable name and comments.
6166         Suggested by Bruno Haible.
6167
6168 2007-10-22  Bruno Haible  <bruno@clisp.org>
6169
6170         * lib/acl.c (copy_acl): Fix file name in comment.
6171
6172 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
6173
6174         Fix Tru64 problem with stdbool.h.
6175         * lib/stdbool.in.h (false, true):
6176         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
6177         Don't declare as an enum in this situation; it runs afoul of Tru64.
6178         Problem reported by Steven M. Schweda in
6179         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
6180
6181 2007-10-22  Eric Blake  <ebb9@byu.net>
6182
6183         Also wrap vf?printf.
6184         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
6185         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
6186         (xvprintf, xvfprintf): New functions.
6187
6188 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6189
6190         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
6191         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
6192
6193         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
6194         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
6195
6196 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
6197
6198         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
6199         by Bruno Haible.
6200
6201 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6202
6203         * lib/getloadavg.c
6204         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
6205         Undef `sys' after including sys/table.h, for Tru64 4.0D.
6206
6207         * tests/test-i-ring.c: Work for C89.
6208
6209 2007-10-22  Bruno Haible  <bruno@clisp.org>
6210
6211         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
6212         -1u, in preprocessor expression, so that we don't test for the bug
6213         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
6214         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
6215
6216 2007-10-22  Eric Blake  <ebb9@byu.net>
6217
6218         * tests/test-yesno.sh: Silence stderr during test.
6219
6220 2007-10-22  Simon Josefsson  <simon@josefsson.org>
6221
6222         * modules/crypto/gc-camellia: New file.
6223
6224         * m4/gc-camellia.m4: New file.
6225
6226         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
6227
6228         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
6229
6230 2007-10-22  Simon Josefsson  <simon@josefsson.org>
6231
6232         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
6233         --help to stdout.  Reported by sms@antinode.org (Steven
6234         M. Schweda).
6235
6236 2007-10-22  Simon Josefsson  <simon@josefsson.org>
6237
6238         * users.txt: Fix link to libksba.
6239
6240 2007-10-21  Ben Pfaff  <blp@gnu.org>
6241
6242         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
6243         round.c roundf implementation that depends on floorf and ceilf to
6244         be tested unconditionally.
6245
6246 2007-10-21  Ben Pfaff  <blp@gnu.org>
6247
6248         * m4/check-libm-func.m4: Removed.
6249         * m4/check-math-lib.m4: New file.
6250         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
6251         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
6252         definition and lack of AC_LIBOBJ([roundf]).
6253         * m4/roundl.m4: Ditto, and similarly for roundl.
6254         * modules/round: Reference new m4 file.
6255         * modules/roundf: Ditto.
6256         * modules/roundl: Ditto.
6257         * tests/test-round2.c (main): Use ROUND instead of round.
6258         Bug report from Bruno Haible.
6259
6260 2007-10-21  Bruno Haible  <bruno@clisp.org>
6261
6262         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
6263         context.
6264
6265 2007-10-21  Bruno Haible  <bruno@clisp.org>
6266
6267         * tests/test-wcwidth.c (main): Allow negative result for some control
6268         characters.
6269
6270         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
6271         Needed on OSF/1 5.1.
6272
6273 2007-10-21  Bruno Haible  <bruno@clisp.org>
6274
6275         * tests/test-floorf1.c: Include isnanf.h.
6276         (main): Use isnanf() instead of isnan().
6277         * tests/test-ceilf1.c: Include isnanf.h.
6278         (main): Use isnanf() instead of isnan().
6279         * tests/test-truncf1.c: Include isnanf.h.
6280         (main): Use isnanf() instead of isnan().
6281         * tests/test-roundf1.c: Include isnanf.h.
6282         (main): Use isnanf() instead of isnan().
6283
6284 2007-10-21  Eric Blake  <ebb9@byu.net>
6285
6286         * users.txt: Update URL for m4.
6287
6288 2007-10-21  Bruno Haible  <bruno@clisp.org>
6289
6290         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
6291
6292 2007-10-21  Bruno Haible  <bruno@clisp.org>
6293
6294         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
6295         Git's management files if the CVS files are not present.
6296
6297 2007-10-20  Bruno Haible  <bruno@clisp.org>
6298
6299         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
6300         gcc-3.4.x.
6301
6302 2007-10-20  Ben Pfaff  <blp@gnu.org>
6303
6304         * lib/math.in.h: Declare round, roundf, roundl if we are providing
6305         implementations.
6306         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
6307         * lib/round.c: New file.
6308         * lib/roundf.c: New file.
6309         * lib/roundl.c: New file.
6310         * m4/round.m4: New file.
6311         * m4/roundf.m4: New file.
6312         * m4/roundl.m4: New file.
6313         * m4/check-libm-func-m4: New file.
6314         * modules/math: Replace round, roundf, roundl related @VARS@ in
6315         math.in.h.
6316         * modules/round: New file.
6317         * modules/round-tests: New file.
6318         * modules/roundf: New file.
6319         * modules/roundf-tests: New file.
6320         * modules/roundl: New file.
6321         * modules/roundl-tests: New file.
6322         * tests/test-round1.c: New file.
6323         * tests/test-round2.c: New file.
6324         * tests/test-roundf1.c: New file.
6325         * tests/test-roundf2.c: New file.
6326         * tests/test-roundl.c: New file.
6327         * doc/functions/round.texi: Mention round module.
6328         * doc/functions/roundf.texi: Mention roundf module.
6329         * doc/functions/roundl.texi: Mention roundl module.
6330         * MODULES.html.sh: Mention new modules.
6331         Thanks to Bruno Haible for suggestions.
6332
6333 2007-10-20  Jim Meyering  <meyering@redhat.com>
6334
6335         * lib/xprintf.c: Include <config.h> unconditionally.
6336
6337         Change xprintf's license to GPL.
6338         * modules/xprintf (License): s/LGPL/GPL/, since this module
6339         depends on modules (exit and exitfail) which are GPL.
6340         Suggestion from Bruno Haible.
6341
6342         xprintf fixes.
6343         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
6344         Use a clearer diagnostic.
6345         Patch from Bruno Haible.
6346
6347 2007-10-20  Bruno Haible  <bruno@clisp.org>
6348
6349         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
6350         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
6351         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6352
6353 2007-10-20  Bruno Haible  <bruno@clisp.org>
6354
6355         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
6356         precision in the comparison result > x - 1 or similar.
6357         * tests/test-ceilf2.c (correct_result_p): Likewise.
6358         * tests/test-truncf2.c (correct_result_p): Likewise.
6359         * tests/test-trunc2.c (correct_result_p): Likewise.
6360         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6361
6362 2007-10-20  Bruno Haible  <bruno@clisp.org>
6363
6364         * modules/ceil: New file.
6365         * m4/ceil.m4: New file.
6366         * doc/functions/ceil.texi: Mention the 'ceil' module.
6367
6368 2007-10-20  Bruno Haible  <bruno@clisp.org>
6369
6370         * modules/floor: New file.
6371         * m4/floor.m4: New file.
6372         * doc/functions/floor.texi: Mention the 'floor' module.
6373
6374 2007-10-20  Bruno Haible  <bruno@clisp.org>
6375
6376         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
6377         of %a.
6378         * modules/floorf-tests (Depends-on): Likewise.
6379         * modules/truncf-tests (Depends-on): Likewise.
6380         * modules/trunc-tests (Depends-on): Likewise.
6381         Reported by Ben Pfaff.
6382
6383 2007-10-19  Jim Meyering  <meyering@redhat.com>
6384
6385         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
6386         Don't bother testing specific errno values.  Just test ferror.
6387
6388         New module: xprintf
6389         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
6390
6391 2007-10-19  Bruno Haible  <bruno@clisp.org>
6392
6393         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
6394         syntax.
6395         * modules/javaexec (Makefile.am): Likewise.
6396         * modules/relocatable-prog (Makefile.am): Likewise.
6397         Suggested by Jim Meyering.
6398
6399 2007-10-18  Bruno Haible  <bruno@clisp.org>
6400
6401         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
6402         Reported by Jim Meyering.
6403
6404 2007-10-18  Eric Blake  <ebb9@byu.net>
6405
6406         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
6407
6408 2007-10-18  Bruno Haible  <bruno@clisp.org>
6409
6410         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
6411         the format string into writable memory. Needed in Fortify conditions.
6412
6413 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
6414             Bruno Haible  <bruno@clisp.org>
6415
6416         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
6417         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
6418         * modules/trim (Depends-on): Add mbchar.
6419         (configure.ac): Add gl_FUNC_MBRTOWC.
6420         (Makefile.am): Augment lib_SOURCES.
6421
6422 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
6423
6424         Modify glob.c to use fstatat and dirfd, to simplify it.
6425         Suggested by Eric Blake.
6426         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
6427         Don't include <stdbool.h>; not used.
6428         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
6429         (link_exists_p): Simplify implementation, since we can now assume
6430         dirfd and fstatat.
6431         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
6432
6433 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6434
6435         * gnulib-tool (func_get_dependencies): Fix sed script to
6436         match only tests.
6437
6438 2007-10-17  Bruno Haible  <bruno@clisp.org>
6439
6440         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
6441         allow locale names without encoding suffix.
6442         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6443         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6444
6445 2007-10-16  Bruno Haible  <bruno@clisp.org>
6446
6447         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
6448         * lib/getgroups.c (getgroups): Likewise.
6449         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
6450
6451 2007-10-16  Bruno Haible  <bruno@clisp.org>
6452
6453         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
6454         * modules/malloc-posix (License): Likewise.
6455         * modules/realloc-posix (License): Likewise.
6456         * modules/calloc-posix (License): Likewise.
6457         * modules/intprops (License): Change from GPL to LGPL, with
6458         Paul Eggert's approval.
6459
6460 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6461
6462         Merge glibc changes into lib/glob.c.
6463
6464         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
6465         2007-10-15 04:59:03 UTC.  Here are the changes:
6466
6467         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
6468
6469         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
6470
6471         * lib/glob.c: Add some branch prediction throughout.
6472
6473         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
6474
6475         [BZ #5103]
6476         * lib/glob.c (glob): Recognize patterns starting \/.
6477
6478         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
6479
6480         [BZ #3996]
6481         * lib/glob.c (attribute_hidden): Define if not defined.
6482         (glob): Unescape dirname, filename or username when needed and not
6483         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
6484         is NULL.  Handle unescaped [ in pattern without closing ].
6485         Don't pass GLOB_CHECK down to recursive glob for directories.
6486         (__glob_pattern_type): New function.
6487         (__glob_pattern_p): Implement using __glob_pattern_type.
6488         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
6489         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
6490         Remove unreachable code.
6491
6492         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
6493
6494         * lib/glob.c (glob_in_dir): Add some comments and asserts to
6495         explain why there are no leaks.
6496
6497         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
6498
6499         [BZ #3253]
6500         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
6501         time, rather allocate increasingly bigger arrays of pointers, if
6502         possible with alloca, if too large with malloc.
6503
6504 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6505
6506         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
6507         Problem reported by H.Merijn Brand in
6508         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
6509         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
6510         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
6511
6512 2007-10-15  Bruno Haible  <bruno@clisp.org>
6513
6514         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
6515         with explicit rpl_ prefix.
6516         * lib/fopen.c (fopen): Likewise.
6517         * lib/freopen.c (freopen): Likewise.
6518         * lib/iconv.c (iconv): Likewise.
6519         * lib/iconv_close.c (iconv_close): Likewise.
6520
6521 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6522
6523         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
6524
6525 2007-10-15  Bruno Haible  <bruno@clisp.org>
6526
6527         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
6528         <stddef.h> instead of <stdlib.h> since we only need NULL.
6529         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6530
6531 2007-10-15  Bruno Haible  <bruno@clisp.org>
6532
6533         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
6534         Replace paragraph talking about LIBOBJS.
6535         Reported by Colin Watson <cjwatson@debian.org>.
6536
6537 2007-10-15  Bruno Haible  <bruno@clisp.org>
6538
6539         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
6540         <stdlib.h> before using NULL.
6541
6542 2007-10-15  Simon Josefsson  <simon@josefsson.org>
6543
6544         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
6545         Reported by Albert Chin <china@thewrittenword.com>.
6546
6547 2007-10-14  Bruno Haible  <bruno@clisp.org>
6548
6549         * modules/iconv_open-utf-tests: New file.
6550         * tests/test-iconv-utf.c: New file.
6551
6552         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
6553         * modules/iconv_open-utf: New file.
6554         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
6555         (iconv, iconv_close): New declarations.
6556         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
6557         be defined.
6558         (iconv_open): Add special handling of conversion between UTF-8 and
6559         UTF-{16,32}{BE,LE}.
6560         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
6561         * lib/iconv_close.c: New file.
6562         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
6563         gl_FUNC_ICONV_OPEN.
6564         (gl_FUNC_ICONV_OPEN): Use it.
6565         (gl_FUNC_ICONV_OPEN_UTF): New macro.
6566         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
6567         and REPLACE_ICONV_UTF.
6568         * modules/iconv_open (Depends-on): Add c-strcase.
6569         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
6570         ICONV_CONST.
6571         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
6572
6573 2007-10-13  Albert Chin  <china@thewrittenword.com>
6574             Bruno Haible  <bruno@clisp.org>
6575
6576         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
6577         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
6578
6579 2007-10-13  Bruno Haible  <bruno@clisp.org>
6580
6581         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
6582         defined, use the ISO C99 inline semantics.
6583         * lib/argp.h (ARGP_EI): Likewise.
6584
6585 2007-10-13  Bruno Haible  <bruno@clisp.org>
6586
6587         Handle 'inline' change in gcc 4.3.0.
6588         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
6589         argp_fmtstream_write, argp_fmtstream_set_lmargin,
6590         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
6591         argp_fmtstream_point): Disable 'extern' declaration if the function
6592         definition is going to be provided inline.
6593         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
6594         semantics, not the ISO C99 inline semantics.
6595         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
6596         'extern' declaration if the function definition is going to be provided
6597         inline.
6598         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
6599         the GNU C inline semantics, not the ISO C99 inline semantics. With
6600         GCC 4.2, avoid a warning.
6601
6602 2007-10-13  Bruno Haible  <bruno@clisp.org>
6603
6604         * lib/freading.h (freading): Enable the use of __freading for
6605         glibc >= 2.7.
6606         * lib/freading.c (freading): Likewise.
6607
6608 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
6609
6610         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
6611         "warning: C99 inline functions are not supported; using GNU89".
6612
6613 2007-10-12  Bruno Haible  <bruno@clisp.org>
6614
6615         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
6616         of 2.
6617         * tests/test-ceilf2.c: New file.
6618         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
6619
6620         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
6621         * modules/ceilf-tests: Update.
6622
6623 2007-10-12  Bruno Haible  <bruno@clisp.org>
6624
6625         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
6626         of 2.
6627         * tests/test-floorf2.c: New file.
6628         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
6629
6630         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
6631         * modules/floorf-tests: Update.
6632
6633 2007-10-12  Bruno Haible  <bruno@clisp.org>
6634
6635         * tests/test-trunc2.c: New file.
6636         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
6637
6638         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
6639         * modules/trunc-tests: Update.
6640
6641 2007-10-12  Bruno Haible  <bruno@clisp.org>
6642
6643         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
6644         of 2.
6645         * tests/test-truncf2.c: New file.
6646         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
6647
6648         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
6649         * modules/truncf-tests: Update.
6650
6651 2007-10-11  Eric Blake  <ebb9@byu.net>
6652
6653         Don't claim strerror is broken on Interix.
6654         * doc/functions/strerror.texi (strerror): Known broken systems are
6655         now Solaris 8, and not Interix.
6656         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
6657         Interix on cross-compile.
6658         Reported by Martin Koeppe in
6659         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
6660
6661 2007-10-11  Bruno Haible  <bruno@clisp.org>
6662
6663         * modules/i-ring-tests: New file.
6664         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
6665         instead of assert.
6666
6667 2007-10-11  Bruno Haible  <bruno@clisp.org>
6668
6669         * modules/filenamecat-tests: New file.
6670         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
6671         * lib/filenamecat.c: Remove test code.
6672
6673 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6674
6675         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
6676
6677         * lib/strerror.c: Include <string.h> always, to test interface,
6678         and to remove the need for the dummy.
6679         Include intprops.h to compute width instead of doing it ourselves
6680         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
6681         (strerror): Define it to return NULL if there's no system strerror.
6682         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
6683         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
6684         ancient pre-strerror Unix systems well any more.  Saying "unknown
6685         system error" is enough.
6686         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
6687         simpler strerror.c implementation.
6688         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
6689         Simplify the tests to reflect the simpler strerror implementation.
6690         * modules/strerror (Depends-on): Add intprops.
6691
6692 2007-10-09  Eric Blake  <ebb9@byu.net>
6693
6694         Silence test-fpending.
6695         * modules/fpending-tests (Files): Add wrapper script.
6696         * tests/test-fpending.sh: New file.
6697
6698 2007-10-09  Bruno Haible  <bruno@clisp.org>
6699
6700         * MODULES.html.sh (func_module): Don't create a hyperlink for
6701         function names like 'printf_frexp'.
6702         (Misc): Add crc, memxor.
6703         (Characteristics of floating types): New section.
6704         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
6705         isnanf-nolibm, signbit, trunc, truncf, truncl.
6706         (Enhancements for ISO C 99 functions): New subsection Input/output.
6707         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
6708         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
6709         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
6710         (Compatibility checks for POSIX:2001 functions): Add clock-time.
6711         (Enhancements for POSIX:2001 functions): Add chdir-long.
6712         (File system functions): Add areadlink, chdir-safer, read-file.
6713         Remove cycle-check.
6714         (File system as inode set): New section.
6715         (Date and time): Add gethrxtime.
6716         (Multithreading): Add openmp.
6717         (Internationalization functions): Add localename.
6718         (Unicode string functions): Add unistr/u*-mbsnlen.
6719         (Support for maintaining and releasing projects): Add git-version-gen.
6720         (Lone files): Remove directories.
6721
6722 2007-10-08  Ben Pfaff  <blp@gnu.org>
6723
6724         * lib/xmalloca.h: Fix typo in comment.
6725
6726 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6727
6728         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
6729         when avoiding problems with integer overflow.  Use a portable test
6730         instead.
6731
6732 2007-10-08  Simon Josefsson  <simon@josefsson.org>
6733
6734         * modules/dummy (License): Change to LGPLv2+.
6735         * modules/float (License): Likewise
6736         * modules/realloc (License): Likewise
6737         * modules/stdlib (License): Likewise
6738
6739 2007-10-07  Bruno Haible  <bruno@clisp.org>
6740
6741         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
6742         * floor.c (TWO_MANT_DIG): Likewise.
6743         * ceil.c (TWO_MANT_DIG): Likewise.
6744         Reported by Ben Pfaff.
6745
6746 2007-10-07  Bruno Haible  <bruno@clisp.org>
6747
6748         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
6749         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
6750         * lib/frexp.c (FUNC): Likewise.
6751         * lib/printf-frexp.h (printf_frexp): Likewise.
6752         * lib/printf-frexpl.h (printf_frexpl): Likewise.
6753         * lib/printf-frexp.c (FUNC): Likewise.
6754         Suggested by Jim Meyering.
6755
6756 2007-10-07  Jim Meyering  <meyering@redhat.com>
6757
6758         Make xnanosleep's integer overflow test more robust.
6759         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
6760         so that gcc-4.3.0 doesn't optimize away this test for overflow.
6761
6762 2007-10-07  Bruno Haible  <bruno@clisp.org>
6763
6764         * NEWS: Mention the license change.
6765
6766         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
6767         abbreviations in the modules files.
6768
6769         Change copyright notice from GPLv2+ to GPLv3+.
6770         * README: Change copyright notice.
6771         * MODULES.html.sh: Likewise.
6772         * build-aux/bootstrap.conf: Likewise.
6773         * build-aux/config.libpath: Likewise.
6774         * build-aux/csharpcomp.sh.in: Likewise.
6775         * build-aux/csharpexec.sh.in: Likewise.
6776         * build-aux/install-reloc: Likewise.
6777         * build-aux/javacomp.sh.in: Likewise.
6778         * build-aux/javaexec.sh.in: Likewise.
6779         * build-aux/ldd.sh.in: Likewise.
6780         * build-aux/reloc-ldflags: Likewise.
6781         * build-aux/relocatable.sh.in: Likewise.
6782         * build-aux/x-to-1.in: Likewise.
6783         * check-module: Likewise.
6784         * config/srclistvars.sh: Likewise.
6785         * gnulib-tool: Likewise.
6786         * lib/acl-internal.h: Likewise.
6787         * lib/acl.c: Likewise.
6788         * lib/acl.h: Likewise.
6789         * lib/acl_entries.c: Likewise.
6790         * lib/areadlink-with-size.c: Likewise.
6791         * lib/areadlink.c: Likewise.
6792         * lib/areadlink.h: Likewise.
6793         * lib/argmatch.c: Likewise.
6794         * lib/argmatch.h: Likewise.
6795         * lib/argp-ba.c: Likewise.
6796         * lib/argp-eexst.c: Likewise.
6797         * lib/argp-fmtstream.c: Likewise.
6798         * lib/argp-fmtstream.h: Likewise.
6799         * lib/argp-fs-xinl.c: Likewise.
6800         * lib/argp-help.c: Likewise.
6801         * lib/argp-namefrob.h: Likewise.
6802         * lib/argp-parse.c: Likewise.
6803         * lib/argp-pin.c: Likewise.
6804         * lib/argp-pv.c: Likewise.
6805         * lib/argp-pvh.c: Likewise.
6806         * lib/argp-xinl.c: Likewise.
6807         * lib/argp.h: Likewise.
6808         * lib/at-func.c: Likewise.
6809         * lib/atanl.c: Likewise.
6810         * lib/backupfile.c: Likewise.
6811         * lib/backupfile.h: Likewise.
6812         * lib/basename.c: Likewise.
6813         * lib/binary-io.h: Likewise.
6814         * lib/byteswap.in.h: Likewise.
6815         * lib/c-stack.c: Likewise.
6816         * lib/c-stack.h: Likewise.
6817         * lib/c-strcasestr.c: Likewise.
6818         * lib/c-strcasestr.h: Likewise.
6819         * lib/c-strstr.c: Likewise.
6820         * lib/c-strstr.h: Likewise.
6821         * lib/c-strtod.c: Likewise.
6822         * lib/calloc.c: Likewise.
6823         * lib/canon-host.c: Likewise.
6824         * lib/canon-host.h: Likewise.
6825         * lib/canonicalize-lgpl.c: Likewise.
6826         * lib/canonicalize.c: Likewise.
6827         * lib/canonicalize.h: Likewise.
6828         * lib/ceil.c: Likewise.
6829         * lib/ceilf.c: Likewise.
6830         * lib/ceill.c: Likewise.
6831         * lib/chdir-long.c: Likewise.
6832         * lib/chdir-long.h: Likewise.
6833         * lib/chdir-safer.c: Likewise.
6834         * lib/chdir-safer.h: Likewise.
6835         * lib/chown.c: Likewise.
6836         * lib/classpath.c: Likewise.
6837         * lib/classpath.h: Likewise.
6838         * lib/clean-temp.c: Likewise.
6839         * lib/clean-temp.h: Likewise.
6840         * lib/cloexec.c: Likewise.
6841         * lib/close-stream.c: Likewise.
6842         * lib/closein.c: Likewise.
6843         * lib/closein.h: Likewise.
6844         * lib/closeout.c: Likewise.
6845         * lib/closeout.h: Likewise.
6846         * lib/concat-filename.c: Likewise.
6847         * lib/copy-file.c: Likewise.
6848         * lib/copy-file.h: Likewise.
6849         * lib/count-one-bits.h: Likewise.
6850         * lib/crc.c: Likewise.
6851         * lib/crc.h: Likewise.
6852         * lib/creat-safer.c: Likewise.
6853         * lib/csharpcomp.c: Likewise.
6854         * lib/csharpcomp.h: Likewise.
6855         * lib/csharpexec.c: Likewise.
6856         * lib/csharpexec.h: Likewise.
6857         * lib/cycle-check.c: Likewise.
6858         * lib/cycle-check.h: Likewise.
6859         * lib/diacrit.c: Likewise.
6860         * lib/diacrit.h: Likewise.
6861         * lib/diffseq.h: Likewise.
6862         * lib/dirchownmod.c: Likewise.
6863         * lib/dirent.in.h: Likewise.
6864         * lib/dirfd.c: Likewise.
6865         * lib/dirfd.h: Likewise.
6866         * lib/dirname.c: Likewise.
6867         * lib/dirname.h: Likewise.
6868         * lib/dummy.c: Likewise.
6869         * lib/dup-safer.c: Likewise.
6870         * lib/dup2.c: Likewise.
6871         * lib/eealloc.h: Likewise.
6872         * lib/error.c: Likewise.
6873         * lib/error.h: Likewise.
6874         * lib/euidaccess.c: Likewise.
6875         * lib/exclude.c: Likewise.
6876         * lib/exclude.h: Likewise.
6877         * lib/execute.c: Likewise.
6878         * lib/execute.h: Likewise.
6879         * lib/exitfail.c: Likewise.
6880         * lib/exitfail.h: Likewise.
6881         * lib/expl.c: Likewise.
6882         * lib/fatal-signal.c: Likewise.
6883         * lib/fatal-signal.h: Likewise.
6884         * lib/fbufmode.c: Likewise.
6885         * lib/fbufmode.h: Likewise.
6886         * lib/fchdir.c: Likewise.
6887         * lib/fchmodat.c: Likewise.
6888         * lib/fchownat.c: Likewise.
6889         * lib/fcntl--.h: Likewise.
6890         * lib/fcntl-safer.h: Likewise.
6891         * lib/fcntl.in.h: Likewise.
6892         * lib/fd-safer.c: Likewise.
6893         * lib/fflush.c: Likewise.
6894         * lib/file-has-acl.c: Likewise.
6895         * lib/file-set.c: Likewise.
6896         * lib/file-type.c: Likewise.
6897         * lib/file-type.h: Likewise.
6898         * lib/fileblocks.c: Likewise.
6899         * lib/filemode.c: Likewise.
6900         * lib/filemode.h: Likewise.
6901         * lib/filename.h: Likewise.
6902         * lib/filenamecat.c: Likewise.
6903         * lib/filenamecat.h: Likewise.
6904         * lib/findprog.c: Likewise.
6905         * lib/findprog.h: Likewise.
6906         * lib/float.in.h: Likewise.
6907         * lib/floor.c: Likewise.
6908         * lib/floorf.c: Likewise.
6909         * lib/floorl.c: Likewise.
6910         * lib/fopen-safer.c: Likewise.
6911         * lib/fopen.c: Likewise.
6912         * lib/fpending.c: Likewise.
6913         * lib/fpending.h: Likewise.
6914         * lib/fprintf.c: Likewise.
6915         * lib/fprintftime.h: Likewise.
6916         * lib/fpucw.h: Likewise.
6917         * lib/fpurge.c: Likewise.
6918         * lib/fpurge.h: Likewise.
6919         * lib/freadable.c: Likewise.
6920         * lib/freadable.h: Likewise.
6921         * lib/freadahead.c: Likewise.
6922         * lib/freadahead.h: Likewise.
6923         * lib/freading.c: Likewise.
6924         * lib/freading.h: Likewise.
6925         * lib/free.c: Likewise.
6926         * lib/freopen.c: Likewise.
6927         * lib/frexp.c: Likewise.
6928         * lib/frexpl.c: Likewise.
6929         * lib/fseek.c: Likewise.
6930         * lib/fseterr.c: Likewise.
6931         * lib/fseterr.h: Likewise.
6932         * lib/fstatat.c: Likewise.
6933         * lib/fstrcmp.c: Likewise.
6934         * lib/fstrcmp.h: Likewise.
6935         * lib/fsusage.c: Likewise.
6936         * lib/fsusage.h: Likewise.
6937         * lib/ftell.c: Likewise.
6938         * lib/ftello.c: Likewise.
6939         * lib/fts-cycle.c: Likewise.
6940         * lib/fts.c: Likewise.
6941         * lib/fts_.h: Likewise.
6942         * lib/full-read.c: Likewise.
6943         * lib/full-read.h: Likewise.
6944         * lib/full-write.c: Likewise.
6945         * lib/full-write.h: Likewise.
6946         * lib/fwritable.c: Likewise.
6947         * lib/fwritable.h: Likewise.
6948         * lib/fwriteerror.c: Likewise.
6949         * lib/fwriteerror.h: Likewise.
6950         * lib/fwriting.c: Likewise.
6951         * lib/fwriting.h: Likewise.
6952         * lib/gcd.c: Likewise.
6953         * lib/gcd.h: Likewise.
6954         * lib/getcwd.c: Likewise.
6955         * lib/getdate.h: Likewise.
6956         * lib/getdate.y: Likewise.
6957         * lib/getdomainname.c: Likewise.
6958         * lib/getdomainname.h: Likewise.
6959         * lib/getgroups.c: Likewise.
6960         * lib/gethostname.c: Likewise.
6961         * lib/gethrxtime.c: Likewise.
6962         * lib/gethrxtime.h: Likewise.
6963         * lib/getloadavg.c: Likewise.
6964         * lib/getndelim2.c: Likewise.
6965         * lib/getndelim2.h: Likewise.
6966         * lib/getnline.c: Likewise.
6967         * lib/getnline.h: Likewise.
6968         * lib/getopt.c: Likewise.
6969         * lib/getopt.in.h: Likewise.
6970         * lib/getopt1.c: Likewise.
6971         * lib/getopt_int.h: Likewise.
6972         * lib/getpagesize.h: Likewise.
6973         * lib/getsubopt.c: Likewise.
6974         * lib/gettime.c: Likewise.
6975         * lib/getugroups.c: Likewise.
6976         * lib/getugroups.h: Likewise.
6977         * lib/getusershell.c: Likewise.
6978         * lib/gl_anyavltree_list1.h: Likewise.
6979         * lib/gl_anyavltree_list2.h: Likewise.
6980         * lib/gl_anyhash_list1.h: Likewise.
6981         * lib/gl_anyhash_list2.h: Likewise.
6982         * lib/gl_anylinked_list1.h: Likewise.
6983         * lib/gl_anylinked_list2.h: Likewise.
6984         * lib/gl_anyrbtree_list1.h: Likewise.
6985         * lib/gl_anyrbtree_list2.h: Likewise.
6986         * lib/gl_anytree_list1.h: Likewise.
6987         * lib/gl_anytree_list2.h: Likewise.
6988         * lib/gl_anytree_oset.h: Likewise.
6989         * lib/gl_anytreehash_list1.h: Likewise.
6990         * lib/gl_anytreehash_list2.h: Likewise.
6991         * lib/gl_array_list.c: Likewise.
6992         * lib/gl_array_list.h: Likewise.
6993         * lib/gl_array_oset.c: Likewise.
6994         * lib/gl_array_oset.h: Likewise.
6995         * lib/gl_avltree_list.c: Likewise.
6996         * lib/gl_avltree_list.h: Likewise.
6997         * lib/gl_avltree_oset.c: Likewise.
6998         * lib/gl_avltree_oset.h: Likewise.
6999         * lib/gl_avltreehash_list.c: Likewise.
7000         * lib/gl_avltreehash_list.h: Likewise.
7001         * lib/gl_carray_list.c: Likewise.
7002         * lib/gl_carray_list.h: Likewise.
7003         * lib/gl_linked_list.c: Likewise.
7004         * lib/gl_linked_list.h: Likewise.
7005         * lib/gl_linkedhash_list.c: Likewise.
7006         * lib/gl_linkedhash_list.h: Likewise.
7007         * lib/gl_list.c: Likewise.
7008         * lib/gl_list.h: Likewise.
7009         * lib/gl_oset.c: Likewise.
7010         * lib/gl_oset.h: Likewise.
7011         * lib/gl_rbtree_list.c: Likewise.
7012         * lib/gl_rbtree_list.h: Likewise.
7013         * lib/gl_rbtree_oset.c: Likewise.
7014         * lib/gl_rbtree_oset.h: Likewise.
7015         * lib/gl_rbtreehash_list.c: Likewise.
7016         * lib/gl_rbtreehash_list.h: Likewise.
7017         * lib/gl_sublist.c: Likewise.
7018         * lib/gl_sublist.h: Likewise.
7019         * lib/group-member.c: Likewise.
7020         * lib/group-member.h: Likewise.
7021         * lib/hard-locale.c: Likewise.
7022         * lib/hard-locale.h: Likewise.
7023         * lib/hash-pjw.c: Likewise.
7024         * lib/hash-pjw.h: Likewise.
7025         * lib/hash-triple.c: Likewise.
7026         * lib/hash.c: Likewise.
7027         * lib/hash.h: Likewise.
7028         * lib/human.c: Likewise.
7029         * lib/human.h: Likewise.
7030         * lib/i-ring.c: Likewise.
7031         * lib/i-ring.h: Likewise.
7032         * lib/idcache.c: Likewise.
7033         * lib/imaxabs.c: Likewise.
7034         * lib/imaxdiv.c: Likewise.
7035         * lib/inet_pton.c: Likewise.
7036         * lib/inet_pton.h: Likewise.
7037         * lib/intprops.h: Likewise.
7038         * lib/inttostr.c: Likewise.
7039         * lib/inttostr.h: Likewise.
7040         * lib/inttypes.in.h: Likewise.
7041         * lib/isapipe.c: Likewise.
7042         * lib/isdir.c: Likewise.
7043         * lib/isnan.c: Likewise.
7044         * lib/isnan.h: Likewise.
7045         * lib/isnanf.c: Likewise.
7046         * lib/isnanf.h: Likewise.
7047         * lib/isnanl-nolibm.h: Likewise.
7048         * lib/isnanl.c: Likewise.
7049         * lib/isnanl.h: Likewise.
7050         * lib/javacomp.c: Likewise.
7051         * lib/javacomp.h: Likewise.
7052         * lib/javaexec.c: Likewise.
7053         * lib/javaexec.h: Likewise.
7054         * lib/javaversion.c: Likewise.
7055         * lib/javaversion.h: Likewise.
7056         * lib/javaversion.java: Likewise.
7057         * lib/lbrkprop.h: Likewise.
7058         * lib/lchmod.h: Likewise.
7059         * lib/lchown.c: Likewise.
7060         * lib/ldexpl.c: Likewise.
7061         * lib/linebreak.c: Likewise.
7062         * lib/linebreak.h: Likewise.
7063         * lib/linebuffer.c: Likewise.
7064         * lib/linebuffer.h: Likewise.
7065         * lib/locale.in.h: Likewise.
7066         * lib/logl.c: Likewise.
7067         * lib/long-options.c: Likewise.
7068         * lib/long-options.h: Likewise.
7069         * lib/lstat.c: Likewise.
7070         * lib/lstat.h: Likewise.
7071         * lib/math.in.h: Likewise.
7072         * lib/mbchar.c: Likewise.
7073         * lib/mbchar.h: Likewise.
7074         * lib/mbfile.h: Likewise.
7075         * lib/mbiter.h: Likewise.
7076         * lib/mbscasecmp.c: Likewise.
7077         * lib/mbscasestr.c: Likewise.
7078         * lib/mbschr.c: Likewise.
7079         * lib/mbscspn.c: Likewise.
7080         * lib/mbslen.c: Likewise.
7081         * lib/mbsncasecmp.c: Likewise.
7082         * lib/mbsnlen.c: Likewise.
7083         * lib/mbspbrk.c: Likewise.
7084         * lib/mbspcasecmp.c: Likewise.
7085         * lib/mbsrchr.c: Likewise.
7086         * lib/mbssep.c: Likewise.
7087         * lib/mbsspn.c: Likewise.
7088         * lib/mbsstr.c: Likewise.
7089         * lib/mbstok_r.c: Likewise.
7090         * lib/mbswidth.c: Likewise.
7091         * lib/mbswidth.h: Likewise.
7092         * lib/mbuiter.h: Likewise.
7093         * lib/memcasecmp.c: Likewise.
7094         * lib/memcasecmp.h: Likewise.
7095         * lib/memchr.c: Likewise.
7096         * lib/memcmp.c: Likewise.
7097         * lib/memcoll.c: Likewise.
7098         * lib/memcoll.h: Likewise.
7099         * lib/memcpy.c: Likewise.
7100         * lib/memrchr.c: Likewise.
7101         * lib/mkancesdirs.c: Likewise.
7102         * lib/mkdir-p.c: Likewise.
7103         * lib/mkdir-p.h: Likewise.
7104         * lib/mkdir.c: Likewise.
7105         * lib/mkdirat.c: Likewise.
7106         * lib/mkdtemp.c: Likewise.
7107         * lib/mkstemp-safer.c: Likewise.
7108         * lib/mkstemp.c: Likewise.
7109         * lib/modechange.c: Likewise.
7110         * lib/modechange.h: Likewise.
7111         * lib/mountlist.c: Likewise.
7112         * lib/mountlist.h: Likewise.
7113         * lib/mpsort.c: Likewise.
7114         * lib/nanosleep.c: Likewise.
7115         * lib/obstack.c: Likewise.
7116         * lib/obstack.h: Likewise.
7117         * lib/open-safer.c: Likewise.
7118         * lib/open.c: Likewise.
7119         * lib/openat-die.c: Likewise.
7120         * lib/openat-priv.h: Likewise.
7121         * lib/openat-proc.c: Likewise.
7122         * lib/openat.c: Likewise.
7123         * lib/openat.h: Likewise.
7124         * lib/pagealign_alloc.c: Likewise.
7125         * lib/pagealign_alloc.h: Likewise.
7126         * lib/physmem.c: Likewise.
7127         * lib/physmem.h: Likewise.
7128         * lib/pipe-safer.c: Likewise.
7129         * lib/pipe.c: Likewise.
7130         * lib/pipe.h: Likewise.
7131         * lib/posixtm.c: Likewise.
7132         * lib/posixtm.h: Likewise.
7133         * lib/posixver.c: Likewise.
7134         * lib/printf-frexp.c: Likewise.
7135         * lib/printf-frexp.h: Likewise.
7136         * lib/printf-frexpl.c: Likewise.
7137         * lib/printf-frexpl.h: Likewise.
7138         * lib/printf.c: Likewise.
7139         * lib/progname.c: Likewise.
7140         * lib/progname.h: Likewise.
7141         * lib/progreloc.c: Likewise.
7142         * lib/putenv.c: Likewise.
7143         * lib/quote.c: Likewise.
7144         * lib/quote.h: Likewise.
7145         * lib/quotearg.c: Likewise.
7146         * lib/quotearg.h: Likewise.
7147         * lib/raise.c: Likewise.
7148         * lib/readline.c: Likewise.
7149         * lib/readline.h: Likewise.
7150         * lib/readlink.c: Likewise.
7151         * lib/readtokens.c: Likewise.
7152         * lib/readtokens.h: Likewise.
7153         * lib/readtokens0.c: Likewise.
7154         * lib/readtokens0.h: Likewise.
7155         * lib/readutmp.c: Likewise.
7156         * lib/readutmp.h: Likewise.
7157         * lib/realloc.c: Likewise.
7158         * lib/relocwrapper.c: Likewise.
7159         * lib/rename-dest-slash.c: Likewise.
7160         * lib/rename.c: Likewise.
7161         * lib/rmdir.c: Likewise.
7162         * lib/rpmatch.c: Likewise.
7163         * lib/safe-read.c: Likewise.
7164         * lib/safe-read.h: Likewise.
7165         * lib/safe-write.c: Likewise.
7166         * lib/safe-write.h: Likewise.
7167         * lib/same-inode.h: Likewise.
7168         * lib/same.c: Likewise.
7169         * lib/same.h: Likewise.
7170         * lib/save-cwd.c: Likewise.
7171         * lib/save-cwd.h: Likewise.
7172         * lib/savedir.c: Likewise.
7173         * lib/savedir.h: Likewise.
7174         * lib/savewd.c: Likewise.
7175         * lib/savewd.h: Likewise.
7176         * lib/search.in.h: Likewise.
7177         * lib/setenv.c: Likewise.
7178         * lib/setenv.h: Likewise.
7179         * lib/settime.c: Likewise.
7180         * lib/sh-quote.c: Likewise.
7181         * lib/sh-quote.h: Likewise.
7182         * lib/sig2str.c: Likewise.
7183         * lib/sig2str.h: Likewise.
7184         * lib/signal.in.h: Likewise.
7185         * lib/signbitd.c: Likewise.
7186         * lib/signbitf.c: Likewise.
7187         * lib/signbitl.c: Likewise.
7188         * lib/sigprocmask.c: Likewise.
7189         * lib/sincosl.c: Likewise.
7190         * lib/sleep.c: Likewise.
7191         * lib/sprintf.c: Likewise.
7192         * lib/sqrtl.c: Likewise.
7193         * lib/stat-time.h: Likewise.
7194         * lib/stdio--.h: Likewise.
7195         * lib/stdio-safer.h: Likewise.
7196         * lib/stdlib--.h: Likewise.
7197         * lib/stdlib-safer.h: Likewise.
7198         * lib/stdlib.in.h: Likewise.
7199         * lib/stpcpy.c: Likewise.
7200         * lib/stpncpy.c: Likewise.
7201         * lib/strchrnul.c: Likewise.
7202         * lib/strcspn.c: Likewise.
7203         * lib/strerror.c: Likewise.
7204         * lib/strftime.c: Likewise.
7205         * lib/strftime.h: Likewise.
7206         * lib/striconveh.c: Likewise.
7207         * lib/striconveh.h: Likewise.
7208         * lib/striconveha.c: Likewise.
7209         * lib/striconveha.h: Likewise.
7210         * lib/stripslash.c: Likewise.
7211         * lib/strnlen1.c: Likewise.
7212         * lib/strnlen1.h: Likewise.
7213         * lib/strtod.c: Likewise.
7214         * lib/strtoimax.c: Likewise.
7215         * lib/strtok_r.c: Likewise.
7216         * lib/strtol.c: Likewise.
7217         * lib/strtoll.c: Likewise.
7218         * lib/strtoul.c: Likewise.
7219         * lib/strtoull.c: Likewise.
7220         * lib/sysexits.in.h: Likewise.
7221         * lib/tempname.c: Likewise.
7222         * lib/tempname.h: Likewise.
7223         * lib/timespec.h: Likewise.
7224         * lib/tls.c: Likewise.
7225         * lib/tls.h: Likewise.
7226         * lib/tmpdir.c: Likewise.
7227         * lib/tmpdir.h: Likewise.
7228         * lib/tmpfile-safer.c: Likewise.
7229         * lib/tmpfile.c: Likewise.
7230         * lib/trigl.c: Likewise.
7231         * lib/trigl.h: Likewise.
7232         * lib/trim.c: Likewise.
7233         * lib/trim.h: Likewise.
7234         * lib/trunc.c: Likewise.
7235         * lib/truncf.c: Likewise.
7236         * lib/truncl.c: Likewise.
7237         * lib/tsearch.c: Likewise.
7238         * lib/unicodeio.c: Likewise.
7239         * lib/unicodeio.h: Likewise.
7240         * lib/unistd--.h: Likewise.
7241         * lib/unistd-safer.h: Likewise.
7242         * lib/unistdio/ulc-fprintf.c: Likewise.
7243         * lib/unistdio/ulc-vfprintf.c: Likewise.
7244         * lib/unlinkdir.c: Likewise.
7245         * lib/unlinkdir.h: Likewise.
7246         * lib/unlocked-io.h: Likewise.
7247         * lib/unsetenv.c: Likewise.
7248         * lib/userspec.c: Likewise.
7249         * lib/utime.c: Likewise.
7250         * lib/utimecmp.c: Likewise.
7251         * lib/utimecmp.h: Likewise.
7252         * lib/utimens.c: Likewise.
7253         * lib/verify.h: Likewise.
7254         * lib/verror.c: Likewise.
7255         * lib/verror.h: Likewise.
7256         * lib/version-etc-fsf.c: Likewise.
7257         * lib/version-etc.c: Likewise.
7258         * lib/version-etc.h: Likewise.
7259         * lib/vfprintf.c: Likewise.
7260         * lib/vprintf.c: Likewise.
7261         * lib/vsprintf.c: Likewise.
7262         * lib/w32spawn.h: Likewise.
7263         * lib/wait-process.c: Likewise.
7264         * lib/wait-process.h: Likewise.
7265         * lib/wcwidth.c: Likewise.
7266         * lib/write-any-file.c: Likewise.
7267         * lib/xalloc-die.c: Likewise.
7268         * lib/xalloc.h: Likewise.
7269         * lib/xasprintf.c: Likewise.
7270         * lib/xgetcwd.c: Likewise.
7271         * lib/xgetcwd.h: Likewise.
7272         * lib/xgetdomainname.c: Likewise.
7273         * lib/xgetdomainname.h: Likewise.
7274         * lib/xgethostname.c: Likewise.
7275         * lib/xmalloc.c: Likewise.
7276         * lib/xmalloca.c: Likewise.
7277         * lib/xmalloca.h: Likewise.
7278         * lib/xmemcoll.c: Likewise.
7279         * lib/xnanosleep.c: Likewise.
7280         * lib/xreadlink.c: Likewise.
7281         * lib/xreadlink.h: Likewise.
7282         * lib/xsetenv.c: Likewise.
7283         * lib/xsetenv.h: Likewise.
7284         * lib/xstriconv.c: Likewise.
7285         * lib/xstriconv.h: Likewise.
7286         * lib/xstrndup.c: Likewise.
7287         * lib/xstrndup.h: Likewise.
7288         * lib/xstrtod.c: Likewise.
7289         * lib/xstrtod.h: Likewise.
7290         * lib/xstrtol-error.c: Likewise.
7291         * lib/xstrtol.c: Likewise.
7292         * lib/xstrtol.h: Likewise.
7293         * lib/xtime.h: Likewise.
7294         * lib/xvasprintf.c: Likewise.
7295         * lib/xvasprintf.h: Likewise.
7296         * lib/yesno.c: Likewise.
7297         * lib/yesno.h: Likewise.
7298         * posix-modules: Likewise.
7299         * tests/test-alloca-opt.c: Likewise.
7300         * tests/test-arcfour.c: Likewise.
7301         * tests/test-arctwo.c: Likewise.
7302         * tests/test-argmatch.c: Likewise.
7303         * tests/test-argp-2.sh: Likewise.
7304         * tests/test-argp.c: Likewise.
7305         * tests/test-arpa_inet.c: Likewise.
7306         * tests/test-array_list.c: Likewise.
7307         * tests/test-array_oset.c: Likewise.
7308         * tests/test-atexit.c: Likewise.
7309         * tests/test-avltree_list.c: Likewise.
7310         * tests/test-avltree_oset.c: Likewise.
7311         * tests/test-avltreehash_list.c: Likewise.
7312         * tests/test-base64.c: Likewise.
7313         * tests/test-binary-io.c: Likewise.
7314         * tests/test-byteswap.c: Likewise.
7315         * tests/test-c-ctype.c: Likewise.
7316         * tests/test-c-strcasecmp.c: Likewise.
7317         * tests/test-c-strcasestr.c: Likewise.
7318         * tests/test-c-strncasecmp.c: Likewise.
7319         * tests/test-c-strstr.c: Likewise.
7320         * tests/test-canonicalize-lgpl.c: Likewise.
7321         * tests/test-canonicalize.c: Likewise.
7322         * tests/test-carray_list.c: Likewise.
7323         * tests/test-ceilf.c: Likewise.
7324         * tests/test-ceill.c: Likewise.
7325         * tests/test-count-one-bits.c: Likewise.
7326         * tests/test-crc.c: Likewise.
7327         * tests/test-dirname.c: Likewise.
7328         * tests/test-fbufmode.c: Likewise.
7329         * tests/test-fcntl.c: Likewise.
7330         * tests/test-fflush.c: Likewise.
7331         * tests/test-floorf.c: Likewise.
7332         * tests/test-floorl.c: Likewise.
7333         * tests/test-fopen.c: Likewise.
7334         * tests/test-fprintf-posix.c: Likewise.
7335         * tests/test-fprintf-posix.h: Likewise.
7336         * tests/test-fpurge.c: Likewise.
7337         * tests/test-freadable.c: Likewise.
7338         * tests/test-freadahead.c: Likewise.
7339         * tests/test-freading.c: Likewise.
7340         * tests/test-freopen.c: Likewise.
7341         * tests/test-frexp.c: Likewise.
7342         * tests/test-frexpl.c: Likewise.
7343         * tests/test-fseek.c: Likewise.
7344         * tests/test-fseeko.c: Likewise.
7345         * tests/test-fseterr.c: Likewise.
7346         * tests/test-fstrcmp.c: Likewise.
7347         * tests/test-ftell.c: Likewise.
7348         * tests/test-ftello.c: Likewise.
7349         * tests/test-fwritable.c: Likewise.
7350         * tests/test-fwriting.c: Likewise.
7351         * tests/test-getaddrinfo.c: Likewise.
7352         * tests/test-getpass.c: Likewise.
7353         * tests/test-gettimeofday.c: Likewise.
7354         * tests/test-hmac-md5.c: Likewise.
7355         * tests/test-hmac-sha1.c: Likewise.
7356         * tests/test-iconv.c: Likewise.
7357         * tests/test-iconvme.c: Likewise.
7358         * tests/test-inttypes.c: Likewise.
7359         * tests/test-isnan.c: Likewise.
7360         * tests/test-isnanf.c: Likewise.
7361         * tests/test-isnanl-nolibm.c: Likewise.
7362         * tests/test-isnanl.c: Likewise.
7363         * tests/test-isnanl.h: Likewise.
7364         * tests/test-ldexpl.c: Likewise.
7365         * tests/test-linked_list.c: Likewise.
7366         * tests/test-linkedhash_list.c: Likewise.
7367         * tests/test-locale.c: Likewise.
7368         * tests/test-localename.c: Likewise.
7369         * tests/test-lock.c: Likewise.
7370         * tests/test-lseek.c: Likewise.
7371         * tests/test-malloca.c: Likewise.
7372         * tests/test-math.c: Likewise.
7373         * tests/test-mbscasecmp.c: Likewise.
7374         * tests/test-mbscasestr1.c: Likewise.
7375         * tests/test-mbscasestr2.c: Likewise.
7376         * tests/test-mbscasestr3.c: Likewise.
7377         * tests/test-mbscasestr4.c: Likewise.
7378         * tests/test-mbschr.c: Likewise.
7379         * tests/test-mbscspn.c: Likewise.
7380         * tests/test-mbsncasecmp.c: Likewise.
7381         * tests/test-mbspbrk.c: Likewise.
7382         * tests/test-mbspcasecmp.c: Likewise.
7383         * tests/test-mbsrchr.c: Likewise.
7384         * tests/test-mbsspn.c: Likewise.
7385         * tests/test-mbsstr1.c: Likewise.
7386         * tests/test-mbsstr2.c: Likewise.
7387         * tests/test-mbsstr3.c: Likewise.
7388         * tests/test-md5.c: Likewise.
7389         * tests/test-memmem.c: Likewise.
7390         * tests/test-netinet_in.c: Likewise.
7391         * tests/test-open.c: Likewise.
7392         * tests/test-printf-frexp.c: Likewise.
7393         * tests/test-printf-frexpl.c: Likewise.
7394         * tests/test-printf-posix.c: Likewise.
7395         * tests/test-printf-posix.h: Likewise.
7396         * tests/test-rbtree_list.c: Likewise.
7397         * tests/test-rbtree_oset.c: Likewise.
7398         * tests/test-rbtreehash_list.c: Likewise.
7399         * tests/test-read-file.c: Likewise.
7400         * tests/test-rijndael.c: Likewise.
7401         * tests/test-search.c: Likewise.
7402         * tests/test-signbit.c: Likewise.
7403         * tests/test-sleep.c: Likewise.
7404         * tests/test-snprintf-posix.c: Likewise.
7405         * tests/test-snprintf-posix.h: Likewise.
7406         * tests/test-snprintf.c: Likewise.
7407         * tests/test-sprintf-posix.c: Likewise.
7408         * tests/test-sprintf-posix.h: Likewise.
7409         * tests/test-stat-time.c: Likewise.
7410         * tests/test-stdbool.c: Likewise.
7411         * tests/test-stdint.c: Likewise.
7412         * tests/test-stdio.c: Likewise.
7413         * tests/test-stdlib.c: Likewise.
7414         * tests/test-stpncpy.c: Likewise.
7415         * tests/test-strcasestr.c: Likewise.
7416         * tests/test-striconv.c: Likewise.
7417         * tests/test-striconveh.c: Likewise.
7418         * tests/test-striconveha.c: Likewise.
7419         * tests/test-string.c: Likewise.
7420         * tests/test-sys_select.c: Likewise.
7421         * tests/test-sys_socket.c: Likewise.
7422         * tests/test-sys_stat.c: Likewise.
7423         * tests/test-sys_time.c: Likewise.
7424         * tests/test-sysexits.c: Likewise.
7425         * tests/test-time.c: Likewise.
7426         * tests/test-tls.c: Likewise.
7427         * tests/test-trunc.c: Likewise.
7428         * tests/test-truncf.c: Likewise.
7429         * tests/test-truncl.c: Likewise.
7430         * tests/test-unistd.c: Likewise.
7431         * tests/test-vasnprintf-posix.c: Likewise.
7432         * tests/test-vasnprintf-posix2.c: Likewise.
7433         * tests/test-vasnprintf.c: Likewise.
7434         * tests/test-vasprintf-posix.c: Likewise.
7435         * tests/test-vasprintf.c: Likewise.
7436         * tests/test-verify.c: Likewise.
7437         * tests/test-vfprintf-posix.c: Likewise.
7438         * tests/test-vprintf-posix.c: Likewise.
7439         * tests/test-vsnprintf-posix.c: Likewise.
7440         * tests/test-vsnprintf.c: Likewise.
7441         * tests/test-vsprintf-posix.c: Likewise.
7442         * tests/test-wchar.c: Likewise.
7443         * tests/test-wctype.c: Likewise.
7444         * tests/test-wcwidth.c: Likewise.
7445         * tests/test-xstrtol.c: Likewise.
7446         * tests/test-xvasprintf.c: Likewise.
7447         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
7448         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
7449         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
7450         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
7451         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
7452         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
7453         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
7454         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
7455         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
7456         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
7457         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
7458         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
7459         * tests/uniname/test-uninames.c: Likewise.
7460         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
7461         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
7462         * tests/unistdio/test-u16-printf1.h: Likewise.
7463         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
7464         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
7465         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
7466         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
7467         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
7468         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
7469         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
7470         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
7471         * tests/unistdio/test-u32-printf1.h: Likewise.
7472         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
7473         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
7474         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
7475         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
7476         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
7477         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
7478         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
7479         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
7480         * tests/unistdio/test-u8-printf1.h: Likewise.
7481         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
7482         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
7483         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
7484         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
7485         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
7486         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
7487         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
7488         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
7489         * tests/unistdio/test-ulc-printf1.h: Likewise.
7490         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
7491         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
7492         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
7493         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
7494         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
7495         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
7496         * tests/uniwidth/test-u16-strwidth.c: Likewise.
7497         * tests/uniwidth/test-u16-width.c: Likewise.
7498         * tests/uniwidth/test-u32-strwidth.c: Likewise.
7499         * tests/uniwidth/test-u32-width.c: Likewise.
7500         * tests/uniwidth/test-u8-strwidth.c: Likewise.
7501         * tests/uniwidth/test-u8-width.c: Likewise.
7502         * tests/uniwidth/test-uc_width.c: Likewise.
7503         * config/srclist-update: Likewise.
7504         (fixlicense): Update to GPLv3+.
7505
7506         Change copyright notice from LGPLv2.1+ to LGPLv3+.
7507         * tests/test-tsearch.c: Change copyright notice.
7508
7509         Change copyright notice from LGPLv2.0+ to LGPLv3+.
7510         * lib/c-strcaseeq.h: Change copyright notice.
7511         * lib/streq.h: Likewise.
7512         * lib/uniconv.h: Likewise.
7513         * lib/uniconv/u-conv-from-enc.h: Likewise.
7514         * lib/uniconv/u-conv-to-enc.h: Likewise.
7515         * lib/uniconv/u-strconv-from-enc.h: Likewise.
7516         * lib/uniconv/u-strconv-to-enc.h: Likewise.
7517         * lib/uniconv/u16-conv-from-enc.c: Likewise.
7518         * lib/uniconv/u16-conv-to-enc.c: Likewise.
7519         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
7520         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
7521         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
7522         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
7523         * lib/uniconv/u32-conv-from-enc.c: Likewise.
7524         * lib/uniconv/u32-conv-to-enc.c: Likewise.
7525         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
7526         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
7527         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
7528         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
7529         * lib/uniconv/u8-conv-from-enc.c: Likewise.
7530         * lib/uniconv/u8-conv-to-enc.c: Likewise.
7531         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
7532         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
7533         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
7534         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
7535         * lib/uniname.h: Likewise.
7536         * lib/uniname/uniname.c: Likewise.
7537         * lib/unistdio.h: Likewise.
7538         * lib/unistdio/u-asnprintf.h: Likewise.
7539         * lib/unistdio/u-asprintf.h: Likewise.
7540         * lib/unistdio/u-printf-args.c: Likewise.
7541         * lib/unistdio/u-printf-args.h: Likewise.
7542         * lib/unistdio/u-printf-parse.h: Likewise.
7543         * lib/unistdio/u-snprintf.h: Likewise.
7544         * lib/unistdio/u-sprintf.h: Likewise.
7545         * lib/unistdio/u-vasprintf.h: Likewise.
7546         * lib/unistdio/u-vsnprintf.h: Likewise.
7547         * lib/unistdio/u-vsprintf.h: Likewise.
7548         * lib/unistdio/u16-asnprintf.c: Likewise.
7549         * lib/unistdio/u16-asprintf.c: Likewise.
7550         * lib/unistdio/u16-printf-parse.c: Likewise.
7551         * lib/unistdio/u16-snprintf.c: Likewise.
7552         * lib/unistdio/u16-sprintf.c: Likewise.
7553         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
7554         * lib/unistdio/u16-u16-asprintf.c: Likewise.
7555         * lib/unistdio/u16-u16-snprintf.c: Likewise.
7556         * lib/unistdio/u16-u16-sprintf.c: Likewise.
7557         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
7558         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
7559         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
7560         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
7561         * lib/unistdio/u16-vasnprintf.c: Likewise.
7562         * lib/unistdio/u16-vasprintf.c: Likewise.
7563         * lib/unistdio/u16-vsnprintf.c: Likewise.
7564         * lib/unistdio/u16-vsprintf.c: Likewise.
7565         * lib/unistdio/u32-asnprintf.c: Likewise.
7566         * lib/unistdio/u32-asprintf.c: Likewise.
7567         * lib/unistdio/u32-printf-parse.c: Likewise.
7568         * lib/unistdio/u32-snprintf.c: Likewise.
7569         * lib/unistdio/u32-sprintf.c: Likewise.
7570         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
7571         * lib/unistdio/u32-u32-asprintf.c: Likewise.
7572         * lib/unistdio/u32-u32-snprintf.c: Likewise.
7573         * lib/unistdio/u32-u32-sprintf.c: Likewise.
7574         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
7575         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
7576         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
7577         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
7578         * lib/unistdio/u32-vasnprintf.c: Likewise.
7579         * lib/unistdio/u32-vasprintf.c: Likewise.
7580         * lib/unistdio/u32-vsnprintf.c: Likewise.
7581         * lib/unistdio/u32-vsprintf.c: Likewise.
7582         * lib/unistdio/u8-asnprintf.c: Likewise.
7583         * lib/unistdio/u8-asprintf.c: Likewise.
7584         * lib/unistdio/u8-printf-parse.c: Likewise.
7585         * lib/unistdio/u8-snprintf.c: Likewise.
7586         * lib/unistdio/u8-sprintf.c: Likewise.
7587         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
7588         * lib/unistdio/u8-u8-asprintf.c: Likewise.
7589         * lib/unistdio/u8-u8-snprintf.c: Likewise.
7590         * lib/unistdio/u8-u8-sprintf.c: Likewise.
7591         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
7592         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
7593         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
7594         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
7595         * lib/unistdio/u8-vasnprintf.c: Likewise.
7596         * lib/unistdio/u8-vasprintf.c: Likewise.
7597         * lib/unistdio/u8-vsnprintf.c: Likewise.
7598         * lib/unistdio/u8-vsprintf.c: Likewise.
7599         * lib/unistdio/ulc-asnprintf.c: Likewise.
7600         * lib/unistdio/ulc-asprintf.c: Likewise.
7601         * lib/unistdio/ulc-printf-parse.c: Likewise.
7602         * lib/unistdio/ulc-snprintf.c: Likewise.
7603         * lib/unistdio/ulc-sprintf.c: Likewise.
7604         * lib/unistdio/ulc-vasnprintf.c: Likewise.
7605         * lib/unistdio/ulc-vasprintf.c: Likewise.
7606         * lib/unistdio/ulc-vsnprintf.c: Likewise.
7607         * lib/unistdio/ulc-vsprintf.c: Likewise.
7608         * lib/unistr.h: Likewise.
7609         * lib/unistr/u-cpy-alloc.h: Likewise.
7610         * lib/unistr/u-cpy.h: Likewise.
7611         * lib/unistr/u-endswith.h: Likewise.
7612         * lib/unistr/u-move.h: Likewise.
7613         * lib/unistr/u-set.h: Likewise.
7614         * lib/unistr/u-startswith.h: Likewise.
7615         * lib/unistr/u-stpcpy.h: Likewise.
7616         * lib/unistr/u-stpncpy.h: Likewise.
7617         * lib/unistr/u-strcat.h: Likewise.
7618         * lib/unistr/u-strcpy.h: Likewise.
7619         * lib/unistr/u-strcspn.h: Likewise.
7620         * lib/unistr/u-strdup.h: Likewise.
7621         * lib/unistr/u-strlen.h: Likewise.
7622         * lib/unistr/u-strncat.h: Likewise.
7623         * lib/unistr/u-strncpy.h: Likewise.
7624         * lib/unistr/u-strnlen.h: Likewise.
7625         * lib/unistr/u-strpbrk.h: Likewise.
7626         * lib/unistr/u-strspn.h: Likewise.
7627         * lib/unistr/u-strstr.h: Likewise.
7628         * lib/unistr/u-strtok.h: Likewise.
7629         * lib/unistr/u16-check.c: Likewise.
7630         * lib/unistr/u16-chr.c: Likewise.
7631         * lib/unistr/u16-cmp.c: Likewise.
7632         * lib/unistr/u16-cpy-alloc.c: Likewise.
7633         * lib/unistr/u16-cpy.c: Likewise.
7634         * lib/unistr/u16-endswith.c: Likewise.
7635         * lib/unistr/u16-mblen.c: Likewise.
7636         * lib/unistr/u16-mbsnlen.c: Likewise.
7637         * lib/unistr/u16-mbtouc-aux.c: Likewise.
7638         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
7639         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
7640         * lib/unistr/u16-mbtouc.c: Likewise.
7641         * lib/unistr/u16-mbtoucr.c: Likewise.
7642         * lib/unistr/u16-move.c: Likewise.
7643         * lib/unistr/u16-next.c: Likewise.
7644         * lib/unistr/u16-prev.c: Likewise.
7645         * lib/unistr/u16-set.c: Likewise.
7646         * lib/unistr/u16-startswith.c: Likewise.
7647         * lib/unistr/u16-stpcpy.c: Likewise.
7648         * lib/unistr/u16-stpncpy.c: Likewise.
7649         * lib/unistr/u16-strcat.c: Likewise.
7650         * lib/unistr/u16-strchr.c: Likewise.
7651         * lib/unistr/u16-strcmp.c: Likewise.
7652         * lib/unistr/u16-strcpy.c: Likewise.
7653         * lib/unistr/u16-strcspn.c: Likewise.
7654         * lib/unistr/u16-strdup.c: Likewise.
7655         * lib/unistr/u16-strlen.c: Likewise.
7656         * lib/unistr/u16-strmblen.c: Likewise.
7657         * lib/unistr/u16-strmbtouc.c: Likewise.
7658         * lib/unistr/u16-strncat.c: Likewise.
7659         * lib/unistr/u16-strncmp.c: Likewise.
7660         * lib/unistr/u16-strncpy.c: Likewise.
7661         * lib/unistr/u16-strnlen.c: Likewise.
7662         * lib/unistr/u16-strpbrk.c: Likewise.
7663         * lib/unistr/u16-strrchr.c: Likewise.
7664         * lib/unistr/u16-strspn.c: Likewise.
7665         * lib/unistr/u16-strstr.c: Likewise.
7666         * lib/unistr/u16-strtok.c: Likewise.
7667         * lib/unistr/u16-to-u32.c: Likewise.
7668         * lib/unistr/u16-to-u8.c: Likewise.
7669         * lib/unistr/u16-uctomb-aux.c: Likewise.
7670         * lib/unistr/u16-uctomb.c: Likewise.
7671         * lib/unistr/u32-check.c: Likewise.
7672         * lib/unistr/u32-chr.c: Likewise.
7673         * lib/unistr/u32-cmp.c: Likewise.
7674         * lib/unistr/u32-cpy-alloc.c: Likewise.
7675         * lib/unistr/u32-cpy.c: Likewise.
7676         * lib/unistr/u32-endswith.c: Likewise.
7677         * lib/unistr/u32-mblen.c: Likewise.
7678         * lib/unistr/u32-mbsnlen.c: Likewise.
7679         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
7680         * lib/unistr/u32-mbtouc.c: Likewise.
7681         * lib/unistr/u32-mbtoucr.c: Likewise.
7682         * lib/unistr/u32-move.c: Likewise.
7683         * lib/unistr/u32-next.c: Likewise.
7684         * lib/unistr/u32-prev.c: Likewise.
7685         * lib/unistr/u32-set.c: Likewise.
7686         * lib/unistr/u32-startswith.c: Likewise.
7687         * lib/unistr/u32-stpcpy.c: Likewise.
7688         * lib/unistr/u32-stpncpy.c: Likewise.
7689         * lib/unistr/u32-strcat.c: Likewise.
7690         * lib/unistr/u32-strchr.c: Likewise.
7691         * lib/unistr/u32-strcmp.c: Likewise.
7692         * lib/unistr/u32-strcpy.c: Likewise.
7693         * lib/unistr/u32-strcspn.c: Likewise.
7694         * lib/unistr/u32-strdup.c: Likewise.
7695         * lib/unistr/u32-strlen.c: Likewise.
7696         * lib/unistr/u32-strmblen.c: Likewise.
7697         * lib/unistr/u32-strmbtouc.c: Likewise.
7698         * lib/unistr/u32-strncat.c: Likewise.
7699         * lib/unistr/u32-strncmp.c: Likewise.
7700         * lib/unistr/u32-strncpy.c: Likewise.
7701         * lib/unistr/u32-strnlen.c: Likewise.
7702         * lib/unistr/u32-strpbrk.c: Likewise.
7703         * lib/unistr/u32-strrchr.c: Likewise.
7704         * lib/unistr/u32-strspn.c: Likewise.
7705         * lib/unistr/u32-strstr.c: Likewise.
7706         * lib/unistr/u32-strtok.c: Likewise.
7707         * lib/unistr/u32-to-u16.c: Likewise.
7708         * lib/unistr/u32-to-u8.c: Likewise.
7709         * lib/unistr/u32-uctomb.c: Likewise.
7710         * lib/unistr/u8-check.c: Likewise.
7711         * lib/unistr/u8-chr.c: Likewise.
7712         * lib/unistr/u8-cmp.c: Likewise.
7713         * lib/unistr/u8-cpy-alloc.c: Likewise.
7714         * lib/unistr/u8-cpy.c: Likewise.
7715         * lib/unistr/u8-endswith.c: Likewise.
7716         * lib/unistr/u8-mblen.c: Likewise.
7717         * lib/unistr/u8-mbsnlen.c: Likewise.
7718         * lib/unistr/u8-mbtouc-aux.c: Likewise.
7719         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
7720         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
7721         * lib/unistr/u8-mbtouc.c: Likewise.
7722         * lib/unistr/u8-mbtoucr.c: Likewise.
7723         * lib/unistr/u8-move.c: Likewise.
7724         * lib/unistr/u8-next.c: Likewise.
7725         * lib/unistr/u8-prev.c: Likewise.
7726         * lib/unistr/u8-set.c: Likewise.
7727         * lib/unistr/u8-startswith.c: Likewise.
7728         * lib/unistr/u8-stpcpy.c: Likewise.
7729         * lib/unistr/u8-stpncpy.c: Likewise.
7730         * lib/unistr/u8-strcat.c: Likewise.
7731         * lib/unistr/u8-strchr.c: Likewise.
7732         * lib/unistr/u8-strcmp.c: Likewise.
7733         * lib/unistr/u8-strcpy.c: Likewise.
7734         * lib/unistr/u8-strcspn.c: Likewise.
7735         * lib/unistr/u8-strdup.c: Likewise.
7736         * lib/unistr/u8-strlen.c: Likewise.
7737         * lib/unistr/u8-strmblen.c: Likewise.
7738         * lib/unistr/u8-strmbtouc.c: Likewise.
7739         * lib/unistr/u8-strncat.c: Likewise.
7740         * lib/unistr/u8-strncmp.c: Likewise.
7741         * lib/unistr/u8-strncpy.c: Likewise.
7742         * lib/unistr/u8-strnlen.c: Likewise.
7743         * lib/unistr/u8-strpbrk.c: Likewise.
7744         * lib/unistr/u8-strrchr.c: Likewise.
7745         * lib/unistr/u8-strspn.c: Likewise.
7746         * lib/unistr/u8-strstr.c: Likewise.
7747         * lib/unistr/u8-strtok.c: Likewise.
7748         * lib/unistr/u8-to-u16.c: Likewise.
7749         * lib/unistr/u8-to-u32.c: Likewise.
7750         * lib/unistr/u8-uctomb-aux.c: Likewise.
7751         * lib/unistr/u8-uctomb.c: Likewise.
7752         * lib/unitypes.h: Likewise.
7753         * lib/uniwidth.h: Likewise.
7754         * lib/uniwidth/cjk.h: Likewise.
7755         * lib/uniwidth/u16-strwidth.c: Likewise.
7756         * lib/uniwidth/u16-width.c: Likewise.
7757         * lib/uniwidth/u32-strwidth.c: Likewise.
7758         * lib/uniwidth/u32-width.c: Likewise.
7759         * lib/uniwidth/u8-strwidth.c: Likewise.
7760         * lib/uniwidth/u8-width.c: Likewise.
7761         * lib/uniwidth/width.c: Likewise.
7762
7763 2007-10-07  Bruno Haible  <bruno@clisp.org>
7764
7765         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
7766         The file is still under LGPL (see modules/inttypes).
7767
7768 2007-10-06  Bruno Haible  <bruno@clisp.org>
7769
7770         * modules/trunc (Dependencies): Add 'extensions'.
7771         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
7772         Reported by Ben Pfaff <blp@gnu.org>.
7773
7774 2007-10-06  Bruno Haible  <bruno@clisp.org>
7775
7776         * modules/freopen-tests: New file.
7777         * tests/test-freopen.c: New file.
7778
7779         * modules/fopen-tests: New file.
7780         * tests/test-fopen.c: New file.
7781
7782         * modules/fopen: New file.
7783         * lib/fopen.c: New file.
7784         * m4/fopen.m4: New file.
7785         * modules/freopen: New file.
7786         * lib/freopen.c: New file.
7787         * m4/freopen.m4: New file.
7788         * lib/stdio.in.h (fopen, freopen): New declarations.
7789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
7790         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7791         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
7792         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7793         * doc/functions/fopen.texi: Mention the 'fopen' module.
7794         * doc/functions/freopen.texi: Mention the 'freopen' module.
7795
7796 2007-10-06  Bruno Haible  <bruno@clisp.org>
7797
7798         * modules/open-tests: New file.
7799         * tests/test-open.c: New file.
7800
7801         * modules/open: New file.
7802         * lib/open.c: New file.
7803         * m4/open.m4: New file.
7804         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
7805         lib/open.c does.
7806         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
7807         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
7808         macros.
7809         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
7810         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
7811         REPLACE_OPEN.
7812         * doc/functions/open.texi: Mention the 'open' module.
7813
7814 2007-10-04  Bruno Haible  <bruno@clisp.org>
7815
7816         * modules/ceill-tests: New file.
7817         * tests/test-ceill.c: New file.
7818
7819         * modules/ceill: New file.
7820         * lib/ceill.c: Replace entire file.
7821         * m4/ceill.m4: New file.
7822         * lib/math.in.h (ceill): Replace declaration.
7823         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
7824         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
7825         * doc/functions/ceill.texi: Mention the 'ceill' module.
7826         * modules/mathl (Files): Remove lib/ceill.c.
7827         (Depends-on): Add ceill.
7828
7829 2007-10-04  Bruno Haible  <bruno@clisp.org>
7830
7831         * modules/ceilf-tests: New file.
7832         * tests/test-ceilf.c: New file.
7833
7834         * modules/ceilf: New file.
7835         * lib/ceil.c: New file.
7836         * lib/ceilf.c: New file.
7837         * m4/ceilf.m4: New file.
7838         * lib/math.in.h (ceilf): New declaration.
7839         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
7840         HAVE_DECL_CEILF.
7841         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
7842         HAVE_DECL_CEILF.
7843         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
7844
7845 2007-10-04  Bruno Haible  <bruno@clisp.org>
7846
7847         * modules/floorl-tests: New file.
7848         * tests/test-floorl.c: New file.
7849
7850         * modules/floorl: New file.
7851         * lib/floorl.c: Replace entire file.
7852         * m4/floorl.m4: New file.
7853         * lib/math.in.h (floorl): Replace declaration.
7854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
7855         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
7856         * doc/functions/floorl.texi: Mention the 'floorl' module.
7857         * modules/mathl (Files): Remove lib/floorl.c.
7858         (Depends-on): Add floorl.
7859
7860 2007-10-04  Bruno Haible  <bruno@clisp.org>
7861
7862         * modules/floorf-tests: New file.
7863         * tests/test-floorf.c: New file.
7864
7865         * modules/floorf: New file.
7866         * lib/floor.c: New file.
7867         * lib/floorf.c: New file.
7868         * m4/floorf.m4: New file.
7869         * lib/math.in.h (floorf): New declaration.
7870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
7871         HAVE_DECL_FLOORF.
7872         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
7873         HAVE_DECL_FLOORF.
7874         * doc/functions/floorf.texi: Mention the 'floorf' module.
7875
7876 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
7877             Bruno Haible  <bruno@clisp.org>
7878
7879         Advertise for the Git server instead of the CVS server.
7880         * doc/gnulib-intro.texi (Steady Development): Mention the Git
7881         repository instead of the CVS one.
7882         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
7883         about all VCS systems generically.
7884         * doc/gnulib.texi (Introduction): Capitalize `Git'.
7885
7886 2007-10-04  Bruno Haible  <bruno@clisp.org>
7887
7888         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
7889         means.
7890         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
7891
7892 2007-10-04  Bruno Haible  <bruno@clisp.org>
7893
7894         * modules/truncl-tests: New file.
7895         * tests/test-truncl.c: New file.
7896
7897         * modules/truncl: New file.
7898         * lib/truncl.c: New file.
7899         * m4/truncl.m4: New file.
7900         * lib/math.in.h (truncl): New declaration.
7901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
7902         HAVE_DECL_TRUNCL.
7903         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
7904         HAVE_DECL_TRUNCL.
7905         * doc/functions/truncl.texi: Mention the 'truncl' module.
7906
7907 2007-10-04  Bruno Haible  <bruno@clisp.org>
7908
7909         * modules/truncf-tests: New file.
7910         * tests/test-truncf.c: New file.
7911
7912         * modules/truncf: New file.
7913         * lib/trunc.c: Make paramerizable through USE_* macros.
7914         * lib/truncf.c: New file.
7915         * m4/truncf.m4: New file.
7916         * lib/math.in.h (truncf): New declaration.
7917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
7918         HAVE_DECL_TRUNCF.
7919         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
7920         HAVE_DECL_TRUNCF.
7921         * doc/functions/truncf.texi: Mention the 'truncf' module.
7922
7923 2007-10-03  Bruno Haible  <bruno@clisp.org>
7924
7925         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
7926         augmentation also for tests modules.
7927         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
7928         * modules/atexit-tests (Makefile.am): Likewise.
7929         * modules/binary-io-tests (Makefile.am): Likewise.
7930         * modules/c-strcase-tests (Makefile.am): Likewise.
7931         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
7932         * modules/canonicalize-tests (Makefile.am): Likewise.
7933         * modules/closein-tests (Makefile.am): Likewise.
7934         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7935         * modules/freadahead-tests (Makefile.am): Likewise.
7936         * modules/fseek-tests (Makefile.am): Likewise.
7937         * modules/fseeko-tests (Makefile.am): Likewise.
7938         * modules/ftell-tests (Makefile.am): Likewise.
7939         * modules/ftello-tests (Makefile.am): Likewise.
7940         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
7941         * modules/isnanl-tests (Makefile.am): Likewise.
7942         * modules/lseek-tests (Makefile.am): Likewise.
7943         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7944         * modules/mbscasestr-tests (Makefile.am): Likewise.
7945         * modules/mbschr-tests (Makefile.am): Likewise.
7946         * modules/mbscspn-tests (Makefile.am): Likewise.
7947         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7948         * modules/mbspbrk-tests (Makefile.am): Likewise.
7949         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7950         * modules/mbsrchr-tests (Makefile.am): Likewise.
7951         * modules/mbsspn-tests (Makefile.am): Likewise.
7952         * modules/mbsstr-tests (Makefile.am): Likewise.
7953         * modules/printf-posix-tests (Makefile.am): Likewise.
7954         * modules/snprintf-posix-tests (Makefile.am): Likewise.
7955         * modules/sprintf-posix-tests (Makefile.am): Likewise.
7956         * modules/tsearch-tests (Makefile.am): Likewise.
7957         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7958         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7959         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7960         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7961         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7962         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7963         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7964         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7965         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
7966         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
7967         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7968         * modules/xstrtol-tests (Makefile.am): Likewise.
7969         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7970         * modules/yesno-tests (Makefile.am): Likewise.
7971
7972 2007-10-03  Bruno Haible  <bruno@clisp.org>
7973
7974         * modules/trunc-tests: New file.
7975         * tests/test-trunc.c: New file.
7976
7977         * modules/trunc: New file.
7978         * lib/trunc.c: New file.
7979         * m4/trunc.m4: New file.
7980         * lib/math.in.h (trunc): New declaration.
7981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
7982         HAVE_DECL_TRUNC.
7983         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
7984         HAVE_DECL_TRUNC.
7985         * doc/functions/trunc.texi: Mention the 'trunc' module.
7986
7987 2007-10-03  Bruno Haible  <bruno@clisp.org>
7988
7989         * tests/test-fpending.c: New file, mostly copied
7990         from coreutils/lib/t-fpending.c.
7991         * modules/fpending-tests: New file.
7992
7993 2007-10-03  Bruno Haible  <bruno@clisp.org>
7994
7995         Port the stdio extensions to QNX (untested).
7996         * lib/fseterr.c (fseterr): Add support for QNX.
7997         * lib/fbufmode.c (fbufmode): Likewise.
7998         * lib/freadable.c (freadable): Likewise.
7999         * lib/fwritable.c (fwritable): Likewise.
8000         * lib/freading.c (freading): Likewise.
8001         * lib/fwriting.c (fwriting): Likewise.
8002         * lib/freadahead.c (freadahed): Likewise.
8003         * lib/fpurge.c (fpurge): Likewise.
8004         * lib/fseeko.c (rpl_fseeko): Likewise.
8005
8006 2007-10-03  Bruno Haible  <bruno@clisp.org>
8007             Jim Meyering  <jim@meyering.net>
8008             Eric Blake  <ebb9@byu.net>
8009
8010         * doc/relocatable.texi: Use @command instead of @program.
8011
8012 2007-10-02  Jim Meyering  <jim@meyering.net>
8013
8014         Perform one more "_.h" -> ".in.h" substitution.
8015         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
8016         instead of unistd_.h here, too.
8017
8018 2007-10-01  Bruno Haible  <bruno@clisp.org>
8019
8020         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
8021         Needed for the alloca-opt module.
8022
8023 2007-09-30  Bruno Haible  <bruno@clisp.org>
8024
8025         * lib/alloca.in.h: Renamed from lib/alloca_.h.
8026         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
8027         alloca_.h.
8028         * lib/argz.in.h: Renamed from lib/argz_.h.
8029         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
8030         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
8031         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
8032         byteswap_.h.
8033         * lib/dirent.in.h: Renamed from lib/dirent_.h.
8034         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
8035         dirent_.h.
8036         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
8037         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
8038         fcntl_.h.
8039         * lib/float.in.h: Renamed from lib/float_.h.
8040         * modules/float (Files, Makefile.am): Use float.in.h instead of
8041         float_.h.
8042         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
8043         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
8044         fnmatch_.h.
8045         * lib/getopt.in.h: Renamed from lib/getopt_.h.
8046         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
8047         getopt_.h.
8048         * lib/glob.in.h: Renamed from lib/glob_.h.
8049         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
8050         * lib/iconv.in.h: Renamed from lib/iconv_.h.
8051         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
8052         iconv_.h.
8053         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
8054         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
8055         inttypes_.h.
8056         * lib/locale.in.h: Renamed from lib/locale_.h.
8057         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
8058         locale_.h.
8059         * lib/math.in.h: Renamed from lib/math_.h.
8060         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
8061         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
8062         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
8063         of netinet_in_.h. Add dependency.
8064         * lib/poll.in.h: Renamed from lib/poll_.h.
8065         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
8066         * lib/search.in.h: Renamed from lib/search_.h.
8067         * modules/search (Files, Makefile.am): Use search.in.h instead of
8068         search_.h.
8069         * lib/signal.in.h: Renamed from lib/signal_.h.
8070         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
8071         _signal.h.
8072         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
8073         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
8074         stdbool_.h.
8075         * lib/stdint.in.h: Renamed from lib/stdint_.h.
8076         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
8077         stdint_.h.
8078         * lib/stdio.in.h: Renamed from lib/stdio_.h.
8079         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
8080         stdio_.h.
8081         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
8082         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
8083         stdlib_.h.
8084         * lib/string.in.h: Renamed from lib/string_.h.
8085         * modules/string (Files, Makefile.am): Use string.in.h instead of
8086         string_.h.
8087         * doc/gnulib-tool.texi (Initial import): Update.
8088         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
8089         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
8090         of sys_select_.h. Add dependency.
8091         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
8092         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
8093         of sys_socket_.h.
8094         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
8095         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
8096         sys_stat_.h.
8097         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
8098         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
8099         sys_time_.h.
8100         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
8101         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
8102         sysexits_.h.
8103         * lib/time.in.h: Renamed from lib/time_.h.
8104         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
8105         * lib/unistd.in.h: Renamed from lib/unistd_.h.
8106         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
8107         unistd_.h.
8108         * lib/wchar.in.h: Renamed from lib/wchar_.h.
8109         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
8110         wchar_.h.
8111         * lib/wctype.in.h: Renamed from lib/wctype_.h.
8112         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
8113         wctype_.h.
8114         * build-aux/bootstrap (slurp): Update.
8115         * lib/.cppi-disable: Update.
8116
8117 2007-09-30  Bruno Haible  <bruno@clisp.org>
8118
8119         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
8120         Needed on BeOS.
8121
8122 2007-09-30  Bruno Haible  <bruno@clisp.org>
8123
8124         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
8125
8126 2007-09-29  Bruno Haible  <bruno@clisp.org>
8127
8128         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
8129
8130 2007-09-29  Bruno Haible  <bruno@clisp.org>
8131
8132         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
8133         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
8134         * build-aux/install-reloc: Compile also areadlink.c.
8135         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
8136
8137 2007-09-29  Bruno Haible  <bruno@clisp.org>
8138
8139         * gnulib-tool (func_emit_initmacro_done): Indentation.
8140
8141 2007-09-29  Bruno Haible  <bruno@clisp.org>
8142
8143         * README: Add CVS checkout update instructions.
8144         Info from Bob Proulx <bob@proulx.com>.
8145
8146 2007-09-28  Eric Blake  <ebb9@byu.net>
8147
8148         Provide move-if-change.
8149         * build-aux/move-if-change: New file, based on best practice
8150         rather than any canonical upstream location.
8151
8152 2007-09-28  Jim Meyering  <jim@meyering.net>
8153
8154         Fix canonicalize loop-detection corner case.
8155         Do not attempt to stat the symlink values stored via seen_triple.
8156         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
8157         on linux-2.6.18, (but not 2.6.22).
8158         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
8159         triple_compare.  The former compares dev,ino,filename, while the latter
8160         would actually stat dirname(filename) when dev and ino were equal.
8161         * lib/hash-triple.c: Install <string.h>.
8162         (STREQ): Define.
8163         (triple_compare_ino_str): New function.
8164         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
8165
8166 2007-09-28  Eric Blake  <ebb9@byu.net>
8167
8168         Enforce that AC_REPLACE_FUNCS files exist.
8169         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
8170         override check for typos.
8171
8172         Fix test-closein on Solaris 10.
8173         * tests/test-closein.c (main): Don't assume stdin can be inherited
8174         closed on all systems.
8175         * tests/test-closein.sh: Likewise.
8176         Reported by Piotr Tarnowski.
8177
8178 2007-09-28  Jim Meyering  <jim@meyering.net>
8179
8180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
8181
8182 2007-09-27  Jim Meyering  <jim@meyering.net>
8183
8184         canonicalize: Avoid a false-positive cycle failure.
8185         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
8186         Sort.  Remove cycle-check.
8187         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
8188         not cycle-check.h.
8189         (seen_triple): New function.
8190         (canonicalize_filename_mode): Use it instead of cycle-check.
8191         * tests/test-canonicalize.c: Add a test for this bug.
8192         * tests/test-canonicalize.sh: Set up and run the test.
8193
8194         New module, file-set, from coreutils.
8195         * modules/file-set: Define it.
8196         * lib/file-set.c, lib/file-set.h: Implement.
8197
8198         New module, hash-triple, from coreutils.
8199         * modules/hash-triple: Define it.
8200         * lib/hash-triple.c, lib/hash-triple.h: Implement.
8201
8202 2007-09-25  Eric Blake  <ebb9@byu.net>
8203
8204         Fix strerror on Interix.
8205         * lib/string_.h (strerror): Declare replacement.
8206         * doc/functions/strerror.texi (strerror): Document the Interix
8207         shortcoming.
8208         * modules/string (Makefile.am): Support new hooks.
8209         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
8210         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
8211         gl_FUNC_STRERROR_SEPARATE.
8212         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
8213         * lib/strerror.c (rpl_strerror): Provide replacement.
8214         * modules/strerror (Depends-on): Add string.
8215         (configure.ac): Detect use of module.
8216         * tests/test-strerror.c: New file.
8217         * modules/strerror-tests: New test module.
8218         * modules/argp (Depends-on): Add strerror.
8219         * modules/error (Depends-on): Likewise.
8220         Reported by Martin Koeppe.
8221
8222 2007-09-24  Bruno Haible  <bruno@clisp.org>
8223
8224         * README: Update git instructions.
8225
8226 2007-09-24  Eric Blake  <ebb9@byu.net>
8227
8228         Revert fpending breakage from 2007-09-08.
8229         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
8230         __fpending.c.
8231
8232 2007-09-24  Jim Meyering  <jim@meyering.net>
8233
8234         filenamecat.c: Add a test.
8235         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
8236         showing how the function works when DIR is the empty string.
8237
8238 2007-09-21  Simon Josefsson  <simon@josefsson.org>
8239
8240         * tests/test-canonicalize.sh: Turn on executable bit.
8241
8242 2007-09-19  Eric Blake  <ebb9@byu.net>
8243
8244         * README: Update CVS instructions.
8245
8246 2007-09-18  Bruno Haible  <bruno@clisp.org>
8247
8248         * modules/areadlink: New file.
8249         * lib/areadlink.h (areadlink): New declaration.
8250         * lib/areadlink.c: New file, based on lib/xreadlink.c.
8251
8252 2007-09-17  Jim Meyering  <jim@meyering.net>
8253
8254         * lib/savewd.c (ESTALE) [!defined]: Define.
8255         Reported to be required on Interix by Martin Koeppe.
8256
8257 2007-09-17  Bruno Haible  <bruno@clisp.org>
8258
8259         * gnulib-tool (func_version): Use $version.
8260
8261 2007-09-16  Bruno Haible  <bruno@clisp.org>
8262
8263         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
8264         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
8265         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
8266         Reported by Greg Schafer <gschafer@zip.com.au>.
8267
8268 2007-09-15  Bruno Haible  <bruno@clisp.org>
8269
8270         * gnulib-tool (sed): Try a little harder to make bash understand the
8271         alias.
8272         Reported by Bruce Korb <bruce.korb@gmail.com>.
8273
8274 2007-09-13  Eric Blake  <ebb9@byu.net>
8275
8276         * ChangeLog: Remove conflict markers.
8277
8278 2007-09-13  Simon Josefsson  <simon@josefsson.org>
8279
8280         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
8281         Reported by Bruno Haible <bruno@clisp.org>.
8282
8283 2007-09-12  Bruno Haible  <bruno@clisp.org>
8284
8285         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
8286         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
8287         is not defined.
8288
8289 2007-09-12  Eric Blake  <ebb9@byu.net>
8290
8291         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
8292         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
8293         Autoconf definition.
8294         * modules/euidaccess (Depends-on): Add extensions, for
8295         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
8296         * modules/fnmatch (Depends-on): Likewise.
8297         * modules/getaddrinfo (Depends-on): Likewise.
8298         * modules/getdelim (Depends-on): Likewise.
8299         * modules/getline (Depends-on): Likewise.
8300         * modules/getsubopt (Depends-on): Likewise.
8301         * modules/gettext (Depends-on): Likewise.
8302         * modules/group-member (Depends-on): Likewise.
8303         * modules/mbchar (Depends-on): Likewise.
8304         * modules/memmem (Depends-on): Likewise.
8305         * modules/mempcpy (Depends-on): Likewise.
8306         * modules/memrchr (Depends-on): Likewise.
8307         * modules/pagealign_alloc (Depends-on): Likewise.
8308         * modules/readutmp (Depends-on): Likewise.
8309         * modules/stpcpy (Depends-on): Likewise.
8310         * modules/stpncpy (Depends-on): Likewise.
8311         * modules/strchrnul (Depends-on): Likewise.
8312         * modules/strndup (Depends-on): Likewise.
8313         * modules/strsep (Depends-on): Likewise.
8314         * modules/strverscmp (Depends-on): Likewise.
8315         * modules/vasprintf (Depends-on): Likewise.
8316         * modules/wcwidth (Depends-on): Likewise.
8317         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
8318         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
8319         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
8320         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
8321         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8322         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8323         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
8324         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
8325         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
8326         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
8327         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8328         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
8329         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
8330         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8331         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
8332         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8333         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8334         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
8335         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8336         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
8337         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
8338         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
8339         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
8340         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
8341         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
8342         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8343         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
8344         so that lock.m4 can be used in gettext without extensions module.
8345
8346 2007-09-11  Bruno Haible  <bruno@clisp.org>
8347
8348         * m4/isc-posix.m4: Remove file.
8349         Suggested by Eric Blake.
8350
8351 2007-09-11  Eric Blake  <ebb9@byu.net>
8352
8353         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
8354
8355 2007-09-10  Bruno Haible  <bruno@clisp.org>
8356
8357         * posix-modules: Fix typo in error message.
8358         Reported by Matt <mkraai@beckman.com>.
8359
8360 2007-09-09  Bruno Haible  <bruno@clisp.org>
8361
8362         * doc/functions/getdelim.texi: Update list of platforms lacking the
8363         function.
8364         * doc/functions/getline.texi: Likewise.
8365
8366 2007-09-09  Jim Meyering  <jim@meyering.net>
8367
8368         * lib/hash.c (hash_initialize): Detect calloc failure.
8369         Reported by Bruno Haible.
8370
8371 2007-09-09  Bruno Haible  <bruno@clisp.org>
8372
8373         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
8374         malloc or realloc fails.
8375
8376 2007-09-09  Bruno Haible  <bruno@clisp.org>
8377
8378         * modules/getcwd (Depends-on): Add malloc-posix.
8379         * modules/glob (Depends-on): Likewise.
8380         * modules/putenv (Depends-on): Likewise.
8381         * modules/strdup (Depends-on): Likewise.
8382         * modules/getdelim (Depends-on): Add realloc-posix.
8383         * modules/read-file (Depends-on): Likewise.
8384
8385 2007-09-09  Bruno Haible  <bruno@clisp.org>
8386
8387         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
8388         (gl_FUNC_MALLOC_POSIX): Require it.
8389         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
8390         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
8391         * modules/realloc (Files): Add m4/malloc.m4.
8392         * modules/calloc (Files): Likewise.
8393
8394 2007-09-09  Bruno Haible  <bruno@clisp.org>
8395
8396         * modules/malloc-posix: New file.
8397         * modules/malloc (Depends-on): Add malloc-posix.
8398         * lib/malloc.c: Include errno.h.
8399         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
8400         and a POSIX-compatible malloc into a single function. Set ENOMEM
8401         when returning NULL.
8402         * m4/malloc.m4: New file.
8403         * doc/functions/malloc.texi: Mention the malloc-posix module.
8404         * lib/stdlib_.h (malloc): New declaration.
8405         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8406         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
8407         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
8408         and HAVE_MALLOC_POSIX.
8409
8410 2007-09-09  Bruno Haible  <bruno@clisp.org>
8411
8412         * modules/realloc-posix: New file.
8413         * modules/realloc (Depends-on): Add realloc-posix.
8414         * lib/realloc.c: Include errno.h.
8415         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
8416         and a POSIX-compatible realloc into a single function. Set ENOMEM
8417         when returning NULL.
8418         * m4/realloc.m4: New file.
8419         * doc/functions/realloc.texi: Mention the realloc-posix module.
8420         * lib/stdlib_.h (realloc): New declaration.
8421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8422         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
8423         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
8424         and HAVE_REALLOC_POSIX.
8425
8426 2007-09-09  Bruno Haible  <bruno@clisp.org>
8427
8428         * modules/calloc-posix: New file.
8429         * modules/calloc (Depends-on): Add calloc-posix.
8430         * lib/calloc.c: Include errno.h.
8431         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
8432         and a POSIX-compatible calloc into a single function. Set ENOMEM
8433         when returning NULL.
8434         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
8435         * doc/functions/calloc.texi: Mention the calloc-posix module.
8436         * lib/stdlib_.h (calloc): New declaration.
8437         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8438         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
8439         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
8440         and HAVE_CALLOC_POSIX.
8441
8442 2007-09-09  Bruno Haible  <bruno@clisp.org>
8443
8444         Allow for modules to show an arbitrary notice.
8445         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
8446         * gnulib-tool: New option --extract-notice.
8447         (func_usage): Document it.
8448         (sed_extract_prog): Update.
8449         (func_get_notice): New function.
8450         (func_modules_notice): New function.
8451         (func_import, func_create_testdir): Invoke it.
8452         Suggested by Jim Meyering.
8453
8454 2007-09-09  Bruno Haible  <bruno@clisp.org>
8455
8456         * gnulib-tool: New options --verbose, --quiet.
8457         (func_usage): Document them.
8458         (verbose): New variable.
8459         (func_execute_command): New function.
8460         (func_import): Don't show the module list and the file list if
8461         $verbose < 0.
8462         (func_create_testdir): Likewise. Use func_execute_command.
8463         (func_create_megatestdir): Use func_execute_command.
8464
8465 2007-09-08  Bruno Haible  <bruno@clisp.org>
8466
8467         * gnulib-tool (func_import): Prefer rsync over wget when available,
8468         for fetching the PO files.
8469
8470 2007-09-08  Bruno Haible  <bruno@clisp.org>
8471
8472         * posix-modules: New file. Portions copied from gnulib-tool.
8473         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
8474
8475 2007-09-08  Jim Meyering  <jim@meyering.net>
8476
8477         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
8478         * lib/fpending.h: Rename from __fpending.h.
8479         * lib/fpending.c: Rename from __fpending.c.
8480         Include "fpending.h", not "__fpending.h".
8481         * lib/__fpending.h, lib/__fpending.c: Remove files.
8482         * modules/fpending (Files): Reflect new file names.
8483         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
8484
8485 2007-09-08  Bruno Haible  <bruno@clisp.org>
8486
8487         * m4/inttypes-h.m4: Remove stub file.
8488
8489 2007-09-07  Simon Josefsson  <simon@josefsson.org>
8490
8491         * doc/headers/stdint.texi: Discuss #include_next issue.
8492
8493 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8494
8495         * build-aux/bootstrap: Remove obsolete comment about wget --help.
8496
8497 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8498
8499         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
8500         in variable name.
8501
8502 2007-09-03  Jim Meyering  <jim@meyering.net>
8503
8504         New module: git-version-gen.
8505         * modules/git-version-gen: New file.
8506
8507         Import changes from coreutils for bootstrap script.
8508
8509         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
8510
8511         bootstrap: uses rsync to download the .po files
8512         * build-aux/bootstrap (po_download_command_format): New global.
8513         (download_po_files): Use rsync.
8514         (update_po_files): Don't remove .po files after download,
8515         so future rsync runs can take advantage of the copies.
8516
8517         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
8518
8519         Solve the unnecessary-.po-file-regeneration problem once and for all.
8520         * build-aux/bootstrap (download_po_files): New function, renamed from
8521         get_translations.  Now, downloads, but doesn't update LINGUAS.
8522         (update_po_files): New function.
8523
8524         bootstrap: Ignore more.
8525         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
8526         uniwidth to e.g., lib/.gitignore.
8527         (slurp): Handle the sys_stat_.h -> sys mapping, too.
8528
8529         * build-aux/bootstrap: New setting: vc_ignore.
8530         (insert_sorted_if_absent): Create $file if absent.
8531         Adapt to new, possibly empty, list: $vc_ignore.
8532
8533         bootstrap: generate more ignorable names
8534         * build-aux/bootstrap (slurp): When generating ignorable names,
8535         also map .sin to .sed, .gperf to .c, and .y to .c.
8536
8537 2007-09-03  Jim Meyering  <jim@meyering.net>
8538
8539         * build-aux/git-version-gen: New file, from coreutils.  For details, see
8540         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
8541
8542 2007-09-02  Bruno Haible  <bruno@clisp.org>
8543
8544         Fix mis-recognition of 'mcs' on QNX 6.
8545         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
8546         output contains the string "Mono".
8547         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
8548         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
8549
8550 2007-09-01  Bruno Haible  <bruno@clisp.org>
8551
8552         Fix collision between uniwidth/* and linebreak modules.
8553         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
8554         u32_width): Remove declarations.
8555         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
8556         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
8557         streq3, streq2, streq1, streq0): Remove functions.
8558         (STREQ): Remove macro.
8559         (is_cjk_encoding): Remove function.
8560         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
8561         (uc_width, u8_width, u16_width, u32_width): Remove functions.
8562         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
8563         * NEWS: Document the change.
8564
8565 2007-09-01  Bruno Haible  <bruno@clisp.org>
8566
8567         * lib/streq.h: Add double-inclusion guard.
8568
8569 2007-09-01  Karl Berry  <karl@gnu.org>
8570
8571         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
8572
8573 2007-08-28  Jim Meyering  <jim@meyering.net>
8574
8575         Rename mreadlink_with_size to areadlink_with_size.
8576         * NEWS: Document the change.
8577         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
8578         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
8579         * lib/mreadlink.h: Rename this to...
8580         * lib/areadlink.h: ...this.
8581         * modules/mreadlink-with-size: Rename this to...
8582         * modules/areadlink-with-size: ...this.
8583         * lib/canonicalize.c: Reflect the renaming.
8584         * modules/canonicalize: Likewise.
8585
8586 2007-08-26  Bruno Haible  <bruno@clisp.org>
8587
8588         * gnulib-tool (func_import): When deciding which files to remove,
8589         consider also dangling symbolic links.
8590         Reported by Eric Blake.
8591
8592 2007-08-26  Bruno Haible  <bruno@clisp.org>
8593
8594         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
8595
8596 2007-08-23  Simon Josefsson  <simon@josefsson.org>
8597
8598         * lib/readline.c: Don't include getline.h, the prototype is now
8599         found in stdio.h.
8600
8601 2007-08-23  Jim Meyering  <jim@meyering.net>
8602
8603         Getdelim touchup.
8604         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
8605         around the funlockfile call, since funlockfile never sets errno.
8606         Don't set errno upon failed realloc.
8607
8608 2007-08-22  Eric Blake  <ebb9@byu.net>
8609
8610         Getline touchups.
8611         * lib/getdelim.c (getdelim): Revert regression that required *n to
8612         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
8613         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
8614         getdelim, rather than whether implementation is missing.
8615         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
8616         * lib/stdio_.h (getline): Also declare if replacement is
8617         required.
8618         * doc/functions/getdelim.texi: New file.
8619         * doc/functions/getline.texi: Likewise.
8620         * doc/gnulib.texi (Function Substitutes): Add new files.
8621         Reported by Bruno Haible.
8622
8623 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
8624
8625         * users.txt: Add Guile.
8626
8627 2007-08-22  Eric Blake  <ebb9@byu.net>
8628
8629         * tests/test-getdelim.c (main): Use remove, not unlink.
8630         * tests/test-getline.c (main): Likewise.
8631
8632         Move getline and getdelim into stdio.h, per POSIX 200x.
8633         * modules/getline (Files): Remove getline.h.
8634         (Depends-on): Add stdio.
8635         (configure.ac): Add module indicator.
8636         * modules/getdelim (Files): Remove getdelim.h.
8637         (Depends-on): Add stdio.
8638         (configure.ac): Add module indicator.
8639         * modules/stdio (Makefile.am): Work with new indicators.
8640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8641         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
8642         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8643         * lib/getdelim.h: Delete.
8644         * lib/getline.h: Delete.
8645         * lib/stdio_.h (getdelim, getline): Declare.
8646         * modules/getdelim-tests: New module.
8647         * modules/getline-tests: Likewise.
8648         * tests/test-getdelim.c: New file.
8649         * tests/test-getline.c: Likewise.
8650         * NEWS: Document the change.
8651         * lib/getline.c: Update choice of header.
8652         * lib/csharpcomp.c: Likewise.
8653         * lib/getpass.c: Likewise.
8654         * lib/javacomp.c: Likewise.
8655         * lib/javaversion.c: Likewise.
8656         * lib/yesno.c: Likewise.
8657         * lib/getdelim.c: Likewise.
8658         (getdelim): Set errno on failure, and avoid memory leak.
8659
8660 2007-08-19  Bruno Haible  <bruno@clisp.org>
8661
8662         * modules/closein (Depends-on): Add freadahead.
8663         * lib/closein.c: Include freadahead.h.
8664         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
8665         is zero.
8666
8667 2007-08-19  Bruno Haible  <bruno@clisp.org>
8668
8669         * modules/freadahead-tests: New file.
8670         * tests/test-freadahead.sh: New file.
8671         * tests/test-freadahead.c: New file.
8672
8673         * modules/freadahead: New file.
8674         * lib/freadahead.h: New file.
8675         * lib/freadahead.c: New file.
8676         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
8677         fbufmode, fpurge, freadable, fwritable.
8678
8679 2007-08-19  Eric Blake  <ebb9@byu.net>
8680
8681         Test yesno in combination with closein.
8682         * lib/yesno.c (yesno): Document use of stdin.
8683         * modules/yesno-tests (Files): New module.
8684         * tests/test-yesno.c (main): New file.
8685         * tests/test-yesno.sh: Likewise.
8686
8687 2007-08-19  Bruno Haible  <bruno@clisp.org>
8688
8689         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
8690         * lib/fseeko.c (rpl_fseeko): Likewise.
8691         * lib/fseterr.c (fseterr): Likewise.
8692
8693 2007-08-19  Bruno Haible  <bruno@clisp.org>
8694
8695         * tests/test-lseek.c (main): Disable a test for BeOS.
8696         * doc/functions/lseek.texi: Document the BeOS bug.
8697
8698 2007-08-19  Bruno Haible  <bruno@clisp.org>
8699             Eric Blake  <ebb9@byu.net>
8700
8701         * lib/lseek.c: Include <sys/stat.h>.
8702         (rpl_lseek): Add workaround code also for Unix platforms.
8703         Needed for BeOS.
8704         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
8705         * doc/functions/lseek.texi: Document BeOS definiency.
8706
8707 2007-08-18  Bruno Haible  <bruno@clisp.org>
8708
8709         * modules/fstrcmp-tests: New file.
8710         * tests/test-fstrcmp.c: New file.
8711
8712 2007-08-18  Bruno Haible  <bruno@clisp.org>
8713
8714         * modules/fstrcmp: New file, from GNU gettext with modifications.
8715         * lib/fstrcmp.h: New file, from GNU gettext.
8716         * lib/fstrcmp.c: New file, from GNU gettext.
8717         * MODULES.html.sh (String handling): Add fstrcmp.
8718
8719 2007-08-18  Bruno Haible  <bruno@clisp.org>
8720
8721         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
8722         'bool'.
8723         (diag, compareseq): Remove const from the ctxt argument.
8724         (USE_HEURISTIC): Undefine at the end.
8725
8726 2007-08-18  Jim Meyering  <jim@meyering.net>
8727
8728         New file: lib/idcache.h
8729         * NEWS: Mention the addition.
8730         * modules/idcache (Files): Add lib/idcache.h
8731         * lib/idcache.c: Include "idcache.h".
8732         Don't include <sys/types.h>.
8733         Add a FIXME comment.
8734         Move file-scoped "static" declarations to the top.
8735         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
8736
8737 2007-08-17  Bruno Haible  <bruno@clisp.org>
8738         and Paul Eggert  <eggert@cs.ucla.edu>
8739
8740         * MODULES.html.sh: Add diffseq.
8741         * modules/diffseq: New file.
8742         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
8743         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
8744
8745 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
8746
8747         Import changes from coreutils for bootstrap script.
8748
8749         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
8750
8751         * build-aux/bootstrap (slurp): Work even in environments where
8752         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
8753         current code does not slurp files whose names start with ".", and
8754         this looks like it might be a troublesome area.
8755
8756         2007-07-11  Jim Meyering  <jim@meyering.net>
8757
8758         If there's a GPL vN copyright comment, require that N == 3.
8759
8760         2007-07-08  Jim Meyering  <jim@meyering.net>
8761
8762         Run the coreutils-specific code only if tests/Makefile.am.in exists.
8763         * build-aux/bootstrap (mam_template): Move definition out of loop.
8764
8765         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
8766
8767         * build-aux/bootstrap (symlink_to_dir): Rename function from
8768         symlink_to_gnulib.  Add a directory parameter.  Update all
8769         callers.
8770         (cp_mark_as_generated): Also check for -- and link to -- files in
8771         gl/.
8772
8773         2007-07-08  Jim Meyering  <jim@meyering.net>
8774
8775         Adapt to deeper hierarchy in gnulib.
8776         * build-aux/bootstrap (symlink_to_dir): If the destination
8777         directory doesn't exist, create it. This is required at least for
8778         "lib/uniwidth/cjk.h".
8779
8780         2007-05-15  Jim Meyering  <jim@meyering.net>
8781
8782         * build-aux/bootstrap: Now that generated Makefile.am files
8783         are no longer under version control, they must be created at
8784         bootstrap time.
8785
8786 2007-08-14  Ben Pfaff  <blp@gnu.org>
8787
8788         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
8789
8790 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
8791
8792         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
8793         given the changes below.
8794         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
8795         even on hosts that have padding bits beyond the supported 64.
8796
8797 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8798
8799         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
8800         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
8801         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
8802         depends on it.
8803         (xstrtol_error): Remove.
8804         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
8805         but with a different signature.
8806         (ATTRIBUTE_NORETURN, __attribute__): New macros.
8807         * lib/xstrtol-error.c: Include exitfail.h.
8808         (xstrtol_fatal): New function, with a different signature from the
8809         old xstrtol_error, so that the caller need not worry about passing
8810         in an exit status, or about storage management of the option argument.
8811         (xstrtol_error): Now a static function.  Redo signature to
8812         implement xstrtol_fatal.  Output the correct number of hyphens in
8813         front of the option so that the caller need not worry about
8814         storage management.
8815         (N_): New macro.
8816         (_): Remove; not used now.
8817         * modules/xstrtol: Depend on getopt.
8818         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
8819         of old STRTOL_FATAL_ERROR macro.
8820         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
8821         of test program.
8822         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
8823         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
8824
8825 2007-08-08  Eric Blake  <ebb9@byu.net>
8826
8827         * lib/xstrtol-error.c: Add missing include.
8828
8829         Move xstrtol messages into gnulib domain, when --pobase is used.
8830         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
8831         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
8832         * modules/xstrtol (Files): Distribute new file.
8833         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
8834         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
8835         * tests/test-xstrtol.c: ...into new file.
8836         * tests/test-xstrtoul.c: Also test xstrtoul.
8837         * tests/test-xstrtoimax.c: Also test xstrtoimax.
8838         * tests/test-xstrtoumax.c: Also test xstrtoumax.
8839         * tests/test-xstrtol.sh: Drive the tests.
8840         * tests/test-xstrtoimax.sh: Likewise.
8841         * tests/test-xstrtoumax.sh: Likewise.
8842         * modules/xstrtol-tests: New module.
8843         * modules/xstrtoimax-tests: Likewise.
8844         * modules/xstrtoumax-tests: Likewise.
8845
8846 2007-08-08  Jim Meyering  <jim@meyering.net>
8847
8848         New function: mfile_name_concat.
8849         * lib/filenamecat.c (mfile_name_concat): New function, just like
8850         file_name_concat, but return NULL upon failure rather than exiting
8851         with a diagnostic.
8852         * lib/filenamecat.h: Declare it.
8853
8854 2007-08-07  Bruno Haible  <bruno@clisp.org>
8855
8856         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
8857         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
8858         warning from gcc.
8859         Reported by Eric Blake.
8860
8861 2007-08-07  Simon Josefsson  <simon@josefsson.org>
8862
8863         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
8864         * modules/crypto/arcfour (License): Likewise.
8865         * modules/crypto/des-tests (License): Likewise.
8866         * modules/crypto/gc-arctwo-tests (License): Likewise.
8867         * modules/crypto/gc-des-tests (License): Likewise.
8868         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
8869         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
8870         * modules/crypto/gc-md2-tests (License): Likewise.
8871         * modules/crypto/gc-md4-tests (License): Likewise.
8872         * modules/crypto/gc-md5-tests (License): Likewise.
8873         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
8874         * modules/crypto/gc-rijndael-tests (License): Likewise.
8875         * modules/crypto/gc-sha1-tests (License): Likewise.
8876         * modules/crypto/gc-tests (License): Likewise.
8877         * modules/crypto/hmac-md5 (License): Likewise.
8878         * modules/crypto/hmac-sha1 (License): Likewise.
8879         * modules/crypto/md2-tests (License): Likewise.
8880         * modules/crypto/md4-tests (License): Likewise.
8881         * modules/crypto/md5 (License): Likewise.
8882         * modules/crypto/rijndael (License): Likewise.
8883         * modules/crypto/sha1 (License): Likewise.
8884         * modules/memxor (License): Likewise.
8885
8886 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
8887         and Bruno Haible  <bruno@clisp.org>
8888
8889         * NEWS: Describe interface changes to human, xstrtol.
8890         * lib/human.h: Include <xstrtol.h>.
8891         (human_options): Return enum strtol_error, not int.  Remove
8892         bool arg; take int * instead.
8893         * lib/human.c: Don't include "gettext.h".
8894         (_): Remove; no longer used.
8895         Don't include <xstrtol.h>, since human.h does it.
8896         (human_options): Adjust to abovementioned interface changes.
8897         Do not report error to stderr; that's now the caller's
8898         responsibility.
8899         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
8900         interface change.
8901         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
8902         Str, Argument_type_string.  All uses changed.  Put " argument"
8903         in diagnostics to make them clearer.  Change wording of suffix
8904         message for clarity.
8905         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
8906         Argument_type_string.
8907         (STRTOL_FATAL_WARN): Remove; no longer used.
8908         * modules/human (Depends-on): Remove gettext-h.
8909
8910 2007-08-06  Simon Josefsson  <simon@josefsson.org>
8911
8912         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
8913
8914 2007-07-31  Bruno Haible  <bruno@clisp.org>
8915
8916         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
8917         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
8918         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
8919
8920 2007-07-31  Bruno Haible  <bruno@clisp.org>
8921
8922         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
8923         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
8924
8925 2007-07-30  Bruno Haible  <bruno@clisp.org>
8926
8927         * modules/base64 (License): Use the synonymous term "LGPLv2+".
8928         * modules/c-ctype (License): Likewise.
8929         * modules/c-strcase (License): Likewise.
8930         * modules/check-version (License): Likewise.
8931         * modules/iconv (License): Likewise.
8932         * modules/iconv_open (License): Likewise.
8933         * modules/read-file (License): Likewise.
8934         * modules/striconv (License): Likewise.
8935         * modules/strverscmp (License): Likewise.
8936         * modules/vasprintf (License): Likewise.
8937         * modules/crypto/des (License): Likewise.
8938         * modules/crypto/gc (License): Likewise.
8939         * modules/crypto/gc-arcfour (License): Likewise.
8940         * modules/crypto/gc-arctwo (License): Likewise.
8941         * modules/crypto/gc-des (License): Likewise.
8942         * modules/crypto/gc-hmac-md5 (License): Likewise.
8943         * modules/crypto/gc-hmac-sha1 (License): Likewise.
8944         * modules/crypto/gc-md2 (License): Likewise.
8945         * modules/crypto/gc-md4 (License): Likewise.
8946         * modules/crypto/gc-md5 (License): Likewise.
8947         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
8948         * modules/crypto/gc-random (License): Likewise.
8949         * modules/crypto/gc-rijndael (License): Likewise.
8950         * modules/crypto/gc-sha1 (License): Likewise.
8951         * modules/crypto/md2 (License): Likewise.
8952         * modules/crypto/md4 (License): Likewise.
8953
8954 2007-07-30  Jim Meyering  <jim@meyering.net>
8955
8956         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
8957         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
8958         it has valid stat data.  This bug would cause du not to count the
8959         sizes of inaccessible directories.
8960         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
8961         in <http://bugzilla.redhat.com/250077>.
8962
8963 2007-07-25  Peter O'Gorman  <peter@pogma.com>
8964             Bruno Haible  <bruno@clisp.org>
8965
8966         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
8967         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
8968         #include_next, gives a diagnostic about it, but reports no error in
8969         the exit code.
8970         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
8971
8972 2007-07-24  Ben Pfaff  <blp@gnu.org>
8973
8974         Improve name: "count-one-bits" is better than "popcount".
8975         * MODULES.html.sh: Update name.
8976         * lib/popcount.h: Renamed lib/count-one-bits.h.
8977         (popcount): Renamed count_one_bits.
8978         (popcountl): Renamed count_one_bits_l.
8979         (popcountll): Renamed count_one_bits_ll.
8980         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
8981         * modules/popcount: Renamed module/count-one-bits.
8982         * modules/popcount-tests: Renamed module/count-one-bits-tests.
8983         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
8984
8985 2007-07-23  Ben Pfaff  <blp@gnu.org>
8986
8987         * lib/popcount.h (popcount32): Reduce size of constants, to allow
8988         better code generation, and add U to large constants to avoid
8989         warnings, in non-GCC case.
8990         Suggested by Bruno Haible.
8991
8992 2007-07-23  Ben Pfaff  <blp@gnu.org>
8993
8994         * lib/popcount.h: Use verify_true instead of if...abort.
8995         * modules/popcount: Depend on verify module.
8996         Suggested by Jim Meyering.
8997
8998 2007-07-23  Bruno Haible  <bruno@clisp.org>
8999
9000         * gnulib-tool (func_import): Create a .cvsignore file also when the
9001         directory is not yet in CVS but the toplevel directory is. When
9002         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
9003         Reported by Karl Berry.
9004
9005 2007-07-22  Ben Pfaff  <blp@gnu.org>
9006
9007         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
9008         case.
9009         Suggested by Eric Blake.
9010
9011 2007-07-22  Ben Pfaff  <blp@gnu.org>
9012
9013         New module: popcount.
9014         * MODULES.html.sh: Add popcount.
9015         * modules/popcount: New file.
9016         * modules/popcount-tests: New file.
9017         * tests/test-popcount.c: New file.
9018         * lib/popcount.h: New file.
9019         * m4/popcount.m4: New file.
9020
9021 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
9022
9023         * build-aux/announce-gen: Update to GPLv3.
9024
9025         * build-aux/config.guess: Update from config.
9026
9027 2007-07-21  Bruno Haible  <bruno@clisp.org>
9028
9029         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
9030         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
9031
9032 2007-07-20  Jim Meyering  <jim@meyering.net>
9033
9034         * check-module: Diagnose a self-dependency.
9035
9036 2007-07-19  Bruno Haible  <bruno@clisp.org>
9037
9038         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
9039         empty.
9040         Reported by Eric Blake.
9041
9042 2007-07-18  Bruno Haible  <bruno@clisp.org>
9043
9044         * gnulib-tool: New options --po-base, --po-domain.
9045         (func_usage): Document them.
9046         (pobase, po_domain): New variables.
9047         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
9048         DEFAULT_TEXT_DOMAIN.
9049         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
9050         (func_import): Consider pobase and po_domain. Create a po/ directory.
9051         (func_create_testdir): Set pobase and po_domain to empty.
9052         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
9053         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
9054
9055 2007-07-18  Bruno Haible  <bruno@clisp.org>
9056
9057         * gnulib-tool (func_get_automake_snippet): Synthesize also an
9058         EXTRA_DIST augmentation for files in build-aux/.
9059
9060 2007-07-16  Bruno Haible  <bruno@clisp.org>
9061
9062         * modules/lseek (License): Use the synonymous term "LGPLv2+".
9063         * modules/getdelim (License): Likewise.
9064
9065 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9066
9067         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
9068         * modules/d-type (License): Likewise.
9069         * modules/extensions (License): Likewise.
9070         * modules/fnmatch (License): Likewise.
9071         * modules/fseeko (License): Likewise.
9072         * modules/getaddrinfo (License): Likewise.
9073         * modules/getline (License): Likewise.
9074         * modules/getlogin_r (License): Likewise.
9075         * modules/getpass (License): Likewise.
9076         * modules/gettimeofday (License): Likewise.
9077         * modules/glob (License): Likewise.
9078         * modules/inet_ntop (License): Likewise.
9079         * modules/malloc (License): Likewise.
9080         * modules/malloca (License): Likewise.
9081         * modules/memmem (License): Likewise.
9082         * modules/mempcpy (License): Likewise.
9083         * modules/memset (License): Likewise.
9084         * modules/minmax (License): Likewise.
9085         * modules/mktime (License): Likewise.
9086         * modules/netinet_in (License): Likewise.
9087         * modules/pathmax (License): Likewise.
9088         * modules/poll (License): Likewise.
9089         * modules/regex (License): Likewise.
9090         * modules/snprintf (License): Likewise.
9091         * modules/stdbool (License): Likewise.
9092         * modules/stdint (License): Likewise.
9093         * modules/stdio (License): Likewise.
9094         * modules/strcase (License): Likewise.
9095         * modules/strcasestr (License): Likewise.
9096         * modules/strdup (License): Likewise.
9097         * modules/string (License): Likewise.
9098         * modules/strndup (License): Likewise.
9099         * modules/strnlen (License): Likewise.
9100         * modules/strpbrk (License): Likewise.
9101         * modules/strptime (License): Likewise.
9102         * modules/strsep (License): Likewise.
9103         * modules/sys_select (License): Likewise.
9104         * modules/sys_socket (License): Likewise.
9105         * modules/sys_stat (License): Likewise.
9106         * modules/sys_time (License): Likewise.
9107         * modules/time (License): Likewise.
9108         * modules/time_r (License): Likewise.
9109         * modules/timegm (License): Likewise.
9110         * modules/unistd (License): Likewise.
9111         * modules/vsnprintf (License): Likewise.
9112         * modules/wctype (License): Likewise.
9113
9114 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9115
9116         * modules/argz (License): LGPLv2+.
9117
9118 2007-07-15  Karl Berry  <karl@gnu.org>
9119
9120         * doc/gnulib.texi: revise node structure per new fdl.texi.
9121
9122 2007-07-14  Bruno Haible  <bruno@clisp.org>
9123
9124         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
9125         the output file.
9126         * lib/uniname/uninames.h: Regenerated.
9127
9128 2007-07-14  Karl Berry  <karl@gnu.org>
9129
9130         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
9131         omitting sectioning and index commands.
9132
9133 2007-07-13  Bruno Haible  <bruno@clisp.org>
9134
9135         New gnulib-tool option --more-symlinks.
9136         * gnulib-tool (func_usage): Document --more-symlinks.
9137         (do_copyrights): New variable.
9138         Recognize option --more-symlinks.
9139         (func_import): Don't add a copyright notice transform to
9140         sed_transform_lib_file if do_copyrights is empty.
9141
9142 2007-07-13  Bruno Haible  <bruno@clisp.org>
9143
9144         * lib/vasnprintf.c (decimal_point_char): Define also if
9145         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
9146         && !NEED_PRINTF_DIRECTIVE_A.
9147         Reported by Clemens Koller <clemens.koller@anagramm.de> via
9148         Gary V. Vaughan <gary@gnu.org>.
9149
9150 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
9151
9152         * lib/inttypes_.h: Undo previous change, since it was fixed
9153         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
9154
9155 2007-07-13  Bruno Haible  <bruno@clisp.org>
9156
9157         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
9158         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
9159
9160 2007-07-13  Jim Meyering  <jim@meyering.net>
9161
9162         df: Don't fail for Tru64's "file-on-file mount".
9163         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
9164         so we fall through and use statfs instead.  Details here:
9165         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
9166         Reported by Albert Chin.
9167
9168 2007-07-13  Bruno Haible  <bruno@clisp.org>
9169
9170         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
9171         * modules/configmake (License): Likewise.
9172         * modules/gettext (License): Likewise.
9173         * modules/gettext-h (License): Likewise.
9174         * modules/include_next (License): Likewise.
9175         * modules/link-warning (License): Likewise.
9176         * modules/localcharset (License): Likewise.
9177         * modules/localename (License): Likewise.
9178         * modules/lock (License): Likewise.
9179         * modules/relocatable-lib-lgpl (License): Likewise.
9180         * modules/size_max (License): Likewise.
9181         * modules/vasnprintf (License): Likewise.
9182         * modules/wchar (License): Likewise.
9183         * modules/xsize (License): Likewise.
9184
9185 2007-07-13  Bruno Haible  <bruno@clisp.org>
9186
9187         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
9188         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
9189
9190 2007-07-12  Bruno Haible  <bruno@clisp.org>
9191
9192         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
9193         in the modules files.
9194
9195 2007-07-11  Karl Berry  <karl@gnu.org>
9196
9197         * MODULES.html.sh (func_module): use
9198          sed -e '\|^'"${includefile}"'$|d'
9199          instead of /.../d, to avoid errors on $includefile's containing /.
9200
9201 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9202
9203         * gnulib-tool (func_import): Avoid duplication of --avoid
9204         statements
9205         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
9206         names to `_' in variable names.
9207
9208 2007-07-10  Eric Blake  <ebb9@byu.net>
9209
9210         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
9211         * NEWS: Document this change.
9212
9213 2007-07-08  Bruno Haible  <bruno@clisp.org>
9214
9215         Update to Unicode 5.0.
9216         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
9217         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
9218         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
9219         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
9220         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
9221         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
9222         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
9223         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
9224         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
9225         U+10A3F, U+1D242..U+1D244.
9226         (nonspacing_table_ind): Update.
9227         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
9228         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
9229
9230 2007-07-08  Bruno Haible  <bruno@clisp.org>
9231
9232         Update to Unicode 5.0.
9233         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
9234         code transform. Extend the name index field of unicode_name_to_code and
9235         unicode_code_to_name from 16 to 24 bits.
9236         * lib/uniname/uniname.c (unicode_character_name,
9237         unicode_name_character): Add the range 0x12xxx to the code transform.
9238         * lib/uniname/uninames.h: Regenerated.
9239         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
9240
9241 2007-07-07  Bruno Haible  <bruno@clisp.org>
9242
9243         * modules/wcwidth-tests: New file.
9244         * tests/test-wcwidth.c: New file.
9245
9246         Work around MacOS X wcwidth() bug.
9247         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
9248         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
9249         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
9250         original wcwidth in non-UTF-8 locales.
9251         * modules/wcwidth (Depends-on): Add localcharset, streq,
9252         uniwidth/width.
9253         * doc/functions/wcwidth.texi: Update.
9254
9255 2007-07-07  Bruno Haible  <bruno@clisp.org>
9256
9257         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
9258         (wcwidth): New declaration.
9259         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
9260         macros.
9261         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
9262         here. Prepare for creating <wchar.h> unconditionally.
9263         * modules/wchar (Depends-on): Add link-warning.
9264         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
9265         REPLACE_WCWIDTH, and GL_LINK_WARNING.
9266         * lib/wcwidth.h: Remove file.
9267         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
9268         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
9269         * modules/wcwidth (Files): Remove lib/wcwidth.h.
9270         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
9271         (Include): Replace wcwidth.h with <wchar.h>.
9272         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
9273         * lib/mbchar.h: Don't include wcwidth.h.
9274         * lib/mbswidth.c: Likewise.
9275         * NEWS: Mention the change.
9276
9277 2007-07-07  Bruno Haible  <bruno@clisp.org>
9278
9279         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
9280         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
9281         definition with an external declaration.
9282         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
9283         defined as a function. Remove AC_C_INLINE requirement.
9284         * modules/wcwidth (Files): Add lib/wcwidth.c.
9285         (Makefile.am): Remove redundant statement.
9286
9287 2007-07-07  Bruno Haible  <bruno@clisp.org>
9288
9289         * MODULES.html.sh (Unicode string functions): Add the new modules.
9290
9291         * tests/uniwidth/test-u32-strwidth.c: New file.
9292         * modules/uniwidth/u32-strwidth-tests: New file.
9293
9294         * lib/uniwidth/u32-strwidth.c: New file.
9295         * modules/uniwidth/u32-strwidth: New file.
9296
9297         * tests/uniwidth/test-u16-strwidth.c: New file.
9298         * modules/uniwidth/u16-strwidth-tests: New file.
9299
9300         * lib/uniwidth/u16-strwidth.c: New file.
9301         * modules/uniwidth/u16-strwidth: New file.
9302
9303         * tests/uniwidth/test-u8-strwidth.c: New file.
9304         * modules/uniwidth/u8-strwidth-tests: New file.
9305
9306         * lib/uniwidth/u8-strwidth.c: New file.
9307         * modules/uniwidth/u8-strwidth: New file.
9308
9309         * tests/uniwidth/test-u32-width.c: New file.
9310         * modules/uniwidth/u32-width-tests: New file.
9311
9312         * lib/uniwidth/u32-width.c: New file.
9313         * modules/uniwidth/u32-width: New file.
9314
9315         * tests/uniwidth/test-u16-width.c: New file.
9316         * modules/uniwidth/u16-width-tests: New file.
9317
9318         * lib/uniwidth/u16-width.c: New file.
9319         * modules/uniwidth/u16-width: New file.
9320
9321         * tests/uniwidth/test-u8-width.c: New file.
9322         * modules/uniwidth/u8-width-tests: New file.
9323
9324         * lib/uniwidth/u8-width.c: New file.
9325         * modules/uniwidth/u8-width: New file.
9326
9327         * tests/uniwidth/test-uc_width.c: New file.
9328         * modules/uniwidth/width-tests: New file.
9329
9330         * lib/uniwidth/width.c: New file, from GNU libiconv.
9331         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
9332         * modules/uniwidth/width: New file.
9333
9334         * lib/uniwidth.h: New file, from GNU libiconv.
9335         * modules/uniwidth/base: New file.
9336
9337 2007-07-07  Bruno Haible  <bruno@clisp.org>
9338
9339         * lib/uniname.h: New file, from GNU gettext.
9340         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
9341         * lib/uniname/uninames.h: New file, from GNU gettext.
9342         * lib/uniname/uniname.c: New file, from GNU gettext.
9343         * tests/uniname/test-uninames.sh: New file.
9344         * tests/uniname/test-uninames.c: New file, from GNU gettext.
9345         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
9346         * modules/uniname/base: New file.
9347         * modules/uniname/uniname: New file.
9348         * modules/uniname/uniname-tests: New file.
9349         * MODULES.html.sh (Unicode string functions): Add the new modules.
9350
9351 2007-07-06  Bruno Haible  <bruno@clisp.org>
9352
9353         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
9354
9355 2007-07-06  Bruno Haible  <bruno@clisp.org>
9356
9357         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
9358         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
9359         includes <cygwin/sys_time.h> which includes <sys/select.h> which
9360         include <sys/time.h>.
9361         Reported by Eric Blake.
9362
9363 2007-07-06  Eric Blake  <ebb9@byu.net>
9364
9365         Fix testing canonicalize on cygwin.
9366         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
9367         Revert patch from 2007-06-19.
9368         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
9369         canonicalize module is also in use.
9370         * tests/test-canonicalize.c: New file.
9371         * tests/test-canonicalize.sh: Likewise.
9372         * modules/canonicalize-tests: Likewise.
9373
9374 2007-07-06  Jim Meyering  <jim@meyering.net>
9375
9376         * lib/getugroups.c (getugroups): Detect getgrent failure.
9377         Adjust comment to reflect reality: this function may return -1.
9378
9379 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9380
9381         * build-aux/bootstrap (TP_URL,get_translations): Update to use
9382         the new TP address.
9383         (usage): Fix typo
9384         (gnulib_mk): New variable.
9385
9386 2007-07-05  Jim Meyering  <jim@meyering.net>
9387
9388         Don't let endgrent clobber errno, no matter how improbable.
9389         * lib/getugroups.c (getugroups): Save and restore errno around
9390         endgrent call.
9391
9392         Close the group DB even when failing with 2^31 or more members.
9393         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
9394
9395 2007-07-04  Jim Meyering  <jim@meyering.net>
9396
9397         * lib/getugroups.h: New file.
9398         * lib/getugroups.c: Include "getugroups.h".
9399         Remove uses of "register" keyword.
9400         Move local variable, "cp", down into scope where used.
9401         Give "username" parameter the "const" attribute.
9402         * modules/getugroups (Files): Add lib/getugroups.h
9403
9404 2007-07-04  Karl Berry  <karl@gnu.org>
9405
9406         * MODULES.html.sh (func_all_modules): Complete rename of
9407         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
9408
9409 2007-07-02  Bruno Haible  <bruno@clisp.org>
9410
9411         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
9412         mode, when inttypes.h comes from gnulib.
9413         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
9414
9415 2007-07-02  Simon Josefsson  <simon@josefsson.org>
9416
9417         * NEWS: Mention lgpl module name change.
9418
9419         * modules/lgpl-2.1: Renamed from lgpl.
9420
9421         * NEWS: Mention gpl module name change.
9422
9423         * modules/gpl-3.0: New file, based on gpl-2.0.
9424
9425         * modules/gpl-2.0: Renamed from gpl.
9426
9427         * modules/gpl: Fix filename, doc/gpl.texi is now found at
9428         doc/gpl-2.0.texi.
9429
9430 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9431
9432         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
9433         #define __STDC_LIMIT_MACROS temporarily while including
9434         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
9435         Problem reported by Joel E. Denny in
9436         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
9437
9438 2007-07-01  Bruno Haible  <bruno@clisp.org>
9439
9440         * lib/unistdio.h: New file.
9441         * lib/unistdio/u-asnprintf.h: New file.
9442         * lib/unistdio/u-asprintf.h: New file.
9443         * lib/unistdio/u-printf-args.c: New file.
9444         * lib/unistdio/u-printf-args.h: New file.
9445         * lib/unistdio/u-printf-parse.h: New file.
9446         * lib/unistdio/u-snprintf.h: New file.
9447         * lib/unistdio/u-sprintf.h: New file.
9448         * lib/unistdio/u-vasprintf.h: New file.
9449         * lib/unistdio/u-vsnprintf.h: New file.
9450         * lib/unistdio/u-vsprintf.h: New file.
9451         * lib/unistdio/ulc-asnprintf.c: New file.
9452         * lib/unistdio/ulc-asprintf.c: New file.
9453         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
9454         * lib/unistdio/ulc-printf-parse.c: New file.
9455         * lib/unistdio/ulc-snprintf.c: New file.
9456         * lib/unistdio/ulc-sprintf.c: New file.
9457         * lib/unistdio/ulc-vasnprintf.c: New file.
9458         * lib/unistdio/ulc-vasprintf.c: New file.
9459         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
9460         * lib/unistdio/ulc-vsnprintf.c: New file.
9461         * lib/unistdio/ulc-vsprintf.c: New file.
9462         * lib/unistdio/u8-asnprintf.c: New file.
9463         * lib/unistdio/u8-asprintf.c: New file.
9464         * lib/unistdio/u8-printf-parse.c: New file.
9465         * lib/unistdio/u8-snprintf.c: New file.
9466         * lib/unistdio/u8-sprintf.c: New file.
9467         * lib/unistdio/u8-vasnprintf.c: New file.
9468         * lib/unistdio/u8-vasprintf.c: New file.
9469         * lib/unistdio/u8-vsnprintf.c: New file.
9470         * lib/unistdio/u8-vsprintf.c: New file.
9471         * lib/unistdio/u8-u8-asnprintf.c: New file.
9472         * lib/unistdio/u8-u8-asprintf.c: New file.
9473         * lib/unistdio/u8-u8-snprintf.c: New file.
9474         * lib/unistdio/u8-u8-sprintf.c: New file.
9475         * lib/unistdio/u8-u8-vasnprintf.c: New file.
9476         * lib/unistdio/u8-u8-vasprintf.c: New file.
9477         * lib/unistdio/u8-u8-vsnprintf.c: New file.
9478         * lib/unistdio/u8-u8-vsprintf.c: New file.
9479         * lib/unistdio/u16-asnprintf.c: New file.
9480         * lib/unistdio/u16-asprintf.c: New file.
9481         * lib/unistdio/u16-printf-parse.c: New file.
9482         * lib/unistdio/u16-snprintf.c: New file.
9483         * lib/unistdio/u16-sprintf.c: New file.
9484         * lib/unistdio/u16-vasnprintf.c: New file.
9485         * lib/unistdio/u16-vasprintf.c: New file.
9486         * lib/unistdio/u16-vsnprintf.c: New file.
9487         * lib/unistdio/u16-vsprintf.c: New file.
9488         * lib/unistdio/u16-u16-asnprintf.c: New file.
9489         * lib/unistdio/u16-u16-asprintf.c: New file.
9490         * lib/unistdio/u16-u16-snprintf.c: New file.
9491         * lib/unistdio/u16-u16-sprintf.c: New file.
9492         * lib/unistdio/u16-u16-vasnprintf.c: New file.
9493         * lib/unistdio/u16-u16-vasprintf.c: New file.
9494         * lib/unistdio/u16-u16-vsnprintf.c: New file.
9495         * lib/unistdio/u16-u16-vsprintf.c: New file.
9496         * lib/unistdio/u32-asnprintf.c: New file.
9497         * lib/unistdio/u32-asprintf.c: New file.
9498         * lib/unistdio/u32-printf-parse.c: New file.
9499         * lib/unistdio/u32-snprintf.c: New file.
9500         * lib/unistdio/u32-sprintf.c: New file.
9501         * lib/unistdio/u32-vasnprintf.c: New file.
9502         * lib/unistdio/u32-vasprintf.c: New file.
9503         * lib/unistdio/u32-vsnprintf.c: New file.
9504         * lib/unistdio/u32-vsprintf.c: New file.
9505         * lib/unistdio/u32-u32-asnprintf.c: New file.
9506         * lib/unistdio/u32-u32-asprintf.c: New file.
9507         * lib/unistdio/u32-u32-snprintf.c: New file.
9508         * lib/unistdio/u32-u32-sprintf.c: New file.
9509         * lib/unistdio/u32-u32-vasnprintf.c: New file.
9510         * lib/unistdio/u32-u32-vasprintf.c: New file.
9511         * lib/unistdio/u32-u32-vsnprintf.c: New file.
9512         * lib/unistdio/u32-u32-vsprintf.c: New file.
9513         * tests/unistdio/test-ulc-asnprintf1.c: New file.
9514         * tests/unistdio/test-ulc-asnprintf1.h: New file.
9515         * tests/unistdio/test-ulc-printf1.h: New file.
9516         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
9517         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
9518         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
9519         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
9520         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
9521         * tests/unistdio/test-ulc-vasprintf1.c: New file.
9522         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
9523         * tests/unistdio/test-ulc-vsprintf1.c: New file.
9524         * tests/unistdio/test-u8-asnprintf1.c: New file.
9525         * tests/unistdio/test-u8-asnprintf1.h: New file.
9526         * tests/unistdio/test-u8-printf1.h: New file.
9527         * tests/unistdio/test-u8-vasnprintf1.c: New file.
9528         * tests/unistdio/test-u8-vasnprintf2.c: New file.
9529         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
9530         * tests/unistdio/test-u8-vasnprintf3.c: New file.
9531         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
9532         * tests/unistdio/test-u8-vasprintf1.c: New file.
9533         * tests/unistdio/test-u8-vsnprintf1.c: New file.
9534         * tests/unistdio/test-u8-vsprintf1.c: New file.
9535         * tests/unistdio/test-u16-asnprintf1.c: New file.
9536         * tests/unistdio/test-u16-asnprintf1.h: New file.
9537         * tests/unistdio/test-u16-printf1.h: New file.
9538         * tests/unistdio/test-u16-vasnprintf1.c: New file.
9539         * tests/unistdio/test-u16-vasnprintf2.c: New file.
9540         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
9541         * tests/unistdio/test-u16-vasnprintf3.c: New file.
9542         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
9543         * tests/unistdio/test-u16-vasprintf1.c: New file.
9544         * tests/unistdio/test-u16-vsnprintf1.c: New file.
9545         * tests/unistdio/test-u16-vsprintf1.c: New file.
9546         * tests/unistdio/test-u32-asnprintf1.c: New file.
9547         * tests/unistdio/test-u32-asnprintf1.h: New file.
9548         * tests/unistdio/test-u32-printf1.h: New file.
9549         * tests/unistdio/test-u32-vasnprintf1.c: New file.
9550         * tests/unistdio/test-u32-vasnprintf2.c: New file.
9551         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
9552         * tests/unistdio/test-u32-vasnprintf3.c: New file.
9553         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
9554         * tests/unistdio/test-u32-vasprintf1.c: New file.
9555         * tests/unistdio/test-u32-vsnprintf1.c: New file.
9556         * tests/unistdio/test-u32-vsprintf1.c: New file.
9557         * modules/unistdio/base: New file.
9558         * modules/unistdio/u-printf-args: New file.
9559         * modules/unistdio/ulc-asnprintf: New file.
9560         * modules/unistdio/ulc-asprintf: New file.
9561         * modules/unistdio/ulc-fprintf: New file.
9562         * modules/unistdio/ulc-printf-parse: New file.
9563         * modules/unistdio/ulc-snprintf: New file.
9564         * modules/unistdio/ulc-sprintf: New file.
9565         * modules/unistdio/ulc-vasnprintf: New file.
9566         * modules/unistdio/ulc-vasprintf: New file.
9567         * modules/unistdio/ulc-vfprintf: New file.
9568         * modules/unistdio/ulc-vsnprintf: New file.
9569         * modules/unistdio/ulc-vsprintf: New file.
9570         * modules/unistdio/u8-asnprintf: New file.
9571         * modules/unistdio/u8-asprintf: New file.
9572         * modules/unistdio/u8-printf-parse: New file.
9573         * modules/unistdio/u8-snprintf: New file.
9574         * modules/unistdio/u8-sprintf: New file.
9575         * modules/unistdio/u8-vasnprintf: New file.
9576         * modules/unistdio/u8-vasprintf: New file.
9577         * modules/unistdio/u8-vsnprintf: New file.
9578         * modules/unistdio/u8-vsprintf: New file.
9579         * modules/unistdio/u8-u8-asnprintf: New file.
9580         * modules/unistdio/u8-u8-asprintf: New file.
9581         * modules/unistdio/u8-u8-snprintf: New file.
9582         * modules/unistdio/u8-u8-sprintf: New file.
9583         * modules/unistdio/u8-u8-vasnprintf: New file.
9584         * modules/unistdio/u8-u8-vasprintf: New file.
9585         * modules/unistdio/u8-u8-vsnprintf: New file.
9586         * modules/unistdio/u8-u8-vsprintf: New file.
9587         * modules/unistdio/u16-asnprintf: New file.
9588         * modules/unistdio/u16-asprintf: New file.
9589         * modules/unistdio/u16-printf-parse: New file.
9590         * modules/unistdio/u16-snprintf: New file.
9591         * modules/unistdio/u16-sprintf: New file.
9592         * modules/unistdio/u16-vasnprintf: New file.
9593         * modules/unistdio/u16-vasprintf: New file.
9594         * modules/unistdio/u16-vsnprintf: New file.
9595         * modules/unistdio/u16-vsprintf: New file.
9596         * modules/unistdio/u16-u16-asnprintf: New file.
9597         * modules/unistdio/u16-u16-asprintf: New file.
9598         * modules/unistdio/u16-u16-snprintf: New file.
9599         * modules/unistdio/u16-u16-sprintf: New file.
9600         * modules/unistdio/u16-u16-vasnprintf: New file.
9601         * modules/unistdio/u16-u16-vasprintf: New file.
9602         * modules/unistdio/u16-u16-vsnprintf: New file.
9603         * modules/unistdio/u16-u16-vsprintf: New file.
9604         * modules/unistdio/u32-asnprintf: New file.
9605         * modules/unistdio/u32-asprintf: New file.
9606         * modules/unistdio/u32-printf-parse: New file.
9607         * modules/unistdio/u32-snprintf: New file.
9608         * modules/unistdio/u32-sprintf: New file.
9609         * modules/unistdio/u32-vasnprintf: New file.
9610         * modules/unistdio/u32-vasprintf: New file.
9611         * modules/unistdio/u32-vsnprintf: New file.
9612         * modules/unistdio/u32-vsprintf: New file.
9613         * modules/unistdio/u32-u32-asnprintf: New file.
9614         * modules/unistdio/u32-u32-asprintf: New file.
9615         * modules/unistdio/u32-u32-snprintf: New file.
9616         * modules/unistdio/u32-u32-sprintf: New file.
9617         * modules/unistdio/u32-u32-vasnprintf: New file.
9618         * modules/unistdio/u32-u32-vasprintf: New file.
9619         * modules/unistdio/u32-u32-vsnprintf: New file.
9620         * modules/unistdio/u32-u32-vsprintf: New file.
9621         * modules/unistdio/ulc-asnprintf-tests: New file.
9622         * modules/unistdio/ulc-vasnprintf-tests: New file.
9623         * modules/unistdio/ulc-vasprintf-tests: New file.
9624         * modules/unistdio/ulc-vsnprintf-tests: New file.
9625         * modules/unistdio/ulc-vsprintf-tests: New file.
9626         * modules/unistdio/u8-asnprintf-tests: New file.
9627         * modules/unistdio/u8-vasnprintf-tests: New file.
9628         * modules/unistdio/u8-vasprintf-tests: New file.
9629         * modules/unistdio/u8-vsnprintf-tests: New file.
9630         * modules/unistdio/u8-vsprintf-tests: New file.
9631         * modules/unistdio/u16-asnprintf-tests: New file.
9632         * modules/unistdio/u16-vasnprintf-tests: New file.
9633         * modules/unistdio/u16-vasprintf-tests: New file.
9634         * modules/unistdio/u16-vsnprintf-tests: New file.
9635         * modules/unistdio/u16-vsprintf-tests: New file.
9636         * modules/unistdio/u32-asnprintf-tests: New file.
9637         * modules/unistdio/u32-vasnprintf-tests: New file.
9638         * modules/unistdio/u32-vasprintf-tests: New file.
9639         * modules/unistdio/u32-vsnprintf-tests: New file.
9640         * modules/unistdio/u32-vsprintf-tests: New file.
9641         * MODULES.html.sh (Unicode string functions): Add the new modules.
9642
9643 2007-07-01  Bruno Haible  <bruno@clisp.org>
9644
9645         * lib/sprintf.c (sprintf): Limit the available length estimation,
9646         to avoid address wraparound.
9647         * lib/vsprintf.c (vsprintf): Likewise.
9648         * modules/sprintf-posix (Dependencies): Add stdint.
9649         * modules/vsprintf-posix (Dependencies): Likewise.
9650
9651 2007-07-01  Bruno Haible  <bruno@clisp.org>
9652
9653         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
9654         Windows PATH as well. Conservative double-quoting. Comments.
9655
9656 2007-07-01  Bruno Haible  <bruno@clisp.org>
9657             Eric Blake  <ebb9@byu.net>
9658             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9659
9660         * gnulib-tool (self_abspathname): Fix algorithm to cope with
9661         empty components in $PATH, denoting '.'.
9662
9663 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9664
9665         * gnulib-tool: Fix indentation.
9666         (func_create_megatestdir): Likewise.
9667         Report by Bruno Haible.
9668
9669 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9670
9671         Sync from Automake.
9672         * build-aux/gnupload: Fix shell portability issues with for loops.
9673         Report by Karl Berry.
9674
9675 2007-06-29  Simon Josefsson  <simon@josefsson.org>
9676
9677         * build-aux/maint.mk (POURL): Use translationproject.org.
9678
9679 2007-06-27  Simon Josefsson  <simon@josefsson.org>
9680             Bruno Haible  <bruno@clisp.org>
9681
9682         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
9683         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
9684         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
9685         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
9686         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
9687
9688 2007-06-27  Bruno Haible  <bruno@clisp.org>
9689
9690         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
9691         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
9692
9693 2007-06-26  Karl Berry  <karl@gnu.org>
9694
9695         * MODULES.html.sh: remove xreadlink-with-size.
9696
9697 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9698
9699         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
9700         method that I hope also handles the double-include problem noted
9701         by Bruno Haible in
9702         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
9703
9704 2007-06-23  Bruno Haible  <bruno@clisp.org>
9705
9706         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9707         Don't let the 'mostlyclean' target fail if the last subdirectory could
9708         not be removed.
9709         Reported by Karl Berry.
9710
9711 2007-06-23  Bruno Haible  <bruno@clisp.org>
9712
9713         * gnulib-tool (echo): Add a speedier workaround for ksh.
9714         * tests/test-echo.sh: Likewise.
9715
9716 2007-06-23  Bruno Haible  <bruno@clisp.org>
9717
9718         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
9719         * tests/test-echo.sh: Likewise.
9720
9721 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9722
9723         * gnulib-tool (IFS): Initialize early, so we don't set it to
9724         empty later.
9725         (self_abspathname): Rewrite algorithm to set it, reindent.
9726         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
9727         (func_create_megatestdir): Merge some sed scripts.
9728
9729 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9730
9731         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
9732         exposed by Sun Studio 11 cc on Solaris 8.
9733
9734 2007-06-22  Bruno Haible  <bruno@clisp.org>
9735
9736         * gnulib-tool (echo): Ensure the echo primitive does not interpret
9737         backslashes.
9738         * tests/test-echo.sh: New file.
9739
9740 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9741
9742         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
9743         simplify `sed_replace_build_aux' scripts, they are portable but
9744         echoing them with `echo' is not.
9745         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
9746
9747 2007-06-21  Karl Berry  <karl@gnu.org>
9748
9749         * config/srclist.txt: guess we can't handle the licenses via
9750         srclist at the moment.
9751
9752 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
9753
9754         * MODULES.html.sh: Add include_next.
9755         * modules/include_next: New file.
9756
9757 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9758
9759         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
9760         INCLUDE_NEXT.
9761         (gl_CHECK_NEXT_HEADERS): New macro.
9762         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
9763         the obsolescent gl_ABSOLUTE_HEADER.
9764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
9765         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
9766         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
9767         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9768         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9769         * m4/math_h.m4 (gl_MATH_H): Likewise.
9770         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
9771         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9772         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9773         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9774         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9775         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9776         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9777         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9778         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9779         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9780         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9781         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9782         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9783         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9784         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9785         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9786         * m4/inttypes.m4 (gl_INTTYPES_H): Define
9787         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
9788         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
9789         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
9790         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
9791         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
9792         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
9793         * lib/float_.h: Likewise.
9794         * lib/inttypes_.h: Likewise.
9795         * lib/math_.h: Likewise.
9796         * lib/search_.h: Likewise.
9797         * lib/signal_.h: Likewise.
9798         * lib/stdint_.h: Likewise.
9799         * lib/stdio_.h: Likewise.
9800         * lib/stdlib_.h: Likewise.
9801         * lib/string_.h: Likewise.
9802         * lib/sys_stat_.h: Likewise.
9803         * lib/sys_time_.h: Likewise.
9804         * lib/time_.h: Likewise.
9805         * lib/unistd_.h: Likewise.
9806         * lib/wchar_.h: Likewise.
9807         * lib/wctype_.h: Likewise.
9808         * lib/dirent_.h: Likewise.
9809         * lib/iconv_.h: Likewise.
9810         * lib/locale_.h: Likewise.
9811         * lib/netinet_in_.h: Likewise.
9812         * lib/sys_select_.h: Likewise.
9813         * lib/sys_socket_.h: Likewise.
9814         * lib/sysexits_.h: Likewise.
9815         * modules/fcntl (Depends-on): Depend on include_next, not
9816         absolute_header.
9817         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
9818         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
9819         * modules/fchdir: Likewise.
9820         * modules/float: Likewise.
9821         * modules/iconv_open: Likewise.
9822         * modules/inttypes: Likewise.
9823         * modules/locale: Likewise.
9824         * modules/math: Likewise.
9825         * modules/netinet_in: Likewise.
9826         * modules/search: Likewise.
9827         * modules/signal: Likewise.
9828         * modules/stdint: Likewise.
9829         * modules/stdio: Likewise.
9830         * modules/stdlib: Likewise.
9831         * modules/string: Likewise.
9832         * modules/sys_select: Likewise.
9833         * modules/sys_socket: Likewise.
9834         * modules/sys_stat: Likewise.
9835         * modules/sys_time: Likewise.
9836         * modules/sysexits: Likewise.
9837         * modules/time: Likewise.
9838         * modules/unistd: Likewise.
9839         * modules/wchar: Likewise.
9840         * modules/wctype: Likewise.
9841         * modules/sys_stat: Change maintainer to "all".
9842         * modules/unistd: Likewise.
9843
9844 2007-06-20  Karl Berry  <karl@gnu.org>
9845
9846         * config/srclist.txt: track www changes in license files.
9847
9848 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
9849
9850         * build-aux/bootstrap: Remove stray dot.
9851         Make sure build_aux settings are honored when linking
9852         gnulib_extra_files.
9853
9854 2007-06-19  Eric Blake  <ebb9@byu.net>
9855
9856         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
9857         Allow compilation on cygwin.
9858
9859 2007-06-19  Jim Meyering  <jim@meyering.net>
9860
9861         xreadlink-with-size: Remove module.  No longer used.
9862         Ex-callers now use xreadlink or mreadlink-with-size.
9863         * modules/xreadlink-with-size: Remove module.
9864         * lib/xreadlink-with-size.c: Remove file.
9865         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
9866         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
9867         just before the function definition *is* accurate.
9868
9869         Eliminate one way canonicalize_filename_mode could exit.
9870         * lib/canonicalize.c (canonicalize_filename_mode):
9871         Use mreadlink_with_size, not xreadlink_with_size.
9872
9873 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
9874
9875         Detect porting problems to FreeBSD/arm, which has time_t wider than
9876         long int.  Original problem reported for GNU diff by Xin Li in
9877         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
9878         * modules/getdate (Depends-on): Add intprops, verify.
9879         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
9880         is an integer type no wider than long int.
9881
9882 2007-06-18  Jim Meyering  <jim@meyering.net>
9883
9884         New module: mreadlink-with-size.
9885         * MODULES.html.sh: Add mreadlink-with-size.
9886         * modules/mreadlink-with-size: New module
9887         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
9888         not xreadlink-with-size.
9889         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
9890
9891 2007-06-16  Bruno Haible  <bruno@clisp.org>
9892
9893         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
9894         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
9895         Reported by Gary V. Vaughan <gary@gnu.org>.
9896
9897 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9898
9899         Revamp lchown so that it lives in unistd.h where it belongs.
9900         * lib/lchown.h: Remove.
9901         * lib/dirchownmod.c: Don't include lib/lchown.h.
9902         * lib/fchownat.c: Likewise.
9903         * lib/openat.c: Likewise.
9904         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
9905         does not follow symlinks.
9906         (EOPNOTSUPP): Define if not defined.
9907         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
9908         is defined to 0.
9909         (lchown): New decl.
9910         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
9911         Do not check for lchown decl.
9912         Set REPLACE_LCHOWN.
9913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
9914         REPLACE_LCHOWN.
9915         * modules/chown: Make it clear it follows symlinks.
9916         * modules/lchown: Make it clear it doesn't follow symlinks.
9917         (Files): Remove lib/lchown.h
9918         (Depends-on): Add unistd.
9919         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
9920         (Include): Include <unistd.h>, not "lchown.h".
9921         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
9922         REPLACE_LCHOWN.
9923
9924 2007-06-15  Jim Meyering  <jim@meyering.net>
9925
9926         Change license (GPL to LGPL) of fsusage and dependents.
9927         * modules/fsusage (License): Change to LGPL.
9928         * modules/full-read (License): Likewise.
9929         * modules/full-write (License): Likewise.
9930         * modules/safe-read (License): Likewise.
9931         * modules/safe-write (License): Likewise.
9932
9933 2007-06-14  Ben Pfaff  <blp@gnu.org>
9934
9935         Missing part of allocsa -> malloca transition.
9936         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
9937         gl_MALLOCA.
9938
9939 2007-06-12  Bruno Haible  <bruno@clisp.org>
9940
9941         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
9942         to ia64, x86_64, i386.
9943         Reported by Eric Blake.
9944
9945 2007-06-12  Bruno Haible  <bruno@clisp.org>
9946
9947         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
9948         cross-compiling to x86_64.
9949
9950 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
9951
9952         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
9953         glitch reported by Ralf Wildenhues in
9954         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
9955
9956         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
9957         Vin Shelton.
9958
9959 2007-06-11  Bruno Haible  <bruno@clisp.org>
9960
9961         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
9962         replacement string.
9963         Reported by Eric Blake.
9964
9965 2007-06-10  Bruno Haible  <bruno@clisp.org>
9966
9967         Prepare vasnprintf code for use with Unicode strings.
9968         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
9969         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
9970         TYPE_U32_STRING.
9971         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
9972         a_u32_string variants.
9973         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
9974         * lib/printf-args.c: Don't include config.h and the specification
9975         header if PRINTF_FETCHARGS is already defined.
9976         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
9977         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
9978         TYPE_U16_STRING, TYPE_U32_STRING.
9979         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
9980         u16_directive, u16_directives, u32_directive, u32_directives): New
9981         types.
9982         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
9983         New declarations.
9984         * lib/printf-parse.c: Don't include config.h and the specification
9985         header if PRINTF_PARSE is already defined. Eliminate the set of
9986         parameters for WIDE_CHAR_VERSION; the user of this file must provide
9987         them now. Include c-ctype.h.
9988         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
9989         directive and CHAR_T_ONLY_ASCII.
9990         * lib/vasnprintf.c: Don't include config.h and the specification header
9991         if VASNPRINTF is already defined.
9992         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
9993         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
9994         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
9995         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
9996         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
9997         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
9998         code accordingly.
9999         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
10000         pad_ourselves also in this case, with the 'c' and 's' directives, and
10001         with a different notion of "width".
10002         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
10003
10004 2007-06-10  Bruno Haible  <bruno@clisp.org>
10005
10006         * modules/unistr/u32-mbsnlen: New file.
10007         * lib/unistr/u32-mbsnlen.c: New file.
10008
10009         * modules/unistr/u16-mbsnlen: New file.
10010         * lib/unistr/u16-mbsnlen.c: New file.
10011
10012         * modules/unistr/u8-mbsnlen: New file.
10013         * lib/unistr/u8-mbsnlen.c: New file.
10014
10015         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
10016         declarations.
10017
10018 2007-06-10  Bruno Haible  <bruno@clisp.org>
10019
10020         * lib/string_.h (mbsnlen): New declaration.
10021         * lib/mbsnlen.c: New file.
10022         * m4/mbsnlen.m4: New file.
10023         * modules/mbsnlen: New file.
10024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
10025         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
10026         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
10027
10028 2007-06-10  Bruno Haible  <bruno@clisp.org>
10029
10030         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
10031
10032 2007-06-10  Bruno Haible  <bruno@clisp.org>
10033
10034         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
10035         * lib/mbuiter.h: Likewise.
10036
10037 2007-06-10  Bruno Haible  <bruno@clisp.org>
10038
10039         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
10040         declaration.
10041
10042 2007-06-10  Karl Berry  <karl@gnu.org>
10043
10044         * config/srclist.txt: remove gettext entries, Bruno prefers
10045         to update individually.
10046
10047 2007-06-10  Bruno Haible  <bruno@clisp.org>
10048
10049         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
10050         'maxlen'. Ensure only length + width bytes are allocated, not
10051         length + 1 + width.
10052
10053 2007-06-09  Bruno Haible  <bruno@clisp.org>
10054
10055         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
10056         (CHAR_T): Remove macro.
10057         (VASNPRINTF): Update.
10058
10059 2007-06-09  Bruno Haible  <bruno@clisp.org>
10060
10061         * MODULES.html.sh (Unicode string functions): Add the new modules.
10062
10063         * modules/uniconv/u32-conv-to-enc: New file.
10064         * lib/uniconv/u32-conv-to-enc.c: New file.
10065         * modules/uniconv/u32-conv-to-enc-tests: New file.
10066         * tests/uniconv/test-u32-conv-to-enc.c: New file.
10067
10068         * modules/uniconv/u16-conv-to-enc: New file.
10069         * lib/uniconv/u16-conv-to-enc.c: New file.
10070         * lib/uniconv/u-conv-to-enc.h: New file.
10071         * modules/uniconv/u16-conv-to-enc-tests: New file.
10072         * tests/uniconv/test-u16-conv-to-enc.c: New file.
10073
10074         * modules/uniconv/u8-conv-to-enc: New file.
10075         * lib/uniconv/u8-conv-to-enc.c: New file.
10076         * modules/uniconv/u8-conv-to-enc-tests: New file.
10077         * tests/uniconv/test-u8-conv-to-enc.c: New file.
10078
10079         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
10080         u32_conv_to_encoding): New declarations.
10081
10082 2007-06-09  Bruno Haible  <bruno@clisp.org>
10083
10084         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
10085
10086 2007-06-09  Bruno Haible  <bruno@clisp.org>
10087
10088         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
10089         * modules/malloca: Renamed from modules/allocsa, updated.
10090         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
10091         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
10092         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
10093         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
10094         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
10095         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
10096         * modules/xmalloca: Renamed from modules/xallocsa, updated.
10097         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
10098         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
10099         * modules/c-strcasestr (Depends-on): Update.
10100         * lib/c-strcasestr.c: Update.
10101         * modules/c-strstr (Depends-on): Update.
10102         * lib/c-strstr.c: Update.
10103         * modules/canonicalize-lgpl (Depends-on): Update.
10104         * lib/canonicalize-lgpl.c: Update.
10105         * modules/clean-temp (Depends-on): Update.
10106         * lib/clean-temp.c: Update.
10107         * modules/csharpcomp (Depends-on): Update.
10108         * lib/csharpcomp.c: Update.
10109         * modules/csharpexec (Depends-on): Update.
10110         * lib/csharpexec.c: Update.
10111         * modules/javacomp (Depends-on): Update.
10112         * lib/javacomp.c: Update.
10113         * modules/javaexec (Depends-on): Update.
10114         * lib/javaexec.c: Update.
10115         * modules/mbscasestr (Depends-on): Update.
10116         * lib/mbscasestr.c: Update.
10117         * modules/mbsstr (Depends-on): Update.
10118         * lib/mbsstr.c: Update.
10119         * modules/setenv (Depends-on): Update.
10120         * lib/setenv.c: Update.
10121         * modules/strcasestr (Depends-on): Update.
10122         * lib/strcasestr.c: Update.
10123         * modules/striconveha (Depends-on): Update.
10124         * lib/striconveha.c: Update.
10125         * modules/relocatable-prog-wrapper (Files): Update.
10126         * lib/relocwrapper.c: Update.
10127         * build-aux/install-reloc: Update.
10128         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
10129
10130 2007-06-08  Bruno Haible  <bruno@clisp.org>
10131
10132         Port to uClibc.
10133         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
10134         * lib/fpurge.c (fpurge): Likewise.
10135         * lib/freading.c (freading): Likewise.
10136         * lib/fseeko.c (rpl_fseeko): Likewise.
10137         * lib/fseterr.c (fseterr): Likewise.
10138         * lib/fwriting.c (fwriting): Likewise.
10139         * tests/test-fflush.c (main): Avoid a failure on uClibc.
10140
10141 2007-06-08  Bruno Haible  <bruno@clisp.org>
10142
10143         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
10144         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
10145         * modules/gettext (Files): Add m4/intlmacosx.m4.
10146
10147 2007-06-07  Bruno Haible  <bruno@clisp.org>
10148
10149         * modules/localename-tests: New file.
10150         * tests/test-localename.c: New file.
10151
10152         New module 'localename'.
10153         * lib/localename.h: New file.
10154         * lib/localename.c: New file, from GNU gettext.
10155         * m4/localename.m4: New file.
10156         * modules/localename: New file.
10157
10158 2007-06-07  Bruno Haible  <bruno@clisp.org>
10159
10160         Work around the lack of <wchar.h> on some builds of uClibc.
10161         * doc/headers/wchar.texi: Update.
10162         * lib/wchar_.h: Include <wchar.h> only if it exists.
10163         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
10164         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
10165         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
10166         doesn't exist.
10167         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
10168         * modules/mbfile (Depends-on): Add wchar.
10169         * modules/mbiter (Depends-on): Likewise.
10170         * modules/mbuiter (Depends-on): Likewise.
10171         Reported by Simon Josefsson.
10172
10173 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10174
10175         Work around problem reported by Steven M. Schweda in
10176         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
10177         Tru64 5.1B with the Compaq compiler environment installed declares
10178         an 'isblank' function but does not define it in the C library.
10179         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
10180         * lib/regex_internal.h (isblank): Likewise.
10181         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
10182         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10183
10184 2007-06-05  Bruno Haible  <bruno@clisp.org>
10185
10186         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
10187         ia64.
10188         * modules/printf-safe: New file.
10189         * modules/fprintf-posix (Depends-on): Add printf-safe.
10190         * modules/printf-posix (Depends-on): Likewise.
10191         * modules/snprintf-posix (Depends-on): Likewise.
10192         * modules/sprintf-posix (Depends-on): Likewise.
10193         * modules/vasnprintf-posix (Depends-on): Likewise.
10194         * modules/vasprintf-posix (Depends-on): Likewise.
10195         * modules/vfprintf-posix (Depends-on): Likewise.
10196         * modules/vprintf-posix (Depends-on): Likewise.
10197         * modules/vsnprintf-posix (Depends-on): Likewise.
10198         * modules/vsprintf-posix (Depends-on): Likewise.
10199         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10200         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
10201         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
10202         "no" on i386, x86_64, ia64.
10203         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
10204         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10205         on i386, x86_64, ia64.
10206         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
10207         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10208         on i386, x86_64, ia64.
10209         * tests/test-vasnprintf-posix.c: Include float.h.
10210         (LDBL80_WORDS): New macro.
10211         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10212         on i386, x86_64, ia64.
10213         * tests/test-vasprintf-posix.c: Include float.h.
10214         (LDBL80_WORDS): New macro.
10215         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10216         on i386, x86_64, ia64.
10217         * tests/test-snprintf-posix.c: Include float.h.
10218         * tests/test-sprintf-posix.c: Likewise.
10219         * tests/test-vsnprintf-posix.c: Likewise.
10220         * tests/test-vsprintf-posix.c: Likewise.
10221
10222 2007-06-05  Bruno Haible  <bruno@clisp.org>
10223
10224         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
10225         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
10226         non-IEEE numbers on i386, x86_64, ia64.
10227         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
10228         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
10229         * tests/test-isnanl.h: Include float.h.
10230         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
10231
10232 2007-06-05  Bruno Haible  <bruno@clisp.org>
10233
10234         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
10235         also the %a / %A. Handle the %a / %A code before this extra handling.
10236
10237 2007-06-05  Bruno Haible  <bruno@clisp.org>
10238
10239         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
10240         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
10241
10242 2007-06-05  Bruno Haible  <bruno@clisp.org>
10243
10244         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
10245         typo in variable name.
10246
10247 2007-06-05  Eric Blake  <ebb9@byu.net>
10248
10249         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
10250         Reported by Simon Josefsson.
10251
10252 2007-06-04  Bruno Haible  <bruno@clisp.org>
10253
10254         Avoid test failures on some PowerPC platforms.
10255         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
10256         Define differently for PowerPC.
10257         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
10258         Reported by Gary V. Vaughan <gary@gnu.org>.
10259
10260 2007-06-02  Bruno Haible  <bruno@clisp.org>
10261
10262         Fix test-stdint failure on FreeBSD/ia64.
10263         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
10264         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
10265         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
10266         * doc/headers/stdint.texi: Update.
10267
10268 2007-06-01  Bruno Haible  <bruno@clisp.org>
10269
10270         * tests/test-binary-io.c (main): Pass a third argument to open().
10271         Reported by Gary V. Vaughan <gary@gnu.org>.
10272
10273 2007-06-01  Bruno Haible  <bruno@clisp.org>
10274
10275         * doc/functions/frexpl.texi: Update for mingw.
10276
10277 2007-06-01  Bruno Haible  <bruno@clisp.org>
10278
10279         * tests/test-lseek.c (main): Disable test of errno for invalid third
10280         argument.
10281         * doc/functions/lseek.texi: Update.
10282         Reported by Gary V. Vaughan <gary@gnu.org>.
10283
10284 2007-05-28  Bruno Haible  <bruno@clisp.org>
10285
10286         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
10287
10288 2007-05-31  Eric Blake  <ebb9@byu.net>
10289
10290         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
10291         cross compiling.
10292
10293 2007-05-30  Eric Blake  <ebb9@byu.net>
10294         and Bruno Haible  <bruno@clisp.org>
10295
10296         Work around mingw test failures exposed by m4-1.4.9b.
10297         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
10298         * tests/test-unistd.c: Disable uid_t and git_t tests for the
10299         moment.
10300
10301 2007-05-30  Bruno Haible  <bruno@clisp.org>
10302
10303         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
10304         assuming that they are closed. Needed on HP-UX 11.
10305
10306 2007-05-29  Bruno Haible  <bruno@clisp.org>
10307
10308         Fix a problem with #include_next.
10309         * lib/dirent_.h: Split the double-inclusion guard.
10310         * lib/fcntl_.h: Likewise.
10311         * lib/float_.h: Likewise.
10312         * lib/iconv_.h: Likewise.
10313         * lib/inttypes_.h: Likewise.
10314         * lib/locale_.h: Likewise.
10315         * lib/math_.h: Likewise.
10316         * lib/netinet_in_.h: Likewise.
10317         * lib/search_.h: Likewise.
10318         * lib/signal_.h: Likewise.
10319         * lib/stdint_.h: Likewise.
10320         * lib/stdio_.h: Likewise.
10321         * lib/stdlib_.h: Likewise.
10322         * lib/string_.h: Likewise.
10323         * lib/sys_select_.h: Likewise.
10324         * lib/sys_socket_.h: Likewise.
10325         * lib/sys_stat_.h: Likewise.
10326         * lib/sys_time_.h: Likewise.
10327         * lib/sysexits_.h: Likewise.
10328         * lib/time_.h: Likewise.
10329         * lib/unistd_.h: Likewise.
10330         * lib/wchar_.h: Likewise.
10331         * lib/wctype_.h: Likewise.
10332
10333 2007-05-29  Bruno Haible  <bruno@clisp.org>
10334
10335         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
10336         for the moment.
10337
10338 2007-05-29  Bruno Haible  <bruno@clisp.org>
10339
10340         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
10341         invocation.
10342         Reported by Eric Blake.
10343
10344 2007-05-29  Bruno Haible  <bruno@clisp.org>
10345
10346         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
10347         compiling case.
10348
10349 2007-05-29  Eric Blake  <ebb9@byu.net>
10350             Bruno Haible  <bruno@clisp.org>
10351
10352         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
10353         cross compiles.
10354
10355 2007-05-28  Eric Blake  <ebb9@byu.net>
10356
10357         * modules/closein-tests (test_closein_LDADD): Support test on
10358         cygwin with libtool.
10359
10360 2007-05-28  Bruno Haible  <bruno@clisp.org>
10361
10362         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
10363         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10364         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10365         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10366         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10367         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10368         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10369         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10370         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10371
10372 2007-05-28  Eric Blake  <ebb9@byu.net>
10373
10374         Unconditionally include <config.h> in unit tests.
10375         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
10376         * tests/test-allocsa.c, tests/test-arcfour.c,
10377         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
10378         tests/test-array_list.c, tests/test-array_oset.c,
10379         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
10380         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
10381         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
10382         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
10383         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
10384         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
10385         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
10386         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
10387         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
10388         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
10389         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
10390         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
10391         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
10392         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
10393         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
10394         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
10395         test-md5.c, test-memmem.c, test-printf-posix.c,
10396         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
10397         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
10398         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
10399         test-strcasestr.c, test-striconv.c, test-striconveh.c,
10400         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
10401         test-vasnprintf-posix2.c, test-vasnprintf.c,
10402         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
10403         test-vfprintf-posix.c, test-vprintf-posix.c,
10404         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
10405         test-xvasprintf.c: Likewise.
10406
10407 2007-05-28  Bruno Haible  <bruno@clisp.org>
10408
10409         * gnulib-tool (func_import): Remember the --with-tests command-line
10410         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
10411         Reported by Eric Blake.
10412
10413 2007-05-28  Bruno Haible  <bruno@clisp.org>
10414
10415         * modules/ftell-tests: New file.
10416         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
10417         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
10418
10419         * lib/ftell.c: New file.
10420         * modules/ftell: New file.
10421         * m4/ftell.m4: New file.
10422         * doc/functions/ftell.texi: Update.
10423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
10424         REPLACE_FTELL.
10425         * lib/stdio_.h (rpl_ftell): New declaration.
10426         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
10427         REPLACE_FTELL.
10428
10429 2007-05-28  Eric Blake  <ebb9@byu.net>
10430
10431         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
10432
10433 2007-05-28  Bruno Haible  <bruno@clisp.org>
10434
10435         * modules/fseek-tests: New file.
10436         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
10437         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
10438
10439         * lib/fseek.c: New file.
10440         * modules/fseek: New file.
10441         * m4/fseek.m4: New file.
10442         * doc/functions/fseek.texi: Update.
10443         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
10444         REPLACE_FSEEK.
10445         * lib/stdio_.h (rpl_fseek): New declaration.
10446         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
10447         REPLACE_FSEEK.
10448
10449 2007-05-28  Bruno Haible  <bruno@clisp.org>
10450
10451         * lib/stdio_.h (fflush): More comments.
10452
10453 2007-05-28  Bruno Haible  <bruno@clisp.org>
10454
10455         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
10456         runtime test.
10457
10458 2007-05-28  Eric Blake  <ebb9@byu.net>
10459
10460         Improve lseek module.
10461         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
10462         * lib/unistd_.h (lseek): Scale back link warning message.
10463         * tests/test-lseek.c: Beef up test.
10464         * tests/test-lseek.sh: Exercise more facets of lseek.
10465         Reported by Bruno Haible.
10466
10467 2007-05-28  Bruno Haible  <bruno@clisp.org>
10468
10469         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
10470         to define.
10471
10472 2007-05-27  Bruno Haible  <bruno@clisp.org>
10473
10474         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
10475
10476 2007-05-27  Bruno Haible  <bruno@clisp.org>
10477
10478         * modules/openmp: New file.
10479         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
10480         Noah Misch.
10481
10482 2007-05-26  Bruno Haible  <bruno@clisp.org>
10483
10484         * modules/chdir-long (Depends-on): Add fchdir.
10485         * modules/chdir-safer (Depends-on): Likewise.
10486         * modules/fts (Depends-on): Likewise.
10487         * modules/fts-lgpl (Depends-on): Likewise.
10488         * modules/openat (Depends-on): Likewise.
10489         * modules/savewd (Depends-on): Likewise.
10490
10491 2007-05-24  Eric Blake  <ebb9@byu.net>
10492
10493         Fix lseek on mingw.
10494         * modules/lseek: New module.
10495         * m4/lseek.m4: New file.
10496         * lib/lseek.c: New file.
10497         * modules/lseek-tests: New file.
10498         * tests/test-lseek.c: New file.
10499         * tests/test-lseek.sh: New file.
10500         * MODULES.html.sh: Document lseek module.
10501         * modules/fflush (Depends-on): Add lseek, fseeko.
10502         * modules/fseeko (Depends-on): Likewise.
10503         * modules/ftello (Depends-on): Likewise.
10504         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
10505         broken.
10506         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
10507         broken.
10508         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
10509         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
10510         * lib/ftello.c (rpl_ftello): Likewise.
10511         * tests/test-fseeko.c (main): Test this.
10512         * tests/test-fseeko.sh: Likewise.
10513         * tests/test-ftello.c (main): Likewise.
10514         * tests/test-ftello.sh: Likewise.
10515         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
10516         implies replacing fseek.
10517         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
10518         HAVE_FTELLO.
10519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
10520         * modules/unistd (Makefile.am): Likewise.
10521         * lib/unistd_.h (lseek): Declare a replacement.
10522         * doc/functions/lseek.texi (lseek): Document this fix.
10523         * doc/functions/fseek.texi (fseek): Likewise.
10524         * doc/functions/ftell.texi (ftell): Likewise.
10525
10526 2007-05-24  Bruno Haible  <bruno@clisp.org>
10527
10528         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
10529         in the printed representation of a NaN.
10530         * tests/test-vasprintf-posix.c (test_function): Likewise.
10531         * tests/test-snprintf-posix.h (test_function): Likewise.
10532         * tests/test-sprintf-posix.h (test_function): Likewise.
10533         Reported by Eric Blake.
10534
10535 2007-05-23  Eric Blake  <ebb9@byu.net>
10536
10537         Fix fseeko/ftello on cygwin 1.5.24.
10538         * doc/functions/fseeko.texi (fseeko): Document the fix.
10539         * doc/functions/ftello.texi (ftello): Document the fix.
10540         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
10541         * doc/functions/stdout.text (stdout): New file.
10542         * doc/functions/stderr.text (stderr): New file.
10543         * doc/gnulib.texi (Function Substitutes): Use new files.
10544         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
10545         prior to 1.7.0.
10546         * tests/test-ftello.c (main): Likewise for ftello.
10547         * tests/test-fseeko.sh: New file.
10548         * tests/test-ftello.sh: New file.
10549         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
10550         with seekable stdin.
10551         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
10552         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
10553         (gl_REPLACE_FSEEKO): New macro.
10554         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
10555         * modules/fseeko (Files): Distribute fseeko.c.
10556         * modules/ftello (Files): Distribute ftello.c.
10557         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
10558         mode.
10559         * lib/ftello.c (rpl_ftello): New file.
10560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
10561         fseeko, ftello.
10562         (gl_STDIN_LARGE_OFFSET): New macro.
10563         * modules/stdio (Makefile.am): Perform the replacement.
10564         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
10565
10566 2007-05-23  Bruno Haible  <bruno@clisp.org>
10567
10568         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
10569         GNULIB_POSIXCHECK is defined.
10570
10571 2007-05-21  Bruno Haible  <bruno@clisp.org>
10572
10573         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
10574         Check also the output for NaN arguments. When cross-compiling, guess
10575         no on IRIX.
10576         * lib/vasnprintf.c: Update comments.
10577         * tests/test-vasnprintf-posix.c (strisnan): New function.
10578         (test_function): Use it.
10579         * tests/test-vasprintf-posix.c (strisnan): New function.
10580         (test_function): Use it.
10581         * tests/test-snprintf-posix.h (strisnan): New function.
10582         (test_function): Use it.
10583         * tests/test-sprintf-posix.h (strisnan): New function.
10584         (test_function): Use it.
10585         Reported by Eric Blake.
10586
10587 2007-05-20  Bruno Haible  <bruno@clisp.org>
10588
10589         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
10590         numbers that fails on BeOS.
10591         * doc/functions/frexpl.texi: Update.
10592
10593 2007-05-20  Jim Meyering  <jim@meyering.net>
10594
10595         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
10596         forced upon us by glibc-2.6.
10597
10598 2007-05-20  Bruno Haible  <bruno@clisp.org>
10599
10600         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
10601         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
10602         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
10603         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
10604         NEED_PRINTF_INFINITE.
10605         (is_infinitel): New function.
10606         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
10607         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
10608         gl_PREREQ_VASNPRINTF_INFINITE.
10609         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
10610         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10611         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
10612         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
10613         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
10614         gl_PREREQ_VASNPRINTF_INFINITE.
10615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10616         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10617         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10618         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10619         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10621         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10622         * doc/functions/fprintf.texi: Update.
10623         * doc/functions/printf.texi: Update.
10624         * doc/functions/snprintf.texi: Update.
10625         * doc/functions/sprintf.texi: Update.
10626         * doc/functions/vfprintf.texi: Update.
10627         * doc/functions/vprintf.texi: Update.
10628         * doc/functions/vsnprintf.texi: Update.
10629         * doc/functions/vsprintf.texi: Update.
10630
10631 2007-05-20  Bruno Haible  <bruno@clisp.org>
10632
10633         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
10634         was not found in libc.
10635         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10636
10637 2007-05-20  Bruno Haible  <bruno@clisp.org>
10638
10639         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10640         printed as "-nan" instead of "nan".
10641         * tests/test-vasprintf-posix.c (test_function): Likewise.
10642         * tests/test-snprintf-posix.h (test_function): Likewise.
10643         * tests/test-sprintf-posix.h (test_function): Likewise.
10644         Needed for HP-UX 11.
10645
10646 2007-05-20  Jim Meyering  <jim@meyering.net>
10647
10648         Fix buggy test for the fchownat-deref bug.
10649         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
10650         symlink required for the run-test.  Without it, this test would
10651         always declare that fchownat doesn't work, and client code would
10652         unnecessarily use the replacement function with fixed libc.
10653         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
10654         Reported by Greg Schafer.
10655
10656 2007-05-19  Bruno Haible  <bruno@clisp.org>
10657
10658         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
10659         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
10660         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
10661         Needed for IRIX 6.5 and Solaris 2.5.1.
10662
10663 2007-05-19  Bruno Haible  <bruno@clisp.org>
10664
10665         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
10666         (test_function): Skip tests involving -0.0 on platforms where
10667         -0.0 = 0.0.
10668         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
10669         (test_function): Skip tests involving -0.0 on platforms where
10670         -0.0 = 0.0.
10671         * tests/test-snprintf-posix.h (have_minus_zero): New function.
10672         (test_function): Skip tests involving -0.0 on platforms where
10673         -0.0 = 0.0.
10674         * tests/test-sprintf-posix.h (have_minus_zero): New function.
10675         (test_function): Skip tests involving -0.0 on platforms where
10676         -0.0 = 0.0.
10677         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
10678         tests.
10679         * tests/test-printf-posix.h (test_function): Likewise.
10680         * tests/test-printf-posix.output: Remove all -0.0 related results.
10681         Needed for IRIX 6.5.
10682
10683 2007-05-19  Bruno Haible  <bruno@clisp.org>
10684
10685         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10686         printed as "nan0x7fffffff" instead of "nan".
10687         * tests/test-vasprintf-posix.c (test_function): Likewise.
10688         * tests/test-snprintf-posix.h (test_function): Likewise.
10689         * tests/test-sprintf-posix.h (test_function): Likewise.
10690         * tests/test-fprintf-posix.h (NaN): Remove macro.
10691         (test_function): Remove all NaN related tests.
10692         * tests/test-printf-posix.h (NaN): Remove macro.
10693         (test_function): Remove all NaN related tests.
10694         * tests/test-printf-posix.output: Remove all NaN related results.
10695         Needed for IRIX 6.5.
10696
10697 2007-05-19  Bruno Haible  <bruno@clisp.org>
10698
10699         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
10700         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10701
10702 2007-05-19  Bruno Haible  <bruno@clisp.org>
10703
10704         * lib/float_.h: New file.
10705         * m4/float_h.m4: New file.
10706         * modules/float: New file.
10707         * modules/isnanl (Dependencies): Add float.
10708         * modules/isnanl-nolibm (Dependencies): Likewise.
10709         * modules/mathl (Dependencies): Likewise.
10710         * modules/printf-frexpl (Dependencies): Likewise.
10711         * modules/signbit (Dependencies): Likewise.
10712         * modules/vasnprintf (Dependencies): Likewise.
10713         * doc/headers/float.texi: Update.
10714
10715 2007-05-19  Jim Meyering  <jim@meyering.net>
10716
10717         * lib/utimens.c (gl_futimens): Rename from futimens,
10718         now that glibc-2.6 declares futimens.
10719         * lib/utimens.h: Likewise.
10720
10721 2007-05-19  Bruno Haible  <bruno@clisp.org>
10722
10723         Avoid test failures on mingw.
10724         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
10725         * tests/test-printf-posix.sh: Likewise.
10726         * tests/test-vfprintf-posix.sh: Likewise.
10727         * tests/test-vprintf-posix.sh: Likewise.
10728
10729 2007-05-19  Bruno Haible  <bruno@clisp.org>
10730
10731         Fix *printf result for NaN, Inf, -0.0 on mingw.
10732         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
10733         * lib/vasnprintf.c: Include math.h and isnan.h.
10734         (is_infinite_or_zero): New function.
10735         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
10736         values in the %f, %F, %e, %E, %g, %G directives.
10737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
10738         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10739         gl_PRINTF_INFINITE and test its result. Invoke
10740         gl_PREREQ_VASNPRINTF_INFINITE.
10741         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10742         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10743         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10744         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10745         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10746         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10747         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10748         * doc/functions/fprintf.texi: Update.
10749         * doc/functions/printf.texi: Update.
10750         * doc/functions/snprintf.texi: Update.
10751         * doc/functions/sprintf.texi: Update.
10752         * doc/functions/vfprintf.texi: Update.
10753         * doc/functions/vprintf.texi: Update.
10754         * doc/functions/vsnprintf.texi: Update.
10755         * doc/functions/vsprintf.texi: Update.
10756
10757 2007-05-19  Bruno Haible  <bruno@clisp.org>
10758
10759         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
10760         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
10761         Instead of multiplying with 10^k, set extra_zeroes to k.
10762         (scale10_round_long_double): Remove function.
10763
10764 2007-05-18  Bruno Haible  <bruno@clisp.org>
10765
10766         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
10767         introduced on 2007-05-06.
10768
10769 2007-05-18  Bruno Haible  <bruno@clisp.org>
10770
10771         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
10772         %g directives.
10773         * tests/test-vasprintf-posix.c (test_function): Likewise.
10774         * tests/test-snprintf-posix.h (test_function): Likewise.
10775         * tests/test-sprintf-posix.h (test_function): Likewise.
10776
10777 2007-05-18  Bruno Haible  <bruno@clisp.org>
10778
10779         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
10780         (strmatch): New function.
10781         (test_function): Test the %f directive on numbers of various exponents.
10782         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
10783         (strmatch): New function.
10784         (test_function): Test the %f directive on numbers of various exponents.
10785         * tests/test-snprintf-posix.h (strmatch): New function.
10786         (test_function): Test the %f directive on numbers of various exponents.
10787         * tests/test-sprintf-posix.h (strmatch): New function.
10788         (test_function): Test the %f directive on numbers of various exponents.
10789         * tests/test-snprintf-posix.c (SIZEOF): New macro.
10790         * tests/test-sprintf-posix.c (SIZEOF): New macro.
10791         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
10792         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
10793
10794 2007-05-18  Bruno Haible  <bruno@clisp.org>
10795
10796         Add support for 'long double' number output.
10797         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
10798         * lib/vasnprintf.c: Include math.h and float+.h.
10799         (mp_limb_t): New type.
10800         (GMP_LIMB_BITS): New macro.
10801         (mp_twolimb_t): New type.
10802         (GMP_TWOLIMB_BITS): New macro.
10803         (mpn_t): New type.
10804         (multiply, divide, convert_to_decimal, decode_long_double,
10805         scale10_round_long_double, scale10_round_decimal_long_double,
10806         floorlog10l): New functions.
10807         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
10808         for the %f, %F, %e, %E, %g, %G directives.
10809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
10810         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10811         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
10812         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
10813         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10814         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10816         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10817         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10818         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10819         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10820         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
10821         * modules/snprintf-posix (Depends-on): Likewise.
10822         * modules/sprintf-posix (Depends-on): Likewise.
10823         * modules/vasnprintf-posix (Depends-on): Likewise.
10824         * modules/vasprintf-posix (Depends-on): Likewise.
10825         * modules/vfprintf-posix (Depends-on): Likewise.
10826         * modules/vsnprintf-posix (Depends-on): Likewise.
10827         * modules/vsprintf-posix (Depends-on): Likewise.
10828         * modules/vasnprintf (Files): Add lib/float+.h.
10829         * doc/functions/fprintf.texi: Update.
10830         * doc/functions/printf.texi: Update.
10831         * doc/functions/snprintf.texi: Update.
10832         * doc/functions/sprintf.texi: Update.
10833         * doc/functions/vfprintf.texi: Update.
10834         * doc/functions/vprintf.texi: Update.
10835         * doc/functions/vsnprintf.texi: Update.
10836         * doc/functions/vsprintf.texi: Update.
10837
10838 2007-05-18  Bruno Haible  <bruno@clisp.org>
10839
10840         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
10841
10842 2007-05-18  Bruno Haible  <bruno@clisp.org>
10843
10844         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
10845         for printing 64-bit integers. Needed for mingw.
10846
10847 2007-05-18  Bruno Haible  <bruno@clisp.org>
10848
10849         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
10850         gl_FUNC_FREXPL_WORKS.
10851         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
10852
10853 2007-05-18  Bruno Haible  <bruno@clisp.org>
10854
10855         * modules/frexpl-nolibm-tests: New file.
10856
10857         * modules/frexpl-nolibm: New file.
10858         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
10859
10860 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10861
10862         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
10863         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
10864         GCC 4.2, which otherwise issues a lot of warnings.
10865         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
10866         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
10867         Likewise.
10868         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
10869         * modules/iconv_open (iconv.h): Likewise.
10870         * modules/locale (locale.h): Likewise.
10871         * modules/netinet_in (netinet/in.h): Likewise.
10872         * modules/sys_select (sys_select.h): Likewise.
10873         * modules/sys_socket (sys/socket.h): Likewise.
10874         * modules/sys_stat (sys/stat.h): Likewise.
10875         * modules/sysexits (sysexits.h): Likewise.
10876         * modules/unistd (unistd.h): Likewise.
10877
10878 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10879
10880         * modules/closein-tests (Makefile.am): Distribute
10881         `test-closein.sh'.
10882
10883 2007-05-17  Bruno Haible  <bruno@clisp.org>
10884
10885         * tests/test-printf-posix.output: Renamed from
10886         tests/test-fprintf-posix.out.
10887         * modules/fprintf-posix-tests: Update.
10888         * modules/printf-posix-tests: Update.
10889         * modules/vfprintf-posix-tests: Update.
10890         * modules/vprintf-posix-tests: Update.
10891         * tests/test-fprintf-posix.sh: Update.
10892         * tests/test-printf-posix.sh: Update.
10893         * tests/test-vfprintf-posix.sh: Update.
10894         * tests/test-vprintf-posix.sh: Update.
10895         Reported by Ralf Wildenhues.
10896
10897 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10898
10899         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
10900         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
10901         GCC 4.2, which otherwise issues a lot of warnings.
10902         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
10903         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
10904         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
10905         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
10906         it should no longer be needed.
10907         * lib/string_.h: Likewise.
10908         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
10909         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
10910         * modules/inttypes (inttypes.h): Likewise.
10911         * modules/math (math.h): Likewise.
10912         * modules/search (search.h): Likewise.
10913         * modules/signal (signal.h): Likewise.
10914         * modules/stdint (stdint.h): Likewise.
10915         * modules/stdio (stdio.h): Likewise.
10916         * modules/stdlib (stdlib.h): Likewise.
10917         * modules/string (string.h): Likewise.
10918         * modules/sys_time (sys/time.h): Likewise.
10919         * modules/time (time.h): Likewise.
10920         * modules/wchar (wchar.h): Likewise.
10921         * modules/wctype (wtype.h): Likewise.
10922
10923 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10924
10925         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
10926
10927 2007-05-13  Bruno Haible  <bruno@clisp.org>
10928
10929         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
10930         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10931         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
10932         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
10933         (gl_PREREQ_STRTOK_R): Don't require it here.
10934
10935 2007-05-13  Bruno Haible  <bruno@clisp.org>
10936
10937         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
10938         when used in C++ mode.
10939
10940 2007-05-12  Bruno Haible  <bruno@clisp.org>
10941
10942         * lib/linebuffer.h: Tweak doc.
10943         * lib/linebuffer.c: Likewise.
10944
10945 2007-05-12  James Youngman  <jay@gnu.org>
10946
10947         * lib/linebuffer.c (readlinebuffer_delim): New function,
10948         like readlinebuffer, but use a caller-specified delimiter.
10949         (readlinebuffer): Just call readlinebuffer_delim with '\n'
10950         as the delimiter.
10951         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
10952
10953 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10954
10955         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
10956         * modules/openat (Files): Remove openat-die.c.
10957         (Depends-on): Add openat-die.
10958         * modules/openat-die: New module.
10959
10960 2007-05-06  Bruno Haible  <bruno@clisp.org>
10961
10962         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
10963         Update with info about Cygwin.
10964         * doc/functions/fprintf.texi: Update.
10965         * doc/functions/printf.texi: Update.
10966         * doc/functions/snprintf.texi: Update.
10967         * doc/functions/sprintf.texi: Update.
10968         * doc/functions/vfprintf.texi: Update.
10969         * doc/functions/vprintf.texi: Update.
10970         * doc/functions/vsnprintf.texi: Update.
10971         * doc/functions/vsprintf.texi: Update.
10972         Reported by Eric Blake.
10973
10974 2007-05-06  Bruno Haible  <bruno@clisp.org>
10975
10976         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
10977         padding ourselves for the floating-point directives.
10978         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
10979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
10980         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10981         gl_PRINTF_FLAG_ZERO and test its result. Invoke
10982         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
10983         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10984         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
10985         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10986         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10987         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10988         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10989         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10990         * tests/test-snprintf-posix.h (test_function): Also check the width
10991         and some flags in the %f directive.
10992         * tests/test-sprintf-posix.h (test_function): Likewise.
10993         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10994         * tests/test-vasprintf-posix.c (test_function): Likewise.
10995         * doc/functions/fprintf.texi: Update.
10996         * doc/functions/printf.texi: Update.
10997         * doc/functions/snprintf.texi: Update.
10998         * doc/functions/sprintf.texi: Update.
10999         * doc/functions/vfprintf.texi: Update.
11000         * doc/functions/vprintf.texi: Update.
11001         * doc/functions/vsnprintf.texi: Update.
11002         * doc/functions/vsprintf.texi: Update.
11003
11004 2007-05-06  Bruno Haible  <bruno@clisp.org>
11005
11006         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
11007         pass the ' flag character to sprintf or snprintf.
11008         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
11009         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
11010         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11011         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
11012         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
11013         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11014         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
11015         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11016         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11017         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11018         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11019         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11020         * tests/test-snprintf-posix.h (test_function): Also check the grouping
11021         flag.
11022         * tests/test-sprintf-posix.h (test_function): Likewise.
11023         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11024         * tests/test-vasprintf-posix.c (test_function): Likewise.
11025         * doc/functions/fprintf.texi: Update.
11026         * doc/functions/printf.texi: Update.
11027         * doc/functions/snprintf.texi: Update.
11028         * doc/functions/sprintf.texi: Update.
11029         * doc/functions/vfprintf.texi: Update.
11030         * doc/functions/vprintf.texi: Update.
11031         * doc/functions/vsnprintf.texi: Update.
11032         * doc/functions/vsprintf.texi: Update.
11033
11034 2007-05-01  Bruno Haible  <bruno@clisp.org>
11035
11036         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
11037
11038 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
11039
11040         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
11041         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
11042
11043 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
11044
11045         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
11046         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
11047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
11048
11049 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
11050
11051         * lib/argp-help.c (struct hol_entry): New member `ord'.
11052         (HOL_ENTRY_PTRCMP): Use ord for comparison
11053         (hol_sort): Initialize ord.
11054
11055 2007-05-01  Bruno Haible  <bruno@clisp.org>
11056
11057         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
11058         Reported by Eric Blake.
11059         * doc/gnulib.texi (Function Substitutes): Update.
11060
11061 2007-05-01  Bruno Haible  <bruno@clisp.org>
11062
11063         * doc/functions.texi: Remove file, now redundant through
11064         doc/functions/*.texi.
11065
11066 2007-05-01  Bruno Haible  <bruno@clisp.org>
11067
11068         * modules/argp (Depends-on): Add sleep.
11069
11070 2007-05-01  Bruno Haible  <bruno@clisp.org>
11071
11072         * modules/sleep-tests: New file.
11073         * tests/test-sleep.c: New file.
11074
11075         * modules/sleep: New file.
11076         * lib/sleep.c: New file.
11077         * m4/sleep.m4: New file.
11078         * lib/unistd_.h (sleep): New declaration.
11079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
11080         HAVE_SLEEP.
11081         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
11082         * doc/functions/sleep.texi: Document the sleep module.
11083
11084 2007-05-01  Bruno Haible  <bruno@clisp.org>
11085
11086         * lib/sigprocmask.h: Remove file.
11087         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
11088         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
11089         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
11090         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
11091         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11092         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
11093         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
11094         HAVE_SIGSET_T as a shell variable.
11095         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
11096         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
11097         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
11098         (Depends-on): Add signal. Remove verify.
11099         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
11100         (Include): Mention <signal.h> instead of sigprocmask.h.
11101         * NEWS: Mention the change.
11102         * lib/fatal-signal.c: Don't include sigprocmask.h.
11103
11104 2007-05-01  Bruno Haible  <bruno@clisp.org>
11105
11106         * modules/signal: New file.
11107         * lib/signal_.h: New file.
11108         * m4/signal_h.m4: New file.
11109
11110 2007-05-01  Bruno Haible  <bruno@clisp.org>
11111
11112         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
11113         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
11114         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
11115         HAVE_WCTYPE_CTMP_BUG into wctype.h.
11116
11117 2007-05-01  Bruno Haible  <bruno@clisp.org>
11118
11119         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
11120         configure time.
11121         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
11122         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
11123         * modules/sys_stat (Makefile.am): Substitute their values into
11124         sys/stat.h.
11125
11126 2007-05-01  Bruno Haible  <bruno@clisp.org>
11127
11128         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
11129         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
11130         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
11131
11132 2007-05-01  Bruno Haible  <bruno@clisp.org>
11133
11134         * doc/header/assert.texi: Undo last change: don't mention the gnulib
11135         'assert' module here.
11136
11137 2007-05-01  Bruno Haible  <bruno@clisp.org>
11138
11139         * doc/functions/*.texi: New files.
11140         * doc/functions/google-ranking.txt: New file.
11141         * doc/gnulib.texi (Function Substitutes): New chapter.
11142         (ctime, inet_ntoa): Remove sections.
11143         * doc/ctime.texi: Remove file.
11144         * doc/inet_ntoa.texi: Remove file.
11145         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
11146         dependencies.
11147         (%.info): New rule, specifying a --reference-limit.
11148
11149 2007-05-01  Bruno Haible  <bruno@clisp.org>
11150
11151         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
11152
11153 2007-05-01  Bruno Haible  <bruno@clisp.org>
11154
11155         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
11156         the portability of 'mkdir' to mingw systems.
11157
11158 2007-05-01  Bruno Haible  <bruno@clisp.org>
11159
11160         * doc/headers/google-ranking.txt: New file.
11161
11162 2007-04-30  Eric Blake  <ebb9@byu.net>
11163
11164         Prefer fseeko to fseek.
11165         * modules/getpass (Depends-on): Add fseeko.
11166         * lib/getpass.c (getpass): Use fseeko, not fseek.
11167
11168 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
11169
11170         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
11171         assumes the sorting is stable, while most qsort implementations
11172         are not.  Use argument addresses to ensure they never compare as
11173         equal.
11174
11175         * tests/test-argp-2.sh (usage-indent test): Fix output
11176         (func_compare): Restore diff options
11177         * tests/test-argp.c: Restore #include "progname.h"
11178
11179 2007-04-29  Bruno Haible  <bruno@clisp.org>
11180
11181         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
11182         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11183         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
11184         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11185         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
11186         (configure.ac): Define CHECK_SNPRINTF_POSIX.
11187         (TESTS, check_PROGRAMS): Add test-snprintf.
11188         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
11189         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
11190         (TESTS, check_PROGRAMS): Add test-vsnprintf.
11191         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
11192         assertions that fail on HP-UX, OSF/1, or IRIX.
11193         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
11194
11195 2007-04-29  Bruno Haible  <bruno@clisp.org>
11196
11197         * MODULES.html.sh (posix_functions): Remove 'contents'.
11198
11199 2007-04-29  Karl Berry  <karl@gnu.org>
11200
11201         * config/srclist.txt (gendocs_template_min): new entry.
11202
11203 2007-04-29  Bruno Haible  <bruno@clisp.org>
11204
11205         Work around fpurge bug on BSD systems.
11206         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
11207         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
11208         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
11209         fpurge to rpl_fpurge if the system already has this function.
11210         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
11211         the case where the system already has this function. Correct invariants
11212         on BSD systems.
11213         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
11214         BSD systems.
11215
11216 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
11217
11218         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
11219         proposed by Sven Verdoolaege.
11220
11221         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
11222         options.
11223         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
11224         (usage and help tests): Update
11225
11226 2007-04-29  Bruno Haible  <bruno@clisp.org>
11227
11228         * tests/test-fflush.c (main): Use a file of size 17, not 10.
11229         Print more information in case of failure. Disable a test on BeOS.
11230
11231 2007-04-29  Bruno Haible  <bruno@clisp.org>
11232
11233         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
11234         This helps debugging on systems on which no gdb is available.
11235
11236 2007-04-29  Bruno Haible  <bruno@clisp.org>
11237
11238         * lib/freading.h: Improve comments.
11239         * lib/fwriting.h: Likewise.
11240         * tests/test-freading.c (main): Don't check freading immediately after
11241         repositioning. Needed for glibc.
11242
11243 2007-04-29  Bruno Haible  <bruno@clisp.org>
11244
11245         * lib/freading.c (freading): Trivial simplification.
11246
11247 2007-04-28  Bruno Haible  <bruno@clisp.org>
11248
11249         * tests/test-fwriting.c (main): Also test the interaction between
11250         fflush and fwriting.
11251         * modules/fwriting-tests (Depends-on): Add fflush.
11252
11253         * tests/test-freading.c (main): Also test the interaction between
11254         fflush and freading.
11255         * modules/freading-tests (Depends-on): Add fflush.
11256
11257 2007-04-28  Bruno Haible  <bruno@clisp.org>
11258
11259         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
11260         fseeko and ftello.
11261         Suggested by Eric Blake.
11262
11263 2007-04-28  Jim Meyering  <jim@meyering.net>
11264
11265         Avoid false-negative in gl_STDINT_H's C99 conformance test.
11266         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
11267         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
11268
11269 2007-04-27  Eric Blake  <ebb9@byu.net>
11270
11271         * doc/headers/assert.texi (assert.h): Document assert module use.
11272
11273 2007-04-27  Bruno Haible  <bruno@clisp.org>
11274
11275         * doc/headers/*.texi: New files.
11276         * doc/gnulib.texi (Header File Substitutes): New chapter.
11277         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
11278         dependencies.
11279         (standards.info ,standards.html, standards.dvi): Update dependencies.
11280         (mostlyclean, clean): New targets.
11281
11282 2007-04-27  Bruno Haible  <bruno@clisp.org>
11283
11284         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
11285         * modules/sysexits (Files, Makefile.am): Update.
11286
11287         * lib/sys_socket_.h: Renamed from lib/socket_.h.
11288         * modules/sys_socket (Files, Makefile.am): Update.
11289
11290         * lib/sys_stat_.h: Renamed from lib/stat_.h.
11291         * modules/sys_stat (Files, Makefile.am): Update.
11292
11293 2007-04-27  Eric Blake  <ebb9@byu.net>
11294
11295         * lib/freading.h: Improve comments.
11296         * lib/fwriting.h: Likewise.
11297         * lib/fflush.c: Likewise.
11298
11299         Fix closein for mingw.
11300         * modules/closein-tests: Add tests for closein.
11301         * tests/test-closein.c: New file.
11302         * tests/test-closein.sh: Likewise.
11303         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
11304         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
11305
11306 2007-04-27  Bruno Haible  <bruno@clisp.org>
11307
11308         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
11309         version is < 6.
11310         * lib/math_.h [__DECC]: Likewise.
11311         * lib/stdio_.h [__DECC]: Likewise.
11312         * lib/stdlib_.h [__DECC]: Likewise.
11313         * lib/string_.h [__DECC]: Likewise.
11314         * lib/time_.h [__DECC]: Likewise.
11315         * lib/wchar_.h [__DECC]: Likewise.
11316         * lib/wctype_.h [__DECC]: Likewise.
11317
11318 2007-04-27  Bruno Haible  <bruno@clisp.org>
11319
11320         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
11321
11322 2007-04-27  Bruno Haible  <bruno@clisp.org>
11323
11324         * lib/fflush.c: Add comments.
11325         * modules/fpurge-tests (Depends-on): Add fflush.
11326         * modules/freadable-tests (Depends-on): Likewise.
11327         * modules/fwritable-tests (Depends-on): Likewise.
11328
11329 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
11330
11331         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
11332         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
11333         Report by Bruno Haible <bruno@clisp.org>.
11334
11335 2007-04-26  Eric Blake  <ebb9@byu.net>
11336
11337         Fix fflush on mingw.
11338         * modules/fflush (Depends-on): Add freading.
11339         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
11340         but unread data.
11341
11342 2007-04-26  Eric Blake  <ebb9@byu.net>
11343         and Bruno Haible  <bruno@clisp.org>
11344
11345         Implement freading and fwriting.
11346         * lib/freading.c: New file.
11347         * lib/freading.h: Likewise.
11348         * m4/freading.m4: Likewise.
11349         * modules/freading: Likewise.
11350         * modules/freading-tests: Likewise.
11351         * tests/test-freading.c: Likewise.
11352         * lib/fwriting.c: New file.
11353         * lib/fwriting.h: Likewise.
11354         * m4/fwriting.m4: Likewise.
11355         * modules/fwriting: Likewise.
11356         * modules/fwriting-tests: Likewise.
11357         * tests/test-fwriting.c: Likewise.
11358         * MODULES.html.sh (File stream based Input/Output): Mention them.
11359
11360 2007-04-26  Bruno Haible  <bruno@clisp.org>
11361
11362         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
11363         'long' when we assume it.
11364         Suggested by Eric Blake.
11365
11366 2007-04-26  Bruno Haible  <bruno@clisp.org>
11367
11368         Ensure fseeko, ftello are declared on glibc systems.
11369         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
11370         * modules/fseeko (configure.ac-early): Likewise.
11371         * modules/ftello (configure.ac-early): Likewise.
11372         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
11373         AC_FUNC_FSEEKO for this.
11374         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
11375         (gl_CHECK_FSEEKO): Remove macro.
11376
11377 2007-04-26  Bruno Haible  <bruno@clisp.org>
11378
11379         * tests/test-fflush.c (main): Also check the ftell result after
11380         fflush and fseek/fseeko.
11381         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
11382         file descriptor position cache in the stream.
11383         * lib/fseeko.c (rpl_fseeko): Likewise.
11384
11385 2007-04-26  Bruno Haible  <bruno@clisp.org>
11386
11387         * modules/fflush-tests (Depends-on): Add fseeko.
11388
11389 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
11390             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11391
11392         * lib/argz_.h: ensure error_t definition is obtained in same
11393         mechanism system argz.h would have.
11394         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
11395         argz facilities are known bad.  Err on the side of caution if
11396         cross-compiling.
11397
11398 2007-04-25  Eric Blake  <ebb9@byu.net>
11399
11400         * lib/fpurge.c (includes): Use stdlib.h for free.
11401         * tests/test-fflush.c (main): Also test fflush-fseeko.
11402
11403 2007-04-25  Bruno Haible  <bruno@clisp.org>
11404
11405         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
11406         * lib/fseeko.c: New file.
11407         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
11408         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
11409         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
11410         gl_FUNC_FSEEKO.
11411         (gl_FUNC_FSEEKO): Invoke it.
11412         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
11413         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
11414         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
11415
11416 2007-04-25  Bruno Haible  <bruno@clisp.org>
11417
11418         * modules/fflush (Depends-on): Add ftello.
11419
11420 2007-04-25  Bruno Haible  <bruno@clisp.org>
11421
11422         * modules/ftello-tests: New file.
11423         * tests/test-ftello.c: New file.
11424
11425         * modules/ftello: New file.
11426         * m4/ftello.m4: New file.
11427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
11428         HAVE_FTELLO.
11429         * lib/stdio_.h (ftello): New declaration.
11430         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
11431         HAVE_FTELLO.
11432
11433 2007-04-25  Bruno Haible  <bruno@clisp.org>
11434
11435         * modules/fseeko-tests: New file.
11436         * tests/test-fseeko.c: New file.
11437
11438         * modules/fseeko: New file.
11439         * m4/fseeko.m4: New file.
11440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
11441         HAVE_FSEEKO.
11442         * lib/stdio_.h (fseeko): New declaration.
11443         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
11444         HAVE_FSEEKO.
11445
11446 2007-04-25  Bruno Haible  <bruno@clisp.org>
11447
11448         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
11449
11450 2007-04-25  Bruno Haible  <bruno@clisp.org>
11451
11452         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
11453         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
11454         * tests/test-unistd.c: Likewise.
11455         * tests/test-fcntl.c: Likewise.
11456
11457 2007-04-23  Eric Blake  <ebb9@byu.net>
11458
11459         * lib/fflush.c: Fix missing include.
11460         Reported by Bruno Haible.
11461
11462 2007-04-23  Bruno Haible  <bruno@clisp.org>
11463
11464         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
11465         Reported by Eric Blake.
11466
11467 2007-04-23  Bruno Haible  <bruno@clisp.org>
11468
11469         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
11470
11471 2007-04-23  Bruno Haible  <bruno@clisp.org>
11472
11473         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
11474
11475 2007-04-23  Bruno Haible  <bruno@clisp.org>
11476
11477         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
11478         Needed on HP-UX 11.
11479
11480 2007-04-16  Eric Blake  <ebb9@byu.net>
11481
11482         Make fflush rely on fpurge.
11483         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
11484         open coding all variants.
11485         * modules/fflush (Depends-on): Add fpurge and unistd.
11486         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
11487         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
11488
11489         Fix --with-tests compilation on cygwin.
11490         * modules/argmatch-tests (Makefile.am): List gnulib library first
11491         in LDADD.
11492         * modules/argp-tests (Makefile.am): Likewise.
11493         * modules/array-list-tests (Makefile.am): Likewise.
11494         * modules/array-oset-tests (Makefile.am): Likewise.
11495         * modules/avltree-list-tests (Makefile.am): Likewise.
11496         * modules/avltree-oset-tests (Makefile.am): Likewise.
11497         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11498         * modules/carray-list-tests (Makefile.am): Likewise.
11499         * modules/dirname-tests (Makefile.am): Likewise.
11500         * modules/frexp-tests (Makefile.am): Likewise.
11501         * modules/isnanl-tests (Makefile.am): Likewise.
11502         * modules/linked-list-tests (Makefile.am): Likewise.
11503         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11504         * modules/lock-tests (Makefile.am): Likewise.
11505         * modules/rbtree-list-tests (Makefile.am): Likewise.
11506         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11507         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11508         * modules/tls-tests (Makefile.am): Likewise.
11509         * modules/tsearch-tests (Makefile.am): Likewise.
11510         * modules/xvasprintf-tests (Makefile.am): Likewise.
11511
11512         Fix fpurge for cygwin.
11513         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
11514         value.
11515         * modules/fpurge-tests (Depends-on): Clean up trash.
11516
11517 2007-04-16  Simon Josefsson  <simon@josefsson.org>
11518
11519         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
11520
11521         * m4/autobuild.m4: Re-indent.
11522
11523 2007-04-13  Bruno Haible  <bruno@clisp.org>
11524
11525         * modules/fpurge-tests: New file.
11526         * tests/test-fpurge.c: New file.
11527
11528         * modules/fpurge: New file.
11529         * lib/fpurge.h: New file.
11530         * lib/fpurge.c: New file.
11531         * m4/fpurge.m4: New file.
11532
11533 2007-04-13  Bruno Haible  <bruno@clisp.org>
11534
11535         * modules/fbufmode-tests: New file.
11536         * tests/test-fbufmode.c: New file.
11537
11538         * modules/fbufmode: New file.
11539         * lib/fbufmode.h: New file.
11540         * lib/fbufmode.c: New file.
11541         * m4/fbufmode.m4: New file.
11542
11543 2007-04-13  Bruno Haible  <bruno@clisp.org>
11544
11545         * modules/fwritable-tests: New file.
11546         * tests/test-fwritable.c: New file.
11547
11548         * modules/fwritable: New file.
11549         * lib/fwritable.h: New file.
11550         * lib/fwritable.c: New file.
11551         * m4/fwritable.m4: New file.
11552
11553 2007-04-13  Bruno Haible  <bruno@clisp.org>
11554
11555         * modules/freadable-tests: New file.
11556         * tests/test-freadable.c: New file.
11557
11558         * modules/freadable: New file.
11559         * lib/freadable.h: New file.
11560         * lib/freadable.c: New file.
11561         * m4/freadable.m4: New file.
11562
11563 2007-04-13  Bruno Haible  <bruno@clisp.org>
11564
11565         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
11566         MOSTLYCLEANFILES.
11567
11568 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
11569
11570         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
11571         gzip bootstrap.conf to avoid dragging in i18n machinery.
11572         (gnulib_tool_option): Use it.
11573
11574 2007-04-13  Bruno Haible  <bruno@clisp.org>
11575
11576         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
11577         %F directives.
11578         * tests/test-vasprintf-posix.c (test_function): Likewise.
11579         * tests/test-snprintf-posix.h (test_function): Likewise.
11580         * tests/test-sprintf-posix.h (test_function): Likewise.
11581         * tests/test-fprintf-posix.h (test_function): Likewise.
11582         * tests/test-printf-posix.h (test_function): Likewise.
11583         * tests/test-fprintf-posix.out: Likewise.
11584
11585 2007-04-13  Bruno Haible  <bruno@clisp.org>
11586
11587         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
11588         * modules/tls-tests (configure.ac): Likewise.
11589         Reported by Arto C. Nirkko <anirkko@insel.ch>.
11590
11591 2007-04-13  Bruno Haible  <bruno@clisp.org>
11592
11593         * lib/tls.c (glthread_tls_get): Fix return type.
11594         Patch by Arto C. Nirkko <anirkko@insel.ch>.
11595
11596 2007-04-12  Eric Blake  <ebb9@byu.net>
11597
11598         * modules/gettime (Depends-on): Remove gettime.
11599         Reported by Dmitry V. Levin.
11600
11601 2007-04-12  Bruno Haible  <bruno@clisp.org>
11602
11603         * modules/fflush (Include): Mention <stdio.h>.
11604         * modules/strtoimax (Include): Mention <inttypes.h>.
11605         * modules/strtoumax (Include): Likewise.
11606
11607 2007-04-12  Eric Blake  <ebb9@byu.net>
11608
11609         * .cvsignore: New file.
11610         * .gitignore: Likewise.
11611
11612 2007-04-12  Bruno Haible  <bruno@clisp.org>
11613
11614         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
11615         not before, since $(LDADD) often contains libgnu.a.
11616         * modules/striconv-tests (test_striconv_LDADD): Likewise.
11617         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
11618         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
11619         Needed on Cygwin.
11620
11621 2007-04-12  Eric Blake  <ebb9@byu.net>
11622
11623         Work around glibc's failure to flush stdin on fclose.
11624         * lib/closein.c (close_stdin): Flush stdin before closing.
11625
11626         Work around glibc's failure to reset seekable stdin on exit.
11627         * modules/closein: New module.
11628         * lib/closein.c: New file.
11629         * lib/closein.h: Likewise.
11630         * m4/closein.m4: Likewise.
11631         * MODULES.html.sh (File stream based Input/Output): Document it.
11632
11633 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11634
11635         * gnulib-tool: Rename generated 'autobuild' script to
11636         'do-autobuild' in --create-megatestdir output.
11637
11638         * doc/gnulib.texi (Build robot for gnulib): Fix.
11639
11640 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11641
11642         * modules/sysexits (Depends-on): Add absolute-header.
11643
11644 2007-04-12  Eric Blake  <ebb9@byu.net>
11645
11646         No need to preserve errno on success.
11647         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
11648         Reported by Bruno Haible.
11649
11650 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11651
11652         * MODULES.html.sh (Support for maintaining and releasing
11653         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
11654
11655 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11656
11657         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
11658
11659 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11660
11661         * modules/autobuild: New module.
11662
11663         * m4/autobuild.m4: New file.
11664
11665 2007-04-11  Bruno Haible  <bruno@clisp.org>
11666
11667         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
11668         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
11669         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
11670         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
11671         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11672         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11673         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11674         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11675         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11676         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11677         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
11678         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11679         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11680         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
11681         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11682         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11683         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
11684         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11685         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11686         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
11687         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11688         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11689         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
11690         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11691         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11692         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
11693         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11694         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11695         Reported by Eric Blake.
11696
11697 2007-04-11  Bruno Haible  <bruno@clisp.org>
11698
11699         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
11700
11701 2007-04-10  Bruno Haible  <bruno@clisp.org>
11702
11703         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
11704         for NaN and Infinity. Needed on FreeBSD 6.1.
11705         * tests/test-vasnprintf-posix.c (test_function): Undo last change
11706         regarding results for "%010a" of Infinity and NaN.
11707         * tests/test-vasprintf-posix.c (test_function): Likewise.
11708         * tests/test-snprintf-posix.h (test_function): Likewise.
11709         * tests/test-sprintf-posix.h (test_function): Likewise.
11710         * tests/test-fprintf-posix.h (test_function): Likewise.
11711         * tests/test-printf-posix.h (test_function): Likewise.
11712         * tests/test-fprintf-posix.out: Likewise.
11713
11714 2007-04-10  Bruno Haible  <bruno@clisp.org>
11715
11716         * modules/locale-tests: New file.
11717         * tests/test-locale.c: New file.
11718
11719         * modules/locale: New file.
11720         * lib/locale_.h: New file.
11721         * m4/locale_h.m4: New file.
11722
11723 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
11724             Bruno Haible  <bruno@clisp.org>
11725
11726         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
11727         be determined, test for availability of the copysignf, copysign,
11728         copysignl functions.
11729         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
11730         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
11731         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
11732
11733 2007-04-09  Eric Blake  <ebb9@byu.net>
11734
11735         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
11736         * modules/stdio (Makefile.am): Support fflush.
11737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11738         * modules/fflush: New file.
11739         * lib/fflush.c: Likewise.
11740         * m4/fflush.m4: Likewise.
11741         * modules/fflush-tests: New test.
11742         * tests/test-fflush.c: Likewise.
11743         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
11744
11745 2007-04-06  Bruno Haible  <bruno@clisp.org>
11746
11747         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
11748         (VASNPRINTF): Use signbit for faster determination whether to print a
11749         minus sign.
11750         * modules/vasnprintf (Files): Remove lib/float+.h.
11751         * modules/fprintf-posix (Depends-on): Add signbit.
11752         * modules/snprintf-posix (Depends-on): Likewise.
11753         * modules/sprintf-posix (Depends-on): Likewise.
11754         * modules/vasnprintf-posix (Depends-on): Likewise.
11755         * modules/vasprintf-posix (Depends-on): Likewise.
11756         * modules/vfprintf-posix (Depends-on): Likewise.
11757         * modules/vsnprintf-posix (Depends-on): Likewise.
11758         * modules/vsprintf-posix (Depends-on): Likewise.
11759
11760 2007-04-06  Bruno Haible  <bruno@clisp.org>
11761
11762         * tests/test-frexp.c (main): Test also the sign bit of zero results.
11763         * tests/test-frexpl.c (main): Likewise.
11764         * tests/test-ldexpl.c (main): Likewise.
11765         * modules/frexp-tests (Depends-on): Add signbit.
11766         * modules/frexpl-tests (Depdends-on): Likewise.
11767         * modules/ldexpl-tests (Depdends-on): Likewise.
11768
11769 2007-04-06  Bruno Haible  <bruno@clisp.org>
11770
11771         * modules/signbit-tests: New file.
11772         * tests/test-signbit.c: New file.
11773
11774         * modules/signbit: New file.
11775         * lib/signbitf.c: New file.
11776         * lib/signbitd.c: New file.
11777         * lib/signbitl.c: New file.
11778         * m4/signbit.m4: New file.
11779         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
11780         (signbit): New macro.
11781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
11782         REPLACE_SIGNBIT.
11783         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
11784         REPLACE_FREXPL into math.h.
11785
11786 2007-04-06  Bruno Haible  <bruno@clisp.org>
11787
11788         * modules/isnanf-nolibm-tests: New file.
11789         * tests/test-isnanf.c: New file.
11790
11791         * modules/isnanf-nolibm: New file.
11792         * lib/isnanf.h: New file.
11793         * lib/isnanf.c: New file.
11794         * lib/isnan.c: Consider the USE_FLOAT macro.
11795         * m4/isnanf.m4: New file.
11796
11797 2007-04-06  Bruno Haible  <bruno@clisp.org>
11798
11799         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
11800         (Link): New section.
11801
11802         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
11803
11804 2007-04-06  Bruno Haible  <bruno@clisp.org>
11805
11806         Assume the 'long double' type.
11807         * m4/longdouble.m4: Remove file.
11808         * config/srclist.txt: Don't mention longdouble.m4.
11809         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
11810         * lib/float+.h: Likewise.
11811         * lib/frexp.c: Likewise.
11812         * lib/printf-args.h: Likewise.
11813         * lib/printf-args.c: Likewise.
11814         * lib/printf-frexp.c: Likewise.
11815         * lib/printf-parse.c: Likewise.
11816         * lib/vasnprintf.c: Likewise.
11817         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
11818         * m4/intl.m4: Likewise.
11819         * m4/isnanl.m4: Likewise.
11820         * m4/printf.m4: Likewise.
11821         * m4/printf-frexpl.m4: Likewise.
11822         * m4/vasnprintf.m4: Likewise.
11823         * modules/allocsa (Files): Remove m4/longdouble.m4.
11824         * modules/gettext (Files): Likewise.
11825         * modules/relocatable-prog-wrapper (Files): Likewise.
11826         * modules/vasnprintf (Files): Likewise.
11827         * modules/isnanl (Files): Likewise.
11828         (Include): Simplify.
11829         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
11830         (Include): Simplify.
11831         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
11832         (Include): Simplify.
11833         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
11834         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11835         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
11836         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11837         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11838         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11839         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
11840         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11841         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11842         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11843         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
11844         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11845         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
11846         * tests/test-isnanl.c: Likewise.
11847         * tests/test-snprintf-posix.h: Likewise.
11848         * tests/test-sprintf-posix.h: Likewise.
11849         * tests/test-vasnprintf-posix.c: Likewise.
11850         * tests/test-vasnprintf-posix2.c: Likewise.
11851         * tests/test-vasprintf-posix.c: Likewise.
11852
11853 2007-04-06  Bruno Haible  <bruno@clisp.org>
11854
11855         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
11856         * lib/math_.h [__DECC]: Include the overridden include file through
11857         #include_next, outside the double-inclusion guard.
11858         * lib/stdio_.h [__DECC]: Likewise.
11859         * lib/stdlib_.h [__DECC]: Likewise.
11860         * lib/string_.h [__DECC]: Likewise.
11861         * lib/time_.h [__DECC]: Likewise.
11862         * lib/wchar_.h [__DECC]: Likewise.
11863         * lib/wctype_.h [__DECC]: Likewise.
11864         * lib/inttypes_.h [__DECC]: Likewise.
11865         Reported by Albert Chin <china@thewrittenword.com> in
11866         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
11867
11868 2007-04-04  Eric Blake  <ebb9@byu.net>
11869
11870         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
11871         1.5.x.
11872
11873 2007-04-04  Bruno Haible  <bruno@clisp.org>
11874
11875         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
11876         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
11877
11878 2007-04-04  Bruno Haible  <bruno@clisp.org>
11879
11880         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
11881         results for "%010a" of Infinity and NaN.
11882         * tests/test-vasprintf-posix.c (test_function): Likewise.
11883         * tests/test-snprintf-posix.h (test_function): Likewise.
11884         * tests/test-sprintf-posix.h (test_function): Likewise.
11885         * tests/test-fprintf-posix.h (test_function): Remove these tests.
11886         * tests/test-printf-posix.h (test_function): Likewise.
11887         * tests/test-fprintf-posix.out: Update.
11888         Needed for FreeBSD 6.1.
11889
11890 2007-04-04  Bruno Haible  <bruno@clisp.org>
11891
11892         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
11893         directly used by the gnulib modules nor by gnulib-tool.
11894
11895 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
11896
11897         * DEPENDENCIES: Give overall description of version dependency
11898         desirability.  Use more-typical names for apps.
11899         Add shell, coreutils, diffutils, grep, tar, gzip.
11900
11901 2007-04-04  Simon Josefsson  <simon@josefsson.org>
11902
11903         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
11904
11905 2007-04-04  Karl Berry  <karl@gnu.org>
11906
11907         * MODULES.html.sh (func_module): missing '.
11908
11909 2007-04-03  Bruno Haible  <bruno@clisp.org>
11910
11911         * modules/argmatch-tests (Makefile.am): New variable
11912         test_argmatch_LDADD.
11913         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
11914         * modules/array-list-tests (Makefile.am): New variable
11915         test_array_list_LDADD.
11916         * modules/array-oset-tests (Makefile.am): New variable
11917         test_array_oset_LDADD.
11918         * modules/avltree-list-tests (Makefile.am): New variable
11919         test_avltree_list_LDADD.
11920         * modules/avltree-oset-tests (Makefile.am): New variable
11921         test_avltree_oset_LDADD.
11922         * modules/avltreehash-list-tests (Makefile.am): New variable
11923         test_avltreehash_list_LDADD.
11924         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
11925         test_canonicalize_lgpl_LDADD.
11926         * modules/carray-list-tests (Makefile.am): New variable
11927         test_carray_list_LDADD.
11928         * modules/dirname-tests (Makefile.am): New variable
11929         test_dirname_LDADD.
11930         * modules/linked-list-tests (Makefile.am): New variable
11931         test_linked_list_LDADD.
11932         * modules/linkedhash-list-tests (Makefile.am): New variable
11933         test_linkedhash_list_LDADD.
11934         * modules/rbtree-list-tests (Makefile.am): New variable
11935         test_rbtree_list_LDADD.
11936         * modules/rbtree-oset-tests (Makefile.am): New variable
11937         test_rbtree_oset_LDADD.
11938         * modules/rbtreehash-list-tests (Makefile.am): New variable
11939         test_rbtreehash_list_LDADD.
11940         * modules/xvasprintf-tests (Makefile.am): New variable
11941         test_xvasprintf_LDADD.
11942         Reported by Eric Blake.
11943
11944 2007-04-03  Eric Blake  <ebb9@byu.net>
11945
11946         * DEPENDENCIES: Weaken m4 requirements.
11947
11948 2007-04-03  Bruno Haible  <bruno@clisp.org>
11949
11950         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
11951         * modules/isnanl-tests (configure.ac): Likewise.
11952
11953 2007-04-03  Ben Pfaff  <blp@gnu.org>
11954
11955         * modules/iconv_open: Add $(srcdir)/ to source directory
11956         references in Makefile fragments that call gperf, to fix VPATH
11957         builds.
11958
11959 2007-04-03  Bruno Haible  <bruno@clisp.org>
11960
11961         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
11962         * lib/ldexpl.c: Undo last change.
11963
11964 2007-04-03  Bruno Haible  <bruno@clisp.org>
11965
11966         * modules/printf-frexpl (Depends-on): Undo last change.
11967         (Files): Add m4/ldexpl.m4.
11968
11969 2007-04-03  Bruno Haible  <bruno@clisp.org>
11970
11971         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
11972         * modules/isnanl (Link): New section.
11973
11974         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
11975         * modules/frexp (Link): New section.
11976
11977         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
11978         * modules/frexpl (Link): New section.
11979
11980         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
11981         * modules/ldexpl (Link): New section.
11982
11983 2007-04-03  Bruno Haible  <bruno@clisp.org>
11984
11985         * modules/TEMPLATE-EXTENDED: New file.
11986         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
11987
11988 2007-04-03  Bruno Haible  <bruno@clisp.org>
11989
11990         * DEPENDENCIES: New file.
11991         Suggested by Simon Josefsson.
11992
11993 2007-04-03  Bruno Haible  <bruno@clisp.org>
11994
11995         * doc/gnulib.texi: Escape @.
11996
11997 2007-04-03  James Youngman  <jay@gnu.org>
11998         and Paul Eggert  <eggert@cs.ucla.edu>
11999
12000         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
12001         birthtime on all systems that have birthtime, not just those which
12002         use st_birthtimensec rather than st_birthtim.  Putting zero in
12003         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
12004         that the birth time is not available for files on an NFS mount.
12005
12006 2007-04-03  Simon Josefsson  <simon@josefsson.org>
12007
12008         * modules/memxor: Move back from crypto/, suggested by Bruno.
12009         * modules/crypto/hmac-sha1: Fix memxor dependency.
12010
12011         * modules/crypto/gc: Moved from ../.
12012
12013 2007-04-02  Eric Blake  <ebb9@byu.net>
12014
12015         * lib/ldexpl.c (includes): Avoid libm.
12016
12017         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
12018
12019 2007-04-02  Bruno Haible  <bruno@clisp.org>
12020
12021         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
12022         on IRIX.
12023
12024 2007-04-02  Bruno Haible  <bruno@clisp.org>
12025
12026         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
12027         x86 or x86_64 platforms running MacOS X.
12028         Reported by Ryan Schmidt <@ryandesign.com>.
12029
12030 2007-04-02  Bruno Haible  <bruno@clisp.org>
12031
12032         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
12033         i386.
12034
12035 2007-04-01  Simon Josefsson  <simon@josefsson.org>
12036
12037         * modules/crypto/arcfour: Moved from ../.
12038         * modules/crypto/arcfour-tests: Moved from ../.
12039         * modules/crypto/arctwo: Moved from ../.
12040         * modules/crypto/arctwo-tests: Moved from ../.
12041         * modules/crypto/des: Moved from ../.
12042         * modules/crypto/des-tests: Moved from ../.
12043         * modules/crypto/gc-arcfour: Moved from ../.
12044         * modules/crypto/gc-arcfour-tests: Moved from ../.
12045         * modules/crypto/gc-arctwo: Moved from ../.
12046         * modules/crypto/gc-arctwo-tests: Moved from ../.
12047         * modules/crypto/gc-des: Moved from ../.
12048         * modules/crypto/gc-des-tests: Moved from ../.
12049         * modules/crypto/gc-hmac-md5: Moved from ../.
12050         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
12051         * modules/crypto/gc-hmac-sha1: Moved from ../.
12052         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
12053         * modules/crypto/gc-md2: Moved from ../.
12054         * modules/crypto/gc-md2-tests: Moved from ../.
12055         * modules/crypto/gc-md4: Moved from ../.
12056         * modules/crypto/gc-md4-tests: Moved from ../.
12057         * modules/crypto/gc-md5: Moved from ../.
12058         * modules/crypto/gc-md5-tests: Moved from ../.
12059         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
12060         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
12061         * modules/crypto/gc-random: Moved from ../.
12062         * modules/crypto/gc-rijndael: Moved from ../.
12063         * modules/crypto/gc-rijndael-tests: Moved from ../.
12064         * modules/crypto/gc-sha1: Moved from ../.
12065         * modules/crypto/gc-sha1-tests: Moved from ../.
12066         * modules/crypto/gc-tests: Moved from ../.
12067         * modules/crypto/hmac-md5: Moved from ../.
12068         * modules/crypto/hmac-md5-tests: Moved from ../.
12069         * modules/crypto/hmac-sha1: Moved from ../.
12070         * modules/crypto/hmac-sha1-tests: Moved from ../.
12071         * modules/crypto/md2: Moved from ../.
12072         * modules/crypto/md2-tests: Moved from ../.
12073         * modules/crypto/md4: Moved from ../.
12074         * modules/crypto/md4-tests: Moved from ../.
12075         * modules/crypto/md5: Moved from ../.
12076         * modules/crypto/md5-tests: Moved from ../.
12077         * modules/crypto/memxor: Moved from ../.
12078         * modules/crypto/rijndael: Moved from ../.
12079         * modules/crypto/rijndael-tests: Moved from ../.
12080         * modules/crypto/sha1: Moved from ../.
12081
12082 2007-03-30  James Youngman  <jay@gnu.org>
12083
12084         * tests/test-stat-time.c (prepare_test): use chmod() rather than
12085         rename() to change the ctime of a file (because ctime is unaffected
12086         by rename on jfs2 on AIX 5.1).
12087         (main): Start by doing cleanup, in case a previous run failed leaving
12088         test files behind.
12089
12090 2007-03-31  Bruno Haible  <bruno@clisp.org>
12091
12092         Support old proprietary implementations of iconv.
12093         * modules/iconv_open: New file.
12094         * lib/iconv_.h: New file.
12095         * m4/iconv_h.m4: New file.
12096         * lib/iconv_open.c: New file.
12097         * lib/iconv_open-aix.gperf: New file.
12098         * lib/iconv_open-hpux.gperf: New file.
12099         * lib/iconv_open-irix.gperf: New file.
12100         * lib/iconv_open-osf.gperf: New file.
12101         * m4/iconv_open.m4: New file.
12102         * modules/linebreak (Depends-on): Add iconv_open.
12103         * modules/striconv (Depends-on): Likewise.
12104         * modules/striconveh (Depends-on): Likewise.
12105         * modules/unicodeio (Depends-on): Likewise.
12106         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
12107         (iconv_t)(-1).
12108         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
12109         conversion if cd is (iconv_t)(-1).
12110         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
12111         is not possible.
12112
12113 2007-03-31  Bruno Haible  <bruno@clisp.org>
12114
12115         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
12116         work on Solaris either. Protect also second use of "autodetect_jp".
12117
12118 2007-03-31  Bruno Haible  <bruno@clisp.org>
12119
12120         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
12121         the function is not present.
12122
12123 2007-03-31  Bruno Haible  <bruno@clisp.org>
12124
12125         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
12126         the function is not present.
12127
12128 2007-03-31  Bruno Haible  <bruno@clisp.org>
12129
12130         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
12131         a bug in HP-UX iconv_open().
12132
12133 2007-03-31  Bruno Haible  <bruno@clisp.org>
12134
12135         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
12136         (Mathematics <math.h>): New section, add fpieee.
12137         (Input/output <stdio.h>): Add fseterr.
12138         (Mathematics <math.h>): New section, add printf-frexp.
12139         (Container data structures): Add sublist.
12140         (Core language properties): Add fpucw, inline.
12141         (Functions for greatest-width integer types <inttypes.h>): Add
12142         imaxabs, imaxdiv, inttypes.
12143         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
12144         isnanl-nolibm, ldexp.
12145         (Mathematics <math.h>): New section, add printf-frexpl.
12146         (Support for systems lacking POSIX:2001): Add fprintf-posix,
12147         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
12148         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
12149         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
12150         (Unicode string functions): Add unistr/u*-mbtoucr.
12151         (Java): Add javacomp-script, javaexec-script.
12152         (C#): Add csharpcomp-script, csharpexec-script.
12153         (Support for building libraries and executables): Add havelib,
12154         relocatable-*.
12155         (Support for maintaining and releasing projects): Renamed from
12156         'Support for maintaining and release projects'. Add announce-gen.
12157
12158 2007-03-31  Bruno Haible  <bruno@clisp.org>
12159
12160         * README: Talk primarily about git.
12161         (git and CVS): Renamed from CVS.
12162         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
12163         gnulib is available through git.
12164         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
12165
12166 2007-03-30  Bruno Haible  <bruno@clisp.org>
12167
12168         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
12169         * lib/poll_.h: Likewise.
12170         * lib/stat_.h: Likewise.
12171         * lib/sys_time_.h: Likewise.
12172         * lib/sysexit_.h: Likewise.
12173         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
12174         * lib/stdbool_.h: Likewise.
12175         * lib/byteswap_.h: Add double-inclusion guard.
12176
12177 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
12178
12179         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
12180
12181 2007-03-30  Karl Berry  <karl@gnu.org>
12182
12183         * config/srclist-update: double space after USA in the license
12184         substitution, since that's how it's usually (?) written.
12185
12186 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
12187
12188         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
12189         reported by Bruno Haible.
12190
12191 2007-03-29  Bruno Haible  <bruno@clisp.org>
12192
12193         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
12194         a bug in AIX iconv().
12195
12196 2007-03-29  Bruno Haible  <bruno@clisp.org>
12197
12198         * modules/ldexpl-tests: New file.
12199         * tests/test-ldexpl.c: New file.
12200
12201 2007-03-29  Bruno Haible  <bruno@clisp.org>
12202
12203         * lib/ldexpl.c: Include fpucw.h.
12204         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
12205         multiplication.
12206         * modules/ldexpl (Depends-on): Add fpucw.
12207
12208 2007-03-29  Bruno Haible  <bruno@clisp.org>
12209
12210         * modules/ldexpl: New file.
12211         * m4/ldexpl.m4: New file.
12212         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
12213         set.
12214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
12215         REPLACE_LDEXPL.
12216         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
12217         REPLACE_LDEXPL.
12218         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
12219         gl_FUNC_LDEXPL_WORKS.
12220         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
12221         * modules/mathl (Files): Remove lib/ldexpl.c.
12222         (Depends-on): Add ldexpl.
12223
12224 2007-03-29  Bruno Haible  <bruno@clisp.org>
12225
12226         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
12227
12228 2007-03-29  Bruno Haible  <bruno@clisp.org>
12229
12230         * tests/test-striconveh.c (main): Don't assume that a direct conversion
12231         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
12232         and possibly also HP-UX.
12233         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
12234         work on AIX, IRIX, HP-UX, OSF/1.
12235         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12236         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12237         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12238         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12239         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
12240         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12241
12242 2007-03-29  Bruno Haible  <bruno@clisp.org>
12243
12244         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
12245
12246 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
12247
12248         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
12249         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
12250
12251 2007-03-29  Eric Blake  <ebb9@byu.net>
12252
12253         * lib/acl-internal.h: Remove redundant include.
12254         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
12255         Cygwin when a file is locked.
12256
12257 2007-03-29  Bruno Haible  <bruno@clisp.org>
12258
12259         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
12260         file.
12261         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
12262
12263 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
12264
12265         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
12266         try to remove a parent directory if the child couldn't be removed
12267         (except for the first rmdir, which could fail because the child
12268         doesn't exist).  Problem reported by Jeff Blaine in
12269         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
12270
12271 2007-03-28  Bruno Haible  <bruno@clisp.org>
12272
12273         * lib/striconveh.c (utf8conv_carefully): New function.
12274         (mem_cd_iconveh_internal): Invoke it.
12275
12276 2007-03-28  Bruno Haible  <bruno@clisp.org>
12277
12278         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
12279         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
12280         input.
12281         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
12282         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
12283         unistr/u8-uctomb.
12284
12285 2007-03-28  Bruno Haible  <bruno@clisp.org>
12286
12287         * modules/unistr/u8-mbtoucr: New file.
12288         * lib/unistr/u8-mbtoucr.c: New file.
12289         * modules/unistr/u16-mbtoucr: New file.
12290         * lib/unistr/u16-mbtoucr.c: New file.
12291         * modules/unistr/u16-mbtoucr: New file.
12292         * lib/unistr/u16-mbtoucr.c: New file.
12293         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
12294
12295 2007-03-27  Simon Josefsson  <simon@josefsson.org>
12296             Bruno Haible  <bruno@clisp.org>
12297
12298         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
12299         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
12300         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
12301
12302         * m4/stdio_h.m4: Add stubs for vasprintf too.
12303
12304         * modules/stdio: Support vasprintf in sed command.
12305
12306         * modules/vasprintf: Depend on stdio for prototypes.  Remove
12307         vasprintf.h.  Add stdio module indicator.
12308
12309         * lib/stdio_.h: Declare asprintf and vasprintf, based on
12310         vasprintf.h.
12311
12312         * lib/vasprintf.h: File removed.
12313
12314         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
12315         * lib/vasprintf.c: Ditto.
12316         * lib/xvasprintf.c: Ditto.
12317         * tests/test-vasprintf-posix.c: Ditto.
12318         * tests/test-vasprintf.c: Ditto.
12319
12320 2007-03-27  Bruno Haible  <bruno@clisp.org>
12321
12322         Make vasnprintf multithread-safe.
12323         * lib/vasnprintf.c (decimal_point_char): New function.
12324         (VASNPRINTF): Use it.
12325         Suggested by Simon Josefsson.
12326
12327 2007-03-27  Eric Blake  <ebb9@byu.net>
12328
12329         Support sub-second birthtime on cygwin.
12330         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
12331         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
12332         (get_stat_birthtime): Also work with st_birthtim.
12333
12334 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
12335
12336         * lib/stat-time.h (USE_BIRTHTIME): Remove.
12337         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
12338         (get_stat_birthtime_ns): Do not try to use "spare" fields.
12339         (get_stat_birthtime_ns): Simplify compile-time tests.
12340         (get_stat_birthtime): Change the API to look like
12341         get_stat_mtime etc., except return a negative tv_nsec on error.
12342         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
12343         Don't check for "spare" fields.
12344         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
12345         or for struct stat.st_birthtime, as these tests aren't used.
12346         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
12347
12348 2007-03-27  Bruno Haible  <bruno@clisp.org>
12349
12350         * lib/stat-time.h: Include <sys/stat.h>.
12351
12352 2007-03-27  James Youngman  <jay@gnu.org>
12353
12354         * lib/stat-time.h (get_stat_birthtime): New function for
12355           retrieving st_birthtime as provided by UFS2 (hence *BSD).
12356         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
12357           and its variants.
12358         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
12359         * modules/stat-time-test: New file.
12360         * tests/test-stat-time.c: New test, devised by Bruno Haible.
12361
12362 2007-03-26  Bruno Haible  <bruno@clisp.org>
12363
12364         Better support of signalling NaNs.
12365         * lib/atanl.c: Include isnanl.h.
12366         (atanl): Perform test for NaN at the beginning of the function and
12367         through a call to isnanl.
12368         * lib/cosl.c: Include isnanl.h.
12369         (cosl): Perform test for NaN at the beginning of the function and
12370         through a call to isnanl.
12371         * lib/ldexpl.c: Include isnanl.h.
12372         (ldexpl): Perform test for NaN through a call to isnanl.
12373         * lib/logl.c: Include isnanl.h.
12374         (logl): Perform test for NaN at the beginning of the function and
12375         through a call to isnanl.
12376         * lib/sinl.c: Include isnanl.h.
12377         (sinl): Perform test for NaN at the beginning of the function and
12378         through a call to isnanl.
12379         * lib/sqrtl.c: Include isnanl.h.
12380         (sqrtl): Perform test for NaN at the beginning of the function and
12381         through a call to isnanl.
12382         * lib/tanl.c: Include isnanl.h.
12383         (tanl): Perform test for NaN at the beginning of the function and
12384         through a call to isnanl.
12385         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
12386         * modules/mathl (Depends-on): Add isnanl.
12387
12388 2007-03-26  Eric Blake  <ebb9@byu.net>
12389
12390         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
12391         regression in logic sense of previous patch.
12392
12393 2007-03-26  Bruno Haible  <bruno@clisp.org>
12394
12395         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
12396         unportable shell command "if ! ...".
12397         Reported by Ralf Wildenhues.
12398
12399 2007-03-25  Bruno Haible  <bruno@clisp.org>
12400
12401         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
12402         <sysexits.h> file, and only add EX_CONFIG.
12403         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
12404         absolute file name and whether it is sufficient. Substitute also
12405         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
12406         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
12407         ABSOLUTE_SYSEXITS_H into sysexits.h.
12408
12409 2007-03-25  Bruno Haible  <bruno@clisp.org>
12410
12411         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
12412         hints is NULL.
12413
12414 2007-03-25  Bruno Haible  <bruno@clisp.org>
12415
12416         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
12417         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
12418
12419 2007-03-25  Bruno Haible  <bruno@clisp.org>
12420
12421         * lib/vasnprintf.c: Include langinfo.h.
12422         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
12423         multithread-safe.
12424         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
12425         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
12426         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12427         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12428         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12429         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12430         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12431         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
12432         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12433         Reported by Simon Josefsson.
12434
12435 2007-03-25  Bruno Haible  <bruno@clisp.org>
12436
12437         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
12438         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
12439         * modules/vasnprintf (Depends-on): Add stdint.
12440
12441 2007-03-25  Bruno Haible  <bruno@clisp.org>
12442
12443         * modules/fpieee: New file.
12444         * m4/fpieee.m4: New file.
12445         * modules/isnan-nolibm (Depends-on): Add fpieee.
12446         * modules/isnanl-nolibm (Depends-on): Add fpieee.
12447         * modules/isnanl (Depends-on): Add fpieee.
12448
12449 2007-03-25  Bruno Haible  <bruno@clisp.org>
12450
12451         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
12452
12453 2007-03-25  Bruno Haible  <bruno@clisp.org>
12454
12455         Avoid test failures on IRIX 6.5.
12456         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
12457         (main): Use it.
12458         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
12459         macros.
12460         (main): Use them.
12461
12462 2007-03-25  Bruno Haible  <bruno@clisp.org>
12463
12464         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
12465         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
12466         exists but doesn't work.
12467         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
12468         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
12469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
12470         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
12471
12472 2007-03-25  Bruno Haible  <bruno@clisp.org>
12473
12474         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
12475         returns inf. Needed on IRIX 6.5.
12476
12477 2007-03-25  Bruno Haible  <bruno@clisp.org>
12478
12479         * tests/test-frexpl.c: Include isnanl-nolibm.h.
12480         (main): Use isnanl instead of x != x idiom.
12481         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
12482
12483         * tests/test-frexp.c: Include isnan.h.
12484         (main): Use isnan instead of x != x idiom.
12485         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
12486
12487 2007-03-25  Bruno Haible  <bruno@clisp.org>
12488
12489         * tests/test-frexp.c (NaN): New function/macro.
12490         (main): Use it instead of 0.0 / 0.0.
12491         * tests/test-isnan.c (NaN): New function/macro.
12492         (main): Use it instead of 0.0 / 0.0.
12493         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
12494         (test_function): Use it instead of 0.0 / 0.0.
12495         * tests/test-vasprintf-posix.c (NaN): New function/macro.
12496         (test_function): Use it instead of 0.0 / 0.0.
12497         * tests/test-snprintf-posix.h (NaN): New function/macro.
12498         (test_function): Use it instead of 0.0 / 0.0.
12499         * tests/test-sprintf-posix.h (NaN): New function/macro.
12500         (test_function): Use it instead of 0.0 / 0.0.
12501         * tests/test-fprintf-posix.h (NaN): New function/macro.
12502         (test_function): Use it instead of 0.0 / 0.0.
12503         * tests/test-printf-posix.h (NaN): New function/macro.
12504         (test_function): Use it instead of 0.0 / 0.0.
12505
12506         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
12507
12508 2007-03-25  Bruno Haible  <bruno@clisp.org>
12509
12510         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
12511
12512 2007-03-25  Bruno Haible  <bruno@clisp.org>
12513
12514         * lib/regexec.c (merge_state_with_log): Make static.
12515
12516 2007-03-25  Bruno Haible  <bruno@clisp.org>
12517
12518         * lib/trigl.c (kernel_rem_pio2): Make static.
12519
12520 2007-03-25  Bruno Haible  <bruno@clisp.org>
12521
12522         * lib/sincosl.c (sincosl_table): Make static.
12523
12524 2007-03-25  Bruno Haible  <bruno@clisp.org>
12525
12526         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
12527         if the compiler does not support C99.
12528
12529 2007-03-25  Bruno Haible  <bruno@clisp.org>
12530
12531         * modules/time (Makefile.am): Ensure all rule action lines start with a
12532         tab.
12533
12534 2007-03-24  Bruno Haible  <bruno@clisp.org>
12535
12536         * modules/tsearch-tests: New file.
12537         * tests/test-tsearch.sh: New file.
12538         * tests/test-tsearch.c: New file, mostly copied from glibc.
12539
12540         * modules/search-tests: New file.
12541         * tests/test-search.c: New file.
12542
12543         * modules/search: New file.
12544         * lib/search_.h: New file, incorporating lib/tsearch.h.
12545         * m4/search_h.m4: New file.
12546         * lib/tsearch.h: Remove file.
12547         * lib/tsearch.c: Include search.h instead of tsearch.h.
12548         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
12549         HAVE_TSEARCH.
12550         * modules/tsearch (Files): Remove lib/tsearch.h.
12551         (Depends-on): Add search.
12552         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
12553         (Include): Change tsearch.h into search.h.
12554
12555 2007-03-24  Bruno Haible  <bruno@clisp.org>
12556
12557         * modules/fpucw: New file.
12558         * lib/fpucw.h: New file.
12559         * lib/frexp.c: Include fpucw.h.
12560         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12561         (FUNC): Use them.
12562         * lib/printf-frexp.c: Include fpucw.h.
12563         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12564         (FUNC): Use them.
12565         * lib/vasnprintf.c: Include fpucw.h.
12566         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
12567         'long double' calculations.
12568         * tests/test-frexpl.c: Include fpucw.h.
12569         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12570         * tests/test-printf-frexpl.c: Include fpucw.h.
12571         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12572         * modules/frexpl (Depends-on): Add fpucw.
12573         * modules/printf-frexpl (Depends-on): Likewise.
12574         * modules/fprintf-posix (Depends-on): Likewise.
12575         * modules/snprintf-posix (Depends-on): Likewise.
12576         * modules/sprintf-posix (Depends-on): Likewise.
12577         * modules/vasnprintf-posix (Depends-on): Likewise.
12578         * modules/vasprintf-posix (Depends-on): Likewise.
12579         * modules/vfprintf-posix (Depends-on): Likewise.
12580         * modules/vsnprintf-posix (Depends-on): Likewise.
12581         * modules/vsprintf-posix (Depends-on): Likewise.
12582         * modules/frexpl-tests (Depends-on): Likewise.
12583         * modules/printf-frexpl-tests (Depends-on): Likewise.
12584
12585 2007-03-24  Bruno Haible  <bruno@clisp.org>
12586
12587         * lib/float+.h: New file.
12588         * lib/isnan.c: Include float+.h.
12589         (SIZE): New macro.
12590         (FUNC): Compare only SIZE bytes of the value.
12591         * lib/vasnprintf.c: Include float+.h.
12592         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
12593         SIZEOF_LDBL or SIZEOF_DBL bytes.
12594         * modules/isnan-nolibm (Files): Add lib/float+.h.
12595         * modules/isnanl-nolibm (Files): Add lib/float+.h.
12596         * modules/isnanl (Files): Add lib/float+.h.
12597         * modules/vasnprintf (Files): Add lib/float+.h.
12598
12599 2007-03-24  Bruno Haible  <bruno@clisp.org>
12600
12601         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
12602         include isnanl-nolibm.h.
12603
12604 2007-03-24  Bruno Haible  <bruno@clisp.org>
12605
12606         * tests/test-read-file.c (main): Don't produce spurious output for
12607         expected situations. Make the test fail if it encountered unexpected
12608         results.
12609
12610 2007-03-24  Bruno Haible  <bruno@clisp.org>
12611
12612         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
12613         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
12614
12615 2007-03-24  Bruno Haible  <bruno@clisp.org>
12616
12617         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
12618
12619 2007-03-24  Bruno Haible  <bruno@clisp.org>
12620
12621         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
12622         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
12623
12624         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
12625         * modules/utf8-ucs4: Turn into a symbolic link to module
12626         unistr/u8-mbtouc.
12627
12628         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
12629         utf8-ucs4-unsafe.
12630         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
12631         unistr/u8-mbtouc-unsafe.
12632
12633         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
12634         * modules/utf16-ucs4: Turn into a symbolic link to module
12635         unistr/u16-mbtouc.
12636
12637         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
12638         utf16-ucs4-unsafe.
12639         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
12640         unistr/u16-mbtouc-unsafe.
12641
12642         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
12643         * modules/ucs4-utf8: Turn into a symbolic link to module
12644         unistr/u8-ubtomb.
12645
12646         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
12647         * modules/ucs4-utf16: Turn into a symbolic link to module
12648         unistr/u16-ubtomb.
12649
12650 2007-03-24  Bruno Haible  <bruno@clisp.org>
12651
12652         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
12653         Enable the function only if HAVE_INLINE.
12654         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
12655         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12656         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
12657         Enable the function only if HAVE_INLINE.
12658         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
12659         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12660         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
12661         Enable the function only if HAVE_INLINE.
12662         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
12663         Enable the function only if HAVE_INLINE.
12664         * modules/utf8-ucs4: Update.
12665         * modules/utf8-ucs4-unsafe: Update.
12666         * modules/utf16-ucs4: Update.
12667         * modules/utf16-ucs4-unsafe: Update.
12668         * modules/ucs4-utf8: Update.
12669         * modules/ucs4-utf16: Update.
12670
12671 2007-03-24  Bruno Haible  <bruno@clisp.org>
12672
12673         * lib/utf8-ucs4.h: Remove file.
12674         * lib/utf8-ucs4-unsafe.h: Remove file.
12675         * lib/utf16-ucs4.h: Remove file.
12676         * lib/utf16-ucs4-unsafe.h: Remove file.
12677         * lib/ucs4-utf8.h: Remove file.
12678         * lib/ucs4-utf16.h: Remove file.
12679         * lib/unistr.h: Include their previous contents.
12680         * m4/utf-ucs4.m4: Remove file.
12681         * m4/ucs4-utf.m4: Remove file.
12682         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
12683         (Depends-on): Add unistr/base.
12684         (configure.ac): Remove gl_UTF_UCS4.
12685         (Makefile.am): Update.
12686         (Include): Change to unistr.h.
12687         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
12688         (Depends-on): Add unistr/base.
12689         (configure.ac): Remove gl_UTF_UCS4.
12690         (Makefile.am): Update.
12691         (Include): Change to unistr.h.
12692         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
12693         (Depends-on): Add unistr/base.
12694         (configure.ac): Remove gl_UTF_UCS4.
12695         (Makefile.am): Update.
12696         (Include): Change to unistr.h.
12697         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
12698         (Depends-on): Add unistr/base.
12699         (configure.ac): Remove gl_UTF_UCS4.
12700         (Makefile.am): Update.
12701         (Include): Change to unistr.h.
12702         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
12703         (Depends-on): Add unistr/base.
12704         (configure.ac): Remove gl_UCS4_UTF.
12705         (Makefile.am): Update.
12706         (Include): Change to unistr.h.
12707         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
12708         (Depends-on): Add unistr/base.
12709         (configure.ac): Remove gl_UCS4_UTF.
12710         (Makefile.am): Update.
12711         (Include): Change to unistr.h.
12712         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
12713         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
12714         utf8-ucs4-unsafe.h.
12715         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
12716         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
12717         utf16-ucs4-unsafe.h.
12718         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
12719         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
12720         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
12721         * lib/unistr/u8-strchr.c: Likewise.
12722         * lib/unistr/u8-strrchr.c: Likewise.
12723         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
12724         * lib/unistr/u16-strchr.c: Likewise.
12725         * lib/unistr/u16-strrchr.c: Likewise.
12726         * lib/striconveh.c: Update.
12727         * lib/linebreak.c: Update.
12728
12729 2007-03-24  Bruno Haible  <bruno@clisp.org>
12730
12731         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
12732         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
12733
12734 2007-03-22  Bruno Haible  <bruno@clisp.org>
12735
12736         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
12737
12738 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
12739
12740         * MODULES.html.sh (File system functions): New module write-any-file.
12741         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
12742         * m4/write-any-file.m4: New files.
12743
12744 2007-03-23  Eric Blake  <ebb9@byu.net>
12745
12746         * gnulib-tool: Rearrange space-tab sequences, since some editors
12747         like to eat them.
12748
12749 2007-03-23  Eric Blake  <ebb9@byu.net>
12750
12751         * lib/version-etc.c (version_etc_va): Update license wording to
12752         be more concise.  Recommended by Richard Stallman.
12753
12754 2007-03-22  Bruno Haible  <bruno@clisp.org>
12755
12756         * lib/poll.c (MSG_PEEK): New fallback definition.
12757
12758 2007-03-22  Bruno Haible  <bruno@clisp.org>
12759
12760         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
12761         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
12762         (main): Update.
12763         Fixes a compilation error on BeOS.
12764
12765 2007-03-22  Bruno Haible  <bruno@clisp.org>
12766
12767         * modules/frexpl-tests: New file.
12768         * tests/test-frexpl.c: New file.
12769
12770         * modules/frexpl: New file.
12771         * m4/frexpl.m4: New file.
12772         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
12773         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
12774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
12775         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
12776         (Depends-on): Add frexpl. Remove isnanl-nolibm.
12777         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
12778
12779 2007-03-22  Bruno Haible  <bruno@clisp.org>
12780
12781         * lib/frexpl.c: Share code with lib/frexp.c.
12782         * modules/mathl (Files): Add lib/frexp.c.
12783         (Depends-on): Add isnanl-nolibm.
12784
12785 2007-03-22  Bruno Haible  <bruno@clisp.org>
12786
12787         * modules/printf-frexp (Files): Add m4/frexp.m4.
12788         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
12789         only if the found frexp function actually works.
12790
12791 2007-03-22  Bruno Haible  <bruno@clisp.org>
12792
12793         * lib/frexp.c: Remove older implementation that uses divisions.
12794
12795 2007-03-21  Bruno Haible  <bruno@clisp.org>
12796
12797         * modules/frexp-tests: New file.
12798         * tests/test-frexp.c: New file.
12799
12800         * modules/frexp: New file.
12801         * lib/frexp.c: New file.
12802         * m4/frexp.m4: New file.
12803         * lib/math_.h (frexp): New declaration.
12804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
12805         REPLACE_FREXP.
12806         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
12807
12808 2007-03-21  Bruno Haible  <bruno@clisp.org>
12809
12810         * modules/isnanl-tests: New file.
12811         * tests/test-isnanl.c: New file.
12812
12813         * modules/isnanl: New file.
12814         * lib/isnanl.h: New file.
12815         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
12816         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
12817         gl_FUNC_ISNANL_WORKS.
12818         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
12819         New macros.
12820
12821 2007-03-21  Bruno Haible  <bruno@clisp.org>
12822
12823         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
12824         lib/isnanl.h.
12825         (Include): Update.
12826         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
12827         * lib/vasnprintf.c: Update.
12828         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
12829         tests/test-isnanl.h, remove tests/test-isnanl.c.
12830         (Makefile.am): Update.
12831         * tests/test-isnanl-nolibm.c: New file.
12832         * tests/test-isnanl.h: New file.
12833         * tests/test-isnanl.c: Remove file.
12834
12835 2007-03-21  Jim Meyering  <jim@meyering.net>
12836
12837         When trying to open ".", treat ESTALE like EACCES.
12838         * lib/savewd.c (savewd_save): Resort to forking not just upon
12839         failure with EACCES, but also when errno is ESTALE.
12840
12841 2007-03-20  Bruno Haible  <bruno@clisp.org>
12842
12843         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
12844         Needed on AIX 5.1. Reported by Matthew Woehlke.
12845
12846 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12847
12848         Suggestions by Bruno Haible:
12849         * lib/acl-internal.h: Include "gettext.h" rather than rolling
12850         our own.
12851         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
12852         * modules/acl (Depends-on): Add gettext.
12853
12854 2007-03-19  Bruno Haible  <bruno@clisp.org>
12855
12856         * modules/iconvme: Remove file.
12857         * lib/iconvme.h: Remove file.
12858         * lib/iconvme.c: Remove file.
12859         * m4/iconvme.m4: Remove file.
12860
12861 2007-03-19  Bruno Haible  <bruno@clisp.org>
12862
12863         * doc/relocatable-maint.texi: Break long shell script line.
12864         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12865
12866 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12867
12868         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
12869         handle file_has_acl.
12870         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
12871         * lib/acl.c: Move header inclusions and related macro defns into
12872         lib/acl-internal.h.
12873         (S_ISLNK): Remove defn, since that's now done for us.
12874         (file_has_acl): Move to lib/file-has-acl.c.
12875         Call acl_trivial if available.  This is the crucial part of the fix.
12876         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
12877         shared within the library.  Rewrite a bit, partly to make it compatible
12878         with the GNU coding style.
12879         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
12880         Remove unnecessary double-quotes.
12881         Don't test for acl_to_text; the build will catch that.
12882         Replace acl_entries if it doesn't exist and it is needed.
12883         Check for -lsec and acl_trivial (as used on Solaris 10).
12884         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
12885         lib/file-has-acl.c.
12886         (Depends-on): Add sys_stat, for S_ISLNK.
12887
12888 2007-03-19  Ben Pfaff  <blp@gnu.org>
12889
12890         * doc/gnulib.texi: Fix typos.
12891         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12892
12893 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12894
12895         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
12896         If size is zero here, buf must be zero.
12897
12898 2007-03-19  Simon Josefsson  <simon@josefsson.org>
12899
12900         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
12901         <bruno@clisp.org>.
12902
12903 2007-03-18  Bruno Haible  <bruno@clisp.org>
12904
12905         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
12906         Suggested by Eric Blake.
12907
12908 2007-03-18  Ben Pfaff  <blp@gnu.org>
12909
12910         * doc/relocatable.texi: Recommend using as prefix a directory
12911         that does not exist and will never be created.  Based on
12912         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
12913         and others.
12914
12915 2007-03-17  Bruno Haible  <bruno@clisp.org>
12916
12917         * lib/fchownat.c: Include lchown.h.
12918
12919 2007-03-17  Bruno Haible  <bruno@clisp.org>
12920
12921         Fix endless loop when the given allocated size was > INT_MAX.
12922         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
12923         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
12924         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
12925         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
12926         * lib/sprintf.c (sprintf): Likewise.
12927
12928 2007-03-17  Bruno Haible  <bruno@clisp.org>
12929
12930         * tests/test-argp-2.sh (func_compare): Output a context diff.
12931
12932 2007-03-17  Bruno Haible  <bruno@clisp.org>
12933
12934         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
12935         locale's decimal-point character.
12936
12937 2007-03-17  Bruno Haible  <bruno@clisp.org>
12938
12939         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
12940         before comparing it. Needed because on some platforms (e.g. x86) a
12941         'long double' occupies less bytes than sizeof (long double).
12942
12943 2007-03-17  Bruno Haible  <bruno@clisp.org>
12944
12945         * tests/test-crc.c (main): Make printf statements 64-bit clean.
12946         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
12947         * tests/test-getaddrinfo.c (simple): Likewise.
12948         * tests/test-read-file.c (main): Likewise.
12949
12950 2007-03-17  Bruno Haible  <bruno@clisp.org>
12951
12952         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
12953
12954 2007-03-17  Bruno Haible  <bruno@clisp.org>
12955
12956         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
12957         unused variable.
12958
12959 2007-03-17  Bruno Haible  <bruno@clisp.org>
12960
12961         * tests/test-c-strcasecmp.c: Include c-strcase.h.
12962         * tests/test-c-strncasecmp.c: Likewise.
12963
12964 2007-03-17  Bruno Haible  <bruno@clisp.org>
12965
12966         * modules/stdlib (Depends-on): Add unistd.
12967         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
12968         Needed for MacOS X 10.3.
12969
12970 2007-03-17  Bruno Haible  <bruno@clisp.org>
12971
12972         * lib/unistr/u-strdup.h: Include <stdlib.h>.
12973
12974 2007-03-17  Bruno Haible  <bruno@clisp.org>
12975
12976         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
12977
12978 2007-03-17  Bruno Haible  <bruno@clisp.org>
12979
12980         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
12981         to reflect files copied from gnulib (with or without modifications).
12982         Suggested by Jim Meyering.
12983
12984 2007-03-17  Eric Blake  <ebb9@byu.net>
12985
12986         * NEWS: Document stdlib change from 2007-02-18.
12987
12988 2007-03-17  Jim Meyering  <jim@meyering.net>
12989
12990         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
12991         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
12992         someone uses a name containing shell meta-characters.
12993         Reported by Alfred M. Szmidt.
12994
12995         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
12996
12997 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
12998
12999         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
13000         and copy gettext configuration files only if configure.ac contains
13001         a use of AM_GNU_GETTEXT_VERSION.
13002
13003 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
13004
13005         * build-aux/bootstrap (gnulib_name): New variable.
13006         (gnulib_tool_options): Use it.
13007
13008 2007-03-13  Simon Josefsson  <simon@josefsson.org>
13009
13010         * tests/test-des.c: Use new namespace.
13011
13012 2007-03-15  Bruno Haible  <bruno@clisp.org>
13013
13014         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
13015         Reported by James Youngman <jay@gnu.org>.
13016
13017 2007-03-15  Bruno Haible  <bruno@clisp.org>
13018
13019         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
13020         declared prototype. Needed with cc on OSF/1 5.1.
13021
13022 2007-03-15  Bruno Haible  <bruno@clisp.org>
13023
13024         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
13025         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
13026         (struct gl_list_implementation): Add dispose_fn argument to the
13027         'create_empty', 'create' methods.
13028         (struct gl_list_impl_base): Add field 'dispose_fn'.
13029         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
13030         argument.
13031         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
13032         dispose_fn argument.
13033         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
13034         dispose_fn on the dropped values.
13035         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
13036         dispose_fn argument.
13037         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
13038         dropped values.
13039         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
13040         (gl_tree_remove_node): Call dispose_fn on the dropped value.
13041         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
13042         (gl_tree_remove_node): Call dispose_fn on the dropped value.
13043         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
13044         argument.
13045         (gl_tree_list_free): Call dispose_fn on the dropped values.
13046         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
13047         the dropped values.
13048         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
13049         Add dispose_fn argument.
13050         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
13051         Call dispose_fn on the dropped values.
13052         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
13053         Add dispose_fn argument.
13054         (gl_sublist_create): Initialize the 'dispose_fn' field.
13055         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
13056         * tests/test-array_list.c (main): Update.
13057         * tests/test-carray_list.c (main): Update.
13058         * tests/test-avltree_list.c (main): Update.
13059         * tests/test-rbtree_list.c (main): Update.
13060         * tests/test-avltreehash_list.c (main): Update.
13061         * tests/test-rbtreehash_list.c (main): Update.
13062         * tests/test-linked_list.c (main): Update.
13063         * tests/test-linkedhash_list.c (main): Update.
13064         * tests/test-array_oset.c (main): Update.
13065
13066 2007-03-15  Bruno Haible  <bruno@clisp.org>
13067
13068         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
13069         (gl_oset_create_empty): Add dispose_fn argument.
13070         (struct gl_oset_implementation): Add dispose_fn argument to
13071         'create_empty' method.
13072         (struct gl_oset_impl_base): Add dispose_fn field.
13073         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
13074         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
13075         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
13076         values.
13077         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
13078         (gl_tree_oset_free): Call dispose_fn on the dropped values.
13079         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
13080         dropped value.
13081         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
13082         dropped value.
13083         * tests/test-array_oset.c (main): Update.
13084         * tests/test-avltree_oset.c (main): Update.
13085         * tests/test-rbtree_oset.c (main): Update.
13086         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
13087
13088 2007-03-13  Bruno Haible  <bruno@clisp.org>
13089
13090         * tests/test-stdbool.c (i): Update after last patch.
13091
13092 2007-03-12  Bruno Haible  <bruno@clisp.org>
13093
13094         * lib/quotearg.c: Include <wctype.h> early, before the definition of
13095         the iswprint macro. Needed on Solaris 2.5.1.
13096
13097 2007-03-12  Bruno Haible  <bruno@clisp.org>
13098
13099         * tests/test-printf-frexp.c (main): Declare x as volatile.
13100
13101 2007-03-12  Simon Josefsson  <simon@josefsson.org>
13102
13103         * doc/gnulib.texi (Build robot for gnulib): New section.
13104
13105 2007-03-12  Jim Meyering  <jim@meyering.net>
13106
13107         * build-aux/bootstrap: New file.
13108         * build-aux/bootstrap.conf: New file, from coreutils.
13109
13110 2007-03-11  Bruno Haible  <bruno@clisp.org>
13111
13112         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
13113
13114 2007-03-12  Simon Josefsson  <simon@josefsson.org>
13115
13116         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
13117         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
13118         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
13119
13120 2007-03-11  Bruno Haible  <bruno@clisp.org>
13121
13122         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
13123         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
13124
13125 2007-03-11  Bruno Haible  <bruno@clisp.org>
13126
13127         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
13128         formula. Needed for SunPRO C 5.0.
13129
13130 2007-03-11  Bruno Haible  <bruno@clisp.org>
13131
13132         * modules/long-options (Depends-on): Add getopt.
13133
13134 2007-03-11  Bruno Haible  <bruno@clisp.org>
13135
13136         * modules/modechange (Depends-on): Add stdbool.
13137
13138 2007-03-11  Bruno Haible  <bruno@clisp.org>
13139
13140         * modules/i-ring (Depends-on): Add stdbool.
13141
13142 2007-03-11  Bruno Haible  <bruno@clisp.org>
13143
13144         * modules/gc-des (Depends-on): Add stdbool.
13145
13146 2007-03-11  Bruno Haible  <bruno@clisp.org>
13147
13148         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
13149
13150 2007-03-11  Bruno Haible  <bruno@clisp.org>
13151
13152         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
13153
13154 2007-03-11  Bruno Haible  <bruno@clisp.org>
13155
13156         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
13157
13158 2007-03-11  Bruno Haible  <bruno@clisp.org>
13159
13160         * lib/vasnprintf.c (sprintf): Undefine.
13161
13162 2007-03-11  Bruno Haible  <bruno@clisp.org>
13163
13164         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
13165         initializers in SunPRO C and Compaq C compilers.
13166
13167 2007-03-11  Bruno Haible  <bruno@clisp.org>
13168
13169         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
13170         decrementing code ANSI C compliant.
13171
13172 2007-03-11  Bruno Haible  <bruno@clisp.org>
13173
13174         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
13175         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
13176
13177 2007-03-11  Bruno Haible  <bruno@clisp.org>
13178
13179         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
13180         <stdbool.h> substitute doesn't pass.
13181
13182 2007-03-11  Bruno Haible  <bruno@clisp.org>
13183
13184         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
13185
13186 2007-03-11  Bruno Haible  <bruno@clisp.org>
13187
13188         * gnulib-tool (func_create_megatestdir): Create also an autobuild
13189         script, for submission to autobuild.josefsson.org.
13190
13191 2007-03-10  Bruno Haible  <bruno@clisp.org>
13192
13193         * modules/canonicalize-lgpl-tests: New file.
13194         * tests/test-canonicalize-lgpl.sh: New file.
13195         * tests/test-canonicalize-lgpl.c: New file.
13196
13197         * modules/c-strcase-tests: New file.
13198         * tests/test-c-strcase.sh: New file.
13199         * tests/test-c-strcasecmp.c: New file.
13200         * tests/test-c-strncasecmp.c: New file.
13201
13202         * modules/atexit-tests: New file.
13203         * tests/test-atexit.sh: New file.
13204         * tests/test-atexit.c: New file.
13205
13206 2007-03-10  Bruno Haible  <bruno@clisp.org>
13207
13208         * tests/test-binary-io.sh: Use temporary filenames that are not so
13209         likely to clash with those of other tests (in a parallel make).
13210         * tests/test-binary-io.c: Likewise.
13211
13212 2007-03-10  Bruno Haible  <bruno@clisp.org>
13213
13214         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
13215         fallback; use #error instead.
13216         Suggested by Simon Josefsson.
13217
13218 2007-03-10  Bruno Haible  <bruno@clisp.org>
13219
13220         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
13221         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
13222         first and the last.
13223
13224 2007-03-10  Bruno Haible  <bruno@clisp.org>
13225
13226         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
13227
13228 2007-03-10  Bruno Haible  <bruno@clisp.org>
13229
13230         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
13231         "make distcheck".
13232         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
13233         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
13234         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
13235
13236 2007-03-10  Bruno Haible  <bruno@clisp.org>
13237
13238         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
13239         variable.
13240         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
13241         variable.
13242
13243 2007-03-09  Eric Blake  <ebb9@byu.net>
13244         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
13245
13246         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
13247         types are not being provided by gnulib.
13248         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
13249         types are supported.
13250
13251 2007-03-10  Bruno Haible  <bruno@clisp.org>
13252
13253         * lib/stdio_.h (__attribute__): New macro.
13254         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
13255         vsprintf): Specify __attribute__ __format__ for GCC.
13256         Suggested by Eric Blake.
13257
13258 2007-03-09  Bruno Haible  <bruno@clisp.org>
13259
13260         * modules/printf-posix-tests: New file.
13261         * tests/test-printf-posix.sh: New file.
13262         * tests/test-printf-posix.c: New file.
13263
13264         * modules/printf-posix: New file.
13265         * lib/printf.c: New file.
13266         * m4/printf-posix-rpl.m4: New file.
13267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
13268         REPLACE_PRINTF.
13269         * lib/stdio_.h (printf): New declaration.
13270         (format, __format__, ____printf____, ____scanf____, ____strftime____,
13271         ____strfmon____): New macros.
13272         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
13273         REPLACE_PRINTF.
13274
13275 2007-03-09  Bruno Haible  <bruno@clisp.org>
13276
13277         * tests/test-vasnprintf-posix2.sh: New file.
13278         * tests/test-vasnprintf-posix2.c: New file.
13279         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
13280         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
13281         (Makefile.am): Activate test-vasnprintf-posix2.sh.
13282
13283         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
13284         a locale dependent decimal point, rather than always '.'.
13285
13286 2007-03-09  Eric Blake  <ebb9@byu.net>
13287
13288         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
13289         spite of platforms like Tandem/NSK that define it to -1.
13290
13291 2007-03-08  Bruno Haible  <bruno@clisp.org>
13292
13293         * modules/vprintf-posix-tests: New file.
13294         * tests/test-vprintf-posix.sh: New file.
13295         * tests/test-vprintf-posix.c: New file.
13296         * tests/test-printf-posix.h: New file.
13297
13298         * modules/vprintf-posix: New file.
13299         * lib/vprintf.c: New file.
13300         * m4/vprintf-posix.m4: New file.
13301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
13302         REPLACE_VPRINTF.
13303         * lib/stdio_.h (vprintf): New declaration.
13304         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
13305         REPLACE_VPRINTF.
13306
13307 2007-03-08  Bruno Haible  <bruno@clisp.org>
13308
13309         * modules/fprintf-posix-tests: New file.
13310         * tests/test-fprintf-posix.sh: New file.
13311         * tests/test-fprintf-posix.c: New file.
13312
13313         * modules/fprintf-posix: New file.
13314         * lib/fprintf.c: New file.
13315         * m4/fprintf-posix.m4: New file.
13316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
13317         REPLACE_FPRINTF.
13318         * lib/stdio_.h (fprintf): New declaration.
13319         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
13320         REPLACE_FPRINTF.
13321
13322 2007-03-08  Bruno Haible  <bruno@clisp.org>
13323
13324         * modules/vfprintf-posix-tests: New file.
13325         * tests/test-vfprintf-posix.sh: New file.
13326         * tests/test-vfprintf-posix.c: New file.
13327         * tests/test-fprintf-posix.h: New file.
13328         * tests/test-fprintf-posix.out: New file.
13329
13330         * modules/vfprintf-posix: New file.
13331         * lib/vfprintf.c: New file.
13332         * m4/vfprintf-posix.m4: New file.
13333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
13334         REPLACE_VFPRINTF.
13335         * lib/stdio_.h (vfprintf): New declaration.
13336         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
13337         REPLACE_VFPRINTF.
13338
13339 2007-03-08  Bruno Haible  <bruno@clisp.org>
13340
13341         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
13342
13343 2007-03-08  Bruno Haible  <bruno@clisp.org>
13344
13345         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
13346         instead of 'expr' invocations.
13347         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13348         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13349         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13350         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13351         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13352         Suggested by Paul Eggert.
13353
13354 2007-03-08  Bruno Haible  <bruno@clisp.org>
13355
13356         * modules/fseterr-tests: New file.
13357         * tests/test-fseterr.c: New file.
13358
13359         * modules/fseterr: New file.
13360         * lib/fseterr.h: New file.
13361         * lib/fseterr.c: New file.
13362
13363 2007-03-08  Bruno Haible  <bruno@clisp.org>
13364
13365         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
13366         * lib/getopt_.h: Likewise.
13367         * lib/mbswidth.h: Likewise.
13368         * lib/setenv.h: Likewise.
13369         * lib/vasnprintf.h: Likewise.
13370         * lib/vasprintf.h: Likewise.
13371         * lib/verror.h: Likewise.
13372         * lib/xsetenv.h: Likewise.
13373         * lib/xvasprintf.h: Likewise.
13374
13375 2007-03-08  Jim Meyering  <jim@meyering.net>
13376
13377         * users.txt: Add parted.
13378
13379         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
13380
13381 2007-03-07  Bruno Haible  <bruno@clisp.org>
13382
13383         * m4/printf.m4: Make the shell script snippets copy&pastable.
13384
13385 2007-03-02  Bruno Haible  <bruno@clisp.org>
13386
13387         * lib/netinet_in_.h: New file.
13388         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
13389         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
13390         * modules/netinet_in (Files): Add lib/netinet_in_.h.
13391         (Depends-on): Add absolute-header.
13392         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
13393         into netinet/in.h.
13394
13395 2007-03-03  Bruno Haible  <bruno@clisp.org>
13396
13397         * lib/sys_select_.h: New file.
13398         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
13399         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
13400         * modules/sys_select (Files): Add lib/sys_select_.h.
13401         (Depends-on): Add absolute-header.
13402         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
13403         into sys/select.h.
13404
13405 2007-03-02  Bruno Haible  <bruno@clisp.org>
13406
13407         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
13408         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
13409         values.
13410         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
13411         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
13412         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
13413         * modules/sys_socket (Depends-on): Add absolute-header.
13414         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
13415         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
13416         (Include): Remove requirement of inclusion of <sys/types.h>.
13417
13418 2007-03-02  Bruno Haible  <bruno@clisp.org>
13419
13420         * lib/byteswap_.h (bswap_32): Fix formula.
13421
13422 2007-03-06  Bruno Haible  <bruno@clisp.org>
13423
13424         * modules/sprintf-posix-tests: New file.
13425         * tests/test-sprintf-posix.c: New file.
13426
13427         * modules/sprintf-posix: New file.
13428         * lib/sprintf.c: New file.
13429         * m4/sprintf-posix.m4: New file.
13430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
13431         REPLACE_SPRINTF.
13432         * lib/stdio_.h (sprintf): New declaration.
13433         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
13434         REPLACE_SPRINTF.
13435
13436 2007-03-06  Bruno Haible  <bruno@clisp.org>
13437
13438         * modules/vsprintf-posix-tests: New file.
13439         * tests/test-vsprintf-posix.c: New file.
13440         * tests/test-sprintf-posix.h: New file.
13441
13442         * modules/vsprintf-posix: New file.
13443         * lib/vsprintf.c: New file.
13444         * m4/vsprintf-posix.m4: New file.
13445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
13446         REPLACE_VSPRINTF.
13447         * lib/stdio_.h (vsprintf): New declaration.
13448         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
13449         REPLACE_VSPRINTF.
13450
13451 2007-03-06  Bruno Haible  <bruno@clisp.org>
13452
13453         * modules/vsnprintf (Depend-on): Remove minmax.
13454
13455 2007-03-06  Bruno Haible  <bruno@clisp.org>
13456
13457         * modules/snprintf-posix-tests: New file.
13458         * tests/test-snprintf-posix.c: New file.
13459
13460         * modules/snprintf-posix: New file.
13461         * m4/snprintf-posix.m4: New file.
13462         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
13463         gl_FUNC_SNPRINTF.
13464         (gl_FUNC_SNPRINTF): Invoke it.
13465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
13466         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
13467         is set.
13468         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
13469
13470 2007-03-06  Bruno Haible  <bruno@clisp.org>
13471
13472         * modules/vsnprintf-posix-tests: New file.
13473         * tests/test-vsnprintf-posix.c: New file.
13474         * tests/test-snprintf-posix.h: New file.
13475
13476         * modules/vsnprintf-posix: New file.
13477         * m4/vsnprintf-posix.m4: New file.
13478         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
13479         gl_FUNC_VSNPRINTF.
13480         (gl_FUNC_VSNPRINTF): Invoke it.
13481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
13482         * lib/stdio_.h (vsnprintf): Define as a replacement if
13483         REPLACE_VSNPRINTF is set.
13484         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
13485
13486 2007-03-06  Bruno Haible  <bruno@clisp.org>
13487
13488         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
13489         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
13490
13491 2007-03-06  Bruno Haible  <bruno@clisp.org>
13492
13493         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
13494         (asinl): Declare also if HAVE_DECL_ASINL is set.
13495         (atanl): Declare also if HAVE_DECL_ATANL is set.
13496         (ceill): Declare also if HAVE_DECL_CEILL is set.
13497         (cosl): Declare also if HAVE_DECL_COSL is set.
13498         (expl): Declare also if HAVE_DECL_EXPL is set.
13499         (floorl): Declare also if HAVE_DECL_FLOORL is set.
13500         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
13501         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
13502         (logl): Declare also if HAVE_DECL_LOGL is set.
13503         (sinl): Declare also if HAVE_DECL_SINL is set.
13504         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
13505         (tanl): Declare also if HAVE_DECL_TANL is set.
13506         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
13507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
13508         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
13509         declaration of frexpl, ldexpl.
13510         * modules/printf-frexpl (Depends-on): Add math.
13511         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
13512
13513 2007-03-05  Bruno Haible  <bruno@clisp.org>
13514
13515         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
13516         frexpl and ldexpl are declared.
13517         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
13518
13519 2007-03-05  Bruno Haible  <bruno@clisp.org>
13520
13521         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
13522         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
13523
13524 2007-03-05  Bruno Haible  <bruno@clisp.org>
13525
13526         * lib/stdio_.h: Include <stddef.h>.
13527
13528 2007-03-05  Bruno Haible  <bruno@clisp.org>
13529
13530         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
13531
13532 2007-03-05  Bruno Haible  <bruno@clisp.org>
13533
13534         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
13535         NetBSD 4, from Ralf Wildenhues.
13536
13537 2007-03-04  Bruno Haible  <bruno@clisp.org>
13538
13539         * lib/vasprintf.h: Update #if logic for the case when the functions
13540         exist but are overridden.
13541
13542 2007-03-04  Bruno Haible  <bruno@clisp.org>
13543
13544         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
13545         implementations: glibc-2.4 and MacOS X 10.3.
13546         * tests/test-vasnprintf-posix.c (test_function): Test also the case
13547         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
13548         * tests/test-vasprintf-posix.c (test_function): Likewise.
13549
13550 2007-03-04  Bruno Haible  <bruno@clisp.org>
13551
13552         * modules/vasprintf-posix-tests: New file.
13553         * tests/test-vasprintf-posix.c: New file.
13554
13555         * modules/vasprintf-posix: New file.
13556         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
13557         defined.
13558         * m4/vasprintf-posix.m4: New file.
13559         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
13560         gl_FUNC_VASPRINTF.
13561         (gl_FUNC_VASPRINTF): Invoke it.
13562         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
13563         here.
13564         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
13565
13566 2007-03-04  Bruno Haible  <bruno@clisp.org>
13567
13568         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
13569         REPLACE_GETTIMEOFDAY.
13570         * modules/sys_time (Makefile.am): Likewise.
13571         * m4/sys_time_h.m4: Likewise.
13572         * m4/gettimeofday.m4: Likewise.
13573
13574 2007-03-04  Bruno Haible  <bruno@clisp.org>
13575
13576         * modules/vasnprintf-posix-tests: New file.
13577         * tests/test-vasnprintf-posix.c: New file.
13578
13579         * modules/vasnprintf-posix: New file.
13580         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
13581         printf-frexpl.h.
13582         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
13583         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
13584         REPLACE_VASNPRINTF is defined.
13585         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
13586         gl_FUNC_VASNPRINTF.
13587         (gl_FUNC_VASNPRINTF): Invoke it.
13588         * m4/vasnprintf-posix.m4: New file.
13589         * m4/printf.m4: New file.
13590
13591 2007-03-04  Bruno Haible  <bruno@clisp.org>
13592
13593         Compile progreloc.c only if --enable-relocatable is specified.
13594         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
13595         if --enable-relocatable was specified.
13596         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
13597         lib_SOURCES.
13598
13599 2007-03-04  Jim Meyering  <jim@meyering.net>
13600
13601         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
13602         Use it consistently, rather than enumerating errno constants.
13603
13604 2007-03-04  Bruno Haible  <bruno@clisp.org>
13605
13606         * modules/xvasprintf-tests: New file.
13607         * tests/test-xvasprintf.c: New file.
13608
13609         * modules/vasprintf-tests: New file.
13610         * tests/test-vasprintf.c: New file.
13611
13612         * modules/vasnprintf-tests: New file.
13613         * tests/test-vasnprintf.c: New file.
13614
13615         * modules/vsnprintf-tests: New file.
13616         * tests/test-vsnprintf.c: New file.
13617
13618         * modules/snprintf-tests: New file.
13619         * tests/test-snprintf.c: New file.
13620
13621 2007-03-04  Bruno Haible  <bruno@clisp.org>
13622
13623         Compile relocatable.c only if --enable-relocatable is specified.
13624         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
13625         gl_RELOCATABLE_LIBRARY.
13626         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
13627         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
13628         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
13629         gl_RELOCATABLE_LIBRARY.
13630         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
13631         (Makefile.am): Remove lib_SOURCES.
13632         * modules/relocatable-lib-lgpl (configure.ac): Invoke
13633         gl_RELOCATABLE_LIBRARY.
13634         (Makefile.am): Remove lib_SOURCES.
13635         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
13636         always.
13637         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13638         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
13639
13640 2007-03-04  Bruno Haible  <bruno@clisp.org>
13641
13642         * modules/argmatch-tests: New file.
13643         * tests/test-argmatch.c: New file.
13644
13645         * tests/test-allocsa.c (main): Halve the number of loop runs.
13646
13647         * modules/alloca-opt-tests: New file.
13648         * tests/test-alloca-opt.c: New file.
13649
13650 2007-03-04  Jim Meyering  <jim@meyering.net>
13651
13652         Work around difference between Linux ACLs and Solaris 10 ZFS.
13653         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
13654         for EINVAL.
13655
13656 2007-03-03  Bruno Haible  <bruno@clisp.org>
13657
13658         * modules/relocatable-prog (Depends-on): Add back progreloc's
13659         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
13660
13661 2007-03-03  Bruno Haible  <bruno@clisp.org>
13662
13663         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
13664         * modules/relocatable-lib: New file.
13665
13666 2007-03-03  Bruno Haible  <bruno@clisp.org>
13667
13668         * modules/relocatable-prog: Renamed from modules/relocatable.
13669         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
13670
13671 2007-03-03  Bruno Haible  <bruno@clisp.org>
13672
13673         * modules/relocatable-script (Files): Add doc/relocatable.texi,
13674         m4/relocatable-lib.m4.
13675         (Depends-on): Remove 'relocatable'.
13676         (configure.ac): Add gl_RELOCATABLE_NOP.
13677
13678 2007-03-03  Bruno Haible  <bruno@clisp.org>
13679
13680         * modules/relocatable-prog-wrapper: New file.
13681         * modules/relocatable (Depends-on): Add it. Remove all other
13682         dependencies except progname.
13683         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
13684
13685         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
13686         (gl_FUNC_STRERROR): Nop.
13687         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
13688
13689         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
13690         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
13691
13692         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
13693         (gl_FUNC_READLINK): Update.
13694
13695         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
13696
13697 2007-03-03  Bruno Haible  <bruno@clisp.org>
13698
13699         * lib/xreadlink.c: Include <unistd.h> unconditionally.
13700         * modules/xreadlink (Depends-on): Add unistd.
13701         * modules/xreadlink-with-size (Depends-on): Likewise.
13702
13703 2007-03-03  Bruno Haible  <bruno@clisp.org>
13704
13705         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
13706         extracted from gt_FUNC_SETENV.
13707         (gt_FUNC_SETENV): Remove macro.
13708         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
13709         remove gt_FUNC_SETENV.
13710
13711 2007-03-03  Bruno Haible  <bruno@clisp.org>
13712
13713         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
13714         ENABLE_RELOCATABLE here.
13715         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
13716
13717 2007-03-03  Bruno Haible  <bruno@clisp.org>
13718
13719         * modules/rbtreehash-list-tests (Depends-on): Add progname.
13720         * tests/test-rbtreehash_list.c: Include progname.h.
13721         (main): Call set_program_name.
13722
13723         * modules/rbtree-oset-tests (Depends-on): Add progname.
13724         * tests/test-rbtree_oset.c: Include progname.h.
13725         (main): Call set_program_name.
13726
13727         * modules/rbtree-list-tests (Depends-on): Add progname.
13728         * tests/test-rbtree_list.c: Include progname.h.
13729         (main): Call set_program_name.
13730
13731         * modules/linked-list-tests (Depends-on): Add progname.
13732         * tests/test-linked_list.c: Include progname.h.
13733         (main): Call set_program_name.
13734
13735 2007-03-03  Bruno Haible  <bruno@clisp.org>
13736
13737         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
13738         All uses of __restrict changed to _Restrict_.
13739         * lib/glob_.h (__restrict): Remove macro.
13740
13741 2007-03-02  Bruno Haible  <bruno@clisp.org>
13742
13743         * modules/gettext (configure.ac): Require gettext infrastructure
13744         from version 0.16.1.
13745
13746 2007-03-02  Bruno Haible  <bruno@clisp.org>
13747
13748         * modules/linkedhash-list-tests (Depends-on): Add progname.
13749         * tests/test-linkedhash_list.c: Include progname.h.
13750         (main): Call set_program_name.
13751
13752         * modules/carray-list-tests (Depends-on): Add progname.
13753         * tests/test-carray_list.c: Include progname.h.
13754         (main): Call set_program_name.
13755
13756         * modules/avltreehash-list-tests (Depends-on): Add progname.
13757         * tests/test-avltreehash_list.c: Include progname.h.
13758         (main): Call set_program_name.
13759
13760         * modules/avltree-oset-tests (Depends-on): Add progname.
13761         * tests/test-avltree_oset.c: Include progname.h.
13762         (main): Call set_program_name.
13763
13764         * modules/avltree-list-tests (Depends-on): Add progname.
13765         * tests/test-avltree_list.c: Include progname.h.
13766         (main): Call set_program_name.
13767
13768         * modules/array-oset-tests (Depends-on): Add progname.
13769         * tests/test-array_oset.c: Include progname.h.
13770         (main): Call set_program_name.
13771
13772         * modules/array-list-tests (Depends-on): Add progname.
13773         * tests/test-array_list.c: Include progname.h.
13774         (main): Call set_program_name.
13775
13776         * modules/argp-tests (Depends-on): Add progname.
13777         * tests/test-argp.c: Include argp.h first. Include progname.h.
13778         (main): Call set_program_name.
13779
13780 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
13781
13782         * doc/gnulib-tool.texi (Initial import): Reword description of
13783         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
13784         limited effect even if defined after the first system include.
13785
13786 2007-03-01  Bruno Haible  <bruno@clisp.org>
13787
13788         * build-aux/config.libpath: Update to libtool-1.5.22.
13789         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13790
13791 2007-03-01  Bruno Haible  <bruno@clisp.org>
13792
13793         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
13794         foo_CFLAGS.
13795         Reported by Ralf Wildenhues.
13796
13797 2007-03-01  Bruno Haible  <bruno@clisp.org>
13798
13799         * build-aux/install-reloc: Remove object files left over by some
13800         compilers.
13801         Reported by Ralf Wildenhues.
13802
13803 2007-03-01  Bruno Haible  <bruno@clisp.org>
13804
13805         * build-aux/install-reloc: Break long lines.
13806
13807 2007-03-01  Bruno Haible  <bruno@clisp.org>
13808
13809         * doc/relocatable.texi: Document that it may not work on OpenBSD.
13810         Reported by Ralf Wildenhues.
13811
13812 2007-03-01  Bruno Haible  <bruno@clisp.org>
13813
13814         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
13815         include ordering constraints.
13816
13817 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
13818
13819         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
13820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
13821         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
13822         as another example.
13823         * lib/time_.h: Fix misspelling.
13824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
13825         Require gl_HEADER_TIME_H_DEFAULTS.
13826         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
13827         * m4/time_r.m4 (gl_TIME_R): Likewise.
13828         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
13829
13830 2007-03-01  Bruno Haible  <bruno@clisp.org>
13831
13832         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
13833         * m4/utimens.m4 (gl_UTIMENS): Likewise.
13834
13835 2007-03-01  Jim Meyering  <jim@meyering.net>
13836
13837         * modules/xreadlink (Maintainer): Add my name.
13838         * modules/xreadlink-with-size (Depends-on): Alphabetize.
13839
13840 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
13841             Bruno Haible  <bruno@clisp.org>
13842
13843         * build-aux/install-reloc: Compile also c-ctype.c.
13844         * build-aux/relocatable.sh.in: New file.
13845         * doc/relocatable.texi: New file.
13846         * doc/relocatable-maint.texi: New file.
13847         * doc/gnulib.texi: Include relocatable-maint.texi.
13848         * lib/progreloc.c: Include unistd.h unconditionally.
13849         * lib/relocwrapper.c: Include unistd.h unconditionally.
13850         Include c-ctype.h.
13851         (add_dotbin): Use c_tolower.
13852         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
13853         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
13854         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
13855         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
13856         to m4/relocatable-lib.m4.
13857         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
13858         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
13859         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
13860         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
13861         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
13862         * modules/relocatable: New file.
13863         * modules/relocatable-lib: New file.
13864         * modules/relocatable-script: New file.
13865
13866 2007-02-28  Bruno Haible  <bruno@clisp.org>
13867
13868         Import --enable-relocatable infrastructure.
13869         * build-aux/config.libpath: New file, from GNU gettext.
13870         * build-aux/install-reloc: New file, from GNU gettext.
13871         * build-aux/reloc-ldflags: New file, from GNU gettext.
13872         * lib/relocatable.h: New file, from GNU gettext.
13873         * lib/relocatable.c: New file, from GNU gettext.
13874         * lib/relocwrapper.c: New file, from GNU gettext.
13875         * m4/relocatable.m4: New file, from GNU gettext.
13876
13877 2007-02-28  Bruno Haible  <bruno@clisp.org>
13878
13879         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
13880
13881         * modules/xreadlink: New file, from GNU gettext with modifications.
13882         * lib/xreadlink.c: New file, from GNU gettext.
13883         * lib/xreadlink.h: Add comments.
13884         (xreadlink): New declaration.
13885
13886         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
13887         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
13888         lib/xreadlink-with-size.c.
13889         (configure.ac): Remove gl_XREADLINK invocation.
13890         (Makefile.am): Augment lib_SOURCES.
13891         * m4/xreadlink.m4: Remove file.
13892         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
13893         (xreadlink_with_size): Renamed from xreadink.
13894         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
13895         * modules/canonicalize (Depends-on): Replace xreadlink with
13896         xreadlink-with-size.
13897         * lib/canonicalize.c (canonicalize_filename_mode): Update.
13898
13899 2007-02-25  Jim Meyering  <jim@meyering.net>
13900
13901         * build-aux/announce-gen: When complaining about excess arguments,
13902         list them.
13903
13904 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13905
13906         * README: Document signed integer overflow situation more
13907         accurately.
13908
13909 2007-02-25  Bruno Haible  <bruno@clisp.org>
13910
13911         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
13912         'a' or 'A' conversion.
13913
13914 2007-02-25  Bruno Haible  <bruno@clisp.org>
13915
13916         * modules/filename: Renamed from modules/pathname.
13917         (Files): Replace lib/pathname.h with lib/filename.h. Replace
13918         lib/concatpath.c with lib/concat-filename.c.
13919         (Makefile.am): Update.
13920         (Include): Replace pathname.h with filename.h.
13921         * lib/filename.h: Renamed from lib/pathname.h.
13922         (concatenated_filename): Renamed from concatenated_pathname.
13923         * lib/concat-filename.c: Renamed from lib/concatpath.c.
13924         (concatenated_filename): Renamed from concatenated_pathname.
13925         * lib/findprog.c: Include filename.h instead of pathname.h.
13926         (find_in_path): Update.
13927         * lib/javacomp.c: Include filename.h instead of pathname.h.
13928         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
13929         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
13930         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
13931         is_oldgcj_14_13_usable, is_javac_usable): Update.
13932         * lib/javaexec.c: Include filename.h instead of pathname.h.
13933         (execute_java_class): Update.
13934         * modules/findprog: Update.
13935         * modules/javacomp: Update.
13936         * modules/javaexec: Update.
13937         * MODULES.html.sh (File system functions): Add 'filename', remove
13938         'pathname'.
13939
13940 2007-02-25  Bruno Haible  <bruno@clisp.org>
13941
13942         * modules/printf-frexpl-tests: New file.
13943         * tests/test-printf-frexpl.c: New file.
13944
13945         * modules/printf-frexpl: New file.
13946         * lib/printf-frexpl.h: New file.
13947         * lib/printf-frexpl.c: New file.
13948         * m4/printf-frexpl.m4: New file.
13949
13950 2007-02-25  Bruno Haible  <bruno@clisp.org>
13951
13952         * modules/printf-frexp-tests: New file.
13953         * tests/test-printf-frexp.c: New file.
13954
13955         * modules/printf-frexp: New file.
13956         * lib/printf-frexp.h: New file.
13957         * lib/printf-frexp.c: New file.
13958         * m4/printf-frexp.m4: New file.
13959
13960 2007-02-25  Bruno Haible  <bruno@clisp.org>
13961
13962         Assume automake >= 1.10 for the tests.
13963         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
13964         * modules/arctwo-tests: Likewise.
13965         * modules/argp-tests: Likewise.
13966         * modules/avltree-list-tests: Likewise.
13967         * modules/avltree-oset-tests: Likewise.
13968         * modules/avltreehash-list-tests: Likewise.
13969         * modules/carray-list-tests: Likewise.
13970         * modules/crc-tests: Likewise.
13971         * modules/des-tests: Likewise.
13972         * modules/gc-arcfour-tests: Likewise.
13973         * modules/gc-arctwo-tests: Likewise.
13974         * modules/gc-des-tests: Likewise.
13975         * modules/gc-hmac-md5-tests: Likewise.
13976         * modules/gc-hmac-sha1-tests: Likewise.
13977         * modules/gc-md2-tests: Likewise.
13978         * modules/gc-md4-tests: Likewise.
13979         * modules/gc-md5-tests: Likewise.
13980         * modules/gc-pbkdf2-sha1-tests: Likewise.
13981         * modules/gc-rijndael-tests: Likewise.
13982         * modules/gc-sha1-tests: Likewise.
13983         * modules/gc-tests: Likewise.
13984         * modules/getaddrinfo-tests: Likewise.
13985         * modules/hmac-md5-tests: Likewise.
13986         * modules/hmac-sha1-tests: Likewise.
13987         * modules/linked-list-tests: Likewise.
13988         * modules/linkedhash-list-tests: Likewise.
13989         * modules/lock-tests: Likewise.
13990         * modules/md2-tests: Likewise.
13991         * modules/md4-tests: Likewise.
13992         * modules/md5-tests: Likewise.
13993         * modules/rbtree-list-tests: Likewise.
13994         * modules/rbtree-oset-tests: Likewise.
13995         * modules/rbtreehash-list-tests: Likewise.
13996         * modules/read-file-tests: Likewise.
13997         * modules/rijndael-tests: Likewise.
13998         * modules/stdint-tests: Likewise.
13999         * modules/tls-tests: Likewise.
14000
14001 2007-02-24  Bruno Haible  <bruno@clisp.org>
14002
14003         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
14004         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
14005         function; instead check whether isnan with a double argument links.
14006         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
14007         function; instead check whether isnan with a 'long double' argument
14008         links.
14009         Reported by Eric Blake <ebb9@byu.net>.
14010
14011 2007-02-24  Bruno Haible  <bruno@clisp.org>
14012
14013         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
14014         defined.
14015         * lib/isnanl.c: Remove all code. Just include isnan.c.
14016         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
14017
14018 2007-02-25  Jim Meyering  <jim@meyering.net>
14019
14020         Avoid conflicting types for 'unsetenv' on FreeBSD.
14021         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
14022         conflicting with FreeBSD's (5.0 and 6.1) function declaration
14023         in stdlib.h.
14024
14025 2007-02-24  Bruno Haible  <bruno@clisp.org>
14026
14027         * modules/isnanl-nolibm-tests: New file.
14028         * tests/test-isnanl.c: New file.
14029
14030         * modules/isnanl-nolibm: New file.
14031         * lib/isnanl.h: New file.
14032         * lib/isnanl.c: New file.
14033         * m4/isnanl.m4: New file.
14034
14035 2007-02-24  Bruno Haible  <bruno@clisp.org>
14036
14037         * modules/isnan-nolibm-tests: New file.
14038         * tests/test-isnan.c: New file.
14039
14040         * modules/isnan-nolibm: New file.
14041         * lib/isnan.h: New file.
14042         * lib/isnan.c: New file.
14043         * m4/isnan.m4: New file.
14044
14045 2007-02-24  Bruno Haible  <bruno@clisp.org>
14046
14047         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
14048         assume that an exponent fits in 20 bits.
14049
14050 2007-02-24  Jim Meyering  <jim@meyering.net>
14051
14052         * m4/regex.m4: Update the description of the configure-time option,
14053         --without-included-regex, to state accurately what the defaults are,
14054         and perhaps to give people an idea why using this option is risky.
14055
14056 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14057
14058         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
14059         loops on small arguments.  This attempts to avoid the problem
14060         Bruno Haible reported for AIX 4.3.2 in
14061         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
14062
14063 2007-02-23  Bruno Haible  <bruno@clisp.org>
14064
14065         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
14066         Needed for help2man.
14067
14068 2007-02-23  Karl Berry  <karl@gnu.org>
14069
14070         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
14071         exists, foo.h should be cvs-ignored, not committed.
14072
14073 2007-02-23  Eric Blake  <ebb9@byu.net>
14074
14075         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
14076         * lib/stat-time.h (includes): Likewise.
14077         * lib/utimecmp.c (includes): Likewise.
14078         * lib/utimens.h (includes): Likewise.
14079         * lib/getdate.y (includes): Also include "timespec.h" for use
14080         internal to the module.
14081         * modules/utimens (Depends-on): Revert yesterday's patch.
14082         * modules/nanosleep (Depends-on): Add missing dependency.
14083
14084 2007-02-22  Bruno Haible  <bruno@clisp.org>
14085
14086         * lib/glob.c: Don't include getlogin_r.h.
14087
14088 2007-02-22  Jim Meyering  <jim@meyering.net>
14089
14090         * modules/utimens (Depends-on): Add timespec, required for
14091         utimens.h's inclusion of timespec.h.
14092
14093 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14094
14095         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
14096         long unreadable paths in GNU/Linux.  Problem reported by Andreas
14097         Schwab in
14098         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
14099         I'll try to think of a better way to fix the Solaris problem.
14100
14101         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
14102         like glibc; on Solaris 10, it fails with errno == EINVAL.
14103         POSIX says the behavior is unspecified if the first argument is NULL,
14104         so play it safe and never pass NULL to the system getcwd.
14105
14106 2007-02-21  Jim Meyering  <jim@meyering.net>
14107
14108         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
14109         of gettimeofday.  It would conflict with the one now always
14110         provided via sys_time_.h.  Reported by Matthew Woehlke, as
14111         an IRIX 6.5 build failure.
14112
14113 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14114
14115         Minor fixups to port to Solaris 10 with Sun C 5.8.
14116         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
14117         * modules/getcwd (Depends-on): Add dirfd.
14118         * lib/putenv.c (putenv): #undef it.
14119         (rpl_putenv): New decl.
14120         (malloc, free): Include <stdlib.h> rather than prototyping separately.
14121
14122 2007-02-20  Bruno Haible  <bruno@clisp.org>
14123
14124         * modules/stdio-tests: New file.
14125         * tests/test-stdio.c: New file.
14126
14127         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
14128         (Depends-on): Add stdio.
14129         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14130         (Include): Use <stdio.h> instead of vsnprintf.h.
14131         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
14132         HAVE_DECL_VSNPRINTF.
14133         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
14134
14135         * modules/snprintf (Files): Remove lib/snprintf.h.
14136         (Depends-on): Add stdio.
14137         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14138         (Include): Use <stdio.h> instead of snprintf.h.
14139         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
14140         HAVE_DECL_SNPRINTF.
14141         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
14142         * lib/getaddrinfo.c: Likewise.
14143
14144         * modules/stdio: New file.
14145         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
14146         * lib/snprintf.h: Remove file.
14147         * lib/vsnprintf.h: Remove file.
14148         * lib/.cppi-disable: Remove snprintf.h.
14149         * m4/stdio_h.m4: New file.
14150         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
14151
14152 2007-02-20  Jim Meyering  <jim@meyering.net>
14153
14154         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
14155         used by e.g., mingw.  From Bruno Haible.
14156
14157 2007-02-19  Bruno Haible  <bruno@clisp.org>
14158
14159         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
14160         warnings.
14161         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14162
14163 2007-02-19  Bruno Haible  <bruno@clisp.org>
14164
14165         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
14166         from mingw users.
14167
14168 2007-02-19  Bruno Haible  <bruno@clisp.org>
14169
14170         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
14171         warnings.
14172         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
14173
14174 2007-02-19  Jim Meyering  <jim@meyering.net>
14175
14176         Don't use FD after a successful "fdopendir (fd)".
14177         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
14178         Reset it by calling dirfd on the just-obtained DIR*.
14179
14180         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
14181         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
14182
14183 2007-02-18  Bruno Haible  <bruno@clisp.org>
14184
14185         * lib/readlink.c: Include <unistd.h>.
14186         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
14187         HAVE_READLINK.
14188         * modules/readlink (Depends-on): Add unistd.
14189         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14190         (Include): Add <unistd.h>.
14191
14192         * lib/getlogin_r.h: Remove file.
14193         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
14194         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
14195         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
14196         HAVE_DECL_GETLOGIN_R.
14197         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
14198         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14199         (Include): Use <unistd.h> instead of getlogin_r.h.
14200
14201         * lib/getcwd.h: Remove file.
14202         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
14203         * lib/xgetcwd.c: Likewise.
14204         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
14205         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
14206         * modules/getcwd (Files): Remove lib/getcwd.h.
14207         (Depends-on): Add unistd.
14208         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14209         (Include): Use <unistd.h> instad of getcwd.h.
14210
14211         * lib/ftruncate.c: Include <unistd.h> first.
14212         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
14213         Set HAVE_FTRUNCATE.
14214         * modules/ftruncate (Depends-on): Add unistd.
14215         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14216
14217         * lib/fchdir.c: Include <unistd.h> first.
14218         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
14219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
14220         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
14221         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14222         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
14223
14224         * lib/dup2.c: Include <unistd.h> first.
14225         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
14226         HAVE_DUP2.
14227         * modules/dup2 (Depends-on): Add unistd.
14228         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14229
14230         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
14231         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
14232         REPLACE_CHOWN. Don't define chown as a macro here.
14233         * modules/chown (Depends-on): Add unistd.
14234         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14235
14236         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
14237         Add definition for GL_LINK_WARNING.
14238         (chown, dup2): New declarations.
14239         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
14240         link warning.
14241         (ftruncate): New declaration.
14242         (getcwd): New declaration, taken from old getcwd.h.
14243         (getlogin_r): New declaration, taken from old getlogin_r.h.
14244         (readlink): New declaration.
14245         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
14246         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
14247         (gl_PREREQ_UNISTD): Remove macro.
14248         (gl_UNISTD_MODULE_INDICATOR): New macro.
14249         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
14250         many new variables. Don't set UNISTD_H.
14251         * modules/unistd (Description): Change.
14252         (Depends-on): Add link-warning.
14253         (configure.ac): Update.
14254         (Makefile.am): Create unistd.h always. Substitute many new variables
14255         into it.
14256
14257 2007-02-18  Bruno Haible  <bruno@clisp.org>
14258
14259         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
14260         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
14261         HAVE_GETSUBOPT.
14262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
14263         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
14264         * lib/getsubopt.h: Remove file.
14265         * modules/getsubopt (Files): Remove lib/getsubopt.h.
14266         (Depends-on): Add stdlib.
14267         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14268         (Includes): Use <stdlib.h> instead of getsubopt.h.
14269         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
14270         Set HAVE_GETSUBOPT.
14271         * lib/getsubopt.c: Don't include getsubopt.h.
14272
14273 2007-02-18  Bruno Haible  <bruno@clisp.org>
14274
14275         * modules/fchdir (Depends-on): Add dup2.
14276
14277 2007-02-18  Bruno Haible  <bruno@clisp.org>
14278
14279         * lib/stdlib_.h: Handle glibc's special invocation convention
14280         specially.
14281
14282 2007-02-18  Bruno Haible  <bruno@clisp.org>
14283
14284         * modules/stdlib-tests: New file.
14285         * tests/test-stdlib.c: New file.
14286
14287         * modules/mkstemp (Files): Remove lib/mkstemp.h.
14288         (Depends-on): Add stdlib.
14289         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14290         (Includes): Use <stdlib.h> instead of mkstemp.h.
14291         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
14292         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
14293         * lib/mkstemp.c: Don't include mkstemp.h.
14294         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
14295         * lib/stdlib--.h: Don't include mkstemp.h.
14296
14297         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
14298         (Depends-on): Add stdlib.
14299         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14300         (Includes): Use <stdlib.h> instead of mkdtemp.h.
14301         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
14302         HAVE_MKDTEMP.
14303         * lib/mkdtemp.c: Don't include mkdtemp.h.
14304         * lib/clean-temp.c: Don't include mkdtemp.h.
14305
14306         * modules/exit (Files): Remove lib/exit.h.
14307         (Depends-on): Add stdlib.
14308         (Makefile.am): Remove lib_SOURCES.
14309         (Include): Use <stdlib.h> instead of exit.h.
14310         * lib/argmatch.c: Don't include exit.h.
14311         * lib/execute.c: Likewise.
14312         * lib/pagealign_alloc.c: Likewise.
14313         * lib/pipe.c: Likewise.
14314         * lib/wait-process.c: Likewise.
14315         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
14316         * lib/exitfail.c: Likewise.
14317         * lib/savewd.c: Likewise.
14318         * lib/xsetenv.c: Likewise.
14319
14320         * modules/stdlib: New file.
14321         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
14322         and extra comments about mkstemp().
14323         * lib/exit.h: Remove file.
14324         * lib/mkdtemp.h: Remove file.
14325         * lib/mkstemp.h: Remove file.
14326         * m4/stdlib_h.m4: New file.
14327         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
14328
14329 2007-02-18  Bruno Haible  <bruno@clisp.org>
14330
14331         * modules/math-tests: New file.
14332         * tests/test-math.c: New file.
14333
14334         * modules/math: New file.
14335         * modules/mathl (Files): Remove lib/mathl.h.
14336         (Depends-on): Add math.
14337         (Makefile.am): Don't mention mathl.h.
14338         (Include): Use <math.h> instead of mathl.h.
14339         * lib/math_.h: New file.
14340         * lib/mathl.h: Remove file.
14341         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
14342         mathl.h.
14343         * lib/asinl.c: Likewise.
14344         * lib/atanl.c: Likewise.
14345         * lib/ceill.c: Likewise.
14346         * lib/cosl.c: Likewise.
14347         * lib/expl.c: Likewise.
14348         * lib/floorl.c: Likewise.
14349         * lib/frexpl.c: Likewise.
14350         * lib/ldexpl.c: Likewise.
14351         * lib/logl.c: Likewise.
14352         * lib/sincosl.c: Likewise.
14353         * lib/sinl.c: Likewise.
14354         * lib/sqrtl.c: Likewise.
14355         * lib/tanl.c: Likewise.
14356         * lib/trigl.c: Likewise.
14357         * m4/math_h.m4: New file.
14358         * MODULES.html.sh (Mathematics): Add math.
14359
14360 2007-02-17  Bruno Haible  <bruno@clisp.org>
14361
14362         * modules/wctype-tests: New file.
14363         * tests/test-wctype.c: New file.
14364
14365         * modules/wchar-tests: New file.
14366         * tests/test-wchar.c: New file.
14367
14368         * modules/unistd-tests: New file.
14369         * tests/test-unistd.c: New file.
14370
14371         * modules/time-tests: New file.
14372         * tests/test-time.c: New file.
14373
14374         * modules/sysexits-tests: New file.
14375         * tests/test-sysexits.c: New file.
14376
14377         * modules/sys_time-tests: New file.
14378         * tests/test-sys_time.c: New file.
14379
14380         * modules/sys_stat-tests: New file.
14381         * tests/test-sys_stat.c: New file.
14382
14383         * modules/sys_socket-tests: New file.
14384         * tests/test-sys_socket.c: New file.
14385
14386         * modules/sys_select-tests: New file.
14387         * tests/test-sys_select.c: New file.
14388
14389         * modules/string-tests: New file.
14390         * tests/test-string.c: New file.
14391
14392         * modules/stdbool-tests: New file.
14393         * tests/test-stdbool.c: New file.
14394
14395         * modules/netinet_in-tests: New file.
14396         * tests/test-netinet_in.c: New file.
14397
14398         * modules/inttypes-tests: New file.
14399         * tests/test-inttypes.c: New file.
14400
14401         * modules/fcntl-tests: New file.
14402         * tests/test-fcntl.c: New file.
14403
14404         * modules/byteswap-tests: New file.
14405         * tests/test-byteswap.c: New file.
14406
14407         * modules/arpa_inet-tests: New file.
14408         * tests/test-arpa_inet.c: New file.
14409
14410 2007-02-17  Bruno Haible  <bruno@clisp.org>
14411
14412         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
14413         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
14414         if the corresponding module is not enabled. Emit link warnings if
14415         the function is used nevertheless.
14416         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
14417         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
14418         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
14419         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
14420         * modules/inttypes (Depends-on): Add link-warning.
14421         (Makefile.am): Copy the contents of build-aux/link-warning.h into
14422         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
14423         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
14424         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
14425         * modules/imaxdiv (configure.ac): Likewise.
14426         * modules/strtoimax (configure.ac): Likewise.
14427         * modules/strtoumax (configure.ac): Likewise.
14428
14429 2007-02-17  Bruno Haible  <bruno@clisp.org>
14430
14431         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
14432         gl_STRING_MODULE_INDICATOR_DEFAULTS.
14433         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
14434         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
14435
14436 2007-02-17  Bruno Haible  <bruno@clisp.org>
14437
14438         * modules/link-warning: New file.
14439         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
14440         * lib/string_.h (GL_LINK_WARNING): Remove definition.
14441         * modules/string (Depends-on): Add link-warning.
14442         (Makefile.am): Copy the contents of build-aux/link-warning.h into
14443         string.h.
14444         * MODULES.html.sh (Support for building libraries and executables): Add
14445         link-warning.
14446
14447 2007-02-17  Bruno Haible  <bruno@clisp.org>
14448
14449         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
14450         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
14451         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
14452         long lines.
14453
14454 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
14455             Bruno Haible  <bruno@clisp.org>
14456
14457         * modules/tmpfile: New file.
14458         * lib/tmpfile.c: New file.
14459         * m4/tmpfile.m4: New file.
14460         * MODULES.html.sh (func_all_modules): New section "Input/output".
14461
14462 2007-02-15  Bruno Haible  <bruno@clisp.org>
14463
14464         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
14465         (supports_delete_on_close): New function.
14466         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
14467
14468 2007-02-14  Bruno Haible  <bruno@clisp.org>
14469
14470         * modules/mbspcasecmp-tests: New file.
14471         * tests/test-mbspcasecmp.sh: New file.
14472         * tests/test-mbspcasecmp.c: New file.
14473
14474         New module mbspcasecmp.
14475         * modules/mbspcasecmp: New file.
14476         * lib/mbspcasecmp.c: New file.
14477         * lib/string_.h (strncasecmp): Change warning message.
14478         (mbspcasecmp): New declaration.
14479         * m4/mbspcasecmp.m4: New file.
14480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14481         GNULIB_MBSPCASECMP.
14482         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
14483         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
14484
14485 2007-02-14  Bruno Haible  <bruno@clisp.org>
14486
14487         * modules/mbsncasecmp-tests: New file.
14488         * tests/test-mbsncasecmp.sh: New file.
14489         * tests/test-mbsncasecmp.c: New file.
14490
14491         New module mbsncasecmp.
14492         * modules/mbsncasecmp: New file.
14493         * lib/mbsncasecmp.c: New file.
14494         * lib/string_.h (mbsncasecmp): New declaration.
14495         * m4/mbsncasecmp.m4: New file.
14496         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14497         GNULIB_MBSNCASECMP.
14498         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
14499         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
14500
14501 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
14502
14503         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
14504         Verify that it doesn't overlap with our flags.
14505         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
14506         do not have the desired effect in multibyte locales; instead, use
14507         mbscasecmp.
14508         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
14509         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
14510         we don't require GNU fnmatch ourselves (if our users require it, they
14511         should do so explicitly).
14512
14513         Fix regex code so it doesn't rely on strcasecmp.
14514         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
14515         Otherwise, include gnulib's langinfo.h.
14516         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
14517         undesirable behavior in non-C locales.  Instead, rely on localecharset.
14518         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
14519         * modules/regex (FILES): Remove m4/codeset.m4.
14520         (Depends-on): Add localcharset.  Remove strcase.
14521
14522 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14523
14524         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
14525         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14526
14527 2007-02-13  Bruno Haible  <bruno@clisp.org>
14528
14529         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
14530         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14531
14532 2007-02-12  Bruno Haible  <bruno@clisp.org>
14533
14534         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
14535         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
14536         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
14537         time warning rather than a link error.
14538
14539 2007-02-12  Bruno Haible  <bruno@clisp.org>
14540
14541         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
14542         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14543         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14544
14545 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14546
14547         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
14548         args, not 2.
14549
14550 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14551
14552         New module 'time', so that apps can include <time.h> as per
14553         POSIX and GNU instead of separate include files like time_r.h
14554         and timegm.h.  This implementation tries out a simpler approach
14555         for replacing decls in standard include files (as compared to
14556         the string module), somewhat as an experiment.
14557
14558         * config/srclist.txt: Comment out mktime.c for now.
14559         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
14560         since it doesn't apply any more.  Use generic wording instead.
14561         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
14562         'time'.
14563         * lib/time_.h, m4/time_h.m4, modules/time: New files.
14564         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
14565         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
14566         Don't include <sys/types.h>; no longer needed since we assume C89.
14567         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
14568         * lib/strftime.c: Likewise.
14569         * lib/time_r.c: Likewise.
14570         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
14571         * lib/nanosleep.c: Include <time.h> first, to check interface.
14572         * lib/strptime.c: Likewise.
14573         * lib/time_r.c: Likewise.
14574         * lib/timegm.c: Likewise.
14575         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
14576         needed.
14577         * lib/timegm.c: Don't include timegm.h; no longer needed.
14578         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
14579         time.h now handles any problems in that area.
14580         (struct timespec, nanosleep): Remove; time.h now arranges for these.
14581         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
14582         that time.h defines struct timespec.
14583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
14584         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
14585         handles that.
14586         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
14587         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
14588         needed.  Set REPLACE_LOCALTIME.
14589         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
14590         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
14591         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
14592         nanosleep; time_h.m4 now does that.  Don't require
14593         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
14594         module handles this now.
14595         * modules/getdate (Depends-on): Remove timespec.  Add time.
14596         * modules/nanosleep (Depends-on): Likewise.
14597         * modules/stat-time (Depends-on): Likewise.
14598         * modules/nanosleep (Include): Include time.h, not timespec.h.
14599         * modules/strptime (Files): Remove lib/strptime.h.
14600         (Depends-on): Add extensions, time.
14601         (Include): Include time.h, not strptime.h.
14602         * modules/time_r (Files): Remove lib/time_r.h.
14603         (Depends-on): Add time.
14604         (Include): Include time.h, not time_r.h.
14605         * modules/timegm: Likewise.
14606         * modules/timespec (Description): Now does timespec-related decls
14607         of our own, instead of struct timespec itself.
14608         (Depends-on): Add time; remove extensions.
14609         (Maintainer): Add self.
14610         * modules/utimecmp (Depends-on): Add time; remove timespec.
14611         * modules/utimens (Depends-on): Likewise.
14612         * modules/xnanosleep (Depends-on): Likewise.
14613
14614 2007-02-11  Bruno Haible  <bruno@clisp.org>
14615
14616         * lib/c-strstr.c: Include allocsa.h.
14617         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14618         * lib/c-strcasestr.c: Include allocsa.h.
14619         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14620         * lib/strcasestr.c: Include allocsa.h.
14621         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14622         * lib/mbsstr.c: Include allocsa.h.
14623         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14624         allocsa/freesa instead of malloc/free.
14625         * lib/mbscasestr.c: Include allocsa.h.
14626         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14627         allocsa/freesa instead of malloc/free.
14628         * modules/c-strstr (Depends-on): Add allocsa.
14629         * modules/c-strcasestr (Depends-on): Likewise.
14630         * modules/strcasestr (Depends-on): Likewise.
14631         * modules/mbsstr (Depends-on): Likewise.
14632         * modules/mbscasestr (Depends-on): Likewise.
14633
14634 2007-02-11  Bruno Haible  <bruno@clisp.org>
14635
14636         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
14637
14638         * modules/mbsspn-tests: New file.
14639         * tests/test-mbsspn.sh: New file.
14640         * tests/test-mbsspn.c: New file.
14641
14642 2007-02-11  Bruno Haible  <bruno@clisp.org>
14643
14644         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
14645
14646         * modules/mbspbrk-tests: New file.
14647         * tests/test-mbspbrk.sh: New file.
14648         * tests/test-mbspbrk.c: New file.
14649
14650 2007-02-11  Bruno Haible  <bruno@clisp.org>
14651
14652         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
14653         unneeded cast.
14654
14655         * modules/mbscspn-tests: New file.
14656         * tests/test-mbscspn.sh: New file.
14657         * tests/test-mbscspn.c: New file.
14658
14659 2007-02-11  Bruno Haible  <bruno@clisp.org>
14660
14661         * modules/mbscasecmp-tests: New file.
14662         * tests/test-mbscasecmp.sh: New file.
14663         * tests/test-mbscasecmp.c: New file.
14664
14665 2007-02-11  Bruno Haible  <bruno@clisp.org>
14666
14667         Ensure O(n) worst-case complexity of mbscasestr.
14668         * lib/mbscasestr.c: Include stdbool.h.
14669         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14670         functions.
14671         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
14672         the bookkeeping indicates that it's worth it.
14673         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
14674
14675         * modules/mbscasestr-tests: New file.
14676         * tests/test-mbscasestr1.c: New file.
14677         * tests/test-mbscasestr2.sh: New file.
14678         * tests/test-mbscasestr2.c: New file.
14679         * tests/test-mbscasestr3.sh: New file.
14680         * tests/test-mbscasestr3.c: New file.
14681         * tests/test-mbscasestr4.sh: New file.
14682         * tests/test-mbscasestr4.c: New file.
14683         * m4/locale-tr.m4: New file.
14684
14685 2007-02-11  Bruno Haible  <bruno@clisp.org>
14686
14687         Ensure O(n) worst-case complexity of mbsstr.
14688         * lib/mbsstr.c: Include stdbool.h.
14689         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14690         functions.
14691         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
14692         bookkeeping indicates that it's worth it.
14693         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
14694
14695         * modules/mbsstr-tests: New file.
14696         * tests/test-mbsstr1.c: New file.
14697         * tests/test-mbsstr2.sh: New file.
14698         * tests/test-mbsstr2.c: New file.
14699         * tests/test-mbsstr3.sh: New file.
14700         * tests/test-mbsstr3.c: New file.
14701         * m4/locale-fr.m4: New file.
14702
14703 2007-02-11  Bruno Haible  <bruno@clisp.org>
14704
14705         * lib/mbsrchr.c (mbsrchr): Fix bug.
14706
14707         * modules/mbsrchr-tests: New file.
14708         * tests/test-mbsrchr.sh: New file.
14709         * tests/test-mbsrchr.c: New file.
14710
14711 2007-02-11  Bruno Haible  <bruno@clisp.org>
14712
14713         * lib/mbschr.c (mbschr): Fix bug.
14714
14715         * modules/mbschr-tests: New file.
14716         * tests/test-mbschr.sh: New file.
14717         * tests/test-mbschr.c: New file.
14718         * m4/locale-zh.m4: New file.
14719
14720 2007-02-11  Bruno Haible  <bruno@clisp.org>
14721
14722         Support for copying multibyte string iterators.
14723         * lib/mbiter.h: Include <string.h>.
14724         (mbiter_multi_copy): New function.
14725         (mbi_copy): New macro.
14726         * lib/mbuiter.h: Include <string.h>.
14727         (mbuiter_multi_copy): New function.
14728         (mbui_copy): New macro.
14729
14730 2007-02-11  Bruno Haible  <bruno@clisp.org>
14731
14732         New module mbslen.
14733         * modules/mbslen: New file.
14734         * lib/mbslen.c: New file.
14735         * lib/string_.h (mbslen): New declaration.
14736         * m4/mbslen.m4: New file.
14737         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14738         GNULIB_MBSLEN.
14739         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
14740         * MODULES.html.sh (Internationalization functions): Add mbslen.
14741
14742 2007-02-11  Bruno Haible  <bruno@clisp.org>
14743
14744         Ensure O(n) worst-case complexity of strcasestr substitute.
14745         * lib/strcasestr.c: Include stdbool.h.
14746         (knuth_morris_pratt): New function.
14747         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14748         bookkeeping indicates that it's worth it.
14749         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
14750
14751         * modules/strcasestr-tests: New file.
14752         * tests/test-strcasestr.c: New file.
14753
14754 2007-02-11  Bruno Haible  <bruno@clisp.org>
14755
14756         Ensure O(n) worst-case complexity of c_strcasestr.
14757         * lib/c-strcasestr.c: Include stdbool.h, string.h.
14758         (knuth_morris_pratt): New function.
14759         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
14760         the bookkeeping indicates that it's worth it.
14761         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
14762
14763         * modules/c-strcasestr-tests: New file.
14764         * tests/test-c-strcasestr.c: New file.
14765
14766 2007-02-11  Bruno Haible  <bruno@clisp.org>
14767
14768         Ensure O(n) worst-case complexity of c_strstr.
14769         * lib/c-strstr.c: Include stdbool.h, string.h.
14770         (knuth_morris_pratt): New function.
14771         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14772         bookkeeping indicates that it's worth it.
14773         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
14774
14775         * lib/c-strstr.c: Complete rewrite for maintainability.
14776
14777         * modules/c-strstr-tests: New file.
14778         * tests/test-c-strstr.c: New file.
14779
14780 2007-02-11  Bruno Haible  <bruno@clisp.org>
14781
14782         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
14783         5.2.1 and earlier, whereby \055 was treated just like the range
14784         delimiter '-'.
14785         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
14786
14787 2007-02-08  Bruno Haible  <bruno@clisp.org>
14788
14789         * modules/regex (Depends-on): Add stdbool.
14790         Reported by Dalibor Topic <robilad@kaffe.org>.
14791
14792 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14793
14794         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
14795         Prefer returning from main to exiting from it.
14796         Remove unnecessary parens after sizeof.
14797
14798 2007-02-05  Bruno Haible  <bruno@clisp.org>
14799
14800         New module mbssep.
14801         * modules/mbssep: New file.
14802         * lib/mbssep.c: New file.
14803         * lib/string_.h (strsep): Add a conditional link warning.
14804         (mbssep): New declaration.
14805         * m4/mbssep.m4: New file.
14806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14807         GNULIB_MBSSEP.
14808         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
14809         * MODULES.html.sh (Internationalization functions): Add mbssep.
14810
14811 2007-02-05  Bruno Haible  <bruno@clisp.org>
14812
14813         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
14814         Optimize search in case of 1 delimiter.
14815
14816 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
14817
14818         * lib/acl.h: Include sys/types.h before sys/acl.h.
14819
14820 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
14821
14822         Merge upstream fix for glibc bugzilla #3957:
14823
14824         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
14825
14826         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
14827         bit for RE_HAT_LISTS_NOT_NEWLINE.
14828         (build_charclass_op): Remove bogus comment.
14829
14830 2007-02-05  Simon Josefsson  <simon@josefsson.org>
14831
14832         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
14833
14834 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14835
14836         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
14837         * lib/memmem.c [!defined _LIBC]: Include config.h.
14838
14839 2007-02-04  Bruno Haible  <bruno@clisp.org>
14840
14841         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
14842         warning message.
14843
14844 2007-02-04  Bruno Haible  <bruno@clisp.org>
14845
14846         New module mbstok_r.
14847         * modules/mbstok_r: New file.
14848         * lib/mbstok_r.c: New file.
14849         * lib/string_.h (strtok_r): Change argument names to match the
14850         comments. Add a conditional link warning.
14851         (mbstok_r): New declaration.
14852         * m4/mbstok_r.m4: New file.
14853         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14854         GNULIB_MBSTOK_R.
14855         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
14856         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
14857
14858 2007-02-04  Bruno Haible  <bruno@clisp.org>
14859
14860         New module mbsspn.
14861         * modules/mbsspn: New file.
14862         * lib/mbsspn.c: New file.
14863         * lib/string_.h (strspn): Add a conditional link warning.
14864         (mbsspn): New declaration.
14865         * m4/mbsspn.m4: New file.
14866         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14867         GNULIB_MBSSPN.
14868         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
14869         * MODULES.html.sh (Internationalization functions): Add mbsspn.
14870
14871 2007-02-04  Bruno Haible  <bruno@clisp.org>
14872
14873         New module mbspbrk.
14874         * modules/mbspbrk: New file.
14875         * lib/mbspbrk.c: New file.
14876         * lib/string_.h (strpbrk): Add a conditional link warning.
14877         (mbspbrk): New declaration.
14878         * m4/mbspbrk.m4: New file.
14879         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14880         GNULIB_MBSPBRK.
14881         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
14882         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
14883
14884 2007-02-04  Bruno Haible  <bruno@clisp.org>
14885
14886         New module mbscspn.
14887         * modules/mbscspn: New file.
14888         * lib/mbscspn.c: New file.
14889         * lib/string_.h (strcspn): Add a conditional link warning.
14890         (mbscspn): New declaration.
14891         * m4/mbscspn.m4: New file.
14892         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14893         GNULIB_MBSCSPN.
14894         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
14895         * MODULES.html.sh (Internationalization functions): Add mbscspn.
14896
14897 2007-02-04  Bruno Haible  <bruno@clisp.org>
14898
14899         New module mbscasestr, reduced goal of strcasestr.
14900         * modules/mbscasestr: New file.
14901         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
14902         (mbscasestr): Renamed from strcasestr.
14903         * lib/strcasestr.c: Don't include mbuiter.h.
14904         (strcasestr): Remove support for multibyte locales.
14905         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
14906         Change the conditional link warning.
14907         (mbscasestr): New declaration.
14908         * m4/mbscasestr.m4: New file.
14909         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
14910         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
14911         REPLACE_STRCASESTR.
14912         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
14913         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14914         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
14915         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
14916         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
14917         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
14918         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
14919         (Depends-on): Remove mbuiter.
14920         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
14921
14922 2007-02-04  Bruno Haible  <bruno@clisp.org>
14923
14924         Simplify handling of strncasecmp.
14925         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
14926         the conditional link warning.
14927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14928         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
14929         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
14930         * modules/strcase (configure.ac): Don't invoke
14931         gl_STRING_MODULE_INDICATOR.
14932         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
14933
14934 2007-02-04  Bruno Haible  <bruno@clisp.org>
14935
14936         New module mbscasecmp, reduced goal of strcasecmp.
14937         * modules/mbscasecmp: New file.
14938         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
14939         (mbscasecmp): Renamed from strcasecmp.
14940         * lib/strcasecmp.c: Don't include mbuiter.h.
14941         (strcasecmp): Remove support for multibyte locales.
14942         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
14943         Change the conditional link warning.
14944         (mbscasecmp): New declaration.
14945         * m4/mbscasecmp.m4: New file.
14946         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
14947         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
14948         REPLACE_STRCASECMP.
14949         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
14950         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14951         GNULIB_MBSCASECMP.
14952         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
14953         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
14954         * modules/strcase (Files): Remove m4/mbrtowc.m4.
14955         (Depends-on): Remove mbuiter.
14956         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
14957
14958 2007-02-04  Bruno Haible  <bruno@clisp.org>
14959
14960         New module mbsstr. Remove module strstr.
14961         * modules/mbsstr: New file.
14962         * modules/strstr: Remove file.
14963         * lib/mbsstr.c: Renamed from lib/strstr.c.
14964         (mbsstr): Renamed from strstr.
14965         * lib/string_.h (strstr): Remove declaration. Change the conditional
14966         link warning.
14967         (mbsstr): New declaration.
14968         * m4/mbsstr.m4: New file.
14969         * m4/strstr.m4: Remove file.
14970         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14971         REPLACE_STRSTR.
14972         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
14973         Don't initialize GNULIB_STRSTR.
14974         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
14975         substitute GNULIB_STRSTR and REPLACE_STRSTR.
14976         * MODULES.html.sh (Internationalization functions): Add mbsstr.
14977         (Support for systems lacking ANSI C 89): Remove strstr.
14978
14979 2007-02-04  Bruno Haible  <bruno@clisp.org>
14980
14981         New module mbsrchr.
14982         * modules/mbsrchr: New file.
14983         * lib/mbsrchr.c: New file.
14984         * lib/string_.h (strrchr): Add a conditional link warning.
14985         (mbsrchr): New declaration.
14986         * m4/mbsrchr.m4: New file.
14987         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14988         GNULIB_MBSRCHR.
14989         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
14990         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
14991
14992 2007-02-04  Bruno Haible  <bruno@clisp.org>
14993
14994         New module mbschr.
14995         * modules/mbschr: New file.
14996         * lib/mbschr.c: New file.
14997         * lib/string_.h (strchr): Add a conditional link warning.
14998         (mbschr): New declaration.
14999         * m4/mbschr.m4: New file.
15000         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15001         GNULIB_MBSCHR.
15002         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
15003         * MODULES.html.sh (Internationalization functions): Add mbschr.
15004
15005 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15006
15007         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
15008
15009         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
15010
15011 2007-02-04  Bruno Haible  <bruno@clisp.org>
15012
15013         New module description section 'configure.ac-early'.
15014         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
15015         (func_get_autoconf_early_snippet): New function.
15016         (func_import, func_create_testdir): Use it. Remove special cases for
15017         modules 'extensions' and 'lock'.
15018         * modules/extensions (configure.ac-early): Require
15019         gl_USE_SYSTEM_EXTENSIONS.
15020         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
15021
15022 2007-02-04  Bruno Haible  <bruno@clisp.org>
15023
15024         Make use of gcj-4.3's -fsource and -ftarget option.
15025         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
15026         and if so try the options -fsource and -ftarget.
15027         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
15028         source_version, ftarget_option, target_version arguments.
15029         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
15030         (is_envjavac_oldgcj_14_14_usable): Renamed from
15031         is_envjavac_gcj_14_14_usable.
15032         (is_envjavac_oldgcj_14_13_usable): Renamed from
15033         is_envjavac_gcj_14_13_usable.
15034         (is_gcj_present): Update.
15035         (is_gcj_43, is_gcj43_usable): New functions.
15036         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
15037         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
15038         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
15039         try the options -fsource and -ftarget.
15040
15041 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
15042
15043         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
15044         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
15045         larger value.
15046
15047 2007-02-03  Jim Meyering  <jim@meyering.net>
15048
15049         Give tools a better chance to allocate space for very large buffers.
15050         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
15051
15052         Make pwd and readlink work also when run with an unreadable parent dir
15053         on systems with openat support.
15054         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
15055         provided getcwd function, even when we have openat support.
15056         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
15057
15058 2007-02-02  Bruno Haible  <bruno@clisp.org>
15059
15060         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
15061         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
15062         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
15063         portability problems if one of these functions is only used on specific
15064         platforms.
15065         Reported by Paul Eggert.
15066
15067 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
15068
15069         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
15070         is causing more trouble than it's curing.
15071         * lib/regex_internal.h (__mempcpy): Remove.
15072         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
15073         (and make the code a tad smaller to boot).
15074         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
15075
15076 2007-02-02  Jim Meyering  <jim@meyering.net>
15077
15078         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
15079         section, not in the Makefile.am: one.
15080
15081 2007-02-02  Eric Blake  <ebb9@byu.net>
15082
15083         * lib/strchrnul.c: Always include config.h first.
15084
15085         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
15086         gnulib strstr is not necessary here.
15087
15088 2007-02-02  Simon Josefsson  <simon@josefsson.org>
15089
15090         * m4/socklen.m4: Fix typo.
15091
15092 2007-02-02  Eric Blake  <ebb9@byu.net>
15093
15094         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
15095         * modules/netinet_in (Makefile.am): Likewise.
15096
15097 2007-02-01  Bruno Haible  <bruno@clisp.org>
15098
15099         * lib/string_.h (GL_LINK_WARNING): New macro.
15100         (strcasecmp, strstr, strcasestr): If provided by the system,
15101         conditionally define as a macro that leads to a warning instead of to
15102         an error.
15103         (strncasecmp): Conditionally define as a macro that leads to a warning.
15104
15105 2007-02-01  Karl Berry  <karl@gnu.org>
15106
15107         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
15108
15109 2007-02-01  Bruno Haible  <bruno@clisp.org>
15110
15111         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
15112         renamings.
15113
15114 2007-02-01  Eric Blake  <ebb9@byu.net>
15115
15116         * modules/regex (Depends-on): Revert dependence on mempcpy.
15117         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
15118         module's definition of mempcpy.
15119         Reported by Paul Eggert.
15120
15121 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
15122
15123         * lib/string_.h: If the gnulib module XYZ is not present, undefine
15124         the symbol XYZ before redefining it.  This fixes a problem with
15125         programs that don't use XYZ, when compiled on systems that define
15126         XYZ to something else.
15127
15128 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
15129
15130         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
15131         occurs when "mkdir -m foo" creates a setgid directory that is (1)
15132         writeable to group or other and (2) is intended to have a special
15133         mode bit that is set or cleared.  In such a case, the directory
15134         should be neither group- nor other-writeable until the special
15135         mode bits are right.
15136
15137 2007-01-31  Eric Blake  <ebb9@byu.net>
15138
15139         * modules/mountlist (Depends-on): Add strstr.
15140
15141         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
15142         bug.
15143         * modules/string (Makefile.am): Remove redundant replacement.
15144         * modules/regex (Depends-on): Add mempcpy.
15145
15146 2007-01-31  Bruno Haible  <bruno@clisp.org>
15147
15148         New module description field 'Link'.
15149         * gnulib-tool (func_usage): Document --extract-link-directive.
15150         (sed_extract_prog): Recognize 'Link' directive.
15151         (func_get_link_directive): New function.
15152         (func_import): Show summary of link directives.
15153         Handle --extract-link-directive option.
15154         * modules/acl (Link): New section.
15155         * modules/clock-time (Link): New section.
15156         * modules/euidaccess (Link): New section.
15157         * modules/gettext (Link): New section.
15158         * modules/iconv (Link): New section.
15159         * modules/lock (Link): New section.
15160         * modules/nanosleep (Link): New section.
15161         * modules/readline (Link): New section.
15162
15163 2007-01-27  Bruno Haible  <bruno@clisp.org>
15164
15165         Enforce the use of gnulib modules for unportable <string.h> functions.
15166         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
15167         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
15168         (gl_HEADER_STRING_H_BODY): Require it.
15169         * lib/string_.h: If the gnulib module XYZ is not present, redefine
15170         the symbol XYZ to one that gives a link error.
15171         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
15172         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
15173         * modules/mempcpy (configure.ac): Likewise.
15174         * modules/memrchr (configure.ac): Likewise.
15175         * modules/stpcpy (configure.ac): Likewise.
15176         * modules/stpncpy (configure.ac): Likewise.
15177         * modules/strcase (configure.ac): Likewise.
15178         * modules/strcasestr (configure.ac): Likewise.
15179         * modules/strchrnul (configure.ac): Likewise.
15180         * modules/strdup (configure.ac): Likewise.
15181         * modules/strndup (configure.ac): Likewise.
15182         * modules/strnlen (configure.ac): Likewise.
15183         * modules/strpbrk (configure.ac): Likewise.
15184         * modules/strsep (configure.ac): Likewise.
15185         * modules/strstr (configure.ac): Likewise.
15186         * modules/strtok_r (configure.ac): Likewise.
15187
15188 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
15189
15190         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
15191
15192 2007-01-30  Jim Meyering  <jim@meyering.net>
15193
15194         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
15195
15196 2007-01-29  Bruno Haible  <bruno@clisp.org>
15197
15198         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
15199         * lib/execute.c: Likewise.
15200         * lib/pipe.c: Likewise.
15201         * lib/printf-args.h: Likewise.
15202         * lib/printf-args.c: Likewise.
15203         * lib/printf-parse.c: Likewise.
15204         * lib/vasnprintf.c: Likewise.
15205
15206 2007-01-29  Eric Blake  <ebb9@byu.net>
15207
15208         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
15209         declaration.
15210
15211 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15212
15213         * lib/strptime.h (strptime): Use 'restrict' for args where
15214         POSIX requires this.
15215         * lib/strptime.c (strptime): Likewise.
15216         Change license notice from LGPL to GPL, since gnulib-tool will
15217         change this as needed.
15218         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
15219         defined.
15220         Include "strptime.h" first, to check interface.
15221         Do not #undef _LIBC and _NL_CURRENT.
15222         Do not include <stdlib.h>; no longer needed.
15223         Include "time_r.h" and declare ptime_locale_status
15224         only if _LIBC is not defined.
15225         (__P): Remove unused macro.
15226         (match_string): Bring back glibc version, but use it only if _LIBC
15227         is defined.
15228         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
15229         Remove unnecessary assertion and abort() call.
15230         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
15231         * m4/strptime.m4: Fix serial number comment.
15232         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
15233         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
15234         (Depends-on): Add time_r.
15235
15236 2007-01-29  Bruno Haible  <bruno@clisp.org>
15237
15238         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15239         strptime.
15240         * modules/strptime (Depends-on): Add stdbool.
15241         * lib/strptime.h: Include <time.h> always. Add comments.
15242
15243 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15244
15245         * modules/strptime: New file.
15246         * lib/strptime.h: New file.
15247         * lib/strptime.c: New file.
15248         * m4/strptime.m4: New file.
15249
15250 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15251
15252         * MODULES.html.sh: New module mpsort.
15253         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
15254
15255         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
15256         a circularity problem with HP-UX ia64 reported by Bob Proulx in
15257         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
15258         All uses changed.
15259         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
15260         All uses changed.
15261         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
15262         to _Restrict_.
15263         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
15264         the parameter matches the prototype.
15265
15266 2007-01-28  Jim Meyering  <jim@meyering.net>
15267
15268         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
15269         sys/time.h here, reverting that part of the previous patch:
15270         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
15271
15272 2007-01-28  Bruno Haible  <bruno@clisp.org>
15273
15274         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
15275         value of $(SYS_TIME_H).
15276         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
15277         remove it conditionally, too. [added by Jim Meyering]
15278         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
15279         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
15280         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
15281         GETTIMEOFDAY_REPLACEMENT to 1.
15282
15283 2007-01-28  Bruno Haible  <bruno@clisp.org>
15284
15285         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
15286         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
15287         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
15288         Set UNISTD_H instead of UNISTD_H2.
15289         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
15290
15291 2007-01-28  Bruno Haible  <bruno@clisp.org>
15292
15293         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
15294         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
15295
15296 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15297
15298         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
15299         (func_create_testdir): Ensure C locale for `grep' and `tr'
15300         character ranges.
15301         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
15302         ACLOCAL_AMFLAGS parsing state machine.
15303
15304 2007-01-27  Bruno Haible  <bruno@clisp.org>
15305
15306         * modules/unistr/base: Update.
15307
15308 2007-01-27  Bruno Haible  <bruno@clisp.org>
15309
15310         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
15311         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
15312         * modules/unistr/u32-mbtouc-unsafe: Renamed from
15313         modules/unistr/u32-mbtouc.
15314         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
15315         * lib/unistr.h: Update.
15316         * lib/linebreak.c: Update.
15317         * modules/unistr/u32-mbtouc: Renamed from
15318         modules/unistr/u32-mbtouc-safe.
15319         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
15320         * lib/unistr.h: Update.
15321         * lib/unistr/u32-to-u8.c: Update.
15322         * lib/unistr/u32-to-u16.c: Update.
15323
15324 2007-01-27  Bruno Haible  <bruno@clisp.org>
15325
15326         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
15327         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
15328         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
15329         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
15330         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
15331         * modules/unistr/u16-mbtouc-unsafe: Renamed from
15332         modules/unistr/u16-mbtouc.
15333         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
15334         * lib/unistr.h: Update.
15335         * lib/linebreak.c: Update.
15336         * modules/linebreak: Update.
15337         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
15338         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
15339         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
15340         * modules/unistr/u16-mbtouc: Renamed from
15341         modules/unistr/u16-mbtouc-safe.
15342         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
15343         * lib/unistr.h: Update.
15344         * lib/unistr/u16-to-u8.c: Update.
15345         * modules/unistr/u16-to-u8: Update.
15346         * lib/unistr/u16-to-u32.c: Update.
15347         * modules/unistr/u16-to-u32: Update.
15348
15349 2007-01-27  Bruno Haible  <bruno@clisp.org>
15350
15351         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
15352         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
15353         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
15354         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
15355         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
15356         * modules/unistr/u8-mbtouc-unsafe: Renamed from
15357         modules/unistr/u8-mbtouc.
15358         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
15359         * lib/unistr.h: Update.
15360         * lib/striconveh.c: Update.
15361         * modules/striconveh: Update.
15362         * lib/linebreak.c: Update.
15363         * modules/linebreak: Update.
15364         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
15365         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
15366         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
15367         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
15368         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
15369         * lib/unistr.h: Update.
15370         * lib/striconveh.c: Update.
15371         * modules/striconveh: Update.
15372         * lib/unistr/u8-to-u16.c: Update.
15373         * modules/unistr/u8-to-u16: Update.
15374         * lib/unistr/u8-to-u32.c: Update.
15375         * modules/unistr/u8-to-u32: Update.
15376
15377 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15378
15379         Sync from Libtool.
15380         * lib/argz.c: Do not include strings.h nor memory.h, include
15381         string.h unconditionally.  Patch by Simon Josefsson.
15382
15383 2007-01-27  Bruno Haible  <bruno@clisp.org>
15384
15385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
15386         from gl_HEADER_STRING_H_BODY.
15387         (gl_HEADER_STRING_H_BODY): Require it.
15388         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
15389         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
15390         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
15391         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
15392         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15393         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
15394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15395         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
15396         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
15397         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
15398         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
15399         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
15400         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
15401         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15402         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15403
15404 2007-01-27  Bruno Haible  <bruno@clisp.org>
15405
15406         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
15407         check_PROGRAMS into noinst_PROGRAMS.
15408         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
15409         check_PROGRAMS in this case.
15410         (func_import): Set for_test to false.
15411         (func_create_testdir): Set for_test to true.
15412
15413 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15414             Bruno Haible  <bruno@clisp.org>
15415
15416         * modules/strcasestr (Files): Remove lib/strcasestr.h.
15417         (Depends-on): Add string.
15418         (Includes): Use <string.h> instead of strcasestr.h.
15419         * modules/string (Makefile.am): Also substitute the value of
15420         REPLACE_STRCASESTR.
15421         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
15422         assume strcasestr is declared in <string.h> not <strings.h>. Also
15423         set REPLACE_STRCASESTR.
15424         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
15425         REPLACE_STRCASESTR.
15426         * lib/strcasestr.h: Remove file.
15427         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
15428         * lib/string_.h (strcasestr): New declaration.
15429
15430 2007-01-27  Bruno Haible  <bruno@clisp.org>
15431
15432         * lib/string_.h: Use 'extern'.
15433
15434 2007-01-27  Jim Meyering  <jim@meyering.net>
15435
15436         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
15437         of set-but-not-used local, "q".
15438
15439         * lib/mempcpy.c: Include <config.h> before <string.h>.
15440         This fixes a compilation error on HP-UX, due to the system's
15441         "restrict"-using mempcpy prototype.
15442
15443 2007-01-26  Bruno Haible  <bruno@clisp.org>
15444
15445         Small optimization.
15446         * lib/javacomp.c: Include c-strstr.h.
15447          (is_envjavac_gcj): Use c_strstr instead of strstr.
15448         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
15449
15450 2007-01-26  Bruno Haible  <bruno@clisp.org>
15451
15452         * MODULES.html.sh (Unicode string functions): Add the new modules.
15453
15454         * modules/uniconv/u32-strconv-to-locale: New file.
15455         * lib/uniconv/u32-strconv-to-locale.c: New file.
15456
15457         * modules/uniconv/u16-strconv-to-locale: New file.
15458         * lib/uniconv/u16-strconv-to-locale.c: New file.
15459
15460         * modules/uniconv/u8-strconv-to-locale: New file.
15461         * lib/uniconv/u8-strconv-to-locale.c: New file.
15462
15463         * modules/uniconv/u32-strconv-from-locale: New file.
15464         * lib/uniconv/u32-strconv-from-locale.c: New file.
15465
15466         * modules/uniconv/u16-strconv-from-locale: New file.
15467         * lib/uniconv/u16-strconv-from-locale.c: New file.
15468
15469         * modules/uniconv/u8-strconv-from-locale: New file.
15470         * lib/uniconv/u8-strconv-from-locale.c: New file.
15471
15472         * modules/uniconv/u32-strconv-to-enc: New file.
15473         * lib/uniconv/u32-strconv-to-enc.c: New file.
15474         * modules/uniconv/u32-strconv-to-enc-tests: New file.
15475         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
15476
15477         * modules/uniconv/u16-strconv-to-enc: New file.
15478         * lib/uniconv/u16-strconv-to-enc.c: New file.
15479         * lib/uniconv/u-strconv-to-enc.h: New file.
15480         * modules/uniconv/u16-strconv-to-enc-tests: New file.
15481         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
15482
15483         * modules/uniconv/u8-strconv-to-enc: New file.
15484         * lib/uniconv/u8-strconv-to-enc.c: New file.
15485         * modules/uniconv/u8-strconv-to-enc-tests: New file.
15486         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
15487
15488         * modules/uniconv/u32-strconv-from-enc: New file.
15489         * lib/uniconv/u32-strconv-from-enc.c: New file.
15490         * modules/uniconv/u32-strconv-from-enc-tests: New file.
15491         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
15492
15493         * modules/uniconv/u16-strconv-from-enc: New file.
15494         * lib/uniconv/u16-strconv-from-enc.c: New file.
15495         * modules/uniconv/u16-strconv-from-enc-tests: New file.
15496         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
15497
15498         * modules/uniconv/u8-strconv-from-enc: New file.
15499         * lib/uniconv/u8-strconv-from-enc.c: New file.
15500         * lib/uniconv/u-strconv-from-enc.h: New file.
15501         * modules/uniconv/u8-strconv-from-enc-tests: New file.
15502         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
15503
15504         * modules/uniconv/u32-conv-from-enc: New file.
15505         * lib/uniconv/u32-conv-from-enc.c: New file.
15506         * modules/uniconv/u32-conv-from-enc-tests: New file.
15507         * tests/uniconv/test-u32-conv-from-enc.c: New file.
15508
15509         * modules/uniconv/u16-conv-from-enc: New file.
15510         * lib/uniconv/u16-conv-from-enc.c: New file.
15511         * lib/uniconv/u-conv-from-enc.h: New file.
15512         * modules/uniconv/u16-conv-from-enc-tests: New file.
15513         * tests/uniconv/test-u16-conv-from-enc.c: New file.
15514
15515         * modules/uniconv/u8-conv-from-enc: New file.
15516         * lib/uniconv/u8-conv-from-enc.c: New file.
15517         * modules/uniconv/u8-conv-from-enc-tests: New file.
15518         * tests/uniconv/test-u8-conv-from-enc.c: New file.
15519
15520         * modules/uniconv/base: New file.
15521         * lib/uniconv.h: New file.
15522
15523 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
15524
15525         * doc/gnulib-tool.texi (Initial import): Update to match current
15526         behavior with strdup module.
15527         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
15528         * lib/memmem.h: Remove; all uses removed.  This is now done
15529         by <string.h>.
15530         * lib/mempcpy.h: Likewise.
15531         * lib/memrchr.h: Likewise.
15532         * lib/stpcpy.h: Likewise.
15533         * lib/stpncpy.h: Likewise.
15534         * lib/strcase.h: Likewise.
15535         * lib/strchrnul.h: Likewise.
15536         * lib/strdup.h: Likewise.
15537         * lib/strndup.h: Likewise.
15538         * lib/strnlen.h: Likewise.
15539         * lib/strpbrk.h: Likewise.
15540         * lib/strsep.h: Likewise.
15541         * lib/strstr.h: Likewise.
15542         * lib/strtok_r.h: Likewise.
15543         * lib/string_.h: New file.
15544         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
15545         Rely on <string.h> instead.
15546         * lib/canon-host.c: Likewise.
15547         * lib/chdir-long.c: Likewise.
15548         * lib/concatpath.c: Likewise.
15549         * lib/exclude.c: Likewise.
15550         * lib/fchdir.c: Likewise.
15551         * lib/getaddrinfo.c: Likewise.
15552         * lib/getcwd.c: Likewise.
15553         * lib/getsubopt.c: Likewise.
15554         * lib/glob.c: Likewise.
15555         * lib/hard-locale.c: Likewise.
15556         * lib/iconvme.c: Likewise.
15557         * lib/javacomp.c: Likewise.
15558         * lib/mempcpy.c: Likewise.
15559         * lib/memrchr.c: Likewise.
15560         * lib/regex_internal.h: Likewise.
15561         * lib/stpncpy.c: Likewise.
15562         * lib/strcasecmp.c: Likewise.
15563         * lib/strchrnul.c: Likewise.
15564         * lib/strdup.c: Likewise.
15565         * lib/striconv.c: Likewise.
15566         * lib/striconveh.c: Likewise.
15567         * lib/striconveha.c: Likewise.
15568         * lib/strncasecmp.c: Likewise.
15569         * lib/strndup.c: Likewise.
15570         * lib/strnlen.c: Likewise.
15571         * lib/strsep.c: Likewise.
15572         * lib/strstr.c: Likewise.
15573         * lib/strtok_r.c: Likewise.
15574         * lib/userspec.c: Likewise.
15575         * lib/w32spawn.h: Likewise.
15576         * lib/xstrndup.c: Likewise.
15577         * lib/mountlist.c (strstr): Remove decl.
15578         * m4/string_h.m4: New file.
15579         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
15580         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
15581         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
15582         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
15583         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
15584         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
15585         Set REPLACE_STRCASECMP if necessary.
15586         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
15587         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
15588         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
15589         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
15590         HAVE_DECL_STRDUP if necessary.
15591         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
15592         since gl_FUNC_STRNDUP does that now.
15593         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
15594         Check for decl here...
15595         (gl_PREREQ_STRNLEN): ... not here.
15596         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
15597         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
15598         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
15599         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
15600         necessary.
15601         * modules/string: New file.
15602         * modules/memmem (Files): Remove special-purpose include file.
15603         (Depends-on): Add string.
15604         (Include): Include <string.h>, not the removed file.
15605         * modules/mempcpy: Likewise.
15606         * modules/memrchr: Likewise.
15607         * modules/stpcpy: Likewise.
15608         * modules/stpncpy: Likewise.
15609         * modules/strcase: Likewise.
15610         * modules/strchrnul: Likewise.
15611         * modules/strdup: Likewise.
15612         * modules/strndup: Likewise.
15613         * modules/strnlen: Likewise.
15614         * modules/strpbrk: Likewise.
15615         * modules/strsep: Likewise.
15616         * modules/strstr: Likewise.
15617         * modules/strtok_r: Likewise.
15618         * tests/test-dirname.c: Don't include "strdup.h", since
15619         <string.h> now suffices.
15620         * tests/test-memmem.c: Don't include "memmem.h", since
15621         <string.h> now suffices.
15622
15623 2007-01-25  Bruno Haible  <bruno@clisp.org>
15624
15625         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
15626         *resultp is 0.
15627
15628         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
15629         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
15630         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
15631         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
15632
15633         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
15634         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
15635         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
15636         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
15637         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
15638         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
15639
15640 2007-01-24  Bruno Haible  <bruno@clisp.org>
15641
15642         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
15643         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
15644         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
15645         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
15646         gl_FUNC_FTS_CORE.
15647         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
15648         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
15649         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15650         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
15651         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
15652         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
15653         gl_FUNC_FCHOWNAT.
15654         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
15655         gl_FUNC_STRFTIME.
15656         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
15657         Reported by Ralf Wildenhues.
15658
15659 2007-01-24  Bruno Haible  <bruno@clisp.org>
15660
15661         Drop AC_REQUIRE calls that are redundant with the module dependencies.
15662         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
15663         gl_GETADDRINFO.
15664         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
15665         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
15666         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
15667
15668 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
15669
15670         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
15671         Don't use 'exit'; just return from 'main'.
15672         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
15673
15674         * lib/fnmatch_.h: Readjust white space and comments to match
15675         glibc, to avoid spurious diffs.
15676
15677 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15678
15679         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
15680         2004-12-01 change by Jakub Jelinek, since this code won't compile
15681         if !LIBC.  Problem reported by Bob Proulx.
15682
15683 2007-01-23  Bruno Haible  <bruno@clisp.org>
15684
15685         * lib/striconveh.c: Include c-strcaseeq.h.
15686         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
15687         * modules/striconveh (Depends-on): Add c-strcaseeq.
15688
15689 2007-01-23  Bruno Haible  <bruno@clisp.org>
15690
15691         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
15692
15693         * modules/c-strcaseeq: New file.
15694         * lib/c-strcaseeq.h: New file.
15695
15696         * modules/streq: New file.
15697         * lib/streq.h: New file.
15698
15699 2007-01-23  Bruno Haible  <bruno@clisp.org>
15700
15701         * modules/striconveha-tests: New file.
15702         * tests/test-striconveha.c: New file.
15703
15704         * lib/striconveha.h: Include <stdbool.h>.
15705         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
15706         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
15707         (mem_iconveha_notranslit): Renamed from mem_iconveha.
15708         (mem_iconveha): New function.
15709         (str_iconveha_notranslit): Renamed from str_iconveha.
15710         (str_iconveha): New function.
15711         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
15712         c-strcase.
15713
15714 2007-01-23  Bruno Haible  <bruno@clisp.org>
15715
15716         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
15717         encodings without forgiving before trying any encoding with handler.
15718         (str_iconveha): Try all encodings without forgiving before trying any
15719         encoding with handler.
15720
15721 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15722
15723         Import the following changes from libc.
15724
15725         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
15726
15727         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
15728
15729         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
15730
15731         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
15732         normal_bracket label.
15733
15734         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
15735
15736         [BZ #361]
15737         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
15738         to normal_bracket after fetching the next character.
15739
15740 2007-01-22  Bruno Haible  <bruno@clisp.org>
15741
15742         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
15743         argument.
15744         * lib/striconveh.c (iconv_carefully_1): New function.
15745         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
15746         argument.
15747         (str_cd_iconveh): Update.
15748         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
15749         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
15750         * tests/test-striconveh.c (MAGIC): New macro.
15751         (new_offsets): New function.
15752         (main): Test call with and without offsets.
15753
15754 2007-01-22  Bruno Haible  <bruno@clisp.org>
15755
15756         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
15757         * modules/sys_select (Makefile.am): Likewise.
15758         * modules/sys_socket (Makefile.am): Likewise.
15759         * modules/sys_time (Makefile.am): Likewise.
15760
15761 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15762
15763         * modules/gettimeofday (License): Change from GPL to LGPL, since
15764         gettimeofday is a library function.
15765
15766 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15767
15768         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
15769
15770 2007-01-21  Bruno Haible  <bruno@clisp.org>
15771
15772         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
15773
15774 2007-01-21  Bruno Haible  <bruno@clisp.org>
15775
15776         * modules/striconveha: New file.
15777         * lib/striconveha.h: New file.
15778         * lib/striconveha.c: New file.
15779         * MODULES.html.sh (Internationalization functions): Add striconveha.
15780         * lib/striconv.c (str_iconv): Optimize the case of an empty input
15781         string.
15782         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
15783
15784 2007-01-21  Bruno Haible  <bruno@clisp.org>
15785
15786         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
15787         * lib/striconveh.c (str_iconveh): Likewise.
15788
15789 2007-01-21  Bruno Haible  <bruno@clisp.org>
15790
15791         * lib/striconveh.h (mem_iconveh): New declaration.
15792         * lib/striconveh.c (mem_iconveh): New function.
15793         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
15794
15795 2007-01-21  Bruno Haible  <bruno@clisp.org>
15796
15797         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
15798
15799         * lib/striconveh.h (mem_cd_iconveh): Change specification.
15800         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
15801         original result buffer.
15802         (str_cd_iconveh): Update.
15803         * tests/test-striconveh.c (main): Update.
15804
15805         * lib/striconv.h (mem_cd_iconv): Change specification.
15806         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
15807         result buffer.
15808         (str_cd_iconv): Update.
15809         * tests/test-striconv.c (main): Update.
15810
15811 2007-01-21  Bruno Haible  <bruno@clisp.org>
15812
15813         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
15814
15815 2007-01-20  Jim Meyering  <jim@meyering.net>
15816
15817         * lib/userspec.c (parse_with_separator): If a user or group string
15818         starts with "+", skip the corresponding name-to-ID look-up, since
15819         such a look-up must fail: user and group names may not include "+".
15820
15821 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15822
15823         * lib/poll.c: Include sys/time.h and time.h unconditionally,
15824         since we now assume the sys_time module.
15825         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
15826         check for sys/time.h; no longer needed.
15827         * modules/poll (Depends-on): Depend on sys_time.
15828
15829 2007-01-18  Bruno Haible  <bruno@clisp.org>
15830
15831         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
15832         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15833
15834         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
15835         gettimeofday.
15836
15837         * tests/test-gettimeofday.c: Include <time.h>.
15838         (dummy): Remove variable.
15839
15840         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
15841         gl_HEADER_SYS_TIME_H.
15842         (gl_HEADER_SYS_TIME_H): New macro.
15843
15844         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
15845         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15846         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15847         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
15848         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15849         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
15850         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
15851         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15852         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
15853         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
15854         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15855
15856         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
15857         last change; it caused a compilation error when cross-compiling to
15858         Cygwin.
15859
15860 2007-01-18  Jim Meyering  <jim@meyering.net>
15861
15862         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
15863         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
15864         than the race-prone "test -d sys || mkdir sys".
15865         (configure.ac): Use AC_PROG_MKDIR_P.
15866         * modules/sys_select: Likewise.
15867         * modules/sys_socket: Likewise.
15868         * modules/sys_time: Likewise.
15869
15870 2007-01-18  Eric Blake  <ebb9@byu.net>
15871
15872         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
15873         replace gettimeofday.
15874         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
15875         name, to avoid infinite recursion.
15876
15877 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
15878
15879         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
15880         module sys_time.
15881         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
15882         assume timespec.h defines struct timeval.
15883         * lib/settime.c: Likewise.
15884         * lib/utimens.c: Likewise.
15885         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
15886         since we now assume the gettimeofday module.
15887         * lib/tempname.c (__gen_tempname): Likewise.
15888         * lib/gettimeofday.h: Remove.
15889         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
15890         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
15891         Include <time.h>, for 'time()'.
15892         (localtime_buffer_addr): Also use this workaround if
15893         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
15894         to simplify the uses.  All uses changed.
15895         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
15896         that #undef is inside {}, and 'const' follows type name consistently.
15897         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
15898         (gettimeofday): Do not use the maximum possible value for
15899         tv->tv_usec, since that might break usages other than ls.c.
15900         Instead, we'll leave ls.c alone.  This undoes today's patch
15901         by Bruno.  Add a compile-time warning for 1s-clock resolution;
15902         we've never observed the problem but might as well keep the
15903         canary.
15904         * lib/nanosleep.c: Include timespec.h first, for interface check.
15905         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
15906         now assume the sys_time module.
15907         * lib/tempname.c: Likewise.
15908         * lib/timespec.h: Likewise.
15909         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
15910         needed.
15911         * lib/strftime.c: Likewise.
15912         * lib/timespec.h: Likewise.
15913         * lib/posixtm.c: Include posixtm.h first, for interface check.
15914         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
15915         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
15916         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
15917         * lib/sys_time_.h: New file.
15918         * lib/timespec.h (struct timespec): Use long int, not long.
15919         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
15920         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
15921         Remove obsolescent call to AC_HEADER_TIME.
15922         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15924         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15925         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
15926         Likewise.
15927         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
15928         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
15929         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
15930         into the sys_time module.  Check for gettimeofday just once.
15931         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
15932         for gettimeofday signature to just check the signature.  Merely
15933         compile it, since linking doesn't test signature.  Improve test for
15934         whether gettimeofday.o is actually needed.
15935         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
15936         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
15937         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
15938         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15939         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
15940         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
15941         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
15942         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
15943         than worrying about sys/time.h.
15944         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15945         Don't bother worrying about TIME_WITH_SYS_TIME.
15946         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
15947         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
15948         * m4/sys_time_h.m4: New file.
15949         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
15950         Don't include sys/time.h.  Return from main rather than exiting.
15951         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
15952         all uses changed.
15953         * modules/gethrxtime (Depends-on): Add sys_time.
15954         * modules/gettime (Depends-on): Likewise.
15955         * modules/gettimeofday (Depends-on): Likewise.
15956         * modules/nanosleep (Depends-on): Likewise.
15957         * modules/settime (Depends-on): Likewise.
15958         * modules/tempname (Depends-on): Likewise.
15959         * modules/utimens (Depends-on): Likewise.
15960         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
15961         (Include:) Change back to <sys/time.h>.
15962         (Maintainer:) Add self.
15963         * modules/sys_time: New file.
15964         * modules/tempname (Depends-on): Add gettimeofday.
15965         * tests/test-gettimeofday.c: Include <sys/time.h>
15966         rather than gettimeofday.h.
15967
15968 2007-01-17  Bruno Haible  <bruno@clisp.org>
15969
15970         * gnulib-tool (func_get_license): Revert last patch. Instead, let
15971         the license default to GPL.
15972         (func_create_testdir): Don't complain if a module is LGPL and its
15973         tests module depends on GPLed modules.
15974
15975 2007-01-17  Bruno Haible  <bruno@clisp.org>
15976
15977         * lib/gettimeofday.c (gettimeofday): Add code for the case
15978         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
15979         maximum possible value for tv->tv_usec, rather than the minimum one.
15980
15981 2005-10-08  Martin Lambers  <marlam@marlam.de>
15982 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15983 2007-01-16  Bruno Haible  <bruno@clisp.org>
15984
15985         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
15986         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
15987         gl_FUNC_GETTIMEOFDAY.
15988         (Include): Add gettimeofday.h.
15989         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
15990         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
15991         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
15992         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
15993         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
15994         * lib/gettimeofday.h: New file.
15995         * lib/gettimeofday.c: Include <sys/timeb.h>.
15996         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
15997         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15998         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
15999         fall back on time().
16000
16001         * tests/test-gettimeofday.c: New file.
16002         * modules/gettimeofday-tests: New file.
16003
16004 2007-01-16  Eric Blake  <ebb9@byu.net>
16005
16006         * modules/fnmatch (Depends-on): Depend on wchar.
16007         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
16008         * m4/fnmatch.m4: Likewise.
16009         * modules/mbchar (Makefile.am): Assume <wchar.h>.
16010         * m4/mbchar.m4: Likewise.
16011         * modules/mbswidth (Depends-on): Depend on wchar.
16012         * lib/mbswidth.c: Assume <wchar.h>.
16013         * m4/mbswidth.m4: Likewise.
16014         * modules/quotearg (Depends-on): Depend on wchar.
16015         * lib/quotearg.c: Assume <wchar.h>.
16016         * m4/quotearg.m4: Likewise.
16017         * modules/regex (Depends-on): Depend on wchar.
16018         * lib/regex_internal.h: Assume <wchar.h>.
16019         * m4/regex.m4: Likewise.
16020         * modules/stdint (Depends-on): Depend on wchar.
16021         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
16022         * m4/stdint.m4: Likewise.
16023         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
16024         * modules/strftime (Depends-on): Depend on wchar.
16025         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
16026         * modules/strtol (Depends-on): Depend on wchar.
16027         * lib/strtol.c: Assume <wchar.h>.
16028         * modules/wcwidth (Depends-on): Depend on wchar.
16029         * lib/wcwidth.h: Assume <wchar.h>.
16030         * m4/wcwidth.m4: Likewise.
16031
16032 2007-01-16  Bruno Haible  <bruno@clisp.org>
16033
16034         * modules/csharpexec-script: New, created from...
16035         * modules/csharpexec: ... this.
16036
16037 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
16038
16039         * modules/javaexec-script: New, created from...
16040         * modules/javaexec: ... this.
16041
16042 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16043
16044         * modules/poll (Dependencies): Add sys_select.
16045
16046 2007-01-15  Jim Meyering  <jim@meyering.net>
16047
16048         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
16049         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
16050         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
16051         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
16052
16053 2007-01-15  Bruno Haible  <bruno@clisp.org>
16054
16055         * modules/striconveh: New file.
16056         * lib/striconveh.h: New file.
16057         * lib/striconveh.c: New file.
16058         * MODULES.html.sh (Internationalization functions): Add striconveh.
16059
16060         * modules/striconveh-tests: New file.
16061         * tests/test-striconveh.c: New file.
16062
16063 2007-01-15  Bruno Haible  <bruno@clisp.org>
16064
16065         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
16066         not from GNU libiconv or GNU libc.
16067
16068 2007-01-15  Bruno Haible  <bruno@clisp.org>
16069
16070         * doc/gnulib-intro.texi (Copyright): Explain the different license
16071         terms for module descriptions, autoconf macros, tests, documentation.
16072
16073 2007-01-14  Bruno Haible  <bruno@clisp.org>
16074
16075         * modules/striconv-tests: New file.
16076         * tests/test-striconv.c: New file.
16077
16078 2007-01-14  Bruno Haible  <bruno@clisp.org>
16079
16080         * modules/iconv-tests: New file.
16081         * tests/test-iconv.c: New file.
16082
16083 2007-01-14  Bruno Haible  <bruno@clisp.org>
16084
16085         * gnulib-tool (func_get_license): For test modules, use the license of
16086         the main module.
16087
16088 2007-01-14  Bruno Haible  <bruno@clisp.org>
16089
16090         * modules/iconv (Include): Clarify that <iconv.h> can only be included
16091         if iconv is found to exist.
16092
16093 2007-01-14  Bruno Haible  <bruno@clisp.org>
16094
16095         * modules/c-ctype-tests: New file.
16096         * tests/test-c-ctype.c: New file.
16097
16098 2007-01-14  Bruno Haible  <bruno@clisp.org>
16099
16100         * modules/binary-io-tests: New file.
16101         * tests/test-binary-io.sh: New file.
16102         * tests/test-binary-io.c: New file.
16103
16104 2007-01-14  Bruno Haible  <bruno@clisp.org>
16105
16106         * modules/array-oset-tests: New file.
16107         * tests/test-array_oset.c: New file.
16108
16109 2007-01-14  Bruno Haible  <bruno@clisp.org>
16110
16111         * modules/array-list-tests: New file.
16112         * tests/test-array_list.c: New file.
16113
16114 2007-01-14  Bruno Haible  <bruno@clisp.org>
16115
16116         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
16117         and make.
16118         Reported by Simon Josefsson in
16119         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
16120
16121 2007-01-14  Bruno Haible  <bruno@clisp.org>
16122
16123         * modules/allocsa-tests: New file.
16124         * tests/test-allocsa.c: New file.
16125
16126 2007-01-14  Bruno Haible  <bruno@clisp.org>
16127
16128         * modules/fchdir (Depends-on): Add absolute-header.
16129         * modules/unistd (Depends-on): Likewise.
16130
16131 2006-12-30  Bruno Haible  <bruno@clisp.org>
16132
16133         * modules/fchdir: New file.
16134         * modules/unistd (Files): Add lib/unistd_.h.
16135         (Makefile.am): Generate unistd.h from unistd_.h.
16136         * lib/fchdir.c: New file.
16137         * lib/dirent_.h: New file.
16138         * lib/unistd_.h: New file.
16139         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
16140         * m4/fchdir.m4: New file.
16141         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
16142         (gl_HEADER_UNISTD): Invoke it.
16143         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
16144         function.
16145         * lib/backupfile.c (opendir, closedir): Undefine.
16146         * lib/chown.c (open, close): Undefine.
16147         * lib/clean-temp.c (open, close): Undefine.
16148         * lib/copy-file.c (open, close): Undefine.
16149         * lib/execute.c (open, close): Undefine.
16150         * lib/fsusage.c (open, close): Undefine.
16151         * lib/gc-gnulib.c (open, close): Undefine.
16152         * lib/getcwd.c (opendir, closedir): Undefine.
16153         * lib/glob.c (opendir, closedir): Undefine.
16154         * lib/javacomp.c (open, close): Undefine.
16155         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
16156         * lib/openat-proc.c (open, close): Undefine.
16157         * lib/pagealign_alloc.c (open, close): Undefine.
16158         * lib/pipe.c (open, close): Undefine.
16159         * lib/progreloc.c (open, close): Undefine.
16160         * lib/savedir.c (opendir, closedir): Undefine.
16161         * lib/utime.c (open, close): Undefine.
16162         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
16163
16164 2007-01-10  Bruno Haible  <bruno@clisp.org>
16165
16166         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
16167
16168 2007-01-12  Eric Blake  <ebb9@byu.net>
16169
16170         Provide a robust <wchar.h>.  Further simplifications are now
16171         possible in other modules, but not included here.
16172         * modules/wchar: New module.
16173         * m4/wchar.m4: New file.
16174         * lib/wchar_.h: Likewise.
16175         * modules/mbchar (Depends-on): Depend on wchar, as the first use
16176         of the new module.
16177         * MODULES.html.sh (Extended multibyte and wide character utilities):
16178         New section.
16179
16180 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
16181
16182         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
16183         to a reasonable default for memory allocation.
16184         (xreadlink): Don't allocate a huge buffer, to work around a buggy
16185         file system that reports garbage st_size values for symlinks.
16186         Problem reported by Liyang Hu.
16187
16188 2007-01-11  Simon Josefsson  <simon@josefsson.org>
16189
16190         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
16191         Emacs .#* auto-save files).
16192
16193 2007-01-11  Bruno Haible  <bruno@clisp.org>
16194
16195         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
16196         directory.
16197
16198 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16199
16200         Use @...@ consistently in lib/wctype_.h.
16201         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
16202         on it being set to 1 or 0.
16203         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
16204         go back to AC_SUBSTing it.
16205         * modules/wctype (Makefile.am): Undo previous change.
16206
16207 2007-01-10  Eric Blake  <ebb9@byu.net>
16208
16209         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
16210         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
16211         * modules/wctype (Makefile.am): Likewise.
16212         Reported by Chris McGuire.
16213
16214 2007-01-10  Jim Meyering  <jim@meyering.net>
16215
16216         fts.c: a small readability/maintainability improvement
16217         * lib/fts.c (fts_read): Make this code slightly more readable and
16218         maintainable by hoisting the "sp->fts_cur = p" assignments to
16219         immediately follow the statements that set P.  Derived from
16220         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
16221
16222 2007-01-10  Eric Blake  <ebb9@byu.net>
16223
16224         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
16225         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
16226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16227         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16228         Reported by Chris McGuire.
16229
16230 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16231
16232         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
16233         in sed script.
16234
16235 2007-01-09  Bruno Haible  <bruno@clisp.org>
16236
16237         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
16238         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
16239         variables.
16240         (func_module): Use them.
16241
16242 2007-01-09  Bruno Haible  <bruno@clisp.org>
16243
16244         * modules/unistr/base: New file.
16245         * lib/unistr.h: New file.
16246
16247         * modules/unistr/u8-to-u16: New file.
16248         * lib/unistr/u8-to-u16.c: New file.
16249
16250         * modules/unistr/u8-to-u32: New file.
16251         * lib/unistr/u8-to-u32.c: New file.
16252
16253         * modules/unistr/u16-to-u8: New file.
16254         * lib/unistr/u16-to-u8.c: New file.
16255
16256         * modules/unistr/u16-to-u32: New file.
16257         * lib/unistr/u16-to-u32.c: New file.
16258
16259         * modules/unistr/u32-to-u8: New file.
16260         * lib/unistr/u32-to-u8.c: New file.
16261
16262         * modules/unistr/u32-to-u16: New file.
16263         * lib/unistr/u32-to-u16.c: New file.
16264
16265         * modules/unistr/u8-check: New file.
16266         * modules/unistr/u16-check: New file.
16267         * modules/unistr/u32-check: New file.
16268         * lib/unistr/u8-check.c: New file.
16269         * lib/unistr/u16-check.c: New file.
16270         * lib/unistr/u32-check.c: New file.
16271
16272         * modules/unistr/u8-chr: New file.
16273         * modules/unistr/u16-chr: New file.
16274         * modules/unistr/u32-chr: New file.
16275         * lib/unistr/u8-chr.c: New file.
16276         * lib/unistr/u16-chr.c: New file.
16277         * lib/unistr/u32-chr.c: New file.
16278
16279         * modules/unistr/u8-cmp: New file.
16280         * modules/unistr/u16-cmp: New file.
16281         * modules/unistr/u32-cmp: New file.
16282         * lib/unistr/u8-cmp.c: New file.
16283         * lib/unistr/u16-cmp.c: New file.
16284         * lib/unistr/u32-cmp.c: New file.
16285
16286         * modules/unistr/u8-cpy: New file.
16287         * modules/unistr/u16-cpy: New file.
16288         * modules/unistr/u32-cpy: New file.
16289         * lib/unistr/u8-cpy.c: New file.
16290         * lib/unistr/u16-cpy.c: New file.
16291         * lib/unistr/u32-cpy.c: New file.
16292         * lib/unistr/u-cpy.h: New file.
16293
16294         * modules/unistr/u8-cpy-alloc: New file.
16295         * modules/unistr/u16-cpy-alloc: New file.
16296         * modules/unistr/u32-cpy-alloc: New file.
16297         * lib/unistr/u8-cpy-alloc.c: New file.
16298         * lib/unistr/u16-cpy-alloc.c: New file.
16299         * lib/unistr/u32-cpy-alloc.c: New file.
16300         * lib/unistr/u-cpy-alloc.h: New file.
16301
16302         * modules/unistr/u8-endswith: New file.
16303         * modules/unistr/u16-endswith: New file.
16304         * modules/unistr/u32-endswith: New file.
16305         * lib/unistr/u8-endswith.c: New file.
16306         * lib/unistr/u16-endswith.c: New file.
16307         * lib/unistr/u32-endswith.c: New file.
16308         * lib/unistr/u-endswith.h: New file.
16309
16310         * modules/unistr/u8-mblen: New file.
16311         * modules/unistr/u16-mblen: New file.
16312         * modules/unistr/u32-mblen: New file.
16313         * lib/unistr/u8-mblen.c: New file.
16314         * lib/unistr/u16-mblen.c: New file.
16315         * lib/unistr/u32-mblen.c: New file.
16316
16317         * modules/unistr/u8-mbtouc: New file.
16318         * modules/unistr/u16-mbtouc: New file.
16319         * modules/unistr/u32-mbtouc: New file.
16320         * lib/unistr/u8-mbtouc.c: New file.
16321         * lib/unistr/u16-mbtouc.c: New file.
16322         * lib/unistr/u32-mbtouc.c: New file.
16323
16324         * modules/unistr/u8-mbtouc-safe: New file.
16325         * modules/unistr/u16-mbtouc-safe: New file.
16326         * modules/unistr/u32-mbtouc-safe: New file.
16327         * lib/unistr/u8-mbtouc-safe.c: New file.
16328         * lib/unistr/u16-mbtouc-safe.c: New file.
16329         * lib/unistr/u32-mbtouc-safe.c: New file.
16330
16331         * modules/unistr/u8-move: New file.
16332         * modules/unistr/u16-move: New file.
16333         * modules/unistr/u32-move: New file.
16334         * lib/unistr/u8-move.c: New file.
16335         * lib/unistr/u16-move.c: New file.
16336         * lib/unistr/u32-move.c: New file.
16337         * lib/unistr/u-move.h: New file.
16338
16339         * modules/unistr/u8-next: New file.
16340         * modules/unistr/u16-next: New file.
16341         * modules/unistr/u32-next: New file.
16342         * lib/unistr/u8-next.c: New file.
16343         * lib/unistr/u16-next.c: New file.
16344         * lib/unistr/u32-next.c: New file.
16345
16346         * modules/unistr/u8-prev: New file.
16347         * modules/unistr/u16-prev: New file.
16348         * modules/unistr/u32-prev: New file.
16349         * lib/unistr/u8-prev.c: New file.
16350         * lib/unistr/u16-prev.c: New file.
16351         * lib/unistr/u32-prev.c: New file.
16352
16353         * modules/unistr/u8-set: New file.
16354         * modules/unistr/u16-set: New file.
16355         * modules/unistr/u32-set: New file.
16356         * lib/unistr/u8-set.c: New file.
16357         * lib/unistr/u16-set.c: New file.
16358         * lib/unistr/u32-set.c: New file.
16359         * lib/unistr/u-set.h: New file.
16360
16361         * modules/unistr/u8-startswith: New file.
16362         * modules/unistr/u16-startswith: New file.
16363         * modules/unistr/u32-startswith: New file.
16364         * lib/unistr/u8-startswith.c: New file.
16365         * lib/unistr/u16-startswith.c: New file.
16366         * lib/unistr/u32-startswith.c: New file.
16367         * lib/unistr/u-startswith.h: New file.
16368
16369         * modules/unistr/u8-stpcpy: New file.
16370         * modules/unistr/u16-stpcpy: New file.
16371         * modules/unistr/u32-stpcpy: New file.
16372         * lib/unistr/u8-stpcpy.c: New file.
16373         * lib/unistr/u16-stpcpy.c: New file.
16374         * lib/unistr/u32-stpcpy.c: New file.
16375         * lib/unistr/u-stpcpy.h: New file.
16376
16377         * modules/unistr/u8-stpncpy: New file.
16378         * modules/unistr/u16-stpncpy: New file.
16379         * modules/unistr/u32-stpncpy: New file.
16380         * lib/unistr/u8-stpncpy.c: New file.
16381         * lib/unistr/u16-stpncpy.c: New file.
16382         * lib/unistr/u32-stpncpy.c: New file.
16383         * lib/unistr/u-stpncpy.h: New file.
16384
16385         * modules/unistr/u8-strcat: New file.
16386         * modules/unistr/u16-strcat: New file.
16387         * modules/unistr/u32-strcat: New file.
16388         * lib/unistr/u8-strcat.c: New file.
16389         * lib/unistr/u16-strcat.c: New file.
16390         * lib/unistr/u32-strcat.c: New file.
16391         * lib/unistr/u-strcat.h: New file.
16392
16393         * modules/unistr/u8-strchr: New file.
16394         * modules/unistr/u16-strchr: New file.
16395         * modules/unistr/u32-strchr: New file.
16396         * lib/unistr/u8-strchr.c: New file.
16397         * lib/unistr/u16-strchr.c: New file.
16398         * lib/unistr/u32-strchr.c: New file.
16399
16400         * modules/unistr/u8-strcmp: New file.
16401         * modules/unistr/u16-strcmp: New file.
16402         * modules/unistr/u32-strcmp: New file.
16403         * lib/unistr/u8-strcmp.c: New file.
16404         * lib/unistr/u16-strcmp.c: New file.
16405         * lib/unistr/u32-strcmp.c: New file.
16406
16407         * modules/unistr/u8-strcpy: New file.
16408         * modules/unistr/u16-strcpy: New file.
16409         * modules/unistr/u32-strcpy: New file.
16410         * lib/unistr/u8-strcpy.c: New file.
16411         * lib/unistr/u16-strcpy.c: New file.
16412         * lib/unistr/u32-strcpy.c: New file.
16413         * lib/unistr/u-strcpy.h: New file.
16414
16415         * modules/unistr/u8-strcspn: New file.
16416         * modules/unistr/u16-strcspn: New file.
16417         * modules/unistr/u32-strcspn: New file.
16418         * lib/unistr/u8-strcspn.c: New file.
16419         * lib/unistr/u16-strcspn.c: New file.
16420         * lib/unistr/u32-strcspn.c: New file.
16421         * lib/unistr/u-strcspn.h: New file.
16422
16423         * modules/unistr/u8-strdup: New file.
16424         * modules/unistr/u16-strdup: New file.
16425         * modules/unistr/u32-strdup: New file.
16426         * lib/unistr/u8-strdup.c: New file.
16427         * lib/unistr/u16-strdup.c: New file.
16428         * lib/unistr/u32-strdup.c: New file.
16429         * lib/unistr/u-strdup.h: New file.
16430
16431         * modules/unistr/u8-strlen: New file.
16432         * modules/unistr/u16-strlen: New file.
16433         * modules/unistr/u32-strlen: New file.
16434         * lib/unistr/u8-strlen.c: New file.
16435         * lib/unistr/u16-strlen.c: New file.
16436         * lib/unistr/u32-strlen.c: New file.
16437         * lib/unistr/u-strlen.h: New file.
16438
16439         * modules/unistr/u8-strmblen: New file.
16440         * modules/unistr/u16-strmblen: New file.
16441         * modules/unistr/u32-strmblen: New file.
16442         * lib/unistr/u8-strmblen.c: New file.
16443         * lib/unistr/u16-strmblen.c: New file.
16444         * lib/unistr/u32-strmblen.c: New file.
16445
16446         * modules/unistr/u8-strmbtouc: New file.
16447         * modules/unistr/u16-strmbtouc: New file.
16448         * modules/unistr/u32-strmbtouc: New file.
16449         * lib/unistr/u8-strmbtouc.c: New file.
16450         * lib/unistr/u16-strmbtouc.c: New file.
16451         * lib/unistr/u32-strmbtouc.c: New file.
16452
16453         * modules/unistr/u8-strncat: New file.
16454         * modules/unistr/u16-strncat: New file.
16455         * modules/unistr/u32-strncat: New file.
16456         * lib/unistr/u8-strncat.c: New file.
16457         * lib/unistr/u16-strncat.c: New file.
16458         * lib/unistr/u32-strncat.c: New file.
16459         * lib/unistr/u-strncat.h: New file.
16460
16461         * modules/unistr/u8-strncmp: New file.
16462         * modules/unistr/u16-strncmp: New file.
16463         * modules/unistr/u32-strncmp: New file.
16464         * lib/unistr/u8-strncmp.c: New file.
16465         * lib/unistr/u16-strncmp.c: New file.
16466         * lib/unistr/u32-strncmp.c: New file.
16467
16468         * modules/unistr/u8-strncpy: New file.
16469         * modules/unistr/u16-strncpy: New file.
16470         * modules/unistr/u32-strncpy: New file.
16471         * lib/unistr/u8-strncpy.c: New file.
16472         * lib/unistr/u16-strncpy.c: New file.
16473         * lib/unistr/u32-strncpy.c: New file.
16474         * lib/unistr/u-strncpy.h: New file.
16475
16476         * modules/unistr/u8-strnlen: New file.
16477         * modules/unistr/u16-strnlen: New file.
16478         * modules/unistr/u32-strnlen: New file.
16479         * lib/unistr/u8-strnlen.c: New file.
16480         * lib/unistr/u16-strnlen.c: New file.
16481         * lib/unistr/u32-strnlen.c: New file.
16482         * lib/unistr/u-strnlen.h: New file.
16483
16484         * modules/unistr/u8-strpbrk: New file.
16485         * modules/unistr/u16-strpbrk: New file.
16486         * modules/unistr/u32-strpbrk: New file.
16487         * lib/unistr/u8-strpbrk.c: New file.
16488         * lib/unistr/u16-strpbrk.c: New file.
16489         * lib/unistr/u32-strpbrk.c: New file.
16490         * lib/unistr/u-strpbrk.h: New file.
16491
16492         * modules/unistr/u8-strrchr: New file.
16493         * modules/unistr/u16-strrchr: New file.
16494         * modules/unistr/u32-strrchr: New file.
16495         * lib/unistr/u8-strrchr.c: New file.
16496         * lib/unistr/u16-strrchr.c: New file.
16497         * lib/unistr/u32-strrchr.c: New file.
16498
16499         * modules/unistr/u8-strspn: New file.
16500         * modules/unistr/u16-strspn: New file.
16501         * modules/unistr/u32-strspn: New file.
16502         * lib/unistr/u8-strspn.c: New file.
16503         * lib/unistr/u16-strspn.c: New file.
16504         * lib/unistr/u32-strspn.c: New file.
16505         * lib/unistr/u-strspn.h: New file.
16506
16507         * modules/unistr/u8-strstr: New file.
16508         * modules/unistr/u16-strstr: New file.
16509         * modules/unistr/u32-strstr: New file.
16510         * lib/unistr/u8-strstr.c: New file.
16511         * lib/unistr/u16-strstr.c: New file.
16512         * lib/unistr/u32-strstr.c: New file.
16513         * lib/unistr/u-strstr.h: New file.
16514
16515         * modules/unistr/u8-strtok: New file.
16516         * modules/unistr/u16-strtok: New file.
16517         * modules/unistr/u32-strtok: New file.
16518         * lib/unistr/u8-strtok.c: New file.
16519         * lib/unistr/u16-strtok.c: New file.
16520         * lib/unistr/u32-strtok.c: New file.
16521         * lib/unistr/u-strtok.h: New file.
16522
16523         * modules/unistr/u8-uctomb: New file.
16524         * modules/unistr/u16-uctomb: New file.
16525         * modules/unistr/u32-uctomb: New file.
16526         * lib/unistr/u8-uctomb.c: New file.
16527         * lib/unistr/u16-uctomb.c: New file.
16528         * lib/unistr/u32-uctomb.c: New file.
16529
16530         * MODULES.html.sh (Unicode string functions): Add the new modules.
16531
16532 2007-01-08  Bruno Haible  <bruno@clisp.org>
16533
16534         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
16535         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
16536         subdirectories.
16537
16538 2007-01-08  Karl Berry  <karl@gnu.org>
16539
16540         * doc/error.texi: mention that main() fns must set program_name
16541         when progname is used.
16542
16543 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
16544
16545         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
16546         WCTYPE_H is empty, for the benefit of builds from non-distclean
16547         directories.  Problem reported by Eric Blake in
16548         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
16549
16550 2007-01-08  Bruno Haible  <bruno@clisp.org>
16551
16552         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
16553         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
16554         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
16555         PROVIDE_CANONICALIZE_FILENAME_MODE.
16556         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
16557
16558 2007-01-08  Bruno Haible  <bruno@clisp.org>
16559
16560         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
16561         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
16562         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
16563         * lib/fts.c: Likewise.
16564         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
16565
16566 2006-12-25  Bruno Haible  <bruno@clisp.org>
16567
16568         * modules/utf8-ucs4-safe: New file.
16569         * lib/utf8-ucs4-safe.h: New file.
16570         * lib/unistr/utf8-ucs4-safe.c: New file.
16571
16572         * modules/utf16-ucs4-safe: New file.
16573         * lib/utf16-ucs4-safe.h: New file.
16574         * lib/unistr/utf16-ucs4-safe.c: New file.
16575
16576         * MODULES.html.sh (Unicode string functions): Add the new modules.
16577
16578 2007-01-08  Bruno Haible  <bruno@clisp.org>
16579
16580         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
16581         (Depends-on): Add unitypes.
16582         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16583         (u8_mbtouc_aux): Move out to separate file.
16584         (u8_mbtouc): Use ucs4_t, uint8_t types.
16585         * lib/unistr/utf8-ucs4.c: New file.
16586
16587         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
16588         (Depends-on): Add unitypes.
16589         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16590         (u16_mbtouc_aux): Move out to separate file.
16591         (u16_mbtouc): Use ucs4_t, uint16_t types.
16592         * lib/unistr/utf16-ucs4.c: New file.
16593
16594         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
16595         (Depends-on): Add unitypes.
16596         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
16597         (u8_uctomb_aux): Move out to separate file.
16598         (u8_uctomb): Use ucs4_t, uint8_t types.
16599         * lib/unistr/ucs4-utf8.c: New file.
16600
16601         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
16602         (Depends-on): Add unitypes.
16603         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
16604         (u16_uctomb_aux): Move out to separate file.
16605         (u16_uctomb): Use ucs4_t, uint16_t types.
16606         * lib/unistr/ucs4-utf16.c: New file.
16607
16608 2006-12-25  Bruno Haible  <bruno@clisp.org>
16609
16610         * modules/unitypes: New file.
16611         * lib/unitypes.h: New file.
16612         * MODULES.html.sh (func_all_modules): New section "Unicode string
16613         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
16614         this section. Add unitypes.
16615
16616 2007-01-08  Bruno Haible  <bruno@clisp.org>
16617
16618         Avoid variable names that conflict with those from libtool.
16619         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
16620         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
16621         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
16622         library_names_spec to acl_library_names_spec, hardcode_* to
16623         acl_hardcode_*.
16624         Reported by Ralf Wildenhues.
16625
16626 2007-01-08  Bruno Haible  <bruno@clisp.org>
16627
16628         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
16629         definition.
16630         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
16631         definition.
16632         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
16633         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
16634         definition.
16635         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
16636         definition.
16637         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
16638         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
16639         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
16640         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
16641         definition.
16642         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
16643         definition.
16644         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
16645         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
16646         GC_USE_<algorithm>.
16647         * lib/gc-libgcrypt.c: Likewise.
16648         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
16649         * modules/gc-arctwo (configure.ac): Likewise.
16650         * modules/gc-des (configure.ac): Likewise.
16651         * modules/gc-hmac-md5 (configure.ac): Likewise.
16652         * modules/gc-hmac-sha1 (configure.ac): Likewise.
16653         * modules/gc-md2 (configure.ac): Likewise.
16654         * modules/gc-md4 (configure.ac): Likewise.
16655         * modules/gc-md5 (configure.ac): Likewise.
16656         * modules/gc-random (configure.ac): Likewise.
16657         * modules/gc-rijndael (configure.ac): Likewise.
16658         * modules/gc-sha1 (configure.ac): Likewise.
16659
16660 2007-01-08  Bruno Haible  <bruno@clisp.org>
16661
16662         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
16663         macro definition.
16664         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
16665         definition.
16666         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
16667         definition.
16668         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
16669         * modules/fcntl-safer (configure.ac): Likewise.
16670         * modules/fopen-safer (configure.ac): Likewise.
16671         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
16672         GNULIB_FWRITEERROR macro definition.
16673
16674 2007-01-08  Bruno Haible  <bruno@clisp.org>
16675
16676         * m4/gnulib-common.m4: New file.
16677         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
16678         (func_get_filelist): Add m4/gnulib-common.m4.
16679
16680 2007-01-08  Bruno Haible  <bruno@clisp.org>
16681
16682         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
16683         command.
16684
16685 2007-01-08  Jim Meyering  <jim@meyering.net>
16686
16687         Use a more robust test for a "can't happen" condition.
16688         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
16689         narrowed the st_size value.  Presuming the "can't happen" condition
16690         is true, that narrowing could conceivably convert an invalid st_size
16691         value into a valid one.  Instead, use a change based on Matthew
16692         Woehlke's original patch.
16693
16694         Slight readability improvement: use an assert-like macro
16695         in place of literal "abort ()" uses.
16696         * lib/fts.c (fts_assert): Define.
16697         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
16698         Use this macro instead of a bare 'abort'.
16699
16700 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16701
16702         Don't worry about using IRIX 5.3's wctype.h broken definitions;
16703         simply work around them.
16704         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
16705         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
16706         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
16707         declaring.
16708         Don't bother to define as macros, since the standard doesn't require it.
16709         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
16710         longer worry about IRIX 5.3.
16711         (HAVE_WCTYPE_CTMP_BUG): Remove.
16712
16713 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16714
16715         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
16716         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
16717         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
16718         Problems reported by Georg Schwarz for IRIX 5.3.
16719
16720         * gnulib-tool (autoconf_minversion): Take the maximum version number
16721         found, not the minimum.  Problem reported by James Youngman.
16722
16723 2007-01-03  Karl Berry  <karl@gnu.org>
16724
16725         * doc/error.texi: new file, explaining interaction with progname.
16726         * doc/gnulib.texi: include it.  Update copyright.
16727
16728 2007-01-03  Simon Josefsson  <simon@josefsson.org>
16729
16730         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
16731         AC_CANONICAL_HOST, to improve autobuild outputs.
16732
16733 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
16734             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16735
16736         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
16737         sockets, server sockets, and other file descriptors.  Count errors
16738         to compute the return value.  Reorder the code a bit to be easier
16739         to follow.  Don't set event bits that were not requested (except
16740         POLLERR and POLLHUP).
16741
16742 2007-01-01  Bruno Haible  <bruno@clisp.org>
16743
16744         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
16745
16746 2007-01-03  Jim Meyering  <jim@meyering.net>
16747
16748         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
16749
16750 2007-01-02  Bruno Haible  <bruno@clisp.org>
16751
16752         * modules/settime (Include): Require timespec.h.
16753         * modules/nanosleep (Include): Likewise.
16754
16755 2007-01-01  Bruno Haible  <bruno@clisp.org>
16756
16757         * gnulib-tool (func_emit_copyright_notice): Bump year.
16758         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
16759
16760 2007-01-01  Bruno Haible  <bruno@clisp.org>
16761
16762         Improve support for OpenBSD.
16763         * build-aux/config.rpath (libname_spec): Export.
16764         (library_names_spec): New variable. Export.
16765         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
16766         library_names_spec from the config.rpath output. Locate shared library
16767         through the name pattern in library_names_spec.
16768
16769 2007-01-01  Eric Blake  <ebb9@byu.net>
16770
16771         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
16772
16773 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16774
16775         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
16776         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
16777         assume the C locale, and avoid an "eval" that could cause trouble.
16778         Problem with SORT reported by Bob Proulx.
16779
16780         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
16781         Define.  Trivial patch from Henning Nielsen Lund, originally
16782         sent to bug-grep@gnu.org today.
16783
16784 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16785
16786         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
16787         struct stat.  Problem reported by Henning Nielsen Lund.
16788         * lib/acl.c: Include acl.h first, to check interface.  Don't
16789         bother to include sys/types.h and sys/stat.h again.
16790
16791 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16792
16793         Import the following change from libc; problem reported by
16794         Sven Verdoolaege.
16795
16796         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
16797
16798         [BZ #1373]
16799         * lib/argp.h: Remove __NTH for __argp_usage inline function.
16800
16801 2006-12-28  Jim Meyering  <jim@meyering.net>
16802
16803         * build-aux/announce-gen: Do not assume that the package
16804         builds any of tar.gz, tar.bz2, and .xdelta files.
16805         Suggestion from Simon Josefsson.
16806
16807 2006-12-28  Simon Josefsson  <simon@josefsson.org>
16808
16809         * modules/announce-gen: New file.
16810
16811 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16812
16813         * lib/mbchar.h: Just include <wctype.h>; the wctype module
16814         handles its gotchas now.
16815         * lib/mbswidth.c: Likewise.
16816         * lib/wcwidth.h: Likewise.
16817         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
16818         and iswcntrl; the wctype module does this stuff now.
16819         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16820         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16821         * modules/mbchar (Depends-on): Add wctype.
16822         * modules/mbswidth (Depends-on): Likewise.
16823         * modules/wcwidth (Depends-on): Likewise.
16824
16825 2006-12-27  Eric Blake  <ebb9@byu.net>
16826
16827         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
16828         module uses more than what <wctype.h> is required to provide.
16829
16830 2006-12-26  Eric Blake  <ebb9@byu.net>
16831
16832         * gnulib-tool (sed_extract_prog): Avoid space-tab.
16833
16834 2006-12-26  Eric Blake  <ebb9@byu.net>
16835
16836         * modules/absolute-header: New module.
16837         * modules/fcntl (Depends-on): Depend on it.
16838         * modules/inttypes (Depends-on): Likewise.
16839         * modules/stdint (Depends-on): Likewise.
16840         * modules/sys_stat (Depends-on): Likewise.
16841         * modules/wctype (Depends-on): Likewise.
16842         * MODULES.html.sh (Support for building libraries and
16843         executables): Document it.
16844
16845 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16846
16847         * gnulib-tool (SED): Remove, undoing previous change.
16848         The problem was that it broke coreutils on Solaris, because
16849         "sed --posix" leaked into a makefile.
16850         (sed): New alias, if 'alias' and GNU sed.
16851
16852 2006-12-24  Jim Meyering  <jim@meyering.net>
16853
16854         Work around an fchownat bug in glibc-2.4:
16855         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
16856         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
16857         in spite of the -P option.
16858         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
16859         New macros.
16860         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
16861         * modules/openat (Files): Add lib/fchownat.c.
16862         * lib/openat.c (fchownat): Don't define here.  Move to...
16863         * lib/fchownat.c: ...this new file.
16864
16865 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16866
16867         Fix bug reported by Bruno Haible in
16868         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
16869         where quotearg.c didn't compile on Mac OS X 10.2 because it
16870         lacks <wchar.h> and wint_t.
16871         * lib/wctype_.h (__wctype_wint_t): New type.
16872         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
16873         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
16874         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
16875         Arg is now of type __wctype_wint_t, not wint_t.
16876         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
16877         substitute HAVE_WINT_T.
16878         * modules/wctype (Files): Add m4/wint_t.m4.
16879         (wctype.h): Substitute HAVE_WINT_T.
16880
16881 2006-12-23  Bruno Haible  <bruno@clisp.org>
16882
16883         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
16884
16885 2006-12-23  Bruno Haible  <bruno@clisp.org>
16886
16887         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
16888         S_ISLNK.
16889         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
16890         mingw.
16891
16892 2006-12-22  Bruno Haible  <bruno@clisp.org>
16893
16894         * lib/copy-file.c: Include acl.h.
16895         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
16896         Close the file descriptors only after being done with copy_acl.
16897         * modules/copy-file (Depends-on): Add acl.
16898
16899 2006-12-22  Bruno Haible  <bruno@clisp.org>
16900
16901         * gnulib-tool (SED): New variable.
16902         Use $SED instead of sed everywhere.
16903
16904 2006-12-22  Bruno Haible  <bruno@clisp.org>
16905
16906         * modules/no-c++: New file.
16907         * m4/no-c++.m4: New file.
16908         * MODULES.html.sh (Support for building libraries and executables):
16909         Add no-c++.
16910
16911 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16912
16913         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
16914         Include <limits.h>, and use its INT_MAX to rewrite the
16915         j loop so that it does not overflow 'int'.  Problem reported by
16916         Ralf Wildenhues in
16917         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
16918         Play it safe by shifting left by 1 rather than multiplying by 2,
16919         as GCC is less likely to optimize this away when the value
16920         is signed (when it assumes overflow leads to undefined behavior).
16921         Also, don't assume time_t uses two's complement.
16922
16923 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16924
16925         * MODULES.html.sh: New module wctype.
16926         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
16927         * lib/fnmatch.c: Don't bother to include <wchar.h> before
16928         <wctype.h>, since the new wctype module should fix this.
16929         * lib/quotearg.c: Include <wctype.h> unconditionally, since
16930         the wctype module should arrange for it.
16931         * lib/regex_internal.h: Likewise.
16932         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
16933         since the wctype module should handle this now.
16934         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
16935         * modules/fnmatch (Depends-on): Add wctype.
16936         * modules/quotearg (Depends-on): Likewise.
16937         * modules/regex (Depends-on): Likewise.
16938
16939 2006-12-19  Bruno Haible  <bruno@clisp.org>
16940
16941         * lib/strdup.h [C++]: Wrap definitions in extern "C".
16942         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
16943
16944 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16945
16946         * modules/savewd (Depends-on): Fix dependency on fcntl.
16947
16948 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16949
16950         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
16951         conforms to C99, rather than relying on the user's environment
16952         setting of STDINT_H.
16953
16954 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16955         and Eric Blake  <ebb9@byu.net>
16956
16957         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
16958         This is more consistent with the other defines here.
16959         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
16960         Port to z/OS.  Problem reported by Paul Gilmartin.
16961         Change local vars to use gl_ prefix rather than ac_.
16962         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
16963         with other defines.
16964         * modules/double-slash-root: New module.
16965         * modules/dirname (Files): Remove m4/double-slash-root.m4.
16966         (Depends-on): Add double-slash-root.
16967         * MODULES.html.sh (File system functions): Mention new module.
16968
16969 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
16970
16971         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
16972         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
16973         This is for the benefit of gzip, which doesn't do i18n.
16974
16975 2006-12-12  Jim Meyering  <jim@meyering.net>
16976
16977         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
16978         Reported by Andreas Schwab <schwab@suse.de>.
16979
16980 2006-12-12  Bruno Haible  <bruno@clisp.org>
16981
16982         Merge these changes.
16983         2006-09-05  Bruno Haible  <bruno@clisp.org>
16984         * lib/iconvme.c (iconv_string): No need to save and restore errno when
16985         iconv_alloc succeeded.
16986         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
16987         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
16988         test for " && dest " at the end - dest is always != NULL there. Call
16989         iconv with 4xNULL arguments initially, to reset the state. Call iconv
16990         with 2xNULL arguments, also to flush the state storage. Handle the
16991         IRIX iconv behaviour. Realloc the final result, to throw away unused
16992         memory.
16993
16994 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
16995
16996         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
16997         and fchmodat unconditionally, since glibc 2.4 has them.
16998         Problem reported by Arkadiusz Miskiewicz.
16999
17000 2006-12-10  Bruno Haible  <bruno@clisp.org>
17001
17002         * gnulib-tool (func_import): Show the include files only for those
17003         modules that are copied and specified.
17004         Reported by Karl Berry.
17005
17006 2006-12-08  Jim Meyering  <jim@meyering.net>
17007
17008         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
17009         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
17010
17011         * build-aux/announce-gen: Add two new options, both optional:
17012         --bootstrap-tools=TOOL_LIST
17013               a comma-separated list of tools, e.g.,
17014               autoconf,automake,bison,gnulib
17015         --gnulib-snapshot-date=DATE
17016               if gnulib is in the bootstrap tool list,
17017               then report this as the snapshot date.
17018               If not specified, use the current date/time.
17019               If you specify a date here, be sure it's UTC.
17020
17021 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17022
17023         * tests/test-argp-2.sh: Fix test to match actual output.
17024         (func_compare): Fix sed script to be portable.
17025
17026 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
17027
17028         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
17029         workaround for this case.  It is not autoconfigured now; offhand
17030         it's hard to see how to autoconfigure it.
17031
17032 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
17033
17034         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
17035         a directory that is about to be chowned.  Such a directory's
17036         initial file permissions should permit the owner only and this
17037         should not be changed until after the chown, since the group and
17038         other bits would be incorrect if they granted permission before
17039         the chown.
17040
17041         Fix porting problem for iswctype reported by Georg Schwarz in:
17042         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
17043         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
17044         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
17045         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
17046         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17047
17048 2006-12-03  Jim Meyering  <jim@meyering.net>
17049
17050         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
17051         p->fts_statp may not yet be defined.
17052         (fts_read): Instead, set it in the caller, once p->fts_statp is
17053         sure to be defined, and corresponds to a top-level directory.
17054         This bug made du -x fail.  Here's the coreutils test case:
17055         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
17056         Reported by Mike Frysinger.
17057
17058 2006-12-01  Jim Meyering  <jim@meyering.net>
17059
17060         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
17061         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
17062         Reported by Simon Josefsson.
17063
17064 2006-11-30  Jim Meyering  <jim@meyering.net>
17065
17066         * m4/warning.m4: Use the all-permissive copyright notice
17067         recommended by RMS (rather than LGPL).
17068         * m4/vararrays.m4: Likewise.
17069         * m4/flexmember.m4: Likewise.
17070
17071 2006-11-29  Bruno Haible  <bruno@clisp.org>
17072
17073         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
17074         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
17075         using +=.
17076         Reported by Simon Josefsson <simon@josefsson.org>.
17077
17078 2006-11-28  James Youngman <jay@gnu.org>
17079
17080         * README: Advise users that they might find the bug-gnulib@gnu.org
17081         and autotools-announce@gnu.org mailing lists useful.
17082
17083 2006-11-28  Bruno Haible  <bruno@clisp.org>
17084
17085         * m4/ptrdiff_max.m4: Remove file.
17086
17087 2006-11-21  Bruno Haible  <bruno@clisp.org>
17088
17089         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
17090         _AC_COMPUTE_INT.
17091         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17092         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
17093         _AC_COMPUTE_INT.
17094         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17095         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
17096         _AC_COMPUTE_INT.
17097         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17098
17099 2006-11-28  Jim Meyering  <jim@meyering.net>
17100
17101         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
17102         warning from "gcc -Wshadow" about shadowing the builtin.
17103
17104 2006-11-27  Bruno Haible  <bruno@clisp.org>
17105
17106         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
17107         _AC_COMPUTE_INT.
17108         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17109
17110 2006-11-27  Bruno Haible  <bruno@clisp.org>
17111             Paul Eggert  <eggert@cs.ucla.edu>
17112
17113         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
17114
17115 2006-11-26  Bruno Haible  <bruno@clisp.org>
17116
17117         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
17118         noinst_LTLIBRARIES.
17119
17120 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
17121             Bruno Haible  <bruno@clisp.org>
17122
17123         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
17124         if compiling with "gcc -ansi".
17125
17126 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
17127
17128         Fix some incompatibilities with gcc -ansi -pedantic.
17129         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
17130         if compiling pedantically with GCC, unless it's C99 or later.
17131         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
17132         it mishandles gcc -ansi -pedantic as well.
17133         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
17134         if gcc -pedantic.
17135         * lib/regexec.c (check_node_accept_bytes): Don't use auto
17136         initializers for struct if -pedantic, unless it's C99 or later.
17137
17138 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
17139
17140         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
17141         Don't close an fd more than once. Identical atimes indicate
17142         success, not failure.
17143
17144 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
17145
17146         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
17147
17148 2006-11-23  Jim Meyering  <jim@meyering.net>
17149
17150         * build-aux/announce-gen: New file.  From coreutils.
17151
17152 2006-11-22  Jim Meyering  <jim@meyering.net>
17153
17154         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
17155         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
17156         (fts_read): Use a temporary to narrow the overused st_size member
17157         before using it in a switch statement.  Reported by Matthew Woehlke.
17158
17159         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
17160         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
17161
17162 2006-11-20  Bruno Haible  <bruno@clisp.org>
17163
17164         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
17165         changequote instead of pairs of brackets.
17166         Reported by Andreas Schwab <schwab@suse.de>.
17167
17168 2006-11-21  Jim Meyering  <jim@meyering.net>
17169
17170         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
17171         so as to remain compatible with older compilers.
17172         Patch from Michael Deutschmann.
17173
17174 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
17175
17176         * MODULES.html.sh (File system functions): Add openat.
17177
17178         * lib/openat.h (rpl_fstatat): New macro, if
17179         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
17180         (fstatat): Define to rpl_fstatat under the same conditions,
17181         unless COMPILING_FSTATAT.
17182         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
17183         seems to have the bug.
17184         * lib/fstatat.c: New file.
17185         * modules/openat (Files): Add it.
17186
17187 2006-11-20  Bruno Haible  <bruno@clisp.org>
17188
17189         * Makefile: New file.
17190
17191 2006-11-20  Jim Meyering  <jim@meyering.net>
17192
17193         The beginnings of syntax-related checks for gnulib.
17194         * lib/Makefile: New file.
17195         * lib/t-idcache: New script.  Ensure that the two halves of
17196         idcache.c stay in sync.
17197
17198         * lib/idcache.c: Adjust comments in user- and group- portions to
17199         be more accurate, and to be consistent with one another.
17200
17201 2006-11-20  Jim Meyering  <jim@meyering.net>
17202
17203         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
17204         continue using the flexible array member (thus, this module performs
17205         half as many malloc calls), with the addition that...
17206         (getgroup, getuser): Consistently record a non-match via an empty
17207         "name" string, and map an empty string match to a NULL return value.
17208         * modules/idcache (Depends-on): Re-add flexmember.
17209
17210         * lib/idcache.c (getuser): Remove all uses of the register keyword.
17211         (getuidbyname, getgroup, getgidbyname): Likewise.
17212
17213         Use cleaner syntax: NULL rather than 0.
17214         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
17215
17216 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
17217
17218         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
17219         It mishandled the case where the group was missing.
17220         Problem reported by Greg Schafer.
17221         * modules/idcache: Likewise.
17222
17223 2006-11-18  Jim Meyering  <jim@meyering.net>
17224
17225         * check-module (%exempt_header): Add exception for some
17226         conditionally-included headers.
17227
17228         * modules/i-ring (Depends-on): Add verify.
17229         (License): Change to LGPL.
17230
17231 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
17232
17233         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
17234         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
17235         and inttostr.h.  Use snprintf rather than uinttostr, so that
17236         LGPLed code doesn't depend on GPLed.
17237
17238 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17239
17240         * modules/inline (License): Change from GPL to LGPL.
17241
17242 2006-11-17  Jim Meyering  <jim@meyering.net>
17243
17244         * modules/d-type (License): Switch to LGPL.
17245
17246 2006-11-15  Bruno Haible  <bruno@clisp.org>
17247
17248         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
17249
17250 2006-11-15  Eric Blake  <ebb9@byu.net>
17251
17252         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
17253         the module dependency.
17254
17255 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17256             Bruno Haible  <bruno@clisp.org>
17257
17258         * gnulib-tool (func_create_testdir): Add license consistency check.
17259
17260 2006-11-15  Eric Blake  <ebb9@byu.net>
17261
17262         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
17263         random "(cached)" in configure output.
17264
17265 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17266
17267         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
17268         test for conforming inttypes.h is both announced and cached.
17269
17270         * MODULES.html.sh (seen_modules, seen_files): New variables.
17271         (func_module): Rewrite to use a few less gnulib-tool and sed
17272         invocations.  Avoid a couple of quadratic algorithms for ...
17273         (missed_modules, missed_files): ... these, with ...
17274         (func_append, func_tmpdir): ... these new functions, from
17275         gnulib-tool.  Analogously, install traps for cleanup.
17276
17277         * tests/test-gc.c (main): Remove unused variables.
17278         * tests/test-read-file.c: Include stdlib.h, for 'free'.
17279
17280 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
17281
17282         * modules/inttostr (License): Change to LGPL.
17283
17284 2006-11-14  Eric Blake  <ebb9@byu.net>
17285
17286         * modules/tempname (License): Change to LGPL.
17287
17288 2006-11-14  Eric Blake  <ebb9@byu.net>
17289
17290         * doc/functions.texi (Function Portability): *printf functions on
17291         Cygwin now understand all POSIX size specifiers.
17292
17293 2006-11-14  Bruno Haible  <bruno@clisp.org>
17294
17295         * modules/c-ctype (License): Change to LGPL.
17296
17297 2006-11-12  Bruno Haible  <bruno@clisp.org>
17298
17299         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17300         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
17301         for GNOME libraries, for which the include files are installed in
17302         subdirectories of $prefix/include.
17303
17304 2006-11-12  Bruno Haible  <bruno@clisp.org>
17305
17306         * m4/lib-link.m4: Require at least autoconf-2.54.
17307         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
17308         name to underscores for the --with option.
17309
17310 2006-11-13  Bruno Haible  <bruno@clisp.org>
17311
17312         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
17313         the tests directory.
17314         Reported by Ralf Wildenhues.
17315
17316 2006-11-13  Bruno Haible  <bruno@clisp.org>
17317
17318         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
17319         (func_emit_initmacro_end): Undo the override here.
17320         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
17321         Works around the famous automake error in coreutils.
17322
17323 2006-11-13  Eric Blake  <ebb9@byu.net>
17324
17325         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
17326         element, not its node.
17327
17328 2006-11-12  Bruno Haible  <bruno@clisp.org>
17329
17330         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
17331         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
17332
17333 2006-11-12  Bruno Haible  <bruno@clisp.org>
17334
17335         * gnulib-tool: New option --local-symlink.
17336         (func_usage): Document it.
17337         (lsymbolic): New variable.
17338         (func_import, func_create_testdir): If --symlink was not specified,
17339         test whether --local-symlink was specified and the file comes from
17340         the local_gnulib_dir.
17341
17342 2006-11-12  Bruno Haible  <bruno@clisp.org>
17343
17344         * gnulib-tool (func_ln): New function.
17345         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
17346
17347 2006-11-12  Bruno Haible  <bruno@clisp.org>
17348
17349         Finish support for source files in subdirectories.
17350         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
17351         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
17352         AUTOMAKE_OPTIONS.
17353         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
17354
17355 2006-11-12  Bruno Haible  <bruno@clisp.org>
17356
17357         * gnulib-tool (func_get_automake_snippet): Synthesize also an
17358         EXTRA_lib_SOURCES augmentation.
17359         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
17360
17361 2006-11-12  Jim Meyering  <jim@meyering.net>
17362
17363         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
17364         file descriptors.  This also averts a failure on systems with
17365         native openat support when a traversed directory lacks "x" access.
17366         * lib/fts_.h: Include "i-ring.h"
17367         (struct FTS) [fts_fd_ring]: New member.
17368         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
17369         (FCHDIR): Add parentheses.
17370         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
17371         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
17372         When descending, rather than simply closing the previous
17373         fts_cwd_fd value, push that file descriptor onto the ring.
17374         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
17375         (fts_open): Initialize the new fd_ring member.
17376         (fts_close): Clear the ring.
17377         (fts_safe_changedir): When possible, use our new fd_ring to skip
17378         the diropen and fstat and dev/ino comparison that would normally
17379         accompany a virtual `chdir ("..")'.
17380
17381         * modules/fts (Depends-on): Add i-ring.
17382         * modules/i-ring: New module.
17383         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
17384         * m4/i-ring.m4: New file.
17385
17386 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17387
17388         * gnulib-tool (func_create_testdir): Fix replacement of
17389         `build-aux' in configure.ac.  Run autotools in gltests
17390         subdirectory.
17391         (func_create_testdir, func_create_megatestdir, test): There is
17392         no need for '--force' in most autotool invocations in a new
17393         tree.  Actually fail the whole test if any of the tools, or the
17394         configure or make stages fail.
17395
17396         Sync from Automake.
17397         * build-aux/gnupload: Revert last change.  Add pointer to upload
17398         instructions of the GNU Maintenance Instructions.
17399         Suggestion by Karl Berry.
17400
17401 2006-11-10  Jim Meyering  <jim@meyering.net>
17402
17403         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
17404
17405 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
17406
17407         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
17408         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
17409         (bind_textdomain_codeset) [! ENABLE_NLS]:
17410         Evaluate all the arguments.  That way, callers get compatible behavior
17411         if the arguments have side effects.  Also, it avoids some GCC
17412         diagnostics in some cases; Joel E. Denny reported problems when Bison
17413         was configured with --enable-gcc-warnigs.
17414
17415 2006-11-10  Jim Meyering  <jim@meyering.net>
17416
17417         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
17418         relevant options in CFLAGS (like -O, -fno-inline) are taken into
17419         account.
17420
17421 2006-11-10  Jim Meyering  <jim@meyering.net>
17422
17423         * modules/inline: New file/module.
17424         * modules/xalloc (Files): Remove m4/inline.m4.
17425         (Depends-on): Add inline, instead.
17426         * modules/oset: Likewise.
17427         * modules/list: Likewise.
17428
17429 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
17430
17431         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
17432         Problem reported by Matthew Woehlke.
17433
17434 2006-11-09  Bruno Haible  <bruno@clisp.org>
17435
17436         * lib/tempname.c (gen_tempname): Remove variant that invokes
17437         __gen_tempname.
17438         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
17439         __gen_tempname.
17440
17441 2006-11-08  Bruno Haible  <bruno@clisp.org>
17442
17443         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
17444         to 'yes' instead of 'cross-compiling'.
17445
17446 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
17447
17448         * lib/quotearg.h (quotearg_free): New decl.
17449         * lib/quotearg.c (quotearg_free): New function.
17450         (slot0, nslots, slotvec0, slotvec):
17451         Now file-scope so that quotearg_free can get at them.
17452
17453 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17454
17455         Sync from Automake.
17456         * build-aux/gnupload: Add missing 'gnu' to example URL.
17457         Report by Karl Berry.
17458
17459 2006-11-08  Bruno Haible  <bruno@clisp.org>
17460
17461         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
17462         Suggested by Paul Eggert.
17463
17464 2006-11-08  Jim Meyering  <jim@meyering.net>
17465
17466         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
17467         It's already included if !_LIBC.
17468         (fts_safe_changedir): Add a comment.
17469
17470 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17471
17472         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
17473         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
17474         Matthew Woehlke.
17475
17476         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
17477         definitions up, to avoid colliding with change below.
17478         (static_inline) [HAVE_INLINE]: New macro.
17479         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
17480         Provide extern decls when !HAVE_INLINE.  Do not define unless
17481         static_inline is defined, either by us or by xmalloc.c.  Use
17482         static_inline rather than static inline.
17483         (XCALLOC): Optimize sizeof(T) = 1 case.
17484         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
17485
17486 2006-11-07  Bruno Haible  <bruno@clisp.org>
17487
17488         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
17489         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
17490         AC_C_INLINE.
17491         * modules/xalloc (Files): Add m4/inline.m4.
17492
17493 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17494
17495         * README: Fix typo.
17496         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
17497         (Miscellanous Notes): ...from this.
17498
17499 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17500
17501         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
17502         Mention that offsetof should be used instead of sizeof.
17503         From Bruno Haible.
17504
17505 2006-11-07  Bruno Haible  <bruno@clisp.org>
17506
17507         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
17508
17509 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17510
17511         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17512         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
17513         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17514         (gl_tree_add_before, gl_tree_add_after):
17515         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
17516         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
17517         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17518         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
17519         (gl_linked_add_after, gl_linked_add_at): Likewise.
17520         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
17521         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17522         (gl_tree_add_before, gl_tree_add_after): Likewise.
17523         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
17524         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
17525         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17526
17527 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17528
17529         * lib/gl_oset.h: Use C comment style, not C++ comment style.
17530
17531 2006-11-06  Bruno Haible  <bruno@clisp.org>
17532
17533         * m4/inline.m4: New file.
17534         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
17535         * modules/list (Files): Add m4/inline.m4.
17536         * modules/oset (Files): Likewise.
17537
17538 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17539
17540         * lib/idcache.c: Include <stddef.h>, for offsetof.
17541         (struct userid.name): Change from char * to a flexible array member.
17542         All uses changed.
17543         * modules/idcache (Depends-on): Add flexmember.
17544
17545         * MODULES.html.sh (Core language properties): New module flexmember.
17546         * modules/flexmember, m4/flexmember.m4: New files.
17547
17548         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
17549         inline functions that are identical with the old xnmalloc_inline,
17550         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
17551         that we can avoid some unnecessary integer multiplications and
17552         divisions in the common case where the element size is known at
17553         compile time.
17554         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
17555         needed.
17556         (xnboundedmalloc): Remove.
17557         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
17558         arguments, for consistency with rest of this header.
17559         (xcharalloc): Rewrite using XNMALLOC.
17560         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
17561         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
17562         versions have been moved to lib/xalloc.h and renamed to be the
17563         non-*_inline versions.
17564         (xmalloc, xrealloc): Implement without reference to the xnmalloc
17565         and xnrealloc functions, since those functions are now inline and
17566         now call us.
17567         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
17568         renaming described above.
17569         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
17570         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
17571         captures the dependency in AC_C_INLINE.
17572
17573         New module canonicalize-lgpl, proposed by Charles Wilson in
17574         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
17575         with a few small changes afterwards.
17576         * MODULES.html.sh (File system functions): New module
17577         canonicalize-lgpl.
17578         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
17579         and canonicalize_file_name.
17580         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
17581         * modules/canonicalize-lgpl: New files.
17582
17583 2006-11-05  Bruno Haible  <bruno@clisp.org>
17584
17585         * gnulib-tool (func_import, func_create_testdir): Create directories
17586         also for files in subdirectories of lib/.
17587
17588 2006-11-05  Bruno Haible  <bruno@clisp.org>
17589
17590         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
17591         ANSI C compliant.
17592
17593 2006-11-03  Bruno Haible  <bruno@clisp.org>
17594
17595         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17596         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
17597         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
17598         (xnboundedmalloc): New inline function.
17599         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
17600         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
17601         xmalloc.
17602         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
17603         xmalloc.
17604         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
17605         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
17606         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
17607         xmalloc.
17608         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17609         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
17610         xmalloc.
17611         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
17612         gl_tree_add_after): Use XMALLOC instead of xmalloc.
17613         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
17614         xmalloc.
17615         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17616         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
17617         gl_tree_add_after): Use XMALLOC instead of xmalloc.
17618         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
17619         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
17620         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
17621         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
17622
17623 2006-11-03  Bruno Haible  <bruno@clisp.org>
17624
17625         * lib/c-ctype.h [C++]: Define functions without name mangling.
17626         * lib/fwriteerror.h [C++]: Likewise.
17627         * lib/gcd.h [C++]: Likewise.
17628         * lib/linebreak.h [C++]: Likewise.
17629
17630 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17631
17632         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
17633         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
17634         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
17635         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
17636         Check for functions and headers just once.
17637         Check for declaration of canonicalize_file_name.
17638         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
17639
17640 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
17641
17642         * gnulib-tool (func_import): Fix typo in actioncmd.
17643
17644 2006-11-02  Bruno Haible  <bruno@clisp.org>
17645
17646         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
17647         newline sequence in the Makefile.am snippet as a space, like "make"
17648         does.
17649         Reported by Roger Persson <perrog@gmail.com>.
17650
17651 2006-11-01  Bruno Haible  <bruno@clisp.org>
17652
17653         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
17654         already declared in <string.h>.
17655         * lib/strcase.h (strncasecmp): Don't declare it if yes.
17656
17657 2006-11-01  Bruno Haible  <bruno@clisp.org>
17658
17659         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
17660         * lib/strcase.h: Include <string.h>.
17661         (strcasecmp): Define to rpl_strcasecmp here.
17662
17663 2006-11-01  Bruno Haible  <bruno@clisp.org>
17664
17665         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
17666
17667 2006-11-01  Eric Blake  <ebb9@byu.net>
17668
17669         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
17670
17671         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
17672
17673 2006-10-29  Bruno Haible  <bruno@clisp.org>
17674
17675         Make it compile in C++ mode.
17676         * lib/full-write.c (full_rw): Add a cast.
17677
17678 2006-11-01  Bruno Haible  <bruno@clisp.org>
17679
17680         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
17681         be POSIX compliant.
17682         Reported by Roger Persson <perrog@gmail.com>.
17683
17684 2006-11-01  Eric Blake  <ebb9@byu.net>
17685
17686         * lib/getopt_.h: Fix comments.
17687
17688 2006-10-31  Eric Blake  <ebb9@byu.net>
17689
17690         * modules/tmpdir (Depends-on): Add sys_stat.
17691         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
17692         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
17693         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
17694         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
17695         tempname.
17696
17697 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
17698
17699         Avoid some C++ diagnostics reported by Bruno Haible.
17700         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
17701         xmalloc.
17702         (quotearg_alloc): Use xcharalloc rather than xmalloc.
17703         (struct slotvec): Move to top level.
17704         (quotearg_n_options): Rewrite to avoid xmalloc.
17705         * lib/xalloc.h (xcharalloc): New function.
17706         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
17707         [defined __cplusplus]: Add function template that provides result
17708         type propagation.  This part of the change is from Bruno Haible.
17709
17710 2006-10-29  Bruno Haible  <bruno@clisp.org>
17711
17712         Make it compile in C++ mode.
17713         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
17714         * lib/strnlen1.c (strnlen1): Cast memchr result.
17715         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
17716         * lib/clean-temp.c (string_equals, string_hash): Add casts.
17717         (create_temp_dir): Rename local variable 'template'.
17718         (compile_csharp_using_sscli): Add cast.
17719         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
17720         * lib/findprog.c (find_in_path): Likewise.
17721         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
17722         * lib/wait-process.c (register_slave_subprocess): Likewise.
17723
17724 2006-10-22  Bruno Haible  <bruno@clisp.org>
17725
17726         * modules/tsearch: New file.
17727         * lib/tsearch.h: New file.
17728         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
17729         * m4/tsearch.m4: New file.
17730         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
17731
17732 2006-10-29  Eric Blake  <ebb9@byu.net>
17733
17734         * lib/arcfour.c: Assume config.h.
17735         * lib/arctwo.c: Likewise.
17736         * lib/base64.c: Likewise.
17737         * lib/check-version.c: Likewise.
17738         * lib/crc.c: Likewise.
17739         * lib/des.c: Likewise.
17740         * lib/gc-gnulib.c: Likewise.
17741         * lib/gc-libgcrypt.c: Likewise.
17742         * lib/gc-pbkdf2-sha1.c: Likewise.
17743         * lib/getaddrinfo.c: Likewise.
17744         * lib/getdelim.c: Likewise.
17745         * lib/getline.c: Likewise.
17746         * lib/hmac-md5.c: Likewise.
17747         * lib/hmac-sha1.c: Likewise.
17748         * lib/iconvme.c: Likewise.
17749         * lib/md2.c: Likewise.
17750         * lib/md4.c: Likewise.
17751         * lib/memxor.c: Likewise.
17752         * lib/read-file.c: Likewise.
17753         * lib/readline.c: Likewise.
17754         * lib/rijndael-alg-fst.c: Likewise.
17755         * lib/rijndael-api-fst.c: Likewise.
17756         * lib/xgetdomainname.c: Likewise.
17757
17758 2006-10-28  Eric Blake  <ebb9@byu.net>
17759
17760         * lib/xstrndup.c: Assume config.h.
17761
17762 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
17763
17764         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
17765         stat-macros.h is now for our own macros, whereas stat_h is for
17766         macros in the <sys/stat.h> name space.
17767         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
17768         (STAT_MACROS_H): Remove.
17769         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
17770         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
17771         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
17772         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
17773         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
17774         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
17775         Move these macros to ...
17776         * lib/stat_.h: here.  Don't include stat-macros.h.
17777         * lib/canonicalize.c: Don't include stat-macros.h.
17778         * lib/chown.c: Likewise.
17779         * lib/euidaccess.c: Likewise.
17780         * lib/file-type.c: Likewise.
17781         * lib/filemode.c: Likewise.
17782         * lib/glob.c: Likewise.
17783         * lib/isapipe.c: Likewise.
17784         * lib/lchown.c: Likewise.
17785         * lib/lstat.c: Likewise.
17786         * lib/mkdir-p.c: Likewise.
17787         * lib/rmdir.c: Likewise.
17788         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
17789         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
17790         unless mkdir isn't declared, to speed up 'configure'.
17791         Always create sys/stat.h, since it's unlikely any real sys/stat.h
17792         would define all the S_* symbols.
17793         * modules/canonicalize (Depends-on):
17794         Depend on sys_stat, not stat-macros.
17795         * modules/chown: Likewise.
17796         * modules/euidaccess: Likewise.
17797         * modules/filemode: Likewise.
17798         * modules/file-type: Likewise.
17799         * modules/glob: Likewise.
17800         * modules/isapipe: Likewise.
17801         * modules/lchown: Likewise.
17802         * modules/lstat: Likewise.
17803         * modules/mkancesdirs: Likewise.
17804         * modules/rmdir: Likewise.
17805         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
17806         * modules/modechange: Likewise.
17807         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
17808         (configure.ac): Remove gl_STAT_MACROS.
17809         * modules/sys_stat (Depends-on): Remove stat-macros.
17810
17811 2006-10-27  Bruno Haible  <bruno@clisp.org>
17812
17813         * m4/signed.m4: Remove file.
17814         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
17815         invocation.
17816         * modules/vasnprintf (Files): Remove m4/signed.m4.
17817
17818 2006-10-27  Bruno Haible  <bruno@clisp.org>
17819
17820         Update to GNU gettext 0.16.
17821         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
17822         m4/inttypes-h.m4, m4/signed.m4.
17823         * m4/gettext.m4: Update to GNU gettext 0.16.
17824         * m4/intl.m4: New file, from GNU gettext.
17825         * m4/intldir.m4: New file, from GNU gettext.
17826         * config/srclist.txt: Update
17827
17828 2006-10-27  Eric Blake  <ebb9@byu.net>
17829
17830         * MODULES.html.sh: Document tempname.
17831         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
17832         dependencies.
17833         (Files): Move lib/tempname.c...
17834         * modules/tempname: ...to this new module.
17835         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
17836         (gl_PREREQ_TEMPNAME): Move...
17837         * m4/tempname.m4: ...to this new file.
17838         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
17839         * modules/sys_stat (Depends-on): Add stat-macros.
17840         * lib/stat_.h (includes): Pick up stat macros.
17841         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
17842         if stat macros are broken.
17843         * lib/tempname.c (includes): No need to include "stat-macros.h".
17844         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
17845         (direxists, __path_search) [!_LIBC]: Don't compile these in
17846         gnulib; the tmpdir module covers that.
17847         * lib/tempname.h: New file.
17848
17849 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17850
17851         * COPYING: Explain how gnulib-tool converts licence headers.
17852         Almost all wording by Eric Blake.
17853
17854 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17855
17856         * lib/mbchar.h (is_basic_table): Make read-only.
17857         * lib/mbchar.c (is_basic_table): Likewise.
17858         Reported by John Darrington.
17859
17860 2006-10-25  Bruno Haible  <bruno@clisp.org>
17861
17862         * lib/progname.h (set_program_name): Undefine before defining.
17863
17864 2006-10-25  Bruno Haible  <bruno@clisp.org>
17865
17866         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
17867         false for non-gcc C++ compilers.
17868         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17869
17870 2006-10-24  Bruno Haible  <bruno@clisp.org>
17871
17872         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
17873         iconv implementations like Irix iconv.
17874
17875 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17876
17877         * modules/vararrays: New file.
17878         * m4/vararrays.m4: New file, taken from diffutils.
17879         * MODULES.html.sh: New module vararrays.
17880
17881 2006-10-24  Karl Berry  <karl@gnu.org>
17882
17883         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
17884         Don't call GNU Unix.
17885
17886 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17887
17888         * users.txt: Add Libtool.
17889
17890         Sync from Libtool:
17891
17892         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17893
17894         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
17895         to gnulib's policy of including config.h unconditionally.
17896
17897 2006-10-24  Bruno Haible  <bruno@clisp.org>
17898
17899         * modules/wcwidth (Files): Add m4/wint_t.m4.
17900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
17901         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
17902
17903 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17904
17905         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
17906         to pacify GCC with some -W flags enabled.  Problem reported by
17907         Bruno Haible.
17908
17909 2006-10-24  Jim Meyering  <jim@meyering.net>
17910
17911         * MODULES.html.sh: Remove uinttostr.  It's not a module.
17912         Reported by Karl Berry.
17913
17914 2006-10-23  Bruno Haible  <bruno@clisp.org>
17915
17916         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
17917
17918 2006-10-24  Bruno Haible  <bruno@clisp.org>
17919
17920         * lib/gl_list.h: Use C comment style, not C++ comment style.
17921
17922 2006-10-23  Eric Blake  <ebb9@byu.net>
17923
17924         * lib/getaddrinfo.c (includes): Add missing include.
17925
17926 2006-10-23  Bruno Haible  <bruno@clisp.org>
17927             Paul Eggert  <eggert@cs.ucla.edu>
17928
17929         Ability to rename obstack_free.
17930         * lib/obstack.h (__obstack_free): New macro. Declare instead of
17931         obstack_free.
17932         (obstack_free): Invoke the __obstack_free macro.
17933         * lib/obstack.c (obstack_free): Use __obstack_free macro.
17934
17935 2006-10-23  Bruno Haible  <bruno@clisp.org>
17936             Paul Eggert  <eggert@cs.ucla.edu>
17937
17938         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
17939         __argc, __argv from the declaration. (They are defined as macros on
17940         mingw.)
17941
17942 2006-10-22  Bruno Haible  <bruno@clisp.org>
17943
17944         * doc/gnulib-intro.texi: New file.
17945         * doc/gnulib.texi: Include it.
17946
17947 2006-10-21  Bruno Haible  <bruno@clisp.org>
17948
17949         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
17950         "Introduction", "Miscellanous Notes", "Particular Modules".
17951
17952 2006-10-21  Bruno Haible  <bruno@clisp.org>
17953
17954         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17955         Change mostlyclean-local rule to avoid sh syntax error from bash
17956         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
17957
17958 2006-10-23  Jim Meyering  <jim@meyering.net>
17959
17960         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
17961         in place of snprintf.
17962
17963         * modules/inttostr (Files): Add lib/uinttostr.c.
17964         * lib/uinttostr.c (inttostr): New file/function.
17965         * lib/inttostr.h (uinttostr): Declare.
17966         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
17967         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
17968         Add uinttostr.
17969         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
17970
17971 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17972
17973         * lib/canonicalize.c (ELOOP): Define if not already defined.
17974         Problem reported by Bruno Haible in
17975         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
17976
17977 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17978
17979         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
17980         Problem reported by Perry Smith and Ville Laurikari.
17981
17982         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
17983         uses.
17984
17985 2006-10-19  Bruno Haible  <bruno@clisp.org>
17986
17987         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
17988         for mingw.
17989
17990 2006-10-19  Bruno Haible  <bruno@clisp.org>
17991
17992         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
17993         Needed for mingw.
17994
17995 2006-10-19  Bruno Haible  <bruno@clisp.org>
17996
17997         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
17998
17999 2006-10-19  Bruno Haible  <bruno@clisp.org>
18000
18001         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
18002         it.
18003
18004 2006-10-19  Bruno Haible  <bruno@clisp.org>
18005
18006         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
18007         invocation.
18008
18009 2006-10-19  Bruno Haible  <bruno@clisp.org>
18010
18011         * gnulib-tool (func_create_testdir): Don't include ftruncate and
18012         mountlist by default.
18013
18014 2006-10-16  Bruno Haible  <bruno@clisp.org>
18015
18016         * lib/c-strstr.c: Include c-strstr.h.
18017
18018 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
18019
18020         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
18021         in a slash.
18022
18023 2006-10-18  Bruno Haible  <bruno@clisp.org>
18024
18025         * lib/lock.h [C++]: Wrap definitions in extern "C".
18026
18027 2006-10-18  Bruno Haible  <bruno@clisp.org>
18028
18029         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
18030         gl_LIBOBJS list.
18031
18032 2006-10-18  Bruno Haible  <bruno@clisp.org>
18033
18034         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
18035
18036 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
18037
18038         * lib/xstrtol.h: Include gettext.h.
18039         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
18040         Problem reported by Eric Blake.
18041         * modules/xstrtol (Depends-on): Add gettext-h.
18042
18043 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
18044
18045         * lib/strftime.c (advance): New macro.
18046         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
18047         incomplete type, so you can't add 0 to it.  Problem and patch
18048         reported by Eelco Dolstra for dietlibc.
18049
18050 2006-10-18  Jim Meyering  <jim@meyering.net>
18051
18052         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
18053         type for a local, and rename it: s/up/user_proc/.
18054
18055 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
18056
18057         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
18058         READ_UTMP_USER_PROCESS.
18059         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
18060
18061 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
18062
18063         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
18064         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
18065
18066 2006-10-17  Eric Blake  <ebb9@byu.net>
18067
18068         * lib/sigprocmask.c (sigprocmask): Fix typo.
18069
18070         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
18071
18072         * modules/clean-temp (Makefile.am): Don't add to make output...
18073         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
18074         config.h.
18075
18076 2006-10-17  Bruno Haible  <bruno@clisp.org>
18077
18078         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
18079         differently if DEFAULT_TEXT_DOMAIN is set.
18080
18081 2006-10-16  Bruno Haible  <bruno@clisp.org>
18082
18083         * lib/clean-temp.c: Include fwriteerror.h.
18084
18085 2006-10-16  Bruno Haible  <bruno@clisp.org>
18086
18087         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
18088
18089 2006-10-16  Bruno Haible  <bruno@clisp.org>
18090
18091         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
18092         * lib/sigprocmask.h: Include <sys/types.h>.
18093         (sigset_t): Use the system's definition if present.
18094
18095 2006-10-17  Eric Blake  <ebb9@byu.net>
18096
18097         * lib/xvasprintf.c (includes): Assume config.h.
18098         * lib/xasprintf.c (includes): Likewise.
18099
18100 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18101
18102         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
18103         at least as wide as intmax_t.
18104
18105 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
18106
18107         (Imported from Automake.)
18108         * build-aux/gnupload: Update to version 1.1 of directive file.
18109
18110 2006-10-16  Eric Blake  <ebb9@byu.net>
18111
18112         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
18113         match Automake 1.10a.
18114
18115 2006-10-14  Bruno Haible  <bruno@clisp.org>
18116
18117         * modules/sigprocmask: New file.
18118         * lib/sigprocmask.h: New file.
18119         * lib/sigprocmask.c: New file.
18120         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
18121         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
18122         request sigprocmask.o.
18123         (gl_PREREQ_SIGPROCMASK): New macro.
18124         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
18125         (Depends-on): Add sigprocmask.
18126         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
18127         gt_SIGNALBLOCKING. Test for 'raise' only once.
18128         * lib/fatal-signal.c: Include sigprocmask.h.
18129         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
18130         unblock_fatal_signals): Define always.
18131         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18132         sigprocmask.
18133
18134 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18135
18136         Sync from Automake.
18137         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
18138         which incorrectly sets the mode of an existing destination
18139         directory.  In some cases the unpatched install-sh could do the
18140         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
18141         system.  We hope this is rare in practice, but it's clearly worth
18142         fixing.  Problem reported by Alex Unleashed in
18143         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
18144         Also, don't bother to check for -m bugs unless we're using -m;
18145         suggested by Stepan Kasal.
18146
18147 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18148
18149         Sync from Automake.
18150         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
18151         `-c' flag, so they appear at the same position as in %FASTDEP%
18152         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
18153         which ignores unknown options only after the first non-option.
18154         Bug report against M4 by Nelson H. F. Beebe.
18155
18156 2006-10-13  Jim Meyering  <jim@meyering.net>
18157
18158         Fix a bug in yesterday's change.
18159         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
18160         p->fts_statp->st_dev would be used uninitialized.
18161         Ensures that we always call fts_stat on the very first entry.
18162         Miklos Szeredi reported that find -xdev stopped working.
18163
18164 2006-10-12  Bruno Haible  <bruno@clisp.org>
18165
18166         * gnulib-tool (func_get_automake_snippet): Append an automatically
18167         computed EXTRA_DIST augmentation.
18168         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
18169         * modules/alloca-opt (Makefile.am): Likewise.
18170         * modules/allocsa (Makefile.am): Likewise.
18171         * modules/arcfour (Makefile.am): Likewise.
18172         * modules/arctwo (Makefile.am): Likewise.
18173         * modules/argmatch (Makefile.am): Likewise.
18174         * modules/argz (Makefile.am): Likewise.
18175         * modules/atexit (Makefile.am): Likewise.
18176         * modules/backupfile (Makefile.am): Likewise.
18177         * modules/byteswap (Makefile.am): Likewise.
18178         * modules/c-strtod (Makefile.am): Likewise.
18179         * modules/c-strtold (Makefile.am): Likewise.
18180         * modules/calloc (Makefile.am): Likewise.
18181         * modules/canon-host (Makefile.am): Likewise.
18182         * modules/canonicalize (Makefile.am): Likewise.
18183         * modules/chdir-long (Makefile.am): Likewise.
18184         * modules/chdir-safer (Makefile.am): Likewise.
18185         * modules/check-version (Makefile.am): Likewise.
18186         * modules/chown (Makefile.am): Likewise.
18187         * modules/cloexec (Makefile.am): Likewise.
18188         * modules/close-stream (Makefile.am): Likewise.
18189         * modules/closeout (Makefile.am): Likewise.
18190         * modules/crc (Makefile.am): Likewise.
18191         * modules/csharpexec (Makefile.am): Likewise.
18192         * modules/cycle-check (Makefile.am): Likewise.
18193         * modules/des (Makefile.am): Likewise.
18194         * modules/dev-ino (Makefile.am): Likewise.
18195         * modules/dirfd (Makefile.am): Likewise.
18196         * modules/dirname (Makefile.am): Likewise.
18197         * modules/dup2 (Makefile.am): Likewise.
18198         * modules/eealloc (Makefile.am): Likewise.
18199         * modules/error (Makefile.am): Likewise.
18200         * modules/euidaccess (Makefile.am): Likewise.
18201         * modules/exclude (Makefile.am): Likewise.
18202         * modules/exitfail (Makefile.am): Likewise.
18203         * modules/fcntl-safer (Makefile.am): Likewise.
18204         * modules/fcntl (Makefile.am): Likewise.
18205         * modules/file-type (Makefile.am): Likewise.
18206         * modules/fileblocks (Makefile.am): Likewise.
18207         * modules/filemode (Makefile.am): Likewise.
18208         * modules/filenamecat (Makefile.am): Likewise.
18209         * modules/fnmatch (Makefile.am): Likewise.
18210         * modules/fopen-safer (Makefile.am): Likewise.
18211         * modules/fpending (Makefile.am): Likewise.
18212         * modules/fprintftime (Makefile.am): Likewise.
18213         * modules/free (Makefile.am): Likewise.
18214         * modules/fsusage (Makefile.am): Likewise.
18215         * modules/ftruncate (Makefile.am): Likewise.
18216         * modules/fts (Makefile.am): Likewise.
18217         * modules/gc-arcfour (Makefile.am): Likewise.
18218         * modules/gc-des (Makefile.am): Likewise.
18219         * modules/gc-hmac-md5 (Makefile.am): Likewise.
18220         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
18221         * modules/gc-md4 (Makefile.am): Likewise.
18222         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
18223         * modules/gc-sha1 (Makefile.am): Likewise.
18224         * modules/gc (Makefile.am): Likewise.
18225         * modules/getaddrinfo (Makefile.am): Likewise.
18226         * modules/getcwd (Makefile.am): Likewise.
18227         * modules/getdelim (Makefile.am): Likewise.
18228         * modules/getdomainname (Makefile.am): Likewise.
18229         * modules/getgroups (Makefile.am): Likewise.
18230         * modules/gethostname (Makefile.am): Likewise.
18231         * modules/gethrxtime (Makefile.am): Likewise.
18232         * modules/getline (Makefile.am): Likewise.
18233         * modules/getloadavg (Makefile.am): Likewise.
18234         * modules/getlogin_r (Makefile.am): Likewise.
18235         * modules/getndelim2 (Makefile.am): Likewise.
18236         * modules/getopt (Makefile.am): Likewise.
18237         * modules/getpagesize (Makefile.am): Likewise.
18238         * modules/getpass-gnu (Makefile.am): Likewise.
18239         * modules/getpass (Makefile.am): Likewise.
18240         * modules/getsubopt (Makefile.am): Likewise.
18241         * modules/gettime (Makefile.am): Likewise.
18242         * modules/gettimeofday (Makefile.am): Likewise.
18243         * modules/getugroups (Makefile.am): Likewise.
18244         * modules/getusershell (Makefile.am): Likewise.
18245         * modules/glob (Makefile.am): Likewise.
18246         * modules/group-member (Makefile.am): Likewise.
18247         * modules/hard-locale (Makefile.am): Likewise.
18248         * modules/hash (Makefile.am): Likewise.
18249         * modules/hmac-md5 (Makefile.am): Likewise.
18250         * modules/hmac-sha1 (Makefile.am): Likewise.
18251         * modules/human (Makefile.am): Likewise.
18252         * modules/idcache (Makefile.am): Likewise.
18253         * modules/imaxabs (Makefile.am): Likewise.
18254         * modules/imaxdiv (Makefile.am): Likewise.
18255         * modules/inet_ntop (Makefile.am): Likewise.
18256         * modules/inet_pton (Makefile.am): Likewise.
18257         * modules/intprops (Makefile.am): Likewise.
18258         * modules/inttostr (Makefile.am): Likewise.
18259         * modules/inttypes (Makefile.am): Likewise.
18260         * modules/isapipe (Makefile.am): Likewise.
18261         * modules/javaversion (Makefile.am): Likewise.
18262         * modules/lchmod (Makefile.am): Likewise.
18263         * modules/lchown (Makefile.am): Likewise.
18264         * modules/localcharset (Makefile.am): Likewise.
18265         * modules/long-options (Makefile.am): Likewise.
18266         * modules/lstat (Makefile.am): Likewise.
18267         * modules/malloc (Makefile.am): Likewise.
18268         * modules/mathl (Makefile.am): Likewise.
18269         * modules/mbchar (Makefile.am): Likewise.
18270         * modules/md2 (Makefile.am): Likewise.
18271         * modules/md4 (Makefile.am): Likewise.
18272         * modules/md5 (Makefile.am): Likewise.
18273         * modules/memcasecmp (Makefile.am): Likewise.
18274         * modules/memchr (Makefile.am): Likewise.
18275         * modules/memcmp (Makefile.am): Likewise.
18276         * modules/memcoll (Makefile.am): Likewise.
18277         * modules/memcpy (Makefile.am): Likewise.
18278         * modules/memmem (Makefile.am): Likewise.
18279         * modules/memmove (Makefile.am): Likewise.
18280         * modules/mempcpy (Makefile.am): Likewise.
18281         * modules/memrchr (Makefile.am): Likewise.
18282         * modules/memset (Makefile.am): Likewise.
18283         * modules/memxor (Makefile.am): Likewise.
18284         * modules/mkancesdirs (Makefile.am): Likewise.
18285         * modules/mkdir-p (Makefile.am): Likewise.
18286         * modules/mkdir (Makefile.am): Likewise.
18287         * modules/mkdtemp (Makefile.am): Likewise.
18288         * modules/mkstemp (Makefile.am): Likewise.
18289         * modules/mktime (Makefile.am): Likewise.
18290         * modules/modechange (Makefile.am): Likewise.
18291         * modules/mountlist (Makefile.am): Likewise.
18292         * modules/nanosleep (Makefile.am): Likewise.
18293         * modules/obstack (Makefile.am): Likewise.
18294         * modules/openat (Makefile.am): Likewise.
18295         * modules/pagealign_alloc (Makefile.am): Likewise.
18296         * modules/pathmax (Makefile.am): Likewise.
18297         * modules/physmem (Makefile.am): Likewise.
18298         * modules/poll (Makefile.am): Likewise.
18299         * modules/posixtm (Makefile.am): Likewise.
18300         * modules/posixver (Makefile.am): Likewise.
18301         * modules/putenv (Makefile.am): Likewise.
18302         * modules/quote (Makefile.am): Likewise.
18303         * modules/quotearg (Makefile.am): Likewise.
18304         * modules/raise (Makefile.am): Likewise.
18305         * modules/read-file (Makefile.am): Likewise.
18306         * modules/readline (Makefile.am): Likewise.
18307         * modules/readlink (Makefile.am): Likewise.
18308         * modules/readtokens (Makefile.am): Likewise.
18309         * modules/readutmp (Makefile.am): Likewise.
18310         * modules/realloc (Makefile.am): Likewise.
18311         * modules/regex (Makefile.am): Likewise.
18312         * modules/rename-dest-slash (Makefile.am): Likewise.
18313         * modules/rename (Makefile.am): Likewise.
18314         * modules/rijndael (Makefile.am): Likewise.
18315         * modules/rmdir (Makefile.am): Likewise.
18316         * modules/rpmatch (Makefile.am): Likewise.
18317         * modules/safe-read (Makefile.am): Likewise.
18318         * modules/safe-write (Makefile.am): Likewise.
18319         * modules/same-inode (Makefile.am): Likewise.
18320         * modules/same (Makefile.am): Likewise.
18321         * modules/save-cwd (Makefile.am): Likewise.
18322         * modules/savedir (Makefile.am): Likewise.
18323         * modules/setenv (Makefile.am): Likewise.
18324         * modules/settime (Makefile.am): Likewise.
18325         * modules/sha1 (Makefile.am): Likewise.
18326         * modules/sig2str (Makefile.am): Likewise.
18327         * modules/snprintf (Makefile.am): Likewise.
18328         * modules/stat-macros (Makefile.am): Likewise.
18329         * modules/stat-time (Makefile.am): Likewise.
18330         * modules/stdbool (Makefile.am): Likewise.
18331         * modules/stdint (Makefile.am): Likewise.
18332         * modules/stdlib-safer (Makefile.am): Likewise.
18333         * modules/stpcpy (Makefile.am): Likewise.
18334         * modules/stpncpy (Makefile.am): Likewise.
18335         * modules/strcase (Makefile.am): Likewise.
18336         * modules/strcasestr (Makefile.am): Likewise.
18337         * modules/strchrnul (Makefile.am): Likewise.
18338         * modules/strcspn (Makefile.am): Likewise.
18339         * modules/strdup (Makefile.am): Likewise.
18340         * modules/strerror (Makefile.am): Likewise.
18341         * modules/strftime (Makefile.am): Likewise.
18342         * modules/strndup (Makefile.am): Likewise.
18343         * modules/strnlen (Makefile.am): Likewise.
18344         * modules/strpbrk (Makefile.am): Likewise.
18345         * modules/strsep (Makefile.am): Likewise.
18346         * modules/strstr (Makefile.am): Likewise.
18347         * modules/strtod (Makefile.am): Likewise.
18348         * modules/strtoimax (Makefile.am): Likewise.
18349         * modules/strtok_r (Makefile.am): Likewise.
18350         * modules/strtol (Makefile.am): Likewise.
18351         * modules/strtoll (Makefile.am): Likewise.
18352         * modules/strtoul (Makefile.am): Likewise.
18353         * modules/strtoull (Makefile.am): Likewise.
18354         * modules/strtoumax (Makefile.am): Likewise.
18355         * modules/strverscmp (Makefile.am): Likewise.
18356         * modules/sys_socket (Makefile.am): Likewise.
18357         * modules/sys_stat (Makefile.am): Likewise.
18358         * modules/sysexits (Makefile.am): Likewise.
18359         * modules/time_r (Makefile.am): Likewise.
18360         * modules/timegm (Makefile.am): Likewise.
18361         * modules/timespec (Makefile.am): Likewise.
18362         * modules/tmpfile-safer (Makefile.am): Likewise.
18363         * modules/trim (Makefile.am): Likewise.
18364         * modules/unistd-safer (Makefile.am): Likewise.
18365         * modules/unlinkdir (Makefile.am): Likewise.
18366         * modules/unlocked-io (Makefile.am): Likewise.
18367         * modules/userspec (Makefile.am): Likewise.
18368         * modules/utime (Makefile.am): Likewise.
18369         * modules/utimecmp (Makefile.am): Likewise.
18370         * modules/utimens (Makefile.am): Likewise.
18371         * modules/vasnprintf (Makefile.am): Likewise.
18372         * modules/vasprintf (Makefile.am): Likewise.
18373         * modules/vsnprintf (Makefile.am): Likewise.
18374         * modules/xalloc (Makefile.am): Likewise.
18375         * modules/xgetcwd (Makefile.am): Likewise.
18376         * modules/xnanosleep (Makefile.am): Likewise.
18377         * modules/xreadlink (Makefile.am): Likewise.
18378         * modules/xstrtod (Makefile.am): Likewise.
18379         * modules/xstrtol (Makefile.am): Likewise.
18380         * modules/xstrtold (Makefile.am): Likewise.
18381         * modules/yesno (Makefile.am): Likewise.
18382         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
18383
18384 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18385
18386         * modules/error (Makefile.am): Distribute files through
18387         EXTRA_DIST, not lib_SOURCES.
18388
18389 2006-10-12  Eric Blake  <ebb9@byu.net>
18390
18391         * modules/error (Makefile.am): Distribute files in /lib.
18392         * modules/obstack (Makefile.am): Likewise.
18393
18394 2006-10-12  Bruno Haible  <bruno@clisp.org>
18395
18396         * modules/acl (Makefile.am): Distribute all files in lib/ through
18397         EXTRA_DIST.
18398         * modules/arcfour (Makefile.am): Likewise.
18399         * modules/arctwo (Makefile.am): Likewise.
18400         * modules/argmatch (Makefile.am): Likewise.
18401         * modules/argz (Makefile.am): Likewise.
18402         * modules/atexit (Makefile.am): Likewise.
18403         * modules/backupfile (Makefile.am): Likewise.
18404         * modules/c-strtod (Makefile.am): Likewise.
18405         * modules/c-strtold (Makefile.am): Likewise.
18406         * modules/calloc (Makefile.am): Likewise.
18407         * modules/canon-host (Makefile.am): Likewise.
18408         * modules/canonicalize (Makefile.am): Likewise.
18409         * modules/chdir-long (Makefile.am): Likewise.
18410         * modules/chdir-safer (Makefile.am): Likewise.
18411         * modules/check-version (Makefile.am): Likewise.
18412         * modules/chown (Makefile.am): Likewise.
18413         * modules/cloexec (Makefile.am): Likewise.
18414         * modules/close-stream (Makefile.am): Likewise.
18415         * modules/closeout (Makefile.am): Likewise.
18416         * modules/crc (Makefile.am): Likewise.
18417         * modules/cycle-check (Makefile.am): Likewise.
18418         * modules/des (Makefile.am): Likewise.
18419         * modules/dirfd (Makefile.am): Likewise.
18420         * modules/dirname (Makefile.am): Likewise.
18421         * modules/dup2 (Makefile.am): Likewise.
18422         * modules/euidaccess (Makefile.am): Likewise.
18423         * modules/exclude (Makefile.am): Likewise.
18424         * modules/exitfail (Makefile.am): Likewise.
18425         * modules/fcntl-safer (Makefile.am): Likewise.
18426         * modules/file-type (Makefile.am): Likewise.
18427         * modules/fileblocks (Makefile.am): Likewise.
18428         * modules/filemode (Makefile.am): Likewise.
18429         * modules/filenamecat (Makefile.am): Likewise.
18430         * modules/fnmatch (Makefile.am): Likewise.
18431         * modules/fopen-safer (Makefile.am): Likewise.
18432         * modules/fpending (Makefile.am): Likewise.
18433         * modules/fprintftime (Makefile.am): Likewise.
18434         * modules/free (Makefile.am): Likewise.
18435         * modules/fsusage (Makefile.am): Likewise.
18436         * modules/ftruncate (Makefile.am): Likewise.
18437         * modules/fts (Makefile.am): Likewise.
18438         * modules/gc (Makefile.am): Likewise.
18439         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
18440         * modules/getaddrinfo (Makefile.am): Likewise.
18441         * modules/getcwd (Makefile.am): Likewise.
18442         * modules/getdelim (Makefile.am): Likewise.
18443         * modules/getdomainname (Makefile.am): Likewise.
18444         * modules/getgroups (Makefile.am): Likewise.
18445         * modules/gethostname (Makefile.am): Likewise.
18446         * modules/gethrxtime (Makefile.am): Likewise.
18447         * modules/getline (Makefile.am): Likewise.
18448         * modules/getloadavg (Makefile.am): Likewise.
18449         * modules/getlogin_r (Makefile.am): Likewise.
18450         * modules/getopt (Makefile.am): Likewise.
18451         * modules/getpass (Makefile.am): Likewise.
18452         * modules/getpass-gnu (Makefile.am): Likewise.
18453         * modules/getsubopt (Makefile.am): Likewise.
18454         * modules/gettime (Makefile.am): Likewise.
18455         * modules/gettimeofday (Makefile.am): Likewise.
18456         * modules/getugroups (Makefile.am): Likewise.
18457         * modules/getusershell (Makefile.am): Likewise.
18458         * modules/glob (Makefile.am): Likewise.
18459         * modules/group-member (Makefile.am): Likewise.
18460         * modules/hard-locale (Makefile.am): Likewise.
18461         * modules/hash (Makefile.am): Likewise.
18462         * modules/hmac-md5 (Makefile.am): Likewise.
18463         * modules/hmac-sha1 (Makefile.am): Likewise.
18464         * modules/human (Makefile.am): Likewise.
18465         * modules/idcache (Makefile.am): Likewise.
18466         * modules/imaxabs (Makefile.am): Likewise.
18467         * modules/imaxdiv (Makefile.am): Likewise.
18468         * modules/inet_ntop (Makefile.am): Likewise.
18469         * modules/inet_pton (Makefile.am): Likewise.
18470         * modules/inttostr (Makefile.am): Likewise.
18471         * modules/isapipe (Makefile.am): Likewise.
18472         * modules/lchown (Makefile.am): Likewise.
18473         * modules/long-options (Makefile.am): Likewise.
18474         * modules/lstat (Makefile.am): Likewise.
18475         * modules/malloc (Makefile.am): Likewise.
18476         * modules/mathl (Makefile.am): Likewise.
18477         * modules/mbchar (Makefile.am): Likewise.
18478         * modules/md2 (Makefile.am): Likewise.
18479         * modules/md4 (Makefile.am): Likewise.
18480         * modules/md5 (Makefile.am): Likewise.
18481         * modules/memcasecmp (Makefile.am): Likewise.
18482         * modules/memchr (Makefile.am): Likewise.
18483         * modules/memcmp (Makefile.am): Likewise.
18484         * modules/memcoll (Makefile.am): Likewise.
18485         * modules/memcpy (Makefile.am): Likewise.
18486         * modules/memmem (Makefile.am): Likewise.
18487         * modules/memmove (Makefile.am): Likewise.
18488         * modules/mempcpy (Makefile.am): Likewise.
18489         * modules/memrchr (Makefile.am): Likewise.
18490         * modules/memset (Makefile.am): Likewise.
18491         * modules/memxor (Makefile.am): Likewise.
18492         * modules/mkancesdirs (Makefile.am): Likewise.
18493         * modules/mkdir (Makefile.am): Likewise.
18494         * modules/mkdir-p (Makefile.am): Likewise.
18495         * modules/mkdtemp (Makefile.am): Likewise.
18496         * modules/mkstemp (Makefile.am): Likewise.
18497         * modules/mktime (Makefile.am): Likewise.
18498         * modules/modechange (Makefile.am): Likewise.
18499         * modules/mountlist (Makefile.am): Likewise.
18500         * modules/nanosleep (Makefile.am): Likewise.
18501         * modules/openat (Makefile.am): Likewise.
18502         * modules/pagealign_alloc (Makefile.am): Likewise.
18503         * modules/physmem (Makefile.am): Likewise.
18504         * modules/poll (Makefile.am): Likewise.
18505         * modules/posixtm (Makefile.am): Likewise.
18506         * modules/posixver (Makefile.am): Likewise.
18507         * modules/putenv (Makefile.am): Likewise.
18508         * modules/quote (Makefile.am): Likewise.
18509         * modules/quotearg (Makefile.am): Likewise.
18510         * modules/raise (Makefile.am): Likewise.
18511         * modules/read-file (Makefile.am): Likewise.
18512         * modules/readline (Makefile.am): Likewise.
18513         * modules/readlink (Makefile.am): Likewise.
18514         * modules/readtokens (Makefile.am): Likewise.
18515         * modules/readutmp (Makefile.am): Likewise.
18516         * modules/realloc (Makefile.am): Likewise.
18517         * modules/regex (Makefile.am): Likewise.
18518         * modules/rename (Makefile.am): Likewise.
18519         * modules/rename-dest-slash (Makefile.am): Likewise.
18520         * modules/rijndael (Makefile.am): Likewise.
18521         * modules/rmdir (Makefile.am): Likewise.
18522         * modules/rpmatch (Makefile.am): Likewise.
18523         * modules/safe-read (Makefile.am): Likewise.
18524         * modules/safe-write (Makefile.am): Likewise.
18525         * modules/same (Makefile.am): Likewise.
18526         * modules/save-cwd (Makefile.am): Likewise.
18527         * modules/savedir (Makefile.am): Likewise.
18528         * modules/setenv (Makefile.am): Likewise.
18529         * modules/settime (Makefile.am): Likewise.
18530         * modules/sha1 (Makefile.am): Likewise.
18531         * modules/sig2str (Makefile.am): Likewise.
18532         * modules/snprintf (Makefile.am): Likewise.
18533         * modules/stdlib-safer (Makefile.am): Likewise.
18534         * modules/stpcpy (Makefile.am): Likewise.
18535         * modules/stpncpy (Makefile.am): Likewise.
18536         * modules/strcase (Makefile.am): Likewise.
18537         * modules/strcasestr (Makefile.am): Likewise.
18538         * modules/strchrnul (Makefile.am): Likewise.
18539         * modules/strcspn (Makefile.am): Likewise.
18540         * modules/strdup (Makefile.am): Likewise.
18541         * modules/strerror (Makefile.am): Likewise.
18542         * modules/strftime (Makefile.am): Likewise.
18543         * modules/strndup (Makefile.am): Likewise.
18544         * modules/strnlen (Makefile.am): Likewise.
18545         * modules/strpbrk (Makefile.am): Likewise.
18546         * modules/strsep (Makefile.am): Likewise.
18547         * modules/strstr (Makefile.am): Likewise.
18548         * modules/strtod (Makefile.am): Likewise.
18549         * modules/strtoimax (Makefile.am): Likewise.
18550         * modules/strtok_r (Makefile.am): Likewise.
18551         * modules/strtol (Makefile.am): Likewise.
18552         * modules/strtoll (Makefile.am): Likewise.
18553         * modules/strtoul (Makefile.am): Likewise.
18554         * modules/strtoull (Makefile.am): Likewise.
18555         * modules/strtoumax (Makefile.am): Likewise.
18556         * modules/strverscmp (Makefile.am): Likewise.
18557         * modules/time_r (Makefile.am): Likewise.
18558         * modules/timegm (Makefile.am): Likewise.
18559         * modules/tmpfile-safer (Makefile.am): Likewise.
18560         * modules/unistd-safer (Makefile.am): Likewise.
18561         * modules/unlinkdir (Makefile.am): Likewise.
18562         * modules/userspec (Makefile.am): Likewise.
18563         * modules/utime (Makefile.am): Likewise.
18564         * modules/utimecmp (Makefile.am): Likewise.
18565         * modules/utimens (Makefile.am): Likewise.
18566         * modules/vasnprintf (Makefile.am): Likewise.
18567         * modules/vasprintf (Makefile.am): Likewise.
18568         * modules/vsnprintf (Makefile.am): Likewise.
18569         * modules/xalloc (Makefile.am): Likewise.
18570         * modules/xgetcwd (Makefile.am): Likewise.
18571         * modules/xnanosleep (Makefile.am): Likewise.
18572         * modules/xreadlink (Makefile.am): Likewise.
18573         * modules/xstrtod (Makefile.am): Likewise.
18574         * modules/xstrtol (Makefile.am): Likewise.
18575         * modules/xstrtold (Makefile.am): Likewise.
18576         * modules/yesno (Makefile.am): Likewise.
18577
18578 2006-10-12  Jim Meyering  <jim@meyering.net>
18579
18580         * m4/getloadavg.m4: Revert the change below.
18581
18582         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
18583         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
18584         fail with a symlink, which is what coreutils' ./bootstrap now
18585         creates by default.
18586
18587 2006-10-12  Bruno Haible  <bruno@clisp.org>
18588
18589         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
18590         mingw.
18591         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
18592         MSVC and mingw explicitly.
18593
18594 2006-10-11  Simon Josefsson  <jas@extundo.com>
18595             Bruno Haible  <bruno@clisp.org>
18596
18597         Add support for multiple gnulib-tool invocations in the scope of a
18598         single configure.ac file.
18599         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
18600         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
18601         with the same contents as the _LIBADD variable.
18602         (func_emit_initmacro_start, func_emit_initmacro_end,
18603         func_emit_initmacro_done): New functions.
18604         (func_import, func_create_testdir): Invoke them. Allow the identifiers
18605         gl_LIBOBJS and gl_LTLIBOBJS.
18606
18607 2006-10-11  Bruno Haible  <bruno@clisp.org>
18608
18609         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
18610         (func_create_testdir): Don't create po/Makefile.am, don't invoke
18611         autoreconf. Instead, invoke autopoint explicitly but move back the
18612         *.m4 files from gnulib.
18613
18614 2006-10-11  Bruno Haible  <bruno@clisp.org>
18615
18616         * gnulib-tool (func_usage): Make module names after --create-testdir
18617         optional.
18618         (func_create_testdir): If no module was specified, use nearly all
18619         modules.
18620
18621 2006-10-12  Jim Meyering  <jim@meyering.net>
18622
18623         Big performance improvement for fts-based tools that use FTS_NOSTAT.
18624         Avoid spurious inode-mismatch problems on non-POSIX file systems.
18625         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
18626         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
18627         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
18628         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
18629         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
18630         (fts_set_stat_required): New function.
18631         (fts_open): Defer the calls to fts_stat, if possible or requested.
18632         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
18633         into fts_stat itself.
18634         (fts_read): Perform any required (deferred) fts_stat call.
18635         (fts_build): Likewise, for the directory we're about to open and read.
18636         In the readdir loop, carefully decide whether each entry will require
18637         an eventual call to fts_stat, using dirent.d_type info if available.
18638         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
18639         a command line argument into this function.  Update all callers.
18640         Map a return value of FTS_DOT to FTS_D for a command line argument.
18641         * modules/fts (Depends-on): Add d-type.  Alphabetize.
18642         Thanks to Miklos Szeredi for his tenacity and for the initial
18643         bug report about "find" failing on a FUSE-based file system.
18644
18645         * lib/fts.c (fts_open): Use consistent indentation.
18646
18647 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18648
18649         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
18650         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
18651         reported by Jim Meyering.  All uses of cache variables renamed
18652         to match Autoconf's.
18653         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
18654         the other one.
18655
18656         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18657         Fix misspelling in diagnostic.
18658
18659 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18660
18661         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
18662         defined.  Problem reported by Matthew Woehlke.
18663
18664         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
18665         Add support for Tandem NonStop R series.
18666         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
18667         Use new macro.
18668
18669         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
18670         (has_trailing_slash): Omit size arg; all callers changed.
18671         Omit 'inline', since it doesn't help performance and we'd
18672         need to configure it.
18673         Don't count //, ///, etc. as having a trailing slash.
18674         As a side effect, this removes a C99ism reported by Matthew Woehlke.
18675         (rpl_rename_dest_slash): On failure, use rename's errno rather
18676         than (in some cases) an incorrect or junk errno.
18677         Simplify code by removing need to compute length; this does
18678         cause it to make two passes instead of one over the file name,
18679         but it's worth it.
18680
18681         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
18682         change, since Autoconf's version may no longer be appropriate now
18683         that we are using CVS Autoconf's version.  Add support for Tandem.
18684
18685 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18686             Bruno Haible  <bruno@clisp.org>
18687
18688         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
18689         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
18690         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
18691         gl_AC_TYPE_LONG_LONG.
18692
18693         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
18694         instead of HAVE_LONG_LONG.
18695         * lib/printf-args.c (printf_fetchargs): Likewise.
18696         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18697         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18698         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
18699         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
18700         gl_AC_TYPE_LONG_LONG.
18701
18702 2006-10-11  Bruno Haible  <bruno@clisp.org>
18703
18704         * m4/longlong.m4: Add comments.
18705         * m4/ulonglong.m4: Likewise.
18706
18707 2006-10-10  Bruno Haible  <bruno@clisp.org>
18708
18709         Make it possible to #define stpcpy, strdup to aliases.
18710         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
18711         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
18712
18713 2006-10-10  Bruno Haible  <bruno@clisp.org>
18714
18715         Make it possible to #define gcd to an alias.
18716         * lib/gcd.c: Include config.h.
18717
18718 2006-10-10  Bruno Haible  <bruno@clisp.org>
18719
18720         Make it possible to #define c_isascii to an alias.
18721         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
18722         defined. Undefine the macros before defining them, to avoid gcc
18723         warnings.
18724         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
18725         define NO_C_CTYPE_MACROS early.
18726
18727 2006-10-10  Bruno Haible  <bruno@clisp.org>
18728
18729         Make it possible to #define set_program_name to an alias.
18730         * lib/progname.c: Don't undefine set_program_name; instead, undefine
18731         ENABLE_RELOCATABLE early.
18732
18733 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18734
18735         Port to Tandem NSK OSS, which has 64-bit signed int but at most
18736         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
18737         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
18738         More generally, don't assume that 64-bit signed int is available
18739         if unsigned int is, and vice versa.
18740         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
18741         unsigned symbols, not on their signed counterparts.
18742         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
18743         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
18744         (UINT64_C, UINTMAX_C):
18745         Likewise.
18746         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
18747         unsigned counterparts.
18748         (Have_long_long, Unsigned): New macros.
18749         (Int): Renamed from INT.
18750         (strtoimax): Use the new macros.
18751         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
18752         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
18753         * modules/inttypes (inttypes.h): Substitute
18754         HAVE_UNSIGNED_LONG_LONG_INT.
18755         * modules/stdint (stdint.h): Likewise.
18756         (Files): Add m4/ulonglong.m4.
18757
18758 2006-10-10  Bruno Haible  <bruno@clisp.org>
18759
18760         Fix a gcc -Wshadow warning.
18761         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
18762         to 'bucket'.
18763         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
18764         gl_linked_indexof_from_to): Likewise.
18765         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
18766         Likewise.
18767         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
18768         Likewise.
18769         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
18770         Reported by Eric Blake.
18771
18772 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
18773
18774         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
18775         for NetBSD.  Problem reported by Bruno Haible.
18776
18777 2006-10-09  Jim Meyering  <jim@meyering.net>
18778
18779         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
18780         Patch from Bruno Haible.
18781
18782 2006-10-09  Jim Meyering  <jim@meyering.net>
18783
18784         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
18785         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
18786         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
18787
18788 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18789
18790         Don't include <config.h> twice; this doesn't work in some cases,
18791         e.g., when config.h has "#define intmax_t long long int" and
18792         we include <config.h>, <inttypes.h>, <config.h> in that order.
18793         Problem reported by Matthew Woehlke in:
18794         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
18795         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
18796         * lib/fts-cycle.c: Don't include config.h.
18797         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
18798         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
18799         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
18800         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
18801         inttypes.h.
18802         * lib/xstrtoumax.c: Likewise.
18803         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
18804         __strtol and the like, so that this module is more like its siblings.
18805         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
18806         Remove; no longer needed now that we assume gnulib inttypes.h.
18807
18808 2006-10-08  Bruno Haible  <bruno@clisp.org>
18809
18810         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
18811         option.
18812
18813 2006-10-07  Jim Meyering  <jim@meyering.net>
18814
18815         * modules/inttypes (inttypes.h): Revert what seems to have been
18816         an inadvertent part of today's change: use "|", not "/" in the
18817         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
18818
18819 2006-10-07  Bruno Haible  <bruno@clisp.org>
18820
18821         * modules/sublist: New file.
18822
18823 2006-10-07  Bruno Haible  <bruno@clisp.org>
18824
18825         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
18826         * modules/argz (argz.h): Likewise.
18827         * modules/arpa_inet (arpa/inet.h): Likewise.
18828         * modules/byteswap (byteswap.h): Likewise.
18829         * modules/configmake (configmake.h): Likewise.
18830         * modules/fcntl (fcntl.h): Likewise.
18831         * modules/fnmatch (fnmatch.h): Likewise.
18832         * modules/getopt (getopt.h): Likewise.
18833         * modules/glob (glob.h): Likewise.
18834         * modules/inttypes (inttypes.h): Likewise.
18835         * modules/netinet_in (netinet/in.h): Likewise.
18836         * modules/poll (poll.h): Likewise.
18837         * modules/stdbool (stdbool.h): Likewise.
18838         * modules/stdint (stdint.h): Likewise.
18839         * modules/sys_select (sys/select.h): Likewise.
18840         * modules/sys_socket (sys/socket.h): Likewise.
18841         * modules/sys_stat (sys/stat.h): Likewise.
18842         * modules/sysexits (sysexits.h): Likewise.
18843         * modules/unistd (unistd.h): Likewise.
18844         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18845         Add a "DO NOT EDIT" comment to the generated file.
18846         (func_import): Likewise for gnulib-comp.m4.
18847
18848 2006-10-07  Bruno Haible  <bruno@clisp.org>
18849
18850         * lib/gl_sublist.h: New file.
18851         * lib/gl_sublist.c: New file.
18852
18853 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18854
18855         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
18856         name (relative to the original working directory) and the file
18857         name component (relative to the temporary working directory).  All
18858         callers changed.
18859         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
18860         * lib/mkdir-p.c (make_dir_parents): Likewise.
18861         * lib/mkdir-p.h (make_dir_parents): Likewise.
18862
18863 2006-10-06  Eric Blake  <ebb9@byu.net>
18864
18865         Define several macros for use by the clean-temp module.
18866         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
18867         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
18868         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
18869
18870         * lib/clean-temp.h (close_stream_temp): New declaration.
18871         * lib/clean-temp.c (includes): Pull in headers according to what
18872         other modules are in use.
18873         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
18874
18875 2006-10-06  Bruno Haible  <bruno@clisp.org>
18876
18877         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
18878         instead of fopen, fwriteerror.
18879
18880 2006-10-06  Bruno Haible  <bruno@clisp.org>
18881
18882         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
18883         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
18884         int.
18885         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
18886         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
18887         Return an error indicator.
18888         Suggested by Eric Blake.
18889
18890 2006-10-06  Bruno Haible  <bruno@clisp.org>
18891
18892         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
18893         Reported by Eric Blake.
18894
18895 2006-10-06  Bruno Haible  <bruno@clisp.org>
18896
18897         * modules/closeout (Description): Mention stderr too.
18898
18899 2006-10-06  Bruno Haible  <bruno@clisp.org>
18900         and Paul Eggert  <eggert@cs.ucla.edu>
18901
18902         * lib/closeout.c (close_stdout): Also close stderr.
18903         * lib/closeout.h: Update comment.
18904
18905 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18906
18907         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
18908         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
18909         * lib/dirchownmod.c: Include lchown.h.
18910         * lib/lchown.c: Don't include files that lchown.h now includes.
18911         Don't declare chown, since lchown.h now does that.
18912         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
18913         (lchown): Define to rpl_chown if lchown is declared but
18914         does not exist.  Declare using a prototype if lchown is not
18915         declared.  Add a copyright notice.
18916         * lib/mkstemp.h: Include <unistd.h>.
18917         * lib/openat.c: Include lchown.h.
18918
18919         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
18920         we now test for that separately.
18921         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
18922         rather than O_NOFOLLOW, when testing whether it's possible to
18923         avoid a race condition reliably.
18924         * lib/savewd.c (savewd_chdir): Likewise.
18925
18926         Remove macros that are no longer needed now that stdint.h is
18927         reliable.
18928         * lib/fsusage.c (UINTMAX_MAX): Remove.
18929         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
18930         * lib/utimecmp.c (SIZE_MAX): Remove.
18931
18932         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
18933
18934         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
18935         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
18936         O_NOATIME works.
18937
18938 2006-10-05  Bruno Haible  <bruno@clisp.org>
18939
18940         * lib/gl_list.h (gl_sortedlist_search_from_to,
18941         gl_sortedlist_indexof_from_to): New declarations.
18942         (gl_list_implementation): New fields sortedlist_search_from_to,
18943         sortedlist_indexof_from_to.
18944         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
18945         inline functions.
18946         * lib/gl_list.c (gl_sortedlist_search_from_to,
18947         gl_sortedlist_indexof_from_to): New functions.
18948         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
18949         function.
18950         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
18951         (gl_array_sortedlist_search_from_to): New function.
18952         (gl_array_list_implementation): Update.
18953         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
18954         function.
18955         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
18956         (gl_carray_sortedlist_search_from_to): New function.
18957         (gl_carray_list_implementation): Update.
18958         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
18959         gl_linked_sortedlist_indexof_from_to): New functions.
18960         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18961         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18962         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
18963         gl_tree_sortedlist_indexof_from_to): New functions.
18964         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18965         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18966         Update.
18967         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18968         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
18969         Update.
18970
18971 2006-10-05  Bruno Haible  <bruno@clisp.org>
18972
18973         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
18974         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
18975         (struct gl_list_implementation): Add fields search_from_to,
18976         indexof_from_to. Remove fields search, indexof.
18977         (gl_list_search): Use the search_from_to method.
18978         (gl_list_search_from, gl_list_search_from_to): New functions.
18979         (gl_list_indexof): Use the indexof_from_to method.
18980         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
18981         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
18982         (gl_list_search_from, gl_list_search_from_to): New functions.
18983         (gl_list_indexof): Use the indexof_from_to method.
18984         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
18985         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
18986         gl_array_indexof. Add start_index, end_index arguments.
18987         (gl_array_search_from_to): Renamed from gl_array_search. Add
18988         start_index, end_index arguments.
18989         (gl_array_remove, gl_array_list_implementation): Update.
18990         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
18991         gl_carray_indexof. Add start_index, end_index arguments.
18992         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
18993         start_index, end_index arguments.
18994         (gl_carray_remove, gl_carray_list_implementation): Update.
18995         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
18996         gl_linked_search. Add start_index, end_index arguments.
18997         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
18998         start_index, end_index arguments.
18999         (gl_linked_remove): Update.
19000         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
19001         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
19002         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
19003         field to 'size_t'.
19004         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
19005         gl_tree_search. Add start_index, end_index arguments.
19006         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
19007         start_index, end_index arguments.
19008         (gl_tree_remove): Update.
19009         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
19010         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
19011         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
19012         function.
19013         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
19014         gl_tree_search. Add start_index, end_index arguments.
19015         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
19016         start_index, end_index arguments.
19017         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
19018         Update.
19019         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
19020
19021 2006-10-05  Bruno Haible  <bruno@clisp.org>
19022
19023         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
19024
19025         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
19026         fwriteerror_temp): New declarations.
19027         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
19028         (descriptors): New variable.
19029         (cleanup): First, close the descriptors.
19030         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
19031         fclose_temp, fwriteerror_temp): New functions.
19032
19033 2006-10-04  Jim Meyering  <jim@meyering.net>
19034
19035         * lib/fts.c (fts_open): Tiny comment change.
19036
19037 2006-10-04  Bruno Haible  <bruno@clisp.org>
19038
19039         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
19040         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
19041         gl_LOCK_BODY.
19042         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
19043         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
19044         gl_LOCK_EARLY_BODY.
19045         (gl_LOCK): Require gl_LOCK_BODY.
19046
19047 2006-10-04  Bruno Haible  <bruno@clisp.org>
19048
19049         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
19050         (gl_oset_search_atleast): New declaration.
19051         (struct gl_oset_implementation): Add field 'search_atleast'.
19052         (gl_oset_search_atleast): New inline function.
19053         * lib/gl_oset.c (gl_oset_search_atleast): New function.
19054         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
19055         (gl_array_oset_implementation): Update.
19056         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
19057         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
19058         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
19059
19060 2006-10-04  Bruno Haible  <bruno@clisp.org>
19061
19062         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
19063
19064 2006-10-03  Bruno Haible  <bruno@clisp.org>
19065
19066         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
19067         from gl_avltreehash_list_implementation.
19068
19069 2006-10-03  Bruno Haible  <bruno@clisp.org>
19070
19071         * lib/gl_oset.c (gl_oset_add): Fix return type.
19072
19073 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
19074
19075         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
19076
19077 2006-10-02  Eric Blake  <ebb9@byu.net>
19078
19079         * modules/strnlen (Depends-on): Add extensions.
19080
19081 2006-10-02  Eric Blake  <ebb9@byu.net>
19082
19083         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
19084         definition in 2.60+.
19085
19086 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
19087
19088         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
19089         checks.
19090
19091 2006-10-02  Bruno Haible  <bruno@clisp.org>
19092
19093         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
19094         to the AUTOMAKE_OPTIONS.
19095         Reported by Jim Meyering.
19096
19097 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
19098
19099         Work around bug in Solaris 10 /proc file system:
19100         /proc/self/fd/NNN/.. isn't the parent directory of
19101         the directory whose file descriptor is NNN.  This needs to
19102         be worked around at run time, not compile time, since a
19103         program might be built on Solaris 8, where things work, and
19104         run on Solaris 10.
19105         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
19106         to use the following interface instead:
19107         (OPENAT_BUFFER_SIZE): New macro.
19108         (openat_proc_name): New function.
19109         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
19110         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
19111         Likewise.
19112         * lib/openat-proc.c: New file.
19113         * modules/openat (Files): Add lib/openat-proc.c.
19114         (Depends-on): Add same-inode, stdbool.
19115         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
19116
19117 2006-09-29  Bruno Haible  <bruno@clisp.org>
19118
19119         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
19120         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
19121         argument. Set stdout_closed before testing for ferror, not after.
19122         (fwriteerror, fwriteerror_no_ebadf): New functions.
19123
19124 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19125
19126         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
19127
19128 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
19129
19130         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
19131         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
19132
19133 2006-09-28  Jim Meyering  <jim@meyering.net>
19134
19135         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
19136         Include <unistd.h>.
19137
19138 2006-09-28  Bruno Haible  <bruno@clisp.org>
19139
19140         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
19141         * modules/linkedhash-list (Depends-on): Likewise.
19142         * modules/rbtreehash-list (Depends-on): Likewise.
19143
19144 2006-09-28  Bruno Haible  <bruno@clisp.org>
19145
19146         * lib/strndup.h: Simplify the redefinition of strndup.
19147         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
19148         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
19149
19150 2006-09-28  Bruno Haible  <bruno@clisp.org>
19151
19152         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
19153         * lib/gl_linkedhash_list.c: Likewise.
19154         * lib/gl_rbtreehash_list.c: Likewise.
19155
19156 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
19157
19158         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
19159         getaddrinfo.
19160
19161         * lib/__fpending.h: Don't include <stdio_ext.h> unless
19162         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
19163         it causes <stdio_ext.h> to cause a compile-time error.
19164         Problem reported by Nelson H. F. Beebe.
19165         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
19166         of HAVE_DECL___PENDING.
19167
19168         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
19169         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
19170         declaration.
19171
19172 2006-09-27  Jim Meyering  <jim@meyering.net>
19173
19174         This file could end up with a definition for a function
19175         named __strndup, rather than rpl_strndup on a system with
19176         incomplete weak_alias support.
19177         * lib/strndup.c (strndup): Rename from __strndup.
19178         Remove #defines that used to map __strndup to strndup.
19179         Don't use K&R prototypes.
19180         Remove LIBC-related code, since this file is not sync'd with glibc.
19181         * lib/strndup.h: Revamp, accordingly.
19182         * m4/strndup.m4: Modernize.
19183
19184 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
19185
19186         * modules/savewd (Depends-on): Add 'raise'.
19187         * lib/savewd.c: Include <signal.h>, for 'raise'.
19188
19189 2006-09-26  Jim Meyering  <jim@meyering.net>
19190
19191         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
19192         when we detect Darwin 8.7.0's acl_get_file bug.
19193         Rearrange to perform the new (below) run-test while $LIBS
19194         contains any acl-related library.  Set USE_ACL at the end.
19195         (gl_ACL_GET_FILE): New function.
19196
19197 2006-09-26  Eric Blake  <ebb9@byu.net>
19198
19199         * lib/verror.c: Include <config.h> unconditionally.
19200
19201 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
19202
19203         * modules/clock-time (Maintainer): Add self.
19204         * modules/getlogin_r (Depends-on): Add extensions.
19205
19206 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19207
19208         * modules/clock-time: New module.
19209         * modules/nanosleep (Depends-on): Add clock-time.
19210         * modules/gethrxtime (Depends-on): Likewise.
19211         * modules/gettime (Depends-on): Likewise.
19212         * modules/settime (Depends-on): Likewise.
19213
19214         * modules/fts-lgpl: Depend on openat.
19215         * modules/mkancesdirs: Depend on savewd.
19216         * modules/mkdir-p: Likewise.
19217
19218 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19219
19220         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
19221
19222         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
19223         `gl_have_arbitrary_file_name_length_limit' to
19224         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
19225         actually works between configure runs.
19226
19227 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19228             Bruno Haible  <bruno@clisp.org>
19229
19230         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
19231
19232 2006-09-25  Jim Meyering  <jim@meyering.net>
19233
19234         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
19235         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
19236
19237 2006-09-25  Eric Blake  <ebb9@byu.net>
19238
19239         * gnulib-tool (func_import, func_create_testdir): Fix typos in
19240         exec's in 2006-09-18 patch when shuffling fds.
19241
19242 2006-09-25  Bruno Haible  <bruno@clisp.org>
19243
19244         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
19245         Reported by Jim Meyering.
19246
19247 2006-09-24  Jim Meyering  <jim@meyering.net>
19248
19249         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
19250         compare a pointer against a literal "0".  That caused failures with
19251         at least HP-UX's hpcc.
19252
19253 2006-09-22  Simon Josefsson  <jas@extundo.com>
19254
19255         * modules/gc-sha1:
19256         * modules/gc-md4:
19257         * modules/gc-hmac-sha1:
19258         * modules/gc-hmac-md5:
19259         * modules/gc-des:
19260         * modules/gc-arcfour: Distribute more files.
19261
19262 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19263
19264         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
19265         (gl_linked_iterator_from_to): Initialize struct completely.
19266         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
19267         (gl_tree_iterator_from_to): Likewise
19268         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
19269         * lib/gl_array_list.c [lint] (gl_array_iterator)
19270         (gl_array_iterator_from_to): Likewise.
19271         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
19272         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
19273         (gl_carray_iterator_from_to): Likewise.
19274
19275         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
19276         * lib/md4.c (md4_process_block): Remove unused variable.
19277         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
19278         parentheses for clarity.
19279
19280 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19281
19282         * modules/bison-i18n (Depends-on): Add gettext.
19283
19284 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19285
19286         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
19287         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
19288         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
19289         also add missing comma that caused broken test.
19290         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
19291         stdlib.h, for `abort'.
19292         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
19293         variables.
19294         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
19295         include unistd.h if present, for `rmdir'.
19296         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
19297         variables.
19298         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
19299         in the process include standard headers for prototypes.
19300         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
19301         gets declared on GNU/Linux.
19302         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
19303         unistd.h, for `rmdir'.
19304         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
19305
19306         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
19307         always true.
19308         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
19309
19310         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
19311
19312 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19313
19314         * gnulib-tool (func_version): Create output all at once.  This
19315         may help avoid triggering unnecessary SIGPIPEs, and at any
19316         rate it doesn't hurt.
19317
19318 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19319             Bruno Haible  <bruno@clisp.org>
19320
19321         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
19322         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19323         * m4/signed.m4 (bh_C_SIGNED): Likewise.
19324
19325         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
19326         (gl_FUNC_VASPRINTF): Invoke it.
19327
19328 2006-09-22  Bruno Haible  <bruno@clisp.org>
19329
19330         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
19331         getloadavg.c as first argument.
19332
19333 2006-09-22  Bruno Haible  <bruno@clisp.org>
19334
19335         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
19336         at the beginning of the gl_INIT macro.
19337         * modules/getloadavg (configure.ac): Pass $gl_source_base to
19338         gl_GETLOADAVG.
19339
19340 2006-09-22  Bruno Haible  <bruno@clisp.org>
19341
19342         * gnulib-tool (func_create_megatestdir): Don't include the config-h
19343         module.
19344         Suggested by Ralf Wildenhues.
19345
19346 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19347
19348         Import this patch from libc:
19349
19350         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
19351
19352         * lib/regex_internal.c (re_string_reconstruct): Handle
19353         offset < pstr->valid_raw_len && pstr->offsets_needed case.
19354         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
19355         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
19356         re_string_context_at.
19357
19358         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
19359         now requires it.
19360         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
19361         gl_REGEX now does it for us.
19362         (gl_REGEX): Add test taken from
19363         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
19364
19365         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
19366         Check that large offsets work.  Modernize Autoconf usages.
19367         Prefer "yes" to mean a good thing rather than a bad.
19368         Don't put "#define mkstemp" in config.h, as this might interfere
19369         with standard system headers that "#define mkstemp mkstemp64".
19370
19371         * modules/mkstemp (Depends-on): Add extensions, so that
19372         mkstemp is visible on some platforms.
19373         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
19374         (Include): Change to "mkstemp.h" from <stdlib.h>.
19375         (Files): Add mkstemp.h.
19376
19377         * lib/mkstemp.h: New file, since some standard headers
19378         #define mkstemp.
19379         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
19380         Include "mkstemp.h".
19381         Make the _LIBC code resemble glibc original more,
19382         e.g., use K&R style.
19383         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
19384         (mkstemp): Remove, since mkstemp.h does this for us.
19385         * lib/stdlib--.h: Include mkstemp.h.
19386
19387         Import this patch from libc:
19388
19389         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
19390
19391         * lib/tempname.c (__gen_tempname): Change attempts_min
19392         into a macro.  Use preprocessor to decide how to initialize
19393         attempts [Coverity CID 67].
19394
19395 2006-09-20  Bruno Haible  <bruno@clisp.org>
19396
19397         * lib/mkdtemp.c: Import from libc.
19398         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
19399                 * sysdeps/posix/tempname.c (__gen_tempname): Change
19400                 attempts_min into a macro.  Use preprocessor to decide how to
19401                 initialize attempts [Coverity CID 67].
19402         2001-11-27  Paul Eggert  <eggert@twinsun.com>
19403                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
19404                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
19405
19406 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19407
19408         * gnulib-tool (func_exit): New function, to allow to pass the
19409         exit status portably through the trap.  Use everywhere.
19410         (--help, --version): Signal a write error.
19411         (trap): catch SIGPIPE, for write errors.
19412         Exit at the end of the trap, with the correct exit status.
19413
19414 2006-09-19  Karl Berry  <karl@gnu.org>
19415
19416         * doc/gnulib.texi: note about the license texinfo files.
19417
19418 2006-09-19  Eric Blake  <ebb9@byu.net>
19419
19420         * gnulib-tool: Avoid space-tab.
19421
19422 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
19423
19424         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
19425         that prevented coreutils 6.1 from building.  Problem reported
19426         by Petter Reinholdtsen.
19427
19428 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
19429
19430         * gnulib-tool (avoidlist): Fix typo that broke options like
19431         --avoid=lock that are used by coreutils bootstrap.
19432
19433 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
19434
19435         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
19436         more systematically.
19437
19438 2006-09-18  Jim Meyering  <jim@meyering.net>
19439
19440         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
19441
19442 2006-09-18  Bruno Haible  <bruno@clisp.org>
19443
19444         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
19445
19446 2006-09-18  Bruno Haible  <bruno@clisp.org>
19447
19448         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
19449         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
19450         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
19451         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
19452         * m4/gettext.m4: Require autoconf >= 2.52.
19453         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
19454         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
19455         of gl_cv_header_inttypes_h.
19456
19457 2006-09-18  Bruno Haible  <bruno@clisp.org>
19458
19459         * lib/javaversion.c: Include configmake.h.
19460
19461 2006-09-18  Bruno Haible  <bruno@clisp.org>
19462
19463         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
19464         avoid that the while loops be executed in a subshell.
19465
19466 2006-09-18  Bruno Haible  <bruno@clisp.org>
19467
19468         * MODULES.html.sh (func_module): Break long lines.
19469         Suggested by Bruce Korb <bkorb@gnu.org>.
19470
19471 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19472
19473         Speed up by a factor of 1.12.
19474         * gnulib-tool (nl): New variable.
19475         (func_import): Rewrite include directive extraction to only read each
19476         directive once.
19477
19478 2006-09-17  Bruno Haible  <bruno@clisp.org>
19479
19480         * modules/javaversion (Makefile.am): Remove DEFS setting.
19481         (Depends-on): Add configmake, for PKGDATADIR definition.
19482
19483 2006-09-17  Bruno Haible  <bruno@clisp.org>
19484
19485         * gnulib-tool (func_create_testdir): Rewrite all files at once.
19486
19487 2006-09-17  Bruno Haible  <bruno@clisp.org>
19488
19489         * gnulib-tool (func_append): New function, stolen from libtool.m4.
19490         (func_modules_transitive_closure, func_modules_add_dummy,
19491         func_modules_to_filelist, func_import, func_create_testdir,
19492         func_create_megatestdir, ...): Use it wherever possible.
19493         Suggested by Ralf Wildenhues.
19494
19495 2006-09-16  Karl Berry  <karl@gnu.org>
19496
19497         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
19498         to avoid sectioning errors.
19499         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
19500         [ifinfo]: blank line after @center-ed titles.
19501         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
19502         Spell FSF address consistently with others.
19503         (These changes approved by rms.)
19504
19505 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19506
19507         Speed up by a factor of 1.61.
19508         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
19509         already checked module names again.
19510
19511 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19512
19513         Speed up by a factor of 1.13.
19514         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
19515         for new_files, and the input to func_add_or_update.
19516
19517 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19518
19519         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
19520         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
19521
19522 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19523
19524         * modules/mkancesdirs (Depends-on): Add fcntl.
19525         * modules/savewd: New file.
19526         * MODULES.html.sh (File system functions): Add savewd.
19527
19528         * modules/configmake (Makefile.am): Add support for the
19529         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
19530
19531 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19532
19533         * m4/savewd.m4: New file.
19534
19535 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19536
19537         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
19538         (dirchownmod): New arg FD.  All callers changed.
19539         Use FD rather than opening the directory ourself, as opening is
19540         now the caller's responsibility.
19541         * lib/dirchownmod.h: Likewise.
19542         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
19543         hosts that require <sys/types.h> before <sys/stat.h>.  Include
19544         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
19545         (test_dir): Remove.
19546         (mkancesdirs): Return length of prefix of FILE that has already
19547         been made, or -2 if there is a child doing the work.  Redo
19548         algorithm so that it is O(N) rather than O(N**2).  Optimize away
19549         ".", and treat ".." specially since it might stray back into
19550         already-created areas.  Use a subprocess if necessary.  New arg
19551         WD; all users changed.  MAKE_DIR function should now return 1
19552         if it creates a directory that is not readable.  Return -2 if
19553         a child process is spun off.
19554         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
19555         Adjust signature to match code.
19556         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
19557         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
19558         all users changed.
19559         * lib/savewd.c, lib/savewd.h: New files.
19560
19561 2006-09-15  Jim Meyering  <jim@meyering.net>
19562
19563         * modules/rename-dest-slash: New module.
19564         * MODULES.html.sh (posix_compat): Add it here.
19565
19566         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
19567
19568 2006-09-15  Jim Meyering  <jim@meyering.net>
19569
19570         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
19571         file.
19572
19573         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
19574
19575 2006-09-15  Jim Meyering  <jim@meyering.net>
19576
19577         * lib/rename-dest-slash.c (has_trailing_slash): Use
19578         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
19579         (rpl_rename_dest_slash): Perform the cheaper trailing slash
19580         test before testing whether SRC is a directory.
19581         Suggestions from Bruno Haible.
19582
19583         Avoid a warning about an unused variable.
19584         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
19585         into the #ifdef block where it's used.
19586
19587         * lib/rename-dest-slash.c: New file.
19588
19589 2006-09-14  Bruno Haible  <bruno@clisp.org>
19590
19591         * lib/allocsa.c: Include <config.h> unconditionally.
19592         * lib/asnprintf.c: Likewise.
19593         * lib/asprintf.c: Likewise.
19594         * lib/c-strcasecmp.c: Likewise.
19595         * lib/c-strcasestr.c: Likewise.
19596         * lib/c-strncasecmp.c: Likewise.
19597         * lib/c-strstr.c: Likewise.
19598         * lib/classpath.c: Likewise.
19599         * lib/clean-temp.c: Likewise.
19600         * lib/concatpath.c: Likewise.
19601         * lib/copy-file.c: Likewise.
19602         * lib/csharpcomp.c: Likewise.
19603         * lib/csharpexec.c: Likewise.
19604         * lib/execute.c: Likewise.
19605         * lib/fatal-signal.c: Likewise.
19606         * lib/findprog.c: Likewise.
19607         * lib/fwriteerror.c: Likewise.
19608         * lib/gl_array_list.c: Likewise.
19609         * lib/gl_array_oset.c: Likewise.
19610         * lib/gl_avltree_list.c: Likewise.
19611         * lib/gl_avltree_oset.c: Likewise.
19612         * lib/gl_avltreehash_list.c: Likewise.
19613         * lib/gl_carray_list.c: Likewise.
19614         * lib/gl_linked_list.c: Likewise.
19615         * lib/gl_linkedhash_list.c: Likewise.
19616         * lib/gl_list.c: Likewise.
19617         * lib/gl_oset.c: Likewise.
19618         * lib/gl_rbtree_list.c: Likewise.
19619         * lib/gl_rbtree_oset.c: Likewise.
19620         * lib/gl_rbtreehash_list.c: Likewise.
19621         * lib/imaxabs.c: Likewise.
19622         * lib/imaxdiv.c: Likewise.
19623         * lib/javacomp.c: Likewise.
19624         * lib/javaexec.c: Likewise.
19625         * lib/javaversion.c: Likewise.
19626         * lib/linebreak.c: Likewise.
19627         * lib/localcharset.c: Likewise.
19628         * lib/lock.c: Likewise.
19629         * lib/mbchar.c: Likewise.
19630         * lib/mbswidth.c: Likewise.
19631         * lib/mkdtemp.c: Likewise.
19632         * lib/pipe.c: Likewise.
19633         * lib/printf-args.c: Likewise.
19634         * lib/printf-parse.c: Likewise.
19635         * lib/progname.c: Likewise.
19636         * lib/progreloc.c: Likewise.
19637         * lib/readlink.c: Likewise.
19638         * lib/sh-quote.c: Likewise.
19639         * lib/stpcpy.c: Likewise.
19640         * lib/stpncpy.c: Likewise.
19641         * lib/strcasecmp.c: Likewise.
19642         * lib/strcasestr.c: Likewise.
19643         * lib/strcspn.c: Likewise.
19644         * lib/striconv.c: Likewise.
19645         * lib/strncasecmp.c: Likewise.
19646         * lib/strnlen1.c: Likewise.
19647         * lib/strstr.c: Likewise.
19648         * lib/strtok_r.c: Likewise.
19649         * lib/tls.c: Likewise.
19650         * lib/tmpdir.c: Likewise.
19651         * lib/unicodeio.c: Likewise.
19652         * lib/unsetenv.c: Likewise.
19653         * lib/vasnprintf.c: Likewise.
19654         * lib/vasprintf.c: Likewise.
19655         * lib/wait-process.c: Likewise.
19656         * lib/xallocsa.c: Likewise.
19657         * lib/xsetenv.c: Likewise.
19658         * lib/xstriconv.c: Likewise.
19659
19660 2006-09-13  Simon Josefsson  <jas@extundo.com>
19661
19662         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
19663         that internally, suggested by Ralf Wildenhues
19664         <Ralf.Wildenhues@gmx.de>.
19665
19666 2006-09-13  Simon Josefsson  <jas@extundo.com>
19667
19668         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
19669         @LIBOBJS@.
19670         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19671
19672 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19673
19674         * lib/_fpending.c: Include <config.h> unconditionally, since we no
19675         longer worry about uses that don't define HAVE_CONFIG_H.
19676         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
19677         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
19678         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
19679         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
19680         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
19681         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
19682         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
19683         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
19684         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
19685         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
19686         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
19687         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
19688         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
19689         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
19690         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
19691         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
19692         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
19693         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
19694         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
19695         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
19696         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
19697         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
19698         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
19699         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
19700         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
19701         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
19702         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
19703         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
19704         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
19705         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
19706         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
19707         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
19708         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
19709         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
19710         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
19711         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
19712         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
19713         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
19714         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
19715         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
19716         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
19717         Likewise.
19718
19719 2006-09-13  Eric Blake  <ebb9@byu.net>
19720
19721         * lib/getopt.c: Fix typo in last commit.
19722
19723 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19724
19725         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
19726         dgettext.
19727
19728 2006-09-12  Jim Meyering  <jim@meyering.net>
19729
19730         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
19731         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
19732         Reported by Nelson H. F. Beebe.
19733
19734 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
19735
19736         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
19737         program_invocation_name and program_invocation_short_name are
19738         initialized.
19739         * lib/argp-namefrob.h: Move declarations of program_invocation_name
19740         and program_invocation_short_name to argp.h, so they are visible
19741         to user programs.
19742         * lib/argp.h: Likewise
19743
19744 2006-09-10  Bruno Haible  <bruno@clisp.org>
19745
19746         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
19747         m4/inttypes_h.m4, m4/uintmax_t.m4.
19748
19749 2006-09-10  Bruno Haible  <bruno@clisp.org>
19750
19751         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
19752         gl_AC_TYPE_UINTMAX_T.
19753
19754 2006-09-10  Bruno Haible  <bruno@clisp.org>
19755
19756         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
19757
19758 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
19759
19760         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
19761         convention.  Text proposed by Bruno Haible.
19762         (struct argp_option): Document the use of N_() wrappers.
19763
19764         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
19765         '\v', and translate the two parts separately, instead of feeding
19766         the whole string to gettext.  This allows to exclude
19767         '\v' from the strings visible to the translator by writing doc
19768         strings as N_("..") "\v" N_("..").
19769
19770 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
19771
19772         * config/srclist.txt: Undo latest change; the bug was fixed.
19773
19774 2006-09-09  Bruno Haible  <bruno@clisp.org>
19775
19776         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
19777         assignments if building a library without libtool.
19778         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
19779         in func_emit_lib_Makefile_am.
19780         (func_import): When building a static library libfoo.a, arrange to
19781         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
19782         (func_create_testdir): Likewise.
19783         * modules/gc (configure.ac, Makefile.am): If building statically,
19784         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
19785         * modules/iconvme (configure.ac, Makefile.am): Likewise.
19786         * modules/striconv (configure.ac, Makefile.am): Likewise.
19787         Based on a suggestion by Ralf Wildenhues.
19788
19789 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19790
19791         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
19792         Check for unistd.h too, since Autoconf doesn't assume POSIX.
19793         Also:
19794
19795         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19796         Add year_2050_test to catch glibc bug 2821
19797         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19798
19799         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19800         Prefer #ifdef to #if.
19801
19802         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
19803         Return from 'main' instead of calling 'exit'.
19804
19805 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19806
19807         * lib/mktime.c (guess_time_tm): Fix bug where mktime
19808         returned the maximum time_t value rather than (time_t) -1.
19809         Problem originally reported by William Bardwell
19810         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19811
19812         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19813         Moved to here ...
19814         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19815         ... from here.
19816
19817 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19818
19819         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
19820         2821 is fixed.
19821
19822 2006-09-08  Jim Meyering  <jim@meyering.net>
19823
19824         Don't make generated files read-only.  That would bother too many
19825         people.  However, do retain the ability to work when targets are
19826         read-only: remove the destination and temporary files before writing
19827         them (when generated via sed or echo), or by using the -f option for
19828         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
19829         * modules/alloca-opt, modules/argz, modules/arpa_inet:
19830         * modules/byteswap, modules/configmake, modules/fcntl:
19831         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19832         * modules/localcharset, modules/netinet_in, modules/poll:
19833         * modules/stdbool, modules/stdint, modules/sys_select:
19834         * modules/sys_socket, modules/sys_stat, modules/sysexits:
19835
19836 2006-09-08  Jim Meyering  <jim@meyering.net>
19837
19838         Avoid new build failure on FreeBSD 6.0.
19839         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
19840         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
19841         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
19842
19843 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19844
19845         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
19846
19847 2006-09-07  Jim Meyering  <jim@meyering.net>
19848
19849         Fix global typo in last change: use chmod u-w, not chmod u-x.
19850         Spotted by Paul Eggert and Bruce Korb.
19851         * modules/alloca-opt, modules/argz, modules/arpa_inet:
19852         * modules/byteswap, modules/configmake, modules/fcntl:
19853         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19854         * modules/localcharset, modules/netinet_in, modules/poll:
19855         * modules/stdbool, modules/stdint, modules/sys_select:
19856         * modules/sys_socket, modules/sys_stat, modules/sysexits:
19857
19858 2006-09-06  Jim Meyering  <jim@meyering.net>
19859
19860         Make generated files be read-only.
19861         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
19862         Ensure that each generated file is now read-only.
19863         * modules/argz: Likewise.
19864         * modules/arpa_inet: Likewise.
19865         * modules/byteswap: Likewise.
19866         * modules/configmake: Likewise.
19867         * modules/fcntl: Likewise.
19868         * modules/fnmatch: Likewise.
19869         * modules/getopt: Likewise.
19870         * modules/glob: Likewise.
19871         * modules/inttypes: Likewise.
19872         * modules/netinet_in: Likewise.
19873         * modules/poll: Likewise.
19874         * modules/stdbool: Likewise.
19875         * modules/stdint: Likewise.
19876         * modules/sys_select: Likewise.
19877         * modules/sys_socket: Likewise.
19878         * modules/sys_stat: Likewise.
19879         * modules/sysexits: Likewise.
19880         * modules/localcharset: Same as above, but continue using temporary
19881         file named "t-$@" (why different?) rather than the "$@-t" used
19882         everywhere else.
19883
19884         * modules/sysexits (Makefile.am): Replace literal occurrences
19885         of "sysexit.h" more readable, and more consistent, "$@".
19886
19887 2006-09-06  Bruno Haible  <bruno@clisp.org>
19888
19889         * modules/striconv: New file.
19890         * modules/xstriconv: New file.
19891         * MODULES.html.sh (Internationalization functions): Add striconv,
19892         xstriconv.
19893
19894 2006-09-06  Bruno Haible  <bruno@clisp.org>
19895
19896         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
19897         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
19898         not using libtool correctly.
19899
19900 2006-09-06  Bruno Haible  <bruno@clisp.org>
19901
19902         * lib/striconv.h: New file.
19903         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
19904         iconvstring.c.
19905         * lib/xstriconv.h: New file.
19906         * lib/xstriconv.c: New file.
19907
19908 2006-09-06  Bruno Haible  <bruno@clisp.org>
19909
19910         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19911         lib_..._LDFLAGS.
19912
19913 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19914
19915         * lib/argz_.h: Sync from Libtool.
19916
19917         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
19918                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19919
19920         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
19921
19922 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
19923
19924         * modules/trim: New file.
19925
19926 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
19927
19928         * lib/trim.h: New file.
19929         * lib/trim.c: New file.
19930
19931 2006-09-05  Bruno Haible  <bruno@clisp.org>
19932
19933         * MODULES.html.sh (String handling): Add trim.
19934
19935 2006-09-04  Karl Berry  <karl@gnu.org>
19936
19937         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
19938         until next release.
19939
19940 2006-09-03  Bruno Haible  <bruno@clisp.org>
19941
19942         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
19943         correctly.
19944
19945 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19946
19947         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
19948         not gl_GETLOADAVG.  Omit unneeded semicolons.
19949         Problems reported by Ralf Wildenhues in
19950         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
19951         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
19952         at the end, which is the usual gnulib style.
19953
19954         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
19955         of doing all the work ourselves.
19956         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
19957         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
19958
19959 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19960
19961         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
19962         Problem reported by Ralf Wildenhues in
19963         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
19964
19965         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
19966         HAVE_STRUCT_STATFS_F_FSTYPENAME.
19967
19968 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19969
19970         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
19971         yesterday's patch by changing test -n to test -z.
19972
19973 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19974
19975         * modules/getloadavg (Files): Add m4/getloadavg.m4.
19976         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
19977         the former is now obsolescent.
19978
19979         * modules/chdir-long (Depends-on): Add fcntl.
19980
19981 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19982
19983         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
19984         obsolescent, and programs should use gnulib instead.
19985         * m4/getloadavg.m4: New file, with contents taken from Autoconf
19986         but with prefixes changed.
19987
19988 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19989
19990         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
19991         or stdbool.h, because they might not exist while configuring.
19992
19993         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
19994         Don't include unistd.h or limits.h; not needed, since chdir-long.h
19995         does that for us.
19996         (O_DIRECTORY): Remove.
19997
19998 2006-08-31  Eric Blake  <ebb9@byu.net>
19999
20000         * gnulib-tool: Don't let emacs change spaces to TAB.
20001
20002 2006-08-31  Bruno Haible  <bruno@clisp.org>
20003
20004         * gnulib-tool: When calling func_import more than once, do it in a
20005         subshell.
20006         Reported by Eric Blake <ebb9@byu.net>.
20007
20008 2006-08-31  Bruno Haible  <bruno@clisp.org>
20009
20010         * gnulib-tool (nl): Remove variable.
20011         (sed_transform_lib_file): Use more robust test for config-h module.
20012         (func_import): Fix typo in 2006-08-25 patch.
20013
20014 2006-08-31  Bruno Haible  <bruno@clisp.org>
20015
20016         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
20017         specified, augment Makefile.am variables instead of assigning them.
20018
20019 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
20020
20021         Work around a bug in both the Linux and SunOS 64-bit kernels:
20022         nanosleep mishandles sleeps for longer than 2**31 seconds.
20023         Problem reported by Frank v Waveren in
20024         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
20025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
20026         Check for nanosleep bug.
20027         (LIB_NANOSLEEP): Append clock_gettime library if needed.
20028
20029 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
20030
20031         Work around a bug in both the Linux and SunOS 64-bit kernels:
20032         nanosleep mishandles sleeps for longer than 2**31 seconds.
20033         Problem reported by Frank v Waveren in
20034         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
20035         * lib/nanosleep.c (BILLION): New constant.
20036         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
20037         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
20038         implementation.
20039
20040 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
20041
20042         * modules/nanosleep (Depends-on): Add gettime.
20043
20044 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
20045         and Simon Josefsson  <jas@extundo.com>
20046         and Oskar Liljeblad  <oskar@osk.mine.nu>
20047
20048         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
20049         * gnulib-tool (func_import): New license type 'unmodifiable license
20050         text'.
20051         * modules/fdl: Use it.  Longer description.
20052         * module/gpl, module/lgpl: New files.
20053
20054 2006-08-30  Jim Meyering  <jim@meyering.net>
20055
20056         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
20057         shadowing the parameter.
20058
20059 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20060
20061         Sync from Libtool:
20062
20063         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20064
20065         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
20066         sharing with gnulib.  Report by Eric Blake.
20067
20068 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
20069
20070         * modules/isapipe: New file.
20071         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
20072
20073 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
20074
20075         * modules/configmake (Makefile.am): Add a comment, and omit
20076         the CONFIGMAKE_ prefix from generated macro names.  Suggested
20077         by Bruno Haible.
20078
20079 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
20080
20081         * m4/isapipe.m4: New file.
20082
20083 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
20084
20085         * lib/isapipe.c, lib/isapipe.h: New files.
20086
20087 2006-08-29  Jim Meyering  <jim@meyering.net>
20088
20089         * modules/configmake (Makefile.am): Make configmake.h depend on
20090         Makefile.  Otherwise, a stale configmake.h could hang around.
20091
20092 2006-08-29  Eric Blake  <ebb9@byu.net>
20093
20094         * lib/error.c (error_at_line, print_errno_message): Match libc, after
20095         resolution of upstream bug 3044.
20096
20097 2006-08-29  Bruno Haible  <bruno@clisp.org>
20098
20099         * modules/localcharset (Depends-on): Add configmake.
20100         (Makefile.am): Remove setting of LIBDIR through DEFS.
20101
20102 2006-08-29  Bruno Haible  <bruno@clisp.org>
20103
20104         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
20105         defined.
20106
20107 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
20108
20109         * modules/fcntl: New file.
20110         * modules/chdir-safer (Depends-on): Add fcntl.
20111         * modules/fts: Likewise.
20112         * modules/mkdir-p: Likewise.
20113
20114         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
20115         This undoes the most recent change, since we're now addressing the
20116         problem in a different way.
20117
20118         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
20119         into output, since the output might be called Makefile.am even
20120         if $makefile_name is something different.
20121         (func_import): Use $makefile_am rather than
20122         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
20123         empty.
20124
20125         * modules/inttypes (Files): Add m4/inttypes-h.m4.
20126
20127 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
20128
20129         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
20130         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
20131         recent change to stdint.m4, since we're now addressing the problem in a
20132         different way.
20133
20134 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
20135
20136         * m4/fcntl_h.m4: New file.
20137
20138 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
20139
20140         * lib/fcntl_.h: New file.
20141         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
20142         the fcntl module.
20143         * lib/dirchownmod.c: Likewise.
20144         * lib/fts.c: Likewise.
20145
20146         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
20147         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
20148         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
20149         just before including <inttypes.h>, to avoid circular inclusion.
20150
20151 2006-08-28  Jim Meyering  <jim@meyering.net>
20152
20153         * doc/visibility.texi: Actually read and correct the grammar of the
20154         sentence affected by yesterday's change.
20155
20156 2006-08-28  Eric Blake  <ebb9@byu.net>
20157
20158         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
20159         needs wrapper.
20160
20161 2006-08-28  Eric Blake  <ebb9@byu.net>
20162
20163         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
20164
20165 2006-08-28  Eric Blake  <ebb9@byu.net>
20166
20167         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
20168
20169 2006-08-28  Bruno Haible  <bruno@clisp.org>
20170
20171         * modules/c-strstr: New file, from GNU gettext.
20172         * MODULES.html.sh (String handling): Add c-strstr.
20173
20174 2006-08-28  Bruno Haible  <bruno@clisp.org>
20175
20176         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
20177         macros.
20178         Reported by Eric Blake.
20179
20180 2006-08-28  Bruno Haible  <bruno@clisp.org>
20181
20182         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
20183         (VASNPRINTF): Return a string of length > INT_MAX without failing.
20184         * lib/vasprintf.c: Include errno.h, limits.h.
20185         (EOVERFLOW): New fallback definition.
20186         (vasprintf): Test here whether the string length is > INT_MAX.
20187         * lib/vsnprintf.c: Include errno.h, limits.h.
20188         (EOVERFLOW): New fallback definition.
20189         (vsnprintf): Fix bug when generated string was too long for the buffer.
20190         Test here whether the string length is > INT_MAX.
20191
20192 2006-08-28  Bruno Haible  <bruno@clisp.org>
20193
20194         * lib/inttypes_.h (SCNX*): Remove definitions.
20195         Reported by Eric Blake.
20196
20197 2006-08-28  Bruno Haible  <bruno@clisp.org>
20198
20199         * lib/c-strstr.h: New file, from GNU gettext.
20200         * lib/c-strstr.c: New file, from GNU gettext.
20201
20202 2006-08-28  Bruno Haible  <bruno@clisp.org>
20203
20204         * gnulib-tool: Reorder some statements.
20205
20206 2006-08-28  Bruno Haible  <bruno@clisp.org>
20207
20208         * gnulib-tool: New option --makefile-name.
20209         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
20210         $makefile_name.
20211         (func_import): Write $makefile_name to the cache file, and read it from
20212         there unless explicitly specified. Use $makefile_name as file name
20213         instead of Makefile.am. Adjust the recommendations accordingly.
20214
20215 2006-08-28  Bruno Haible  <bruno@clisp.org>
20216
20217         * gnulib-tool (func_verify_module): Check against misapplying patch.
20218
20219 2006-08-28  Bruno Haible  <bruno@clisp.org>
20220
20221         * gnulib-tool (func_relativize, func_relconcat): New functions.
20222         Give an error if --local-dir is given with --update.
20223         Remove trailing slashes from $local_gnulib_dir.
20224         (func_import): Store the relativized $local_gnulib_dir in
20225         gnulib-cache.m4, and read it from there if not specified explicitly.
20226
20227 2006-08-28  Bruno Haible  <bruno@clisp.org>
20228
20229         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
20230         is the current directory. Respect also $local_gnulib_dir.
20231
20232 2006-08-28  Bruno Haible  <bruno@clisp.org>
20233             Simon Josefsson  <jas@extundo.com>
20234
20235         BeOS portability.
20236         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
20237
20238 2006-08-27  Jim Meyering  <jim@meyering.net>
20239
20240         * doc/visibility.texi: Remove duplicate word: "pointer".
20241
20242 2006-08-26  Bruno Haible  <bruno@clisp.org>
20243
20244         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
20245         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
20246         (Makefile.am): Create inttypes.h from inttypes_.h.
20247         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
20248
20249         * modules/imaxabs: New file.
20250
20251         * modules/imaxdiv: New file.
20252
20253 2006-08-26  Bruno Haible  <bruno@clisp.org>
20254
20255         * m4/inttypes.m4: New file.
20256         * m4/_inttypes_h.m4: Remove file.
20257         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
20258         PRI_MACROS_BROKEN.
20259         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
20260
20261         * m4/imaxabs.m4: New file.
20262
20263         * m4/imaxdiv.m4: New file.
20264
20265 2006-08-26  Bruno Haible  <bruno@clisp.org>
20266
20267         * lib/inttypes_.h: New file.
20268         * lib/inttypes.h: Remove file.
20269         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
20270
20271         * lib/imaxabs.c: New file.
20272
20273         * lib/imaxdiv.c: New file.
20274
20275 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
20276
20277         New config-h module, so that "make" output needn't be cluttered
20278         by -DHAVE_CONFIG_H.
20279         * MODULES.html.sh (Support for building libraries and executables):
20280         Add config-h.
20281         * modules/config-h: New file.
20282         * gnulib-tool (nl, sed_transform_lib_file): New vars.
20283         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
20284         the config-h module is used.
20285
20286         New configmake module, so that "make" output needn't be cluttered
20287         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
20288         * MODULES.html.sh (Support for building libraries and executables):
20289         Add configmake.
20290         * modules/configmake: New file.
20291
20292 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
20293
20294         * m4/config-h.m4: New file.
20295
20296 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20297
20298         * config/srclist.txt: Add elisp-comp.
20299
20300 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20301
20302         * MODULES.html.sh (Support for building libraries and executables):
20303         Add elisp-comp.
20304         * build-aux/elisp-comp: New file.
20305         * modules/elisp-comp: New file.
20306
20307 2006-08-24  Bruno Haible  <bruno@clisp.org>
20308
20309         * gnulib-tool (func_create_testdir): Use non-default values of
20310         sourcebase and m4base.
20311
20312 2006-08-24  Bruno Haible  <bruno@clisp.org>
20313
20314         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
20315         HTML structure.
20316
20317 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20318
20319         * modules/openat (Depends-on): Add lchown.
20320
20321 2006-08-23  Bruno Haible  <bruno@clisp.org>
20322
20323         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
20324         of gl_LOCK_EARLY instead of gl_LOCK.
20325
20326 2006-08-23  Bruno Haible  <bruno@clisp.org>
20327
20328         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
20329         on OSF/1 to no.
20330         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
20331
20332 2006-08-23  Bruno Haible  <bruno@clisp.org>
20333
20334         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
20335         as unusable.
20336
20337         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
20338         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
20339         (gl_LOCK): New macro.
20340
20341 2006-08-22  Simon Josefsson  <jas@extundo.com>
20342
20343         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
20344         to md5 module.
20345
20346 2006-08-22  Simon Josefsson  <jas@extundo.com>
20347
20348         * MODULES.html.sh: Add "Support for maintaining and release
20349         projects".
20350
20351         * build-aux/gnupload: New file, from coreutils.
20352
20353 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20354
20355         Avoid the need for AC_LIBSOURCES in m4 macros.
20356         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
20357         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
20358         * modules/check-version (EXTRA_DIST): Add check-version.h.
20359         * modules/crc (EXTRA_DIST): Add crc.h.
20360         * modules/des (EXTRA_DIST): Add des.h.
20361         * modules/gc (EXTRA_DIST): Add gc.h.
20362         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
20363         * modules/getline (EXTRA_DIST): Add getline.h.
20364         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
20365         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
20366         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
20367         * modules/md2 (EXTRA_DIST): Add md2.h.
20368         * modules/md4 (EXTRA_DIST): Add md4.h.
20369         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
20370         * modules/read-file (EXTRA_DIST): Add read-file.h.
20371         * modules/readline (EXTRA_DIST): Add readline.h.
20372         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
20373         rijndael-api-fst.h.
20374
20375 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20376
20377         * m4/rijndael.m4 (gl_ARCFOUR):
20378         * m4/arctwo.m4 (gl_ARCTWO):
20379         * m4/check-version.m4 (gl_CHECK_VERSION):
20380         * m4/crc.m4 (gl_CRC):
20381         * m4/des.m4 (gl_DES):
20382         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
20383         * m4/gc.m4 (gl_GC):
20384         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
20385         * m4/getline.m4 (gl_FUNC_GETLINE):
20386         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
20387         * m4/hmac-md5.m4 (gl_HMAC_MD5):
20388         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
20389         * m4/md2.m4 (gl_MD2):
20390         * m4/md4.m4 (gl_MD4):
20391         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
20392         * m4/read-file.m4 (gl_FUNC_READ_FILE):
20393         * m4/readline.m4 (gl_FUNC_READLINE):
20394         * m4/rijndael.m4 (gl_RIJNDAEL):
20395         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
20396         to get the necessary .h files and whatnot.
20397
20398 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20399
20400         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
20401         gnulib rather than the other way around.
20402         * config/srclistvars.sh (COREUTILS): Remove.
20403
20404 2006-08-22  Jim Meyering  <jim@meyering.net>
20405
20406         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
20407
20408         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
20409
20410 2006-08-22  Eric Blake  <ebb9@byu.net>
20411
20412         * modules/regexprops-generic: New file.
20413         * MODULES.html.sh (Support for building documentation): List it.
20414
20415 2006-08-22  Eric Blake  <ebb9@byu.net>
20416
20417         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
20418         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20419         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
20420         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20421
20422 2006-08-22  Bruno Haible  <bruno@clisp.org>
20423
20424         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
20425         and lib_LTLIBRARIES like the other lib_* variables.
20426
20427 2006-08-22  Bruno Haible  <bruno@clisp.org>
20428
20429         * build-aux/x-to-1.in: New file, from GNU gettext.
20430
20431 2006-08-22  Bruno Haible  <bruno@clisp.org>
20432
20433         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
20434         <utmpx.h> exists.
20435
20436 2006-08-22  Bruno Haible  <bruno@clisp.org>
20437
20438         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
20439         <utmpx.h> exists.
20440
20441 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20442
20443         BeOS portability.
20444         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
20445         exist.
20446         Problem reported by Bruno Haible.
20447
20448 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20449
20450         Avoid the need for AC_LIBSOURCES in m4 macros.
20451         * modules/acl (EXTRA_DIST): Add acl.h.
20452         * modules/argmatch (Files): Add m4/argmatch.m4.
20453         (configure.ac): Add gl_ARGMATCH.
20454         (EXTRA_DIST): Renamed from lib_SOURCES, for
20455         consistency with the other modules.  Remove argmatch.c.
20456         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
20457         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
20458         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
20459         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
20460         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
20461         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
20462         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
20463         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
20464         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
20465         * modules/closeout (EXTRA_DIST): Add closeout.h.
20466         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
20467         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
20468         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
20469         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
20470         dirname.h; remove basename.c and stripslash.c.
20471         * modules/exclude (EXTRA_DIST): Add exclude.h.
20472         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
20473         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
20474         * modules/file-type (EXTRA_DIST): Add file-type.h.
20475         * modules/filemode (EXTRA_DIST): Add filemode.h.
20476         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
20477         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20478         * modules/fpending (EXTRA_DIST): Add __fpending.h.
20479         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
20480         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
20481         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
20482         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
20483         * modules/getdate (EXTRA_DIST): Add getdate.c.
20484         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
20485         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
20486         * modules/getpass (EXTRA_DIST): Add getpass.h.
20487         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
20488         * modules/group-member (EXTRA_DIST): Add group-member.h.
20489         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
20490         * modules/hash (EXTRA_DIST): Add hash.h.
20491         * modules/human (EXTRA_DIST): Add human.h.
20492         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
20493         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
20494         * modules/lchown (EXTRA_DIST): Add lchown.h.
20495         * modules/long-options (EXTRA_DIST): Add long-options.h.
20496         * modules/lstat (EXTRA_DIST): Add lstat.h.
20497         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
20498         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
20499         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
20500         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
20501         * modules/memxor (EXTRA_DIST): Add memxor.h.
20502         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
20503         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
20504         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
20505         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
20506         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
20507         * modules/physmem (EXTRA_DIST): Add physmem.h.
20508         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
20509         * modules/posixver (EXTRA_DIST): Add posixver.h.
20510         * modules/quote (EXTRA_DIST): Add quote.h.
20511         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
20512         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
20513         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
20514         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
20515         regex_internal.h regexec.c.
20516         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
20517         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
20518         * modules/same (EXTRA_DIST): Add same.h.
20519         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
20520         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
20521         * modules/savedir (EXTRA_DIST): Add savedir.h.
20522         * modules/sha1 (EXTRA_DIST): Add sha1.h.
20523         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
20524         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
20525         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
20526         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
20527         * modules/strdup (EXTRA_DIST): Add strdup.h.
20528         * modules/strftime (EXTRA_DIST): Add strftime.h.
20529         * modules/strndup (EXTRA_DIST): Add strndup.h.
20530         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
20531         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
20532         * modules/time_r (EXTRA_DIST): Add time_r.h.
20533         * modules/timespec (EXTRA_DIST): Add timespec.h.
20534         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20535         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
20536         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
20537         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
20538         * modules/userspec (EXTRA_DIST): Add userspec.h.
20539         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
20540         * modules/utimens (EXTRA_DIST): Add utimens.h.
20541         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
20542         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
20543         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
20544         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
20545         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
20546         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
20547         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
20548         * modules/yesno (EXTRA_DIST): Add yesno.h.
20549
20550 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20551
20552         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
20553
20554         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
20555         * m4/dev-ino.m4, same-inode.m4: Remove.
20556
20557         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
20558         * m4/acl.m4 (AC_FUNC_ACL):
20559         * m4/backupfile.m4 (gl_BACKUPFILE):
20560         * m4/c-strtod.m4 (gl_C99_STRTOLD):
20561         * m4/canon-host.m4 (gl_CANON_HOST):
20562         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20563         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
20564         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
20565         * m4/cloexec.m4 (gl_CLOEXEC):
20566         * m4/close-stream.m4 (gl_CLOSE_STREAM):
20567         * m4/closeout.m4 (gl_CLOSEOUT):
20568         * m4/dirfd.m4 (gl_FUNC_DIRFD):
20569         * m4/dirname.m4 (gl_DIRNAME):
20570         * m4/exclude.m4 (gl_EXCLUDE):
20571         * m4/exitfail.m4 (gl_EXITFAIL):
20572         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
20573         * m4/file-type.m4 (gl_FILE_TYPE):
20574         * m4/filemode.m4 (gl_FILEMODE):
20575         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
20576         * m4/fpending.m4 (gl_FUNC_FPENDING):
20577         * m4/fprintftime.m4 (gl_FPRINTFTIME):
20578         * m4/fts.m4 (gl_FUNC_FTS):
20579         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
20580         * m4/getdate.m4 (gl_GETDATE):
20581         * m4/gethrxtime.m4 (gl_GETHRXTIME):
20582         * m4/getpagesize.m4 (gl_GETPAGESIZE):
20583         * m4/getpass.m4 (gl_FUNC_GETPASS):
20584         * m4/gettime.m4 (gl_GETTIME):
20585         * m4/getugroups.m4 (gl_GETUGROUPS):
20586         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
20587         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
20588         * m4/hard-locale.m4 (gl_HARD_LOCALE):
20589         * m4/hash.m4 (gl_HASH):
20590         * m4/idcache.m4 (gl_IDCACHE):
20591         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
20592         * m4/lchown.m4 (gl_FUNC_LCHOWN):
20593         * m4/long-options.m4 (gl_LONG_OPTIONS):
20594         * m4/lstat.m4 (gl_FUNC_LSTAT):
20595         * m4/md5.m4 (gl_MD5):
20596         * m4/memcasecmp.m4 (gl_MEMCASECMP):
20597         * m4/memcoll.m4 (gl_MEMCOLL):
20598         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
20599         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
20600         * m4/memxor.m4 (gl_MEMXOR):
20601         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
20602         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
20603         * m4/modechange.m4 (gl_MODECHANGE):
20604         * m4/mountlist.m4 (gl_MOUNTLIST):
20605         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20606         * m4/openat.m4 (gl_FUNC_OPENAT):
20607         * m4/pathmax.m4 (gl_PATHMAX):
20608         * m4/physmem.m4 (gl_PHYSMEM):
20609         * m4/posixtm.m4 (gl_POSIXTM):
20610         * m4/posixver.m4 (gl_POSIXVER):
20611         * m4/quote.m4 (gl_QUOTE):
20612         * m4/quotearg.m4 (gl_QUOTEARG):
20613         * m4/readtokens.m4 (gl_READTOKENS):
20614         * m4/readutmp.m4 (gl_READUTMP):
20615         * m4/regex.m4 (gl_REGEX):
20616         * m4/safe-read.m4 (gl_SAFE_READ):
20617         * m4/safe-write.m4 (gl_SAFE_WRITE):
20618         * m4/same.m4 (gl_SAME):
20619         * m4/save-cwd.m4 (gl_SAVE_CWD):
20620         * m4/savedir.m4 (gl_SAVEDIR):
20621         * m4/settime.m4 (gl_SETTIME):
20622         * m4/sha1.m4 (gl_SHA1):
20623         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
20624         * m4/stat-macros.m4 (gl_STAT_MACROS):
20625         * m4/stat-time.m4 (gl_STAT_TIME):
20626         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
20627         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
20628         * m4/strdup.m4 (gl_FUNC_STRDUP):
20629         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
20630         * m4/strndup.m4 (gl_FUNC_STRNDUP):
20631         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
20632         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
20633         * m4/time_r.m4 (gl_TIME_R):
20634         * m4/timespec.m4 (gl_TIMESPEC):
20635         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
20636         * m4/unlinkdir.m4 (gl_UNLINKDIR):
20637         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
20638         * m4/userspec.m4 (gl_USERSPEC):
20639         * m4/utimecmp.m4 (gl_UTIMECMP):
20640         * m4/utimens.m4 (gl_UTIMENS):
20641         * m4/xalloc.m4 (gl_XALLOC):
20642         * m4/xgetcwd.m4 (gl_XGETCWD):
20643         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
20644         * m4/xreadlink.m4 (gl_XREADLINK):
20645         * m4/xstrtod.m4 (gl_XSTRTOD):
20646         * m4/yesno.m4 (gl_YESNO):
20647         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
20648         to get the necessary .h files and whatnot.
20649
20650 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
20651             Bruno Haible  <bruno@clisp.org>
20652
20653         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
20654         /bin/sh understanding of '!' conditional negation.
20655
20656 2006-08-21  Jim Meyering  <jim@meyering.net>
20657
20658         * modules/openat (Depends-on): Really alphabetize.
20659
20660         * modules/acl (Depends-on): Add error and quote.
20661
20662         * check-module (find_included_lib_files): Add at-func.c to the
20663         ok-to-include-more-than-once white list.
20664
20665         * modules/openat (Depends-on): Add lstat.  Alphabetize.
20666
20667 2006-08-21  Bruno Haible  <bruno@clisp.org>
20668
20669         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20670         Emit a pkgdata_DATA variable only if some snippets add contents to it.
20671         Reported by Martin Lambers <marlam@marlam.de>.
20672
20673 2006-08-21  Bruno Haible  <bruno@clisp.org>
20674
20675         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
20676         specify an installation location, don't emit a noinst_LIBRARIES or
20677         noinst_LTLIBRARIES assignment.
20678
20679 2006-08-21  Bruno Haible  <bruno@clisp.org>
20680
20681         BeOS portability.
20682         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
20683         BeOS has mbrtowc() but no <wctype.h>.
20684
20685 2006-08-21  Bruno Haible  <bruno@clisp.org>
20686
20687         BeOS portability.
20688         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
20689         exist.
20690
20691 2006-08-21  Bruno Haible  <bruno@clisp.org>
20692
20693         BeOS portability.
20694         * lib/mbchar.h: Include <wctype.h> only if it exists.
20695
20696 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20697
20698         Remove files that are no longer needed by their respective modules.
20699         * m4/obstack.m4: Remove.
20700         * m4/strerror_r.m4: Remove.
20701         * m4/uint32_t.m4: Remove.
20702         * m4/uintptr_t.m4: Remove.
20703         * m4/ullong_max.m4: Remove.
20704         * m4/xstrtoimax.m4: Remove.
20705         * m4/xstrtoumax.m4: Remove.
20706
20707         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
20708         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
20709         dependencies now capture this.
20710
20711         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20712         Do not use AC_LIBSOURCES, since gnulib modules now do this.
20713         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
20714         * m4/human.m4 (gl_HUMAN): Likewise.
20715         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
20716         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
20717
20718         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
20719
20720         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
20721         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
20722         stdint.
20723         * m4/human.m4 (gl_HUMAN): Likewise.
20724         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
20725         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
20726         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20727         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20728         * m4/xstrtol (gl_XSTRTOL): Likewise.
20729
20730         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
20731         AC_TYPE_LONG_LONG_INT.
20732         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20733         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
20734         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
20735         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20736
20737         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
20738         on stdbool.
20739
20740         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
20741         (gl_PREREQ_XSTRTOUL): Remove.
20742
20743         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
20744
20745         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
20746         mode.
20747
20748 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20749
20750         Add and change modules to make it easier for coreutils to use
20751         gnulib-tool.
20752         * modules/backupfile (Files): Remove m4/d-ino.m4.
20753         (Depends-on): Add d-ino.
20754         * modules/cycle-check (Depends-on): Add stdint.
20755         (lib_SOURCES): Add cycle-check.h.
20756         * modules/d-ino: New module.
20757         * modules/d-type: New module.
20758         * modules/error (Files): Remove m4/strerror_r.m4.
20759         * modules/filemode (Files): Add m4/st_dm_mode.m4.
20760         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
20761         m4/inttypes_h.m4, m4/uintmax_t.m4.
20762         (Depends-on): Add stdint.
20763         (lib_SOURCES): Add fsusage.h.
20764         * modules/getcwd (Files): Remove d-ino.m4.
20765         (Depends-on): Add d-ino.
20766         * modules/getndelim2 (Depends-on): Add stdint.
20767         * modules/glob (Files): Remove m4/d-type.m4.
20768         (Depends-on): Add d-type.
20769         * modules/host-os: New module.
20770         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
20771         m4/inttypes_h.m4, m4/uintmax_t.m4.
20772         * Depends-on: Add stdint.
20773         (lib_SOURCES): Add human.h.
20774         * modules/inttostr (Files): Remove m4/intmax_t.m4,
20775         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
20776         m4/uintmax_t.m4, m4/ulonglong.m4.
20777         (Depends-on): Add stdint.
20778         (EXTRA_DIST): Add inttostr.h.
20779         * modules/lchmod: New module.
20780         * modules/link-follow: New module.
20781         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
20782         (Depends-on): Add lchmod.
20783         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
20784         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
20785         (Depends-on): Add stdint.
20786         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
20787         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
20788         (Depends-on): Add stdint.
20789         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
20790         * modules/perl: New module.
20791         * modules/regex (Depends-on): Add stdint.
20792         * modules/rmdir-errno: New module.
20793         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20794         m4/intmax_t.m4.
20795         (Depends-on): Add stdint.
20796         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20797         m4/uintmax_t.m4.
20798         (Depends-on): Add stdint.
20799         * modules/unlink-busy: New module.
20800         * modules/utimecmp (Depends-on): Add stdint.
20801         * modules/uptime: New module.
20802         * modules/winsz-ioctl: New module.
20803         * modules/winsz-termios: New module.
20804         * modules/xnanosleep (Depends-on): Add nanosleep.
20805         * modules/ullong_max: Remove.
20806         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
20807         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
20808         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
20809         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
20810         (Depends-on): Add inttypes.
20811         (lib_SOURCES): Add xstrtol.h.
20812         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
20813         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
20814         * MODULES.html.sh: Move 'assert' into the assert section.
20815         Move 'dummy' into the linking section.
20816         Remove ullong_max.
20817         Add section for compatibility checks for POSIX:2001 functions,
20818         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
20819         winsz-ioctl, and winsz-termios into it.
20820         Add lchmod.
20821         Add top-level Misc section and put host-os, perl, and uptime
20822         into it.
20823
20824 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20825
20826         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
20827         now assume the stdint module.  Do not include inttypes.h.
20828         * lib/fsusage.h: Likewise.
20829         * lib/getndelim2.c: Likewise.
20830         * lib/human.h: Likewise.
20831         * lib/inttostr.h: Likewise.
20832         * lib/obstack.c: Likewise.
20833         * lib/regex_internal.h: Likewise.
20834         * lib/tempname.c: Likewise.
20835         * lib/utimecmp.c: Likewise.
20836         * lib/xstrtol.h: Likewise.
20837
20838         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
20839
20840         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
20841         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
20842         * lib/xtime.h: Likewise.
20843
20844 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20845
20846         * modules/openat (Files): Add lib/fchmodat.c.
20847         Fixes problem reported by Jay Youngman.
20848
20849 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20850
20851         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
20852         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
20853
20854 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
20855             Bruno Haible  <bruno@clisp.org>
20856
20857         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
20858         and is a script that invokes bison. Tighten the code. Add comments.
20859
20860 2006-08-18  Jim Meyering  <jim@meyering.net>
20861
20862         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
20863         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
20864         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
20865         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
20866
20867 2006-08-18  Bruno Haible  <bruno@clisp.org>
20868
20869         * modules/bison-i18n: New file.
20870         * MODULES.html.sh (Internationalization functions): Add it.
20871
20872 2006-08-18  Bruno Haible  <bruno@clisp.org>
20873
20874         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
20875         sys/statvfs.h. When getmntinfo was found, check its declaration and
20876         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
20877
20878 2006-08-18  Bruno Haible  <bruno@clisp.org>
20879
20880         * m4/bison-i18n.m4: New file, from bison.
20881
20882 2006-08-18  Bruno Haible  <bruno@clisp.org>
20883
20884         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
20885         (ME_DUMMY): Treat "kernfs" as a dummy.
20886         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
20887
20888 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20889
20890         Update from coreutils.
20891
20892         2006-08-15  Jim Meyering  <jim@meyering.net>
20893
20894         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
20895
20896         2006-01-17  Jim Meyering  <jim@meyering.net>
20897
20898         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
20899
20900         2006-01-11  Jim Meyering  <jim@meyering.net>
20901
20902         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
20903         Check for the lchmod function.
20904
20905 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20906
20907         Update from coreutils.
20908
20909         * lib/__fpending.h: Add copyright notice.
20910         * lib/fprintftime.h: Likewise.
20911         * lib/savedir.c: Use (C) in copyright notice.
20912         * lib/savedir.h: Likewise.
20913
20914         2006-08-15  Jim Meyering  <jim@meyering.net>
20915
20916         * lib/at-func.c: New file, with the logic of all emulated at-functions.
20917         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
20918         in support of the EXPECTED_ERRNO macro.
20919         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
20920         definitions.  Instead, define the appropriate symbols and include
20921         "at-func.c".
20922         * lib/mkdirat.c (mkdirat): Likewise.
20923         * lib/fchmodat.c (fchmodat): Likewise.
20924         (ENOSYS): Remove definition.
20925         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
20926         it.  Don't include "unistd--.h" -- it wasn't ever used.
20927
20928         2006-01-17  Jim Meyering  <jim@meyering.net>
20929
20930         Rewrite fts.c not to change the current working directory,
20931         by using openat, fstatat, fdopendir, etc..
20932
20933         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
20934         (HAVE_OPENAT_SUPPORT): Define.
20935         [_LIBC] (fchdir): Don't undef or define; no longer used.
20936         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
20937         Now, this `function' always succeeds, and consumes its file descriptor
20938         parameter -- so callers must not close such FDs.  Update callers.
20939         (diropen_fd, opendirat, cwd_advance_fd): New functions.
20940         (diropen): Add parameter, SP.  Adjust all callers.
20941         Implement using diropen_fd, rather than open.
20942         (fts_open): Initialize new member, fts_cwd_fd.
20943         Remove fts_rft-setting code.
20944         (fts_close): Close fts_cwd_fd, if necessary.
20945         (__opendir2): Define in terms of opendir or opendirat,
20946         depending on whether the FST_NOCHDIR flag is set.
20947         (fts_build): Since fts_safe_changedir consumes its FD, and since
20948         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
20949         and close the dup'd file descriptor upon failure.
20950         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
20951         (fts_safe_changedir): Tweak semantics to reflect that this function
20952         now calls cwd_advance_fd and hence consumes its FD argument.
20953         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
20954         [struct FTS] (fts_rft): Remove now-unused member.
20955         [struct FTS] (fts_cycle.state): Improve comment.
20956
20957         * lib/openat.c (openat_needs_fchdir): New function.
20958         * lib/openat.h (openat_needs_fchdir): Declare it.
20959
20960 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
20961
20962         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
20963         Problem and fix reported by Pádraig Brady in
20964         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
20965
20966 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20967
20968         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
20969
20970 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20971
20972         * lib/memcoll.c (memcoll): Optimize for the common case where the
20973         arguments are bytewise equal.
20974
20975 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20976
20977         * doc/regexprops-generic.texi: Add a copyright notice.
20978
20979 2006-08-15  Bruno Haible  <bruno@clisp.org>
20980
20981         * modules/tmpdir (License): Change to LGPL.
20982
20983 2006-08-15  Bruno Haible  <bruno@clisp.org>
20984
20985         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
20986         module.
20987
20988 2006-08-14  Simon Josefsson  <jas@extundo.com>
20989
20990         * config/srclist.txt: Add gnupload.
20991
20992 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20993
20994         Change copyright notice from LGPL 2 to GPL 2, since that's the
20995         standard form used in the gnulib repository.
20996         * tests/test-lock.c: Likewise.
20997         * tests/test-stdint.c: Likewise.
20998         * tests/test-tls.c: Likewise.
20999
21000         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
21001         prelude-manager.  User shorter URLs for GNU projects, without '?'.
21002         Add copyright notice.
21003
21004         * check-module: Add copyright notice.  Output a copyright
21005         notice if "--version" is specified.
21006         * modules/COPYING: New file.
21007         * tests/test-getaddrinfo.c: Add copyright notice.
21008         * tests/test-verify.c: Likewise.
21009
21010 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21011
21012         Change copyright notice from LGPL 2 to GPL 2, since that's the
21013         standard form used in the gnulib repository.
21014         * lib/lock.c: LGPL -> GPL.
21015         * lib/lock.h: Likewise.
21016         * lib/strnlen1.c: Likewise.
21017         * lib/strnlen1.h: Likewise.
21018         * lib/tls.c: Likewise.
21019         * lib/tls.h: Likewise.
21020         * lib/tmpdir.c: Likewise.
21021
21022         * lib/TODO: Remove; this belongs only in coreutils.
21023
21024 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21025
21026         Add copyright notices to long-enough files that lack them, since
21027         otherwise the files aren't clearly free.  Use the same notice that
21028         getdate.texi already uses.
21029         * doc/alloca-opt.texi: Add copyright notice.
21030         * doc/alloca.texi: Likewise.
21031         * doc/ctime.texi: Likewise.
21032         * doc/functions.texi: Likewise.
21033         * doc/gcd.texi: Likewise.
21034         * doc/gnulib-tool.texi: Likewise.
21035         * doc/inet_ntoa.texi: Likewise.
21036         * doc/visibility.texi: Likewise.
21037
21038         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
21039         * doc/quote.texi: Add copyright notice.
21040
21041         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
21042         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
21043         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
21044         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
21045         is now obsolete, and give a pointer to the Sun list.
21046         Add copyright notice.
21047
21048 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21049
21050         * config/srclistvars.sh: Add copyright notice.
21051
21052 2006-08-14  Eric Blake  <ebb9@byu.net>
21053
21054         Import the following change from libc:
21055
21056         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
21057
21058         Upstream bug 2997.
21059         * lib/misc/error.c: Add space between program name and message if file
21060         name is missing.
21061
21062 2006-08-12  Karl Berry  <karl@gnu.org>
21063
21064         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
21065         remove, these originate in gnulib now.
21066
21067 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21068
21069         * doc/Makefile (standards.info standards.html standards.dvi):
21070         Also depend on make-stds.texi.
21071
21072 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21073
21074         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
21075         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
21076
21077         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
21078         in wchar_t.  Problem reported by Eric Blake.
21079
21080         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
21081         LEN is smaller than SIZE.  Suggested by Bruno Haible.
21082         Also, help the compiler to keep LEN in a register.
21083
21084 2006-08-11  Eric Blake  <ebb9@byu.net>
21085
21086         * users.txt: Sort.  Add tar.
21087
21088 2006-08-11  Bruno Haible  <bruno@clisp.org>
21089
21090         * users.txt: New file.
21091
21092 2006-08-11  Bruno Haible  <bruno@clisp.org>
21093
21094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
21095         before <wchar.h>. Needed for OSF/1 and BSD/OS.
21096
21097 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21098
21099         * modules/snprintf (Depends-on): Remove minmax.
21100         (Maintainer): Add self and Bruno.
21101
21102 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21103
21104         * lib/.cppi-disable: Add snprintf.h, socket_.h.
21105         * lib/snprintf.c: Include <errno.h> and <limits.h>.
21106         (EOVERFLOW): Define if the system does not.
21107         Do not include "minmax.h"; it wasn't used.
21108         (snprintf): Don't assume size_t promotes to an unsigned type.
21109         Fix bug when generated string was too long for the buffer: the
21110         buffer's contents are supposed to be the initial prefix of the
21111         output.  Don't assume vasnprintf returns EOVERFLOW if the size
21112         exceeds INT_MAX; do the check ourselves.
21113
21114         Import the following changes from libc:
21115
21116         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
21117
21118         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
21119         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
21120         set wc to the byte which couldn't be converted.
21121         (re_string_reconstruct): Don't clear valid_raw_len before calling
21122         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
21123         tip_context using re_string_context_at.
21124
21125         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
21126
21127         * lib/posix/regex.h: g++ still cannot handled [restrict].
21128
21129         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
21130
21131         * lib/posix/regex.h: Remove special handling for VMS.
21132
21133 2006-08-10  Jim Meyering  <jim@meyering.net>
21134
21135         * modules/same-inode: New module.
21136         * modules/dev-ino: New module.
21137         * modules/cycle-check: Depend on these modules, rather than simply
21138         including their .h files.
21139         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
21140         required via m4/cycle-check.m4.
21141         * modules/same: Depend on new same-inode module, rather than
21142         including same-inode.h.
21143         * modules/chdir-safer: New file.
21144
21145         * modules/chown (Depends-on): Add stat-macros.
21146
21147 2006-08-10  Jim Meyering  <jim@meyering.net>
21148
21149         * m4/cycle-check.m4: New file.
21150         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
21151         * m4/dev-ino.m4, m4/same-inode.m4: New files.
21152
21153 2006-08-10  Eric Blake  <ebb9@byu.net>
21154
21155         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
21156         in from original proposal.
21157
21158 2006-08-10  Eric Blake  <ebb9@byu.net>
21159         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21160
21161         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
21162         namespace.
21163
21164 2006-08-10  Bruno Haible  <bruno@clisp.org>
21165
21166         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
21167         as well.
21168
21169 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21170
21171         Sync from coreutils.
21172
21173         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
21174
21175         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
21176         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
21177
21178 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21179
21180         * modules/restrict: Remove; no longer needed now that we assume
21181         Autoconf 2.59 or later.
21182         * MODULES.html.sh: Remove 'restrict'.
21183         * modules/argp (Depends-on): Remove 'restrict'.
21184         * modules/base64 (Depends-on): Likewise.
21185         * modules/gc (Depends-on): Likewise.
21186         * modules/getaddrinfo (Depends-on): Likewise.
21187         * modules/glob (Depends-on): Likewise.
21188         * modules/inet_ntop (Depends-on): Likewise.
21189         * modules/inet_pton (Depends-on): Likewise.
21190         * modules/memxor (Depends-on): Likewise.
21191         * modules/regex (Depends-on): Likewise.
21192         * modules/strtok_r (Depends-on): Likewise.
21193         * modules/time_r (Depends-on): Likewise.
21194
21195 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21196
21197         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
21198         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
21199         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
21200         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
21201         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21202         * m4/memxor.m4 (gl_MEMXOR): Likewise.
21203         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
21204         gl_C_RESTRICT replaced by AC_C_RESTRICT.
21205
21206         Merge from coreutils.
21207         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
21208         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
21209         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
21210         * m4/time_r.m4 (gl_TIME_R): Likewise.
21211
21212 2006-08-09  Karl Berry  <karl@gnu.org>
21213
21214         * config/srclist.txt: no more gettext-tools, per Bruno.
21215
21216 2006-08-08  Eric Blake  <ebb9@byu.net>
21217
21218         * modules/verror: New module.
21219         * MODULES.html.sh: Document it.
21220
21221 2006-08-08  Eric Blake  <ebb9@byu.net>
21222
21223         * lib/verror.h, lib/verror.c: New files.
21224
21225 2006-08-08  Eric Blake  <ebb9@byu.net>
21226
21227         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
21228         verror_at_line output complies with GNU Coding Standards even when
21229         file is NULL.
21230
21231 2006-08-07  Bruno Haible  <bruno@clisp.org>
21232
21233         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
21234         versions of AIX.
21235         Reported by Ralf Wildenhues.
21236
21237 2006-08-07  Bruno Haible  <bruno@clisp.org>
21238
21239         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
21240         in an AC_DEFUN. Needed so that the autoconf snippets can use
21241         AC_REQUIRE.
21242
21243 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21244
21245         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21246         Initialize pkgdata_DATA.
21247         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
21248         overriding it.
21249
21250 2006-08-06  Eric Blake  <ebb9@byu.net>
21251
21252         * lib/error.h: Fold in some upstream changes from glibc.
21253         * lib/error.c: Likewise.
21254
21255 2006-08-04  Bruno Haible  <bruno@clisp.org>
21256
21257         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21258         Make the mostlyclean-local rule depend on mostlyclean-generic.
21259         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
21260
21261 2006-07-31  Bruno Haible  <bruno@clisp.org>
21262
21263         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
21264         <stdlib.h>, <string.h>.
21265
21266 2006-07-30  Bruno Haible  <bruno@clisp.org>
21267
21268         * modules/readlink (License): Change to LGPL.
21269
21270 2006-07-30  Bruno Haible  <bruno@clisp.org>
21271
21272         * modules/javaversion (Makefile.am): Distribute javaversion.java and
21273         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
21274         set PKGDATADIR to point to it.
21275
21276 2006-07-30  Bruno Haible  <bruno@clisp.org>
21277
21278         * modules/csharpexec (configure.ac): Comment out macro invocation.
21279         * modules/javaexec (configure.ac): Likewise.
21280         * modules/javacomp-script (configure.ac): Likewise.
21281
21282         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
21283
21284 2006-07-30  Bruno Haible  <bruno@clisp.org>
21285
21286         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
21287         linked-list.
21288
21289 2006-07-30  Bruno Haible  <bruno@clisp.org>
21290
21291         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
21292
21293 2006-07-30  Bruno Haible  <bruno@clisp.org>
21294
21295         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21296         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
21297         get removed.
21298
21299 2006-07-29  Bruno Haible  <bruno@clisp.org>
21300
21301         Make it possible for gnulib-tool to work with locally modified or
21302         augmented gnulib repositories.
21303         * gnulib-tool (func_usage): Document --local-dir option.
21304         (local_gnulib_dir): New variable.
21305         Handle --local-dir option.
21306         (func_lookup_file): New function.
21307         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
21308         (func_get_description, func_get_filelist, func_get_description,
21309         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
21310         func_get_automake_snippet, func_get_include_directive,
21311         func_get_license, func_get_maintainer): Use func_lookup_file.
21312         (func_import, func_create_testdir): Use func_lookup_file.
21313
21314 2006-07-29  Bruno Haible  <bruno@clisp.org>
21315
21316         * modules/setenv (Depends-on): Add unistd.
21317
21318 2006-07-29  Bruno Haible  <bruno@clisp.org>
21319
21320         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
21321
21322 2006-07-29  Bruno Haible  <bruno@clisp.org>
21323
21324         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
21325
21326 2006-07-29  Bruno Haible  <bruno@clisp.org>
21327
21328         * gnulib-tool (import, update): If there is no Makefile.am, look at
21329         aclocal.m4, instead of bailing out.
21330
21331 2006-07-29  Bruno Haible  <bruno@clisp.org>
21332
21333         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
21334         Categorize the options by when they are useful.
21335
21336 2006-07-29  Bruno Haible  <bruno@clisp.org>
21337
21338         * gnulib-tool (func_usage): Document option --no-libtool.
21339         Handle option --no-libtool.
21340         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
21341         for changed semantics of $libtool variable.
21342         (func_import): Likewise. If libtool is not used, show this through
21343         an option --no-libtool.
21344         (func_create_testdir): Update.
21345
21346 2006-07-29  Bruno Haible  <bruno@clisp.org>
21347
21348         * gnulib-tool (func_import): Extend error message about missing
21349         --doc-base.
21350
21351 2006-07-29  Bruno Haible  <bruno@clisp.org>
21352
21353         * gnulib-tool (func_import): Don't create the $docbase directory if
21354         there is no file to store there.
21355
21356 2006-07-29  Bruno Haible  <bruno@clisp.org>
21357
21358         * gnulib-tool (autoconf_minversion): If a --dir option is given and
21359         relevant, look for configure.ac there, not in the current directory.
21360         Also use a simple search for AC_PREREQ, not "autoconf --trace".
21361
21362 2006-07-29  Bruno Haible  <bruno@clisp.org>
21363
21364         * gnulib-tool (SORT): New variable.
21365         (func_usage): Undocument --assume-autoconf option.
21366         Remove --assume-autoconf option handling.
21367         (autoconf_minversion): Determine from the contents of configure.ac.
21368         (func_import): Remove autoconf_minversion handling.
21369         Suggested by Eric Blake.
21370
21371 2006-07-29  Bruno Haible  <bruno@clisp.org>
21372
21373         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
21374
21375 2006-07-29  Bruno Haible  <bruno@clisp.org>
21376
21377         * config/srclist.txt (*setenv.[ch]): Remove rules.
21378
21379 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21380
21381         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
21382
21383 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21384
21385         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
21386         arpa/inet.h.
21387
21388 2006-07-28  Simon Josefsson  <jas@extundo.com>
21389
21390         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
21391         * modules/inet_pton (Depends-on): Likewise.
21392
21393 2006-07-28  Simon Josefsson  <jas@extundo.com>
21394
21395         * m4/netinet_in_h.m4: New file.
21396
21397 2006-07-28  Simon Josefsson  <jas@extundo.com>
21398
21399         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
21400         #include's.
21401
21402 2006-07-28  Simon Josefsson  <jas@extundo.com>
21403
21404         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
21405         #include's.
21406
21407 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
21408
21409         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
21410         setgid on directories only if they set these bits.
21411         * lib/modechange.h: Remove obsolete comment about masks.
21412
21413 2006-07-28  Eric Blake  <ebb9@byu.net>
21414
21415         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
21416         macro expansion.
21417
21418 2006-07-28  Bruno Haible  <bruno@clisp.org>
21419
21420         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
21421
21422 2006-07-28  Bruno Haible  <bruno@clisp.org>
21423
21424         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
21425
21426 2006-07-28  Bruno Haible  <bruno@clisp.org>
21427
21428         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21429         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
21430         Define fallbacks.
21431         Avoids link error on FreeBSD 4.x.
21432         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21433
21434         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
21435         encoding.
21436         * lib/mbswidth.c (iswcntrl): Likewise.
21437
21438 2006-07-27  Bruno Haible  <bruno@clisp.org>
21439
21440         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
21441         test.
21442
21443 2006-07-27  Bruno Haible  <bruno@clisp.org>
21444
21445         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
21446         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
21447         defined.
21448
21449 2006-07-26  Eric Blake  <ebb9@byu.net>
21450
21451         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
21452
21453 2006-07-26  Eric Blake  <ebb9@byu.net>
21454
21455         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
21456         like mingw that lack mkstemp.
21457         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
21458         avoid compilation warning on mingw.
21459
21460 2006-07-26  Bruno Haible  <bruno@clisp.org>
21461
21462         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
21463         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
21464         INT_FAST*_MIN, INTPTR_MIN.
21465
21466 2006-07-25  Bruno Haible  <bruno@clisp.org>
21467
21468         * modules/version-etc (Depends-on): Add stdarg.
21469
21470 2006-07-25  Bruno Haible  <bruno@clisp.org>
21471
21472         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
21473         complex commands.
21474
21475 2006-07-25  Bruno Haible  <bruno@clisp.org>
21476
21477         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
21478         defined in <stdarg.h> or config.h.
21479
21480 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21481
21482         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
21483         (gl_STDIO_SAFER): Remove.
21484
21485 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21486
21487         * MODULES.html.sh (File stream based Input/Output):
21488         Add fopen-safer, tmpfile-safer; remove stdio-safer.
21489         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
21490         * modules/fopen-safer, modules/tmpfile-safer: New files.
21491         * modules/stdio-safer: Remove.
21492
21493 2006-07-24  Bruno Haible  <bruno@clisp.org>
21494
21495         * modules/tmpdir: New file.
21496         * MODULES.html.sh (File system functions): Add it.
21497
21498 2006-07-24  Bruno Haible  <bruno@clisp.org>
21499
21500         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
21501         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
21502
21503 2006-07-24  Bruno Haible  <bruno@clisp.org>
21504
21505         * modules/clean-temp: New file.
21506
21507 2006-07-24  Bruno Haible  <bruno@clisp.org>
21508
21509         * m4/tmpdir.m4: New file, from GNU gettext.
21510
21511 2006-07-24  Bruno Haible  <bruno@clisp.org>
21512
21513         * lib/tmpdir.h: New file, from GNU gettext.
21514         * lib/tmpdir.c: New file, from GNU gettext.
21515
21516 2006-07-24  Bruno Haible  <bruno@clisp.org>
21517
21518         * lib/clean-temp.h: New file, from GNU gettext.
21519         * lib/clean-temp.c: New file, from GNU gettext.
21520
21521 2006-07-23  Eric Blake  <ebb9@byu.net>
21522
21523         * modules/stdio-safer (Files): Add tmpfile-safer.c.
21524         (Depends-on): Add binary-io.
21525
21526 2006-07-23  Eric Blake  <ebb9@byu.net>
21527
21528         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
21529
21530 2006-07-23  Eric Blake  <ebb9@byu.net>
21531
21532         * lib/tmpfile-safer.c: New file.
21533         * lib/stdio-safer.h (fopen_safer): Add prototype.
21534         * lib/stdio--.h (tmpfile): Make safer.
21535
21536 2006-07-23  Bruno Haible  <bruno@clisp.org>
21537
21538         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
21539         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
21540         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
21541         gl_linked_remove_at): Use it.
21542
21543 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21544         and Simon Josefsson <jas@extundo.com>
21545
21546         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
21547
21548         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
21549
21550 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21551
21552         * modules/close-stream: New file.
21553         * modules/closeout (Description): Make it clear that it exits
21554         with a diagnostic on error.
21555         (Depends-on): Add close-stream.  Remove fpending, stdbool.
21556         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
21557
21558 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21559
21560         * m4/close-stream.m4: New file.
21561
21562 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21563
21564         * lib/close-stream.c, lib/close-stream.h: New files.
21565
21566 2006-07-22  Bruno Haible  <bruno@clisp.org>
21567
21568         Merge from GNU gettext 0.15.
21569
21570         2006-05-01  Bruno Haible  <bruno@clisp.org>
21571
21572                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
21573
21574         2006-07-22  Bruno Haible  <bruno@clisp.org>
21575
21576                 * modules/javaversion: New file.
21577                 * MODULES.html.sh (Java): Add javaversion.
21578
21579         2006-03-12  Bruno Haible  <bruno@clisp.org>
21580
21581                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
21582
21583         2005-12-04  Bruno Haible  <bruno@clisp.org>
21584
21585                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
21586                 (untested).
21587
21588         2006-06-21  Bruno Haible  <bruno@clisp.org>
21589
21590                 Avoid warnings from recent versions of mcs.
21591                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
21592                 -o, -L, -r any more. Use options documented since mcs-1.0
21593                 instead. Similarly for -g.
21594
21595         2005-12-04  Bruno Haible  <bruno@clisp.org>
21596
21597                 * build-aux/csharpcomp.sh.in: Suffix for resources is
21598                 .resources, not .resource.
21599
21600         2005-07-09  Bruno Haible  <bruno@clisp.org>
21601
21602                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
21603                 add a .dll suffix.
21604                 Reported by Mark Junker <mjscod@gmx.de>.
21605
21606         2006-07-22  Bruno Haible  <bruno@clisp.org>
21607
21608                 * modules/gettext: Upgrade to gettext-0.15.
21609                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
21610                 m4/visibility.m4.
21611                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
21612
21613 2006-07-22  Bruno Haible  <bruno@clisp.org>
21614
21615         Merge from GNU gettext 0.15.
21616
21617         2006-03-25  Bruno Haible  <bruno@clisp.org>
21618
21619                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
21620
21621         2006-07-21  Bruno Haible  <bruno@clisp.org>
21622
21623                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
21624                 "1.1".
21625
21626         2006-05-09  Bruno Haible  <bruno@clisp.org>
21627
21628                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
21629                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
21630                 for the conftestver execution.
21631
21632         2006-05-01  Bruno Haible  <bruno@clisp.org>
21633
21634                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
21635                 optional target-version argument. Verify that the compiler
21636                 groks source of the specified source-version, or add -source
21637                 option as necessary. Verify that the compiler produces
21638                 bytecode in the specified target-version, or add -target and
21639                 -source options as necessary. Make the result of the test
21640                 available as variable CONF_JAVAC. Also log error output in
21641                 config.log.
21642
21643         2006-03-11  Bruno Haible  <bruno@clisp.org>
21644
21645                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
21646
21647         2006-05-09  Bruno Haible  <bruno@clisp.org>
21648
21649                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
21650                 CLASSPATH_SEPARATOR to a semicolon.
21651
21652         2006-03-12  Bruno Haible  <bruno@clisp.org>
21653
21654                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
21655                 available as variable CONF_JAVA, for subsequent autoconf
21656                 tests. Also log error output in config.log.
21657
21658         2006-07-19  Bruno Haible  <bruno@clisp.org>
21659
21660                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
21661                 that getline works on glibc2 systems. Needed to avoid trouble
21662                 in relocatable.c.
21663                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
21664
21665         2005-12-04  Bruno Haible  <bruno@clisp.org>
21666
21667                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
21668                 launcher (untested).
21669
21670         2005-12-04  Bruno Haible  <bruno@clisp.org>
21671
21672                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
21673
21674         2006-07-22  Bruno Haible  <bruno@clisp.org>
21675
21676                 * gettext.m4: Update from GNU gettext-0.15.
21677                 * nls.m4: Likewise.
21678                 * po.m4: Likewise.
21679                 * inttypes-pri.m4: Likewise.
21680                 * inttypes-h.m4: Renamed from inttypes.m4.
21681                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
21682
21683 2006-07-22  Bruno Haible  <bruno@clisp.org>
21684
21685         Merge from GNU gettext 0.15.
21686
21687         2005-07-05  Bruno Haible  <bruno@clisp.org>
21688
21689                 * printf-args.c (printf_fetchargs): Work around broken
21690                 definition of wint_t on mingw.
21691
21692         2005-02-12  Bruno Haible  <bruno@clisp.org>
21693
21694                 * xallocsa.h: Add extern "C" for C++.
21695
21696         2006-05-17  Bruno Haible  <bruno@clisp.org>
21697
21698                 Cygwin portability.
21699                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
21700
21701         2006-04-30  Bruno Haible  <bruno@clisp.org>
21702
21703                 * progreloc.c: Include <mach-o/dyld.h> if available.
21704                 (find_executable): Use _NSGetExecutablePath when possible.
21705
21706         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21707
21708                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
21709                 function.
21710
21711         2005-12-29  Bruno Haible  <bruno@clisp.org>
21712
21713                 * progreloc.c (set_program_name_and_installdir): Fix
21714                 compilation error.
21715
21716         2005-12-04  Bruno Haible  <bruno@clisp.org>
21717
21718                 Cygwin portability.
21719                 * progreloc.c: Include <windows.h> also on Cygwin.
21720                 (find_executable): Add support for Cygwin.
21721                 (set_program_name_and_installdir): Handle also platforms with
21722                 nonempty EXEEXT.
21723
21724         2006-07-11  Bruno Haible  <bruno@clisp.org>
21725
21726                 * javacomp.c: Fix a comment.
21727                 Reported by Jim Meyering.
21728
21729         2006-04-30  Bruno Haible  <bruno@clisp.org>
21730
21731                 * javacomp.h (compile_java_class): Add source_version,
21732                 target_version arguments.
21733                 * javacomp.c: Rewritten to choose only a compiler that
21734                 respects the specified source_version and target_version.
21735
21736         2006-06-27  Bruno Haible  <bruno@clisp.org>
21737
21738                 Assume correct S_ISDIR macro.
21739                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
21740
21741         2006-07-22  Bruno Haible  <bruno@clisp.org>
21742
21743                 * javaversion.h: New file, from GNU gettext.
21744                 * javaversion.c: New file, from GNU gettext.
21745                 * javaversion.java: New file, from GNU gettext.
21746                 * javaversion.class: New file, from GNU gettext.
21747
21748         2006-05-17  Bruno Haible  <bruno@clisp.org>
21749
21750                 Cygwin portability.
21751                 * javaexec.c (execute_java_class): Test for jview program
21752                 also on Cygwin.
21753
21754         2006-04-09  Bruno Haible  <bruno@clisp.org>
21755
21756                 * fatal-signal.c: Don't include string.h.
21757                 (at_fatal_signal): Use a copying loop instead of memcpy.
21758
21759         2005-12-04  Bruno Haible  <bruno@clisp.org>
21760
21761                 * csharpexec.c: Add support for 'clix' launcher (untested).
21762                 (execute_csharp_using_sscli): New function.
21763                 (execute_csharp_program): Call it.
21764
21765         2006-06-21  Bruno Haible  <bruno@clisp.org>
21766
21767                 Avoid warnings from recent versions of mcs.
21768                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
21769                 -o, -L, -r any more. Use options documented since mcs-1.0
21770                 instead. Similarly for -g.
21771
21772         2005-07-09  Bruno Haible  <bruno@clisp.org>
21773
21774                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
21775                 add a .dll suffix.
21776                 Reported by Mark Junker <mjscod@gmx.de>.
21777
21778         2006-06-17  Bruno Haible  <bruno@clisp.org>
21779
21780                 * config.charset: Update for NetBSD 3.0.
21781
21782         2006-05-17  Bruno Haible  <bruno@clisp.org>
21783
21784                 Cygwin portability.
21785                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
21786
21787         2006-05-16  Bruno Haible  <bruno@clisp.org>
21788
21789                 * localcharset.c [CYGWIN]: Include <windows.h>.
21790                 (get_charset_aliases): For Cygwin, return the same CPxxx
21791                 aliases list as under WIN32.
21792                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
21793                 the environment variables. Fall back to GetACP().
21794
21795         2006-04-05  Bruno Haible  <bruno@clisp.org>
21796
21797                 * config.charset: Update Juan Manuel Guerrero's address.
21798
21799         2005-02-12  Bruno Haible  <bruno@clisp.org>
21800
21801                 * allocsa.h: Add extern "C" for C++.
21802
21803         2005-02-10  Bruno Haible  <bruno@clisp.org>
21804
21805                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
21806                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
21807
21808         2006-07-22  Bruno Haible  <bruno@clisp.org>
21809
21810                 * gettext.h: Update to GNU gettext-0.15.
21811
21812 2006-07-22  Bruno Haible  <bruno@clisp.org>
21813
21814         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
21815         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
21816         lib-prefix.m4, longdouble.m4, ssize_t.m4.
21817
21818 2006-07-21  Eric Blake  <ebb9@byu.net>
21819
21820         * modules/stdlib-safer: New file.
21821         * MODULES.html.sh (File stream based Input/Output): Add
21822         stdlib-safer.
21823
21824 2006-07-21  Eric Blake  <ebb9@byu.net>
21825
21826         * lib/stdlib-safer.h: New file from coreutils, required by
21827         stdlib--.h.
21828
21829 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
21830
21831         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
21832
21833 2006-07-20  Bruno Haible  <bruno@clisp.org>
21834
21835         * gnulib-tool: Recognize new option --assume-autoconf.
21836         (autoconf_minversion): New variable.
21837         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
21838
21839 2006-07-20  Bruno Haible  <bruno@clisp.org>
21840
21841         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
21842
21843 2006-07-19  Derek R. Price  <derek@ximbiot.com>
21844
21845         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
21846         Reindent and repaginate.
21847
21848 2006-07-19  Derek Price  <derek@ximbiot.com>
21849
21850         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
21851         Correct grammar.
21852
21853 2006-07-17  Bruno Haible  <bruno@clisp.org>
21854
21855         * modules/list: New file.
21856         * modules/array-list: New file.
21857         * modules/carray-list, modules/carray-list-tests: New files.
21858         * modules/linked-list, modules/linked-list-tests: New files.
21859         * modules/avltree-list, modules/avltree-list-tests: New files.
21860         * modules/rbtree-list, modules/rbtree-list-tests: New files.
21861         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
21862         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
21863         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
21864         * modules/oset: New file.
21865         * modules/array-oset: New file.
21866         * modules/avltree-oset, modules/avltree-oset-tests: New files.
21867         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
21868         * tests/test-carray_list.c: New file.
21869         * tests/test-linked_list.c: New file.
21870         * tests/test-avltree_list.c: New file.
21871         * tests/test-rbtree_list.c: New file.
21872         * tests/test-linkedhash_list.c: New file.
21873         * tests/test-avltreehash_list.c: New file.
21874         * tests/test-rbtreehash_list.c: New file.
21875         * tests/test-avltree_oset.c: New file.
21876         * tests/test-rbtree_oset.c: New file.
21877         * MODULES.html.sh (Container data structures): New section.
21878
21879 2006-07-17  Bruno Haible  <bruno@clisp.org>
21880
21881         * m4/gl_list.m4: New file.
21882
21883 2006-07-17  Bruno Haible  <bruno@clisp.org>
21884
21885         * lib/gl_list.h: New file.
21886         * lib/gl_list.c: New file.
21887         * lib/gl_array_list.h: New file.
21888         * lib/gl_array_list.c: New file.
21889         * lib/gl_carray_list.h: New file.
21890         * lib/gl_carray_list.c: New file.
21891         * lib/gl_linked_list.h: New file.
21892         * lib/gl_linked_list.c: New file.
21893         * lib/gl_anylinked_list1.h: New file.
21894         * lib/gl_anylinked_list2.h: New file.
21895         * lib/gl_avltree_list.h: New file.
21896         * lib/gl_avltree_list.c: New file.
21897         * lib/gl_anyavltree_list1.h: New file.
21898         * lib/gl_anyavltree_list2.h: New file.
21899         * lib/gl_rbtree_list.h: New file.
21900         * lib/gl_rbtree_list.c: New file.
21901         * lib/gl_anyrbtree_list1.h: New file.
21902         * lib/gl_anyrbtree_list2.h: New file.
21903         * lib/gl_anytree_list1.h: New file.
21904         * lib/gl_anytree_list2.h: New file.
21905         * lib/gl_linkedhash_list.h: New file.
21906         * lib/gl_linkedhash_list.c: New file.
21907         * lib/gl_anyhash_list1.h: New file.
21908         * lib/gl_anyhash_list2.h: New file.
21909         * lib/gl_avltreehash_list.h: New file.
21910         * lib/gl_avltreehash_list.c: New file.
21911         * lib/gl_rbtreehash_list.h: New file.
21912         * lib/gl_rbtreehash_list.c: New file.
21913         * lib/gl_anytreehash_list1.h: New file.
21914         * lib/gl_anytreehash_list2.h: New file.
21915
21916         * lib/gl_oset.h: New file.
21917         * lib/gl_oset.c: New file.
21918         * lib/gl_array_oset.h: New file.
21919         * lib/gl_array_oset.c: New file.
21920         * lib/gl_avltree_oset.h: New file.
21921         * lib/gl_avltree_oset.c: New file.
21922         * lib/gl_rbtree_oset.h: New file.
21923         * lib/gl_rbtree_oset.c: New file.
21924         * lib/gl_anytree_oset.h: New file.
21925
21926 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21927
21928         * m4/mkancesdirs.m4: New file.
21929         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
21930         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
21931         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
21932         it.
21933
21934 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21935
21936         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
21937         * lib/mkancesdirs.h: New files.
21938         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
21939         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
21940         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
21941         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
21942         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
21943         callers changed.  Revamp internals significantly, by not
21944         attempting to create directories that are temporarily more
21945         permissive than the final results.  Do not attempt to use
21946         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
21947         This removes some race conditions, fixes some bugs, and simplifies
21948         things.  Use new dirchownmod function to do owner and mode changes.
21949         * lib/mkdir-p.h: Likewise.
21950         * lib/modechange.c (octal_to_mode): New function.
21951         (struct mode_change): New member mentioned.
21952         (make_node_op_equals): New arg mentioned.  All callers changed.
21953         (mode_compile): Keep track of which mode bits the user has explicitly
21954         mentioned.
21955         (mode_adjust): New arg DIR, so that we implement the X op correctly.
21956         New arg PMODE_BITS, to keep track of which mode bits the user
21957         mentioned; it treats S_ISUID and S_ISGID speciall.
21958         All callers changed.
21959         * lib/modechange.h: Likewise.
21960
21961 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21962
21963         * MODULES.html.sh: Add mkancestors.
21964         * modules/mkancesdirs: New module.
21965         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
21966         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
21967         The chdir-safer and afs files are now orphans; I'll remove them
21968         unless someone speaks up.
21969         Add lib/dirchownmod.c, lib/dirchownmod.h.
21970         (Depends-on): Remove alloca, chown, save-cwd, dirname.
21971         Add lchown, mkancesdirs.
21972         (Maintainer): Add self.
21973
21974 2006-07-15  Karl Berry  <karl@gnu.org>
21975
21976         * gnulib-tool: help message wording/arrangement.
21977
21978 2006-07-14  Simon Josefsson  <jas@extundo.com>
21979
21980         * doc/gnulib.texi (Libtool and Windows): New section.
21981
21982 2006-07-12  Simon Josefsson  <jas@extundo.com>
21983
21984         * modules/gendocs (License): Fix license, approved by Karl.
21985
21986 2006-07-12  Eric Blake  <ebb9@byu.net>
21987
21988         * MODULES.html.sh: Add gendocs.
21989
21990 2006-07-11  Eric Blake  <ebb9@byu.net>
21991
21992         * modules/fdl: New module, to install doc/fdl.texi.
21993         * MODULES.html.sh: Add new section for documentation modules.
21994         * gnulib-tool: Avoid space-tab.
21995         (--doc-base): New option, to manage files from doc.
21996
21997 2006-07-11  Eric Blake  <ebb9@byu.net>
21998
21999         * m4/absolute-header.m4: Fix comments to match recent change.
22000
22001 2006-07-11  Eric Blake  <ebb9@byu.net>
22002
22003         * gnulib-tool: List --doc-base before --tests-base.
22004
22005 2006-07-11  Derek R. Price  <derek@ximbiot.com>
22006
22007         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
22008
22009 2006-07-11  Bruno Haible  <bruno@clisp.org>
22010
22011         * README: Mention where to put documentation.
22012
22013 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22014
22015         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
22016
22017 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22018
22019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
22020         to stdint.m4.
22021
22022 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22023
22024         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
22025         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
22026         "no/such/file/stdint.h" when there is no such file, so that
22027         the resulting C code can be parsed by dodgy compilers.
22028         Problems reported by Bob Proulx.
22029
22030 2006-07-10  Derek R. Price  <derek@ximbiot.com>
22031
22032         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
22033         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
22034         macros into the GNU _D_EXACT_NAMLEN.
22035         * lib/savedir.c:  Likewise.
22036         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
22037
22038 2006-07-10  Derek R. Price  <derek@ximbiot.com>
22039         and Paul Eggert  <eggert@cs.ucla.edu>
22040
22041         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
22042         * m4/savedir.m4:
22043         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
22044         macros into the GNU _D_EXACT_NAMLEN.
22045
22046 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22047
22048         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
22049         around the absolute name, to work around a problem with the HP-UX
22050         11.23 native C compiler, reported by Bob Proulx.
22051
22052 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22053
22054         * doc/maintain.texi, make-stds.texi: Sync from
22055         <http://savannah.gnu.org/projects/gnustandards>.
22056
22057 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22058
22059         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
22060
22061 2006-07-09  Jim Meyering  <jim@meyering.net>
22062
22063         * m4/glob.m4: Remove a doubled word in a comment.
22064
22065 2006-07-09  Jim Meyering  <jim@meyering.net>
22066
22067         * lib/argp-pv.c: Remove a doubled word in a comment.
22068         * lib/check-version.c (check_version): Likewise.
22069         * lib/javacomp.c (compile_java_class): Likewise.
22070
22071 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22072
22073         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
22074         for the benefit of people using Autoconf 2.60.  If you want to
22075         support older Autoconf versions you can copy m4/onceonly_2_57.m4
22076         (or m4/onceonly.m4, if pre-2.57) manually.
22077
22078 2006-07-08  Jim Meyering  <jim@meyering.net>
22079
22080         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
22081         comment.
22082         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
22083         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
22084         comment.
22085
22086 2006-07-08  Jim Meyering  <jim@meyering.net>
22087
22088         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
22089
22090 2006-07-07  Simon Josefsson  <jas@extundo.com>
22091
22092         * tests/test-crc.c: Change expected crc value, the test vector
22093         were probably computed using the old broken crc.c?
22094
22095 2006-07-06  Simon Josefsson  <jas@extundo.com>
22096
22097         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
22098         now the canonical place for the M4 file).
22099
22100         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
22101         from the sys_socket dependency now.
22102
22103         * modules/inet_pton (Files): Ditto.
22104
22105         * modules/inet_ntop (Files): Ditto.
22106
22107 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
22108
22109         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
22110         not gl_PREREQ_GETUSERSHELL.
22111
22112 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22113
22114         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
22115         with only one argument, for Autoconf 2.60.
22116         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
22117         expand to nothing, so add a shell command to avoid syntax error.
22118         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
22119
22120 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22121
22122         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
22123
22124 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22125
22126         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
22127         no longer needed.  Check for isblank decl.
22128         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
22129         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
22130         of existence.
22131
22132 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22133
22134         * lib/getloadavg.c: Use __VMS, not VMS.
22135         * lib/getopt.c: Likewise.
22136         * lib/getpagesize.h: Likewise.
22137         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
22138         and probably does not work.
22139
22140 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22141
22142         * lib/.cppi-disable: Add wcwidth.
22143         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
22144         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
22145         (ISGRAPH): Remove.  All uses changed to isgraph.
22146         (FOLD) [!defined _LIBC]: Remove special case.
22147         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
22148         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
22149         HAVE_ISBLANK.
22150         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
22151         case.
22152
22153 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
22154
22155         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
22156         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
22157         brackets.  Other minor changes to suppress some compiler
22158         warnings.
22159
22160 2006-07-06  Derek R. Price  <derek@ximbiot.com>
22161         and Paul Eggert  <eggert@cs.ucla.edu>
22162
22163         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
22164         of invoking obsolescent AC_HEADER_DIRENT macro.
22165         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22166         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
22167         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22168         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
22169         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
22170         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
22171         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
22172         * m4/readdir.m4: Remove; no longer needed.
22173
22174 2006-07-06  Derek R. Price  <derek@ximbiot.com>
22175         and Paul Eggert  <eggert@cs.ucla.edu>
22176
22177         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
22178         Don't worry about this obsolete case any more.
22179         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
22180         directories.
22181         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
22182         worry about this obsolete case any more.
22183         * lib/fts.c: Likewise.
22184         * lib/getcwd.c: Likewise.
22185         * lib/glob.h: Likewise.
22186         * lib/savedir.c: Likewise.
22187
22188 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22189
22190         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
22191         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
22192         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
22193         needed.
22194         All uses removed.
22195         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
22196         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
22197         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
22198         needed.
22199         * m4/getdate.m4 (gl_GETDATE): Likewise.
22200         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
22201         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
22202         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22203         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
22204         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
22205         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
22206         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
22207         needed.
22208
22209 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22210
22211         * lib/memcasecmp.c: Include <limits.h>.
22212         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
22213         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
22214         Don't assume isdigit succeeds only on '0' through '9'.
22215
22216 2006-07-05  Eric Blake  <ebb9@byu.net>
22217
22218         * modules/getaddrinfo (Depends-on): Add snprintf.
22219
22220 2006-07-05  Eric Blake  <ebb9@byu.net>
22221
22222         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
22223         to avoid 'header present but could not be compiled' on cygwin.
22224
22225 2006-07-05  Eric Blake  <ebb9@byu.net>
22226
22227         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
22228         missing from netdb.h.
22229         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
22230
22231 2006-07-05  Derek R. Price  <derek@ximbiot.com>
22232
22233         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
22234         no longer needed.
22235         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
22236         * m4/getdate.m4 (gl_GETDATE): Likewise.
22237         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
22238         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
22239         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22240         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
22241         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
22242
22243 2006-07-05  Derek R. Price  <derek@ximbiot.com>
22244
22245         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
22246         All uses of is_space replaced by isspace.
22247         * lib/exit.h: Don't talk about STDC_HEADERS.
22248         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
22249         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
22250         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
22251         replaced by isprint etc.
22252         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
22253         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
22254         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
22255         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
22256         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
22257         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
22258
22259 2006-07-05  Bruno Haible  <bruno@clisp.org>
22260
22261         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
22262         the function exists, before testing against AIX.
22263         Reported by Martin Lambers <marlam@marlam.de>.
22264
22265 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
22266
22267         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
22268         From Mark D. Baushke.
22269
22270 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
22271
22272         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
22273         to the absolute name, not just one, to bypass Sun C 5.8's
22274         "warning: #include of /usr/include/... may be non-portable".
22275
22276 2006-07-04  Eric Blake  <ebb9@byu.net>
22277
22278         * modules/dirname-tests: New test module.
22279         * tests/test-dirname.c: New file, replacing dirname.c
22280         TEST_DIRNAME section that was recently deleted.
22281
22282 2006-07-04  Bruno Haible  <bruno@clisp.org>
22283
22284         Assume ANSI C header files and <ctype.h> functions.
22285         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
22286         (mbsnwidth): Use isprint, iscntrl instead.
22287
22288 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22289
22290         Merge from coreutils.
22291         * MODULES.html.sh: Add xstrtold.
22292         * modules/xstrtold: New file.
22293         * modules/cycle-check (Files): Add lib/same-inode.h.
22294         * modules/dirname (Files): Add m4/double-slash-root.m4.
22295         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
22296         * modules/mkdir-p (Files): Add lib/same-inode.h.
22297         * modules/same (Files): Add lib/same-inode.h.
22298
22299 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22300
22301         * m4/absolute-header.m4: Renamed from full-header-path.m4.
22302         This is to keep the terminology clean; POSIX talks about
22303         "absolute pathnames", not "full pathnames", but the GNU
22304         Coding Standards say to use "path" for something else;
22305         so use "absolute" to keep both sides happy.
22306         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
22307         Set gl_absolute_header, not gl_full_header_path.
22308         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
22309         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
22310         All uses changed.
22311
22312         Merge from coreutils.
22313
22314         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
22315
22316         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
22317         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
22318         want to require the building of c-strtod.o.
22319         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
22320         needs -lm directly.
22321         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
22322
22323         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
22324
22325         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
22326         --as-needed option if available.  Problem reported by Albert Chin in
22327         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
22328         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
22329         cc merely issues a bunch of annoying warnings for --as-needed
22330         (this problem was reported by Bob Proulx).  Also, try linking with
22331         -lm to detect a bug in binutils 2.16 (this problem was reported
22332         by Ralf Wildenhues).
22333
22334         2006-06-18  Jim Meyering  <jim@meyering.net>
22335
22336         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
22337         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
22338         macro.
22339         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
22340         also check for glibc-2.4's abort-inducing bug.
22341
22342         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
22343         Low-probability clean-up should be to use rmdir to get rid of
22344         the just-created directory, not unlink.
22345
22346         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
22347         configure fail, and request a bug report to inform us about it.
22348         Add a comment that, barring reports to the contrary, in 2007 we'll
22349         assume ftruncate is universally available.
22350
22351         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
22352
22353         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
22354
22355         2006-03-12  Jim Meyering  <jim@meyering.net>
22356
22357         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
22358         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
22359         * m4/same.m4 (gl_SAME): Likewise.
22360         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
22361
22362         2006-03-11  Eric Blake  <ebb9@byu.net>
22363
22364         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
22365         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
22366         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
22367         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
22368
22369 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22370
22371         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
22372         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
22373         reported by Mark D. Baushke, one in
22374         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
22375
22376         Merge from coreutils.
22377
22378         * lib/.cppi-disable: Add stdint_.h.
22379         * lib/.cvsignore: Add stdint.h.
22380
22381         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
22382
22383         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
22384         both double and long double versions.
22385         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
22386         * lib/xstrtold.c: New file.
22387         * lib/xstrtod.h (xstrtold): New decl.
22388
22389         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
22390
22391         * lib/filemode.c (setst): Remove.
22392         (strmode): Rewrite to avoid setst.  This makes the code shorter,
22393         (arguably) clearer, and the generated code is a bit smaller on my
22394         Debian GNU/Linux stable x86 host.
22395
22396         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
22397
22398         * lib/filemode.c: Include "filemode.h" first, to test the interface.
22399         Assume that filemode.h includes sys/types.h and sys/stat.h.
22400         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
22401         (ftypelet): Reorder to put common cases first, for efficiency.
22402         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
22403         to do 'M'.
22404         (strmode): Renamed from mode_string, and now stores 12 bytes instead
22405         of 10, for compatibility with FreeBSD.  All callers changed.
22406         (filemodestring): Now stores 12 bytes instead of 10, and sets file
22407         types that can't be deduced solely from st_mode.  First arg is now a
22408         const pointer.
22409         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
22410         (strmode): Renamed from mode_string.
22411         (filemodestring): New decl.
22412         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
22413         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
22414         needed.
22415         (S_ISPORT, S_ISWHT): New macros, if not already defined.
22416
22417         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
22418
22419         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
22420         fsusage.h now does that.  Include fsusage.h first, to test interface.
22421         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
22422         at most one method (the old code could have generated decls that
22423         didn't conform to C89, not that this was ever exercised).
22424         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
22425
22426         2006-03-19  Jim Meyering  <jim@meyering.net>
22427
22428         Work even in a chroot where d_ino values for entries in "/"
22429         don't match the stat.st_ino values for the same names.
22430         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
22431         number, iterate through all entries again, using lstat instead.
22432         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
22433         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
22434
22435         * lib/getcwd.c (__getcwd): Clarify a comment.
22436         Use memcpy in place of a call to strcpy.
22437
22438         2006-03-12  Jim Meyering  <jim@meyering.net>
22439
22440         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
22441         matches that of the current directory (which we're about to chdir ".."
22442         out of), then save the dev-ino of the parent, instead.
22443
22444         * lib/same-inode.h (SAME_INODE): New file/macro.
22445         * lib/chdir-safer.c (SAME_INODE): Remove definition.
22446         Include "same-inode.h", instead.
22447         * lib/same.c: Likewise.
22448         * lib/cycle-check.h: Include "same-inode.h".
22449         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
22450         * lib/cycle-check.c (SAME_INODE): Remove definition.
22451         * lib/root-dev-ino.h: Include "same-inode.h".
22452
22453         2006-03-11  Eric Blake  <ebb9@byu.net>
22454
22455         * lib/same.c (same_name): s/base_name/last_component/
22456         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
22457         * lib/filenamecat.c (file_name_concat): Likewise.
22458
22459         2006-03-11  Eric Blake  <ebb9@byu.net>,
22460                     Paul Eggert  <eggert@cs.ucla.edu>
22461
22462         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
22463         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
22464         drive prefix.
22465         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
22466         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
22467         (last_component): New method.
22468         * lib/dirname.c (dir_len): Determine when drive letters need a
22469         subsequent slash.  Preserve // when it is special.
22470         (dir_name): Don't append dot when drive letter is absolute.
22471         [TEST_DIRNAME]: Move into a full-blown gnulib test.
22472         * lib/basename.c (base_name): New semantics - malloc the result.
22473         Preserve // when it is special.  Preserve relative files that look
22474         like drive letters.
22475         (base_len): Preserve // when it is special.
22476         (last_component): New method, similar to old base_name semantics.
22477         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
22478         base_name.  Strip redundant slashes from ///.
22479
22480 2006-07-03  Jim Meyering  <jim@meyering.net>
22481
22482         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
22483         macro is used before the first cycle_check call.
22484
22485 2006-07-03  Eric Blake  <ebb9@byu.net>
22486
22487         * modules/dirname (Depends-on): Add xstrndup.
22488
22489 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22490
22491         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
22492         test cases, so that config.log is a bit easier to follow.
22493
22494 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22495
22496         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
22497         both are 64 bits, since this seems to be the tradition, and this
22498         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
22499         we ever run into a host that prefers long long to long in this
22500         case, we'll need another configure-time test.  Problem reported by
22501         Jim Meyering.
22502
22503 2006-07-02  Eric Blake  <ebb9@byu.net>
22504
22505         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
22506
22507 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22508
22509         * modules/inttypes (Depends-on): No longer depends on stdint.
22510         * modules/stdint (Description): Say more about assumptions.
22511         Say that the fast types might differ.  Say macros are used.
22512         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
22513         (Makefile.am): Revise list of substituted symbols to match
22514         new stdint.m4.
22515         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
22516         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
22517         * tests/test-stdint.c (verify_same_types)
22518         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
22519         the code conforms to C99/C89.
22520         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
22521         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
22522
22523 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22524
22525         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
22526         but fix a bug, by requiring at least 64 bits.
22527         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
22528         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
22529         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
22530         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
22531
22532         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
22533         changes.  Make 2.59 a prerequisite.  Check and substitute for
22534         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
22535         inttypes.h.  Do not use special include files; just use the
22536         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
22537         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
22538         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
22539         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
22540         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
22541         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
22542         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
22543         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
22544         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
22545         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
22546         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
22547         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
22548         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
22549         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
22550         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
22551         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
22552         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
22553         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
22554         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
22555         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
22556         WINT_MAX.  Check for C99 conformance more strictly, by detecting
22557         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
22558         not check for things that C99 does not require, e.g., int8_t.  If
22559         a test isn't needed unless <stdint.h> isn't working, and is
22560         unlikely to be needed for any other reason, then don't do it
22561         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
22562         size_t, since we assume C89 freestanding at least.  Do not check
22563         for sig_atomic_t, wchar_t, or wint_t, since the code now does
22564         the right thing even if the types are not defined.  Instead use:
22565         (gl_STDINT_TYPE_PROPERTIES): New macro.
22566         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
22567         testing whether <sys/types.h> clashes, as Autoconf does this for
22568         us now.  All uses removed.
22569         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
22570         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
22571         (gl_CHECK_TYPE_SAME):
22572         Remove; no longer needed.
22573         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
22574         exists, since we'll return 0 anyway in that case.
22575         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
22576
22577 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22578
22579         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
22580         possible collision with system files.
22581         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
22582         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
22583         WCHAR_MIN and WCHAR_MAX in this case.
22584         (<stddef.h>): Do not include; no longer needed.
22585         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
22586         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
22587         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
22588         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
22589         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
22590         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
22591         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
22592         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
22593         !defined(__c99))]: Include in this case too, since it's harmless
22594         now.
22595         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
22596         dangerous to do so.
22597         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
22598         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
22599         (_STDINT_MIN, _STDINT_MAX): New macros.
22600         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
22601         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
22602         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
22603         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
22604         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
22605         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
22606         macros, not typedefs; this simplifies things quite a bit.
22607         Use long int for all types narrower than int64_t.
22608         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
22609         Define in terms of long long int or int64_t or long int,
22610         not int64_t or int32_t.  This saves some compile-time testing.
22611         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
22612         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
22613         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
22614         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
22615         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
22616         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
22617         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
22618         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
22619         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
22620         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
22621         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22622         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22623         undef any previous version and define our own version, for
22624         simplicity and consistency with the new macros for types.
22625         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22626         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22627         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
22628         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
22629         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
22630         @WINT_T_SUFFIX@ to keep things simple here.
22631         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
22632         Simplify by assuming typical 8/16/32/64 host, since we're
22633         already doing that elsewhere anyway.
22634         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
22635         and assume long long int is 64 bits if available.  This
22636         speeds up 'configure'.
22637
22638 2006-07-01  Eric Blake  <ebb9@byu.net>
22639
22640         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
22641         Reported by Andreas Buening.
22642
22643 2006-07-01  Eric Blake  <ebb9@byu.net>
22644
22645         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
22646
22647 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
22648
22649         * lib/getaddrinfo.c: fixed typo
22650
22651 2006-06-29  Jim Meyering  <jim@meyering.net>
22652
22653         * modules/strftime (Maintainer): Add my name, since with the
22654         FPRINTFTIME changes strftime.c has forked from glibc.
22655
22656 2006-06-29  Eric Blake  <ebb9@byu.net>
22657
22658         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
22659
22660 2006-06-29  Eric Blake  <ebb9@byu.net>
22661
22662         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
22663
22664 2006-06-29  Eric Blake  <ebb9@byu.net>
22665
22666         * lib/stat_.h: New file.
22667
22668 2006-06-29  Eric Blake  <ebb9@byu.net>
22669
22670         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
22671         unused static function.
22672
22673 2006-06-29  Eric Blake  <ebb9@byu.net>
22674
22675         * doc/functions.texi (Function Portability): Document missing lstat
22676         on mingw.
22677
22678 2006-06-29  Eric Blake  <ebb9@byu.net>
22679
22680         * MODULES.html.sh: Add sys_stat.
22681         * modules/sys_stat: New module.
22682         * modules/mkstemp (Depends-on): Add sys_stat.
22683
22684 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22685
22686         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
22687
22688 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22689
22690         * m4/c-bs-a.m4: Removed.
22691
22692 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22693
22694         * lib/strftime.c: Assume strftime() exists.
22695
22696 2006-06-29  Derek Price  <derek@ximbiot.com>
22697
22698         * modules/c-bs-a: Removed - \a is C89.
22699         * MODULES.html.sh: Remove c-bs-a.
22700
22701 2006-06-29  Bruno Haible  <bruno@clisp.org>
22702
22703         * modules/wcwidth (License): Change to LGPL.
22704
22705 2006-06-28  Simon Josefsson  <jas@extundo.com>
22706
22707         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
22708         on _WIN32.
22709
22710         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
22711         getnameinfo.
22712
22713 2006-06-28  Simon Josefsson  <jas@extundo.com>
22714
22715         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
22716
22717 2006-06-28  Simon Josefsson  <jas@extundo.com>
22718
22719         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
22720         functions there.  It will succeed on Windows XP, but on Windows
22721         2000 and (presumably) earlier, it will fail, and use the internal
22722         re-implementation.
22723         (use_win32_p): New function.
22724         (getaddrinfo): Use strtoul on servname, to support numeric ports.
22725         Support AI_NUMERICSERV to disable getservbyname.
22726         (getnameinfo): New function, only supports
22727         NI_NUMERICHOST|NI_NUMERICSERV for now.
22728
22729         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
22730         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
22731         getnameinfo.
22732
22733 2006-06-28  Eric Blake  <ebb9@byu.net>
22734
22735         * modules/wcwidth: New file.
22736         * modules/mbchar (Depends-on): Add wcwidth.
22737         * modules/mbswidth (Depends-on): Add wcwidth.
22738         * MODULES.html.sh: Add wcwidth.
22739
22740 2006-06-28  Eric Blake  <ebb9@byu.net>
22741
22742         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
22743         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
22744
22745 2006-06-28  Eric Blake  <ebb9@byu.net>
22746
22747         * lib/xvasprintf.h: Fix comments.
22748
22749 2006-06-28  Eric Blake  <ebb9@byu.net>
22750
22751         * lib/mbchar.h (wcwidth): Include wcwidth.h.
22752         * lib/mbswidth.c (wcwidth): Move from here...
22753         * lib/wcwidth.h: ...to this new file.
22754
22755 2006-06-28  Derek R. Price  <derek@ximbiot.com>
22756
22757         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
22758
22759         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
22760         it's obsolete.
22761         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
22762
22763 2006-06-28  Derek R. Price  <derek@ximbiot.com>
22764
22765         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
22766         Autoconf 2.60 says this stuff was obsolete.
22767
22768 2006-06-28  Bruno Haible  <bruno@clisp.org>
22769
22770         * modules/wcwidth (Files): Add m4/wchar_t.m4.
22771
22772 2006-06-28  Bruno Haible  <bruno@clisp.org>
22773
22774         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
22775         gt_TYPE_WCHAR_T.
22776
22777 2006-06-28  Bruno Haible  <bruno@clisp.org>
22778
22779         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
22780         declaration for wcwidth.
22781         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
22782
22783 2006-06-28  Bruno Haible  <bruno@clisp.org>
22784
22785         * lib/mkdtemp.c [MINGW]: Include <io.h>.
22786         (mkdir): Define using _mkdir.
22787
22788 2006-06-28  Bruno Haible  <bruno@clisp.org>
22789
22790         * lib/getaddrinfo.h: Fix POSIX URL.
22791         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
22792         _WIN32.
22793         (use_win32_p): Make static.
22794         (getaddrinfo): Reject service name if it is empty or does not consist
22795         solely of decimal digits, or if its value is > 65535.
22796         (getnameinfo): Remove useless casts.
22797
22798 2006-06-27  Simon Josefsson  <jas@extundo.com>
22799
22800         * modules/sys_select: New file, suggested by Bruno Haible, Paul
22801         Eggert and Martin Lambers.
22802
22803 2006-06-27  Simon Josefsson  <jas@extundo.com>
22804
22805         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
22806         Eggert and Martin Lambers.
22807
22808 2006-06-27  Bruno Haible  <bruno@clisp.org>
22809
22810         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
22811         result to 0, not to empty.
22812         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
22813
22814 2006-06-27  Bruno Haible  <bruno@clisp.org>
22815
22816         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
22817
22818 2006-06-26  Simon Josefsson  <jas@extundo.com>
22819
22820         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
22821         present.
22822
22823 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
22824
22825         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
22826         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
22827         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
22828
22829 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
22830
22831         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
22832
22833 2006-06-26  Bruno Haible  <bruno@clisp.org>
22834
22835         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
22836
22837 2006-06-26  Bruno Haible  <bruno@clisp.org>
22838
22839         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
22840
22841 2006-06-26  Bruno Haible  <bruno@clisp.org>
22842
22843         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
22844         SGI C compiler in pre-C99 mode.
22845         Suggested by Mark D. Baushke and Larry Jones.
22846
22847 2006-06-26  Bruno Haible  <bruno@clisp.org>
22848
22849         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
22850         WCHAR_MAX.
22851         Reported by Mark D. Baushke and Larry Jones.
22852
22853 2006-06-26  Bruno Haible  <bruno@clisp.org>
22854
22855         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
22856         in pre-C99 mode.
22857         Suggested by Mark D. Baushke and Larry Jones.
22858
22859 2006-06-23  Simon Josefsson  <jas@extundo.com>
22860             Bruno Haible  <bruno@clisp.org>
22861
22862         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
22863         Emit mostlyclean-local rule.
22864         (func_emit_tests_Makefile_am): Likewise.
22865         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
22866
22867 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
22868
22869         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
22870
22871 2006-06-23  Bruno Haible  <bruno@clisp.org>
22872
22873         * tests/test-stdint.c: Update to match ISO C 99 Technical
22874         Corrigendum 1.
22875
22876 2006-06-23  Bruno Haible  <bruno@clisp.org>
22877
22878         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
22879
22880 2006-06-23  Bruno Haible  <bruno@clisp.org>
22881
22882         * lib/stdint_.h: Treat IRIX like OpenBSD.
22883
22884 2006-06-23  Bruno Haible  <bruno@clisp.org>
22885
22886         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
22887         ISO C 99 Technical Corrigendum 1.
22888
22889 2006-06-22  Simon Josefsson  <jas@extundo.com>
22890
22891         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
22892         MinGW.
22893
22894 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22895
22896         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
22897         needed.  Some compiler complained about some of them.  Problem reported
22898         by Larry Jones in
22899         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
22900
22901 2006-06-21  Simon Josefsson  <jas@extundo.com>
22902
22903         * tests/test-getaddrinfo.c: New file.
22904
22905         * modules/getaddrinfo-tests: New file.
22906
22907         * MODULES.html.sh: Add inet_pton.
22908
22909         * modules/inet_pton: New file.
22910
22911 2006-06-21  Simon Josefsson  <jas@extundo.com>
22912
22913         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
22914         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
22915         of using the (limited) gnulib implementation on Windows XP.
22916
22917         * m4/inet_pton.m4: New file.
22918
22919 2006-06-21  Simon Josefsson  <jas@extundo.com>
22920
22921         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
22922         variable.
22923
22924         * lib/socket_.h: Don't define WINVER.
22925
22926         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
22927         slightly modified to work in gnulib.
22928
22929 2006-06-21  Simon Josefsson  <jas@extundo.com>
22930
22931         * doc/gnulib.texi (Windows sockets): Add.
22932
22933 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22934
22935         * lib/read-file.c (fread_file): Start with buffer allocation of
22936         0 bytes rather than 1 byte; this simplifies the code.
22937         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
22938         code to free buffer and save/restore errno.
22939         (internal_read_file): Remove unused local.
22940
22941 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22942
22943         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
22944         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
22945         Problem reported by Denis Excoffier in
22946         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
22947
22948 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22949
22950         * modules/sys_socket, modules/socklen: Include sys/types since
22951         FreeBSD 4.x's sys/socket.h needs it.
22952
22953 2006-06-19  Simon Josefsson  <jas@extundo.com>
22954
22955         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
22956
22957 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
22958
22959         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
22960
22961 2006-06-19  Bruno Haible  <bruno@clisp.org>
22962
22963         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
22964         and FULL_PATH_INTTYPES_H in angle brackets.
22965         Reported by Mark D. Baushke <mdb@gnu.org>.
22966
22967 2006-06-17  Eric Blake  <ebb9@byu.net>
22968
22969         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
22970         errno.
22971
22972 2006-06-17  Bruno Haible  <bruno@clisp.org>
22973
22974         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
22975         <sys/inttypes.h>.
22976
22977 2006-06-17  Bruno Haible  <bruno@clisp.org>
22978
22979         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
22980         whether errno is declared. Assume <errno.h> declares errno.
22981
22982 2006-06-17  Bruno Haible  <bruno@clisp.org>
22983
22984         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
22985
22986 2006-06-17  Bruno Haible  <bruno@clisp.org>
22987
22988         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
22989         problem on Solaris 2.5.1.
22990
22991 2006-06-16  Eric Blake  <ebb9@byu.net>
22992
22993         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
22994         * lib/unicodeio.c [!defined errno]: Likewise.
22995         * lib/strtol.c [!defined errno]: Likewise.
22996         * lib/strtod.c [!defined errno]: Likewise.
22997
22998 2006-06-15  Eric Blake  <ebb9@byu.net>
22999
23000         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
23001
23002 2006-06-15  Eric Blake  <ebb9@byu.net>
23003
23004         * config/srclist.txt (ssize_t.m4): Lose sync.
23005
23006 2006-06-15  Bruno Haible  <bruno@clisp.org>
23007
23008         * modules/stdint (Files): Include m4/full-header-path.m4,
23009         m4/size_max.m4, m4/wchar_t.m4.
23010         (Makefile.am): Many more substitutions.
23011         * modules/stdint-tests: New file.
23012         * tests/test-stdint.c: New file.
23013
23014 2006-06-15  Bruno Haible  <bruno@clisp.org>
23015
23016         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
23017         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
23018         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
23019         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
23020         gl_CHECK_TYPE_SAME): New macros.
23021
23022 2006-06-15  Bruno Haible  <bruno@clisp.org>
23023
23024         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
23025
23026 2006-06-15  Bruno Haible  <bruno@clisp.org>
23027
23028         * lib/stdint_.h: Rewritten to be fully auto-configured.
23029         Fixes bug on HP-UX/IA64.
23030
23031 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
23032
23033         * lib/getdate.y (__attribute__): Don't define if already defined.
23034         Problem reported by Larry Jones.
23035         * lib/utimens.c (__attribute__): Likewise.
23036
23037 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
23038
23039         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
23040         reported by Andreas Schwab.
23041
23042 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23043             Bruno Haible  <bruno@clisp.org>
23044
23045         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
23046         check for the declaration of strnlen and a run test that exposes the
23047         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
23048         rpl_strndup.
23049
23050 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23051             Bruno Haible  <bruno@clisp.org>
23052
23053         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
23054
23055 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23056
23057         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
23058         compile test, for Tru64 4.0D.
23059
23060 2006-05-28  Karl Berry  <karl@gnu.org>
23061
23062         * config/srclist.txt (printf-args.c): lose sync.
23063
23064 2006-05-26  Martin Lambers  <marlam@marlam.de>
23065
23066         * lib/getpass.c: Updates the test for the native W32 API, and adds
23067         missing includes, thus fixing compilation warnings.
23068
23069 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23070
23071         * lib/exclude.c (exclude_fnmatch): New function.
23072         (excluded_file_name): Call exclude_fnmatch.
23073         * lib/exclude.h (excluded_file_name): New prototype
23074
23075 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
23076
23077         * lib/tempname.c (small_open, large_open): New macros.
23078         (__open, __open64) [!_LIBC]: Remove.
23079         (__gen_tempname): Use small_open and large_open instead of __open
23080         and __open64.  This fixes a portability bug on HP-UX 11.11i
23081         reported by Simon Wing-Tang in
23082         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
23083
23084 2006-05-24  Bruno Haible  <bruno@clisp.org>
23085
23086         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
23087         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
23088         Reported by Thorsten Maerz <torte@netztorte.de> via
23089         Aaron Stone <aaron@serendipity.cx>.
23090
23091 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23092
23093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
23094         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
23095         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
23096         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
23097         not really conditional on the cache.
23098         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
23099
23100 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23101
23102         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
23103         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
23104         (my_usleep): Don't mishandle maximum value.
23105
23106 2006-05-19  Jim Meyering  <jim@meyering.net>
23107
23108         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
23109
23110 2006-05-17  Bruno Haible  <bruno@clisp.org>
23111
23112         Cygwin portability.
23113         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
23114
23115 2006-05-17  Bruno Haible  <bruno@clisp.org>
23116
23117         * lib/stdint_.h: Fix recognition of Cygwin.
23118
23119 2006-05-15  Bruno Haible  <bruno@clisp.org>
23120
23121         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
23122         on libtool patch by Ralf Wildenhues.
23123
23124 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23125
23126         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
23127         test for C99 conformance; (bool) 0.5 is an integer constant
23128         expression, but (bool) -0.5 is not.  Problem reported by Fedor
23129         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
23130
23131 2006-05-11  Simon Josefsson  <jas@extundo.com>
23132
23133         * m4/xvasprintf.m4: Fix obvious typo.
23134
23135 2006-05-11  Jim Meyering  <jim@meyering.net>
23136
23137         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
23138         James Lemley.
23139
23140 2006-05-10  Simon Josefsson  <jas@extundo.com>
23141
23142         * lib/md4.c: Typo fix, update copyright years.
23143         (K1, K2): Don't use L because it turn computations into 64-bit on
23144         64-bit platforms.
23145
23146 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
23147
23148         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
23149         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
23150         unwanted sign propagation, e.g., on hosts with 64-bit int.
23151         There still are some problems with reeelly weird theoretical hosts
23152         (e.g., 33-bit int) but it's not worth worrying about now.
23153         * lib/sha1.c (rol): Likewise.
23154         (K1, K2, K3, K4): Remove unnecessary L suffix.
23155
23156 2006-05-10  Bruno Haible  <bruno@clisp.org>
23157
23158         * lib/des.c: Cast to avoid warnings.
23159
23160 2006-05-09  Bruno Haible  <bruno@clisp.org>
23161
23162         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
23163         (Depends-on): Depend also on xsize, stdarg.
23164         (configure.ac): Add gl_XVASPRINTF.
23165
23166 2006-05-09  Bruno Haible  <bruno@clisp.org>
23167
23168         * m4/xvasprintf.m4: New file.
23169
23170 2006-05-09  Bruno Haible  <bruno@clisp.org>
23171
23172         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
23173         (EOVERFLOW): Define fallback value.
23174         (xstrcat): New function.
23175         (xvasprintf): Recognize the special case of a string concatenation.
23176
23177 2006-05-08  Eric Blake  <ebb9@byu.net>
23178
23179         * gnulib-tool (func_version): Base copyright year on CVS date.
23180         (func_emit_copyright_notice): New function.
23181         (func_emit_lib_Makefile_am): Use it.
23182         (func_emit_tests_Makefile_am): Likewise.
23183         (func_import): Likewise.
23184
23185 2006-05-08  Bruno Haible  <bruno@clisp.org>
23186
23187         * modules/stdarg: New file.
23188         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
23189
23190 2006-05-08  Bruno Haible  <bruno@clisp.org>
23191
23192         * m4/stdarg.m4: New file, from GNU gettext.
23193
23194 2006-05-08  Bruno Haible  <bruno@clisp.org>
23195
23196         * config/srclist.txt (build-aux/config.rpath): different from latest
23197         release.
23198
23199 2006-05-08  Bruno Haible  <bruno@clisp.org>
23200
23201         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
23202
23203 2006-05-05  Jim Meyering  <jim@meyering.net>
23204
23205         * m4/warning.m4: New file, derived from bison's file by the same name.
23206
23207 2006-05-03  Bruno Haible  <bruno@clisp.org>
23208
23209         * lib/stdint_.h: Shorter URL.
23210         * lib/inttypes.h: Likewise.
23211
23212 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23213
23214         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
23215
23216 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23217
23218         * lib/verify.h: Document the internals better.  Most of this change
23219         was written by Bruno Haible.
23220
23221 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23222
23223         * doc/verify.texi: New file, partly based on a proposal by
23224         Bruno Haible.
23225
23226 2006-05-02  Bruno Haible  <bruno@clisp.org>
23227
23228         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
23229         test from here...
23230         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
23231
23232 2006-04-29  Bruno Haible  <bruno@clisp.org>
23233
23234         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
23235         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
23236
23237 2006-04-29  Bruno Haible  <bruno@clisp.org>
23238
23239         * gnulib-tool: Make --update option actually work.
23240
23241 2006-04-29  Bruno Haible  <bruno@clisp.org>
23242
23243         * doc/gcd.texi: New file.
23244         * doc/gnulib.texi: Include it.
23245
23246 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
23247
23248         * lib/getdate.y (get_date): When adding relative date, start with the
23249         initial time, not with the result of the first mktime call.
23250
23251 2006-04-25  Bruno Haible  <bruno@clisp.org>
23252
23253         * gnulib-tool (func_import): Output the include directives in three
23254         blocks, sorted separately.
23255         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23256
23257 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
23258
23259         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
23260         to define main with arguments, for C++.  Reported by Eric Blake.
23261         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
23262         Prefer 'int main ()' to 'int main (void)', for C++.
23263         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23264         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
23265         for 'main', for C99 and C++.
23266
23267 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
23268
23269         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
23270         Don't assume that exit status -1 is valid.
23271         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23272         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23273         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23274         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
23275         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
23276         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
23277         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
23278         functions can be used without declaring them, or that you can
23279         exit with status -1.
23280         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
23281
23282 2006-04-24  Karl Berry  <karl@gnu.org>
23283
23284         * config/srclist.txt (longdouble.m4): sync lost.
23285
23286 2006-04-24  Eric Blake  <ebb9@byu.net>
23287
23288         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
23289
23290 2006-04-24  Bruno Haible  <bruno@clisp.org>
23291
23292         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
23293         poll() implementation in AIX.
23294         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23295
23296 2006-04-24  Bruno Haible  <bruno@clisp.org>
23297
23298         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
23299         assigned exactly once.
23300
23301 2006-04-23  Claudio Fontana  <claudio@gnu.org>
23302             Bruno Haible  <bruno@clisp.org>
23303
23304         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
23305         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
23306         for AM_CPPFLAGS.
23307
23308 2006-04-23  Bruno Haible  <bruno@clisp.org>
23309
23310         * modules/copy-file: Depend on unistd.
23311         * modules/execute: Likewise.
23312         * modules/fatal-signal: Likewise.
23313         * modules/findprog: Likewise.
23314         * modules/mkdtemp : Likewise.
23315         * modules/pipe: Likewise.
23316         * modules/wait-process: Likewise.
23317
23318 2006-04-23  Bruno Haible  <bruno@clisp.org>
23319
23320         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
23321         condition was already detected.
23322         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23323
23324 2006-04-23  Bruno Haible  <bruno@clisp.org>
23325
23326         * lib/copy-file.c: Include <unistd.h> unconditionally.
23327         * lib/execute.c: Likewise.
23328         * lib/fatal-signal.c: Likewise.
23329         * lib/findprog.c: Likewise.
23330         * lib/mkdtemp.c: Likewise.
23331         * lib/pipe.h: Likewise.
23332         * lib/pipe.c: Likewise.
23333         * lib/wait-process.h: Likewise.
23334
23335 2006-04-23  Bruno Haible  <bruno@clisp.org>
23336
23337         * gnulib-tool (func_usage): Fix --import description. Document
23338         --update.
23339         (func_import): Create temporary file in a temporary directory, if
23340         --dry-run is specified. Silence errors from 'grep' when there are no
23341         m4 files in $m4dir.
23342         (func_create_testdir): Silence errors from 'grep' when there are no
23343         m4 files in $m4dir.
23344         Reported by Karl Berry <karl@freefriends.org>.
23345
23346 2006-04-20  Bruno Haible  <bruno@clisp.org>
23347
23348         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
23349         one argument, so that the code will be portable to Autoconf 2.60.
23350         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
23351         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
23352         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
23353
23354 2006-04-19  Derek Price  <derek@ximbiot.com>
23355             Eric Blake  <ebb9@byu.net>
23356
23357         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
23358         rather than "/full/path.h".  Update comment to match.  Shorten &
23359         generalize m4_translit call via AS_TR_CPP.
23360
23361 2006-04-19  Derek Price  <derek@ximbiot.com>
23362             Eric Blake  <ebb9@byu.net>
23363
23364         * lib/inttypes.h: Correct grammar in comment.
23365
23366 2006-04-18  Derek Price  <derek@ximbiot.com>
23367             Paul Eggert  <eggert@cs.ucla.edu>
23368
23369         * modules/inttypes: New file.
23370         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
23371
23372 2006-04-18  Derek Price  <derek@ximbiot.com>
23373             Paul Eggert  <eggert@cs.ucla.edu>
23374
23375         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
23376         New files.
23377
23378 2006-04-18  Derek Price  <derek@ximbiot.com>
23379             Paul Eggert  <eggert@cs.ucla.edu>
23380
23381         * lib/inttypes.h: New file.
23382         * lib/strtoimax.c: Assume <inttypes.h>.
23383
23384 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
23385
23386         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
23387         isn't mounted.  Problem reported by Kir Kolyshkin.
23388
23389 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
23390
23391         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
23392         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
23393         Derek R. Price.
23394         * lib/regex.h (RE_DUP_MAX): Update comment to match current
23395         implementation.
23396
23397 2006-04-12  Eric Blake  <ebb9@byu.net>
23398
23399         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
23400         is now done automatically by the corresponding Autoconf macro.
23401
23402 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
23403
23404         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
23405         time_r.h.
23406
23407 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23408
23409         Merge regex changes from libc, removing some of our
23410         POSIX-conformance changes that were rejected and redoing them in a
23411         less-intrusive way.
23412
23413         * lib/regcomp.c (re_compile_internal, init_dfa):
23414         Length arg is now size_t, not Idx.  All uses changed.
23415         (peek_token): Forward decl now says internal_function.
23416         (__re_error_msgid, __re_error_msgid_idx):
23417         Now static rather than extern with attribute_hidden.
23418         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
23419         For some reason libc prefers K&R style defns for external functions.
23420         (regerror) [!defined _LIBC]: Likewise.
23421         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
23422         (seek_collating_symbol_entry, lookup_collation_sequence_value):
23423         (build_range_exp, build_collating_symbol):
23424         Use K&R-style defn.
23425         (re_compile_fastmap): Use '\0' to memset, not 0.
23426         (utf8_sb_map): Make the calculations more obvious.
23427         (init_dfa, parse_bracket_exp, build_charclass_op):
23428         Call calloc and cast result, as glibc does.
23429         (init_word_char, fetch_token, peek_token, peek_token_bracket):
23430         (build_range_exp, build_collating_symbol):
23431         Now internal functions.
23432
23433         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
23434
23435         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
23436         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
23437         Don't depend on VMS; depend on __VMS instead, for POSIX
23438         namespace cleanness.
23439         (regoff_t): Define to ssize_t, not long int.
23440
23441         Remove the REG_ macros named below.  Instead, make the old names
23442         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
23443         __USE_GNU_REGEX.
23444         (REG_BACKSLASH_ESCAPE_IN_LISTS):
23445         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
23446         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
23447         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
23448         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
23449         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
23450         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
23451         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
23452         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
23453         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
23454         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
23455         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
23456         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
23457         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
23458         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
23459         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
23460         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
23461         (REG_NREGS):
23462         Remove.  All uses replaced by the old RE_* names.
23463         (RE_BACKSLASH_ESCAPE_IN_LISTS):
23464         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
23465         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
23466         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
23467         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
23468         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
23469         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
23470         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
23471         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
23472         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
23473         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
23474         Don't bother having these macros be independent of each others'
23475         values, since they no longer exist in the POSIX name space.
23476
23477         Rename the following member names back to their old names,
23478         unless !__USE_GNU_REGEX.  All uses changed back.
23479         (buffer): Renamed from re_buffer.
23480         (allocated): Renamed from re_allocated.
23481         (used): Renamed from re_used.
23482         (syntax): Renamed from re_syntax.
23483         (fastmap): Renamed from re_fastmap.
23484         (translate): Renamed from re_translate.
23485         (can_be_null): Renamed from re_can_be_null.
23486         (regs_allocated): Renamed from re_regs_allocated.
23487         (fastmap_accurate): Renamed from re_fastmap_accurate.
23488         (no_sub): Renamed from re_no_sub.
23489         (not_bol): Renamed from re_not_bol.
23490         (not_eol): Renamed from re_not_eol.
23491         (newline_anchor): Renamed from re_newline_anchor.
23492         (num_regs): Renamed from rm_num_regs.
23493         (start): Renamed from rm_start.
23494         (end): Renamed from rm_end.
23495
23496         (free_state): Move up a bit.
23497
23498         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
23499         #define to be empty.
23500         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
23501         when that is what is intended.
23502         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
23503         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
23504         (MAX): New macro.
23505         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
23506         All uses changed back to re_malloc, etc.  It's now the caller's
23507         responsibility to check for overflow; all callers changed.
23508         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
23509         (re_x2nrealloc): Remove.
23510         (free_state): Remove decl.
23511
23512         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
23513         (re_set_registers, re_exec):
23514         Use K&R-style defn.
23515
23516         2006-01-31  Roland McGrath  <roland@redhat.com>
23517
23518         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
23519         Reported by Mike Frysinger <vapier@gentoo.org>.
23520
23521         2006-01-15  Andreas Jaeger  <aj@suse.de>
23522
23523         [BZ #1950]
23524         * lib/regex_internal.c (re_string_reconstruct): Adjust for
23525         build_wcs_upper_buffer change.
23526         (build_wcs_upper_buffer): Change return type.
23527
23528         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
23529
23530         * lib/regex_internal.h: Include <stdint.h> if available.
23531
23532         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
23533
23534         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
23535
23536         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
23537
23538         * lib/regcomp.c: Adjust for changed secondary hash function.
23539
23540         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
23541
23542         * lib/regex.h: Pretty printing.
23543         Clean up namespace a bit.
23544
23545         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
23546
23547         * lib/regexec.c (update_cur_sifted_state, check_arrival,
23548         check_arrival_add_next_nodes): Avoid using uninitialized variable.
23549
23550         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23551                     Ulrich Drepper  <drepper@redhat.com>
23552
23553         [BZ #1302]
23554         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
23555         changed.
23556         (bitset_word_t): Renamed from bitset_word.  All uses changed.
23557
23558         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
23559
23560         [BZ #281]
23561         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
23562         * lib/regcomp.c: Remove unnecessary uses of
23563         unsigned RE_TRANSLATE_TYPE.
23564         * lib/regex_internal.h: Likewise.
23565         * lib/regex_internal.c: Likewise.
23566         * lib/regexec.c: Likewise.
23567         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
23568
23569         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
23570
23571         * lib/regexec.c (find_recover_state): Remove unnecessary
23572         initialization.
23573         (transit_state_bkref): Make DFA a const pointer.
23574         (get_subexp): Likewise.
23575         (check_arrival): Likewise.
23576         (update_cur_sifted_state): Likewise.
23577         (re_search_internal): Likewise.
23578         (prune_impossible_nodes): Likewise.
23579         (acquire_init_state_context): Likewise.
23580         (proceed_next_node): Likewise.
23581         (set_regs): Likewise.
23582         (free_fail_stack_return): Likewise.
23583         (check_arrival_expand_ecl): Mark DFA parameter as const.
23584         (check_arrival_expand_ecl_sub): Likewise.
23585         (check_subexp_limits): Likewise.
23586         (sub_epsilon_src_nodes):  Likewise.
23587         (add_epsilon_src_nodes):  Likewise.
23588         (merge_state_array): Likewise.
23589         (update_regs): Likewise.
23590         (build_trtable): Likewise.
23591         (sift_states_backward): Mark MCTX parameter as const.
23592         (build_sifted_states): Likewise.
23593         (update_cur_sifted_state): Likewise.
23594         (sift_states_mkref): Likewise.
23595         (check_arrival_expand_ecl): Mark eclosure as const.
23596         (check_dst_limits_calc_pos_1): Likewise.
23597         * lib/regex_internal.h (re_match_context_t): Make dfa a const
23598         pointer.
23599
23600         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
23601
23602         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
23603         (transit_state_sb): Likewise.
23604         (transit_state_mb): Likewise.
23605         (sift_states_iter_mb): Likewise.
23606         (check_arrival_add_next_nodes): Likewise.
23607         (check_node_accept_bytes): Change first parameter to pointer-to-const.
23608         [_LIBC] (re_search_2_stub): Use mempcpy.
23609
23610         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
23611         mbrtowc for very simple UTF-8 case.
23612
23613         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
23614         a pointer-to-const.
23615         (re_acquire_state_context): Likewise.
23616         * lib/regex_internal.h: Adjust prototypes.
23617
23618         * lib/regex.c: Prevent using C++ compilers.
23619
23620         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
23621         (re_acquire_state_context): Likewise.
23622
23623 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23624
23625         * modules/regex (Depends-on): Add ssize_t.
23626
23627 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23628
23629         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
23630         translation table.
23631
23632 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23633
23634         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
23635
23636 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
23637             Bruno Haible  <bruno@clisp.org>
23638
23639         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
23640         <sys/types.h> and <inttypes.h>.
23641
23642 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23643
23644         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
23645         `__error_t_defined', so argp.h will not typedef the former.
23646
23647 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
23648
23649         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
23650         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
23651         glibc names.  Even if glibc is changed to conform to POSIX, the
23652         traditional names will be available anyway, since regex depends on
23653         the extensions module.  Also, fix a longstanding typo in the
23654         implementation of Spencer ERE test #75 from grep 2.3.  Problems
23655         reported by Emanuele Giaquinta.  Also, change sense of cached
23656         variable, so that the message makes sense.
23657
23658 2006-03-24  Simon Josefsson  <jas@extundo.com>
23659
23660         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
23661         including some doc fixes.
23662         (base64_encode_alloc): Fix +1 bug on allocation failures.
23663
23664 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23665
23666         * lib/base64.c (base64_encode): Do not read past end of array with
23667         unsanitized input on systems with CHAR_BIT > 8.
23668
23669 2006-03-24  Eric Blake  <ebb9@byu.net>
23670
23671         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
23672
23673 2006-03-22  Karl Berry  <karl@gnu.org>
23674
23675         * config/srclist.txt (*setenv.[ch]): get from coreutils.
23676         * config/srclistvars.sh (COREUTILS): new var.
23677
23678 2006-03-17  Jim Meyering  <jim@meyering.net>
23679
23680         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
23681         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
23682
23683 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23684
23685         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
23686         no longer needs it.  Instead, check that regoff_t is as least
23687         as wide as ptrdiff_t.
23688
23689         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
23690         so that our regex.h stays compatible with the installed regex.
23691         This is helpful for installers who configure --without-included-regex.
23692         Problem reported by Emanuele Giaquinta.
23693
23694 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23695
23696         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
23697         Typedef to long int, not to off_, as POSIX will likely change
23698         in that direction.
23699
23700 2006-03-15  Eric Blake  <ebb9@byu.net>
23701
23702         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
23703
23704 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
23705
23706         * lib/argp-help.c (validate_uparams): Fix typo
23707         * lib/argp-parse.c (argp_default_options): Consistently begin help
23708         messages with a lowercase letter.
23709
23710 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
23711
23712         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
23713         overrun buffers and shouldn't be used (much as gets shouldn't be
23714         used).
23715         * lib/time_r.c (asctime_r, ctime_r): Likewise.
23716
23717 2006-03-08  Simon Josefsson  <jas@extundo.com>
23718
23719         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
23720         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23721
23722 2006-03-08  Simon Josefsson  <jas@extundo.com>
23723
23724         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
23725         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23726
23727 2006-03-08  Simon Josefsson  <jas@extundo.com>
23728
23729         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
23730         signal that configure disabled the device.
23731
23732 2006-03-08  Simon Josefsson  <jas@extundo.com>
23733
23734         * build-aux/maint.mk: Fix refresh-po, to handle no translated
23735         languages.
23736
23737 2006-03-07  Simon Josefsson  <jas@extundo.com>
23738
23739         * modules/getopt (Depends-on): Add unistd.
23740
23741         * modules/unistd: New file.
23742
23743 2006-03-07  Simon Josefsson  <jas@extundo.com>
23744
23745         * modules/gc-random: New file.
23746
23747 2006-03-07  Simon Josefsson  <jas@extundo.com>
23748
23749         * m4/unistd_h.m4: New file.
23750
23751 2006-03-07  Simon Josefsson  <jas@extundo.com>
23752
23753         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
23754         test to be side-effect free by storing the result in the cache
23755         variable gl_cv_lib_readline, and moving the assignment of
23756         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
23757         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23758
23759 2006-03-07  Simon Josefsson  <jas@extundo.com>
23760
23761         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
23762         error on missing devices (the functions will return an error).
23763
23764         * m4/gc.m4: Move random stuff to gc-random.m4
23765
23766 2006-03-07  Simon Josefsson  <jas@extundo.com>
23767
23768         * lib/unistd_.h: New file.
23769
23770 2006-03-07  Simon Josefsson  <jas@extundo.com>
23771
23772         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
23773
23774 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23775
23776         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
23777         Problem reported by Juan Manuel Guerrero.
23778
23779 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23780
23781         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
23782         the unistd module.
23783         * lib/getlogin_r.c: Likewise.
23784         * lib/getlogin_r.h: Likewise.
23785         * lib/glob.c: Likewise.
23786         * lib/pagealign_alloc.c: Likewise.
23787         * lib/unistd_.h: Remove; no longer needed.
23788
23789 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23790
23791         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23792         Add unistd.
23793         * modules/c-stack (Depends-on): Add unistd.
23794         * modules/getlogin_r: Likewise.
23795         * modules/glob: Likewise.
23796         * modules/pagealign_alloc: Likewise.
23797         * modules/unistd (Files): Remove lib/unistd_.h.
23798         (EXTRA_DIST): Remove.
23799         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
23800         need unistd_.h.
23801         (MOSTLYCLEANFILES): Remove unistd.h-t.
23802
23803 2006-03-03  Simon Josefsson  <jas@extundo.com>
23804
23805         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
23806
23807 2006-03-03  Simon Josefsson  <jas@extundo.com>
23808
23809         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
23810         libidn and bison.
23811
23812 2006-03-03  Simon Josefsson  <jas@extundo.com>
23813
23814         * build-aux/maint.mk: Add indent target.
23815
23816 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
23817
23818         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
23819         our replacement poll.h in any case, to avoid a differing
23820         declaration from a system header.  Seen on AIX.
23821
23822 2006-03-01  Simon Josefsson  <jas@extundo.com>
23823
23824         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
23825         <kasal@ucw.cz>.
23826
23827 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23828
23829         * modules/gettime (Depends-on): Add extensions module.
23830         * modules/nanosleep (Depends-on): Likewise.
23831         * modules/settime (Depends-on): Likewise.
23832
23833 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23834
23835         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
23836         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
23837         pedantically.
23838         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23839         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
23840
23841         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
23842         not "==".  Reported by Ralf Wildenhues.
23843
23844 2006-03-01  Karl Berry  <karl@gnu.org>
23845
23846         * doc/Copyright/request-*: new files, synced from gnuorg.
23847
23848 2006-03-01  Karl Berry  <karl@gnu.org>
23849
23850         * config/srclist.txt (Copyright/*): new entries.
23851
23852 2006-02-28  Simon Josefsson  <jas@extundo.com>
23853
23854         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
23855
23856 2006-02-27  Simon Josefsson  <jas@extundo.com>
23857
23858         * lib/base64.h: Indent #define's.  From Jim Meyering
23859         <jim@meyering.net>.
23860
23861 2006-02-27  Jim Meyering  <jim@meyering.net>
23862
23863         Revert the change of 2006-02-24, so these files can continue
23864         to be sync'd from gettext.
23865         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
23866         of `config.h'.
23867
23868 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
23869
23870         * modules/intprops: New file.
23871         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
23872         Add intprops.
23873         * modules/getloadavg (Files): Remove lib/intprops.h.
23874         (Depends-on): Add intprops.
23875         * modules/human: Likewise.
23876         * modules/inttostr: Likewise.
23877         * modules/openat: Likewise.
23878         * modules/sig2str: Likewise.
23879         * modules/userspec: Likewise.
23880         * modules/utimecmp: Likewise.
23881         * modules/xnanosleep: Likewise.
23882         * modules/xstrtol: Likewise.
23883
23884 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
23885
23886         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
23887         * modules/lock-tests (TESTS): Use $(EXEEXT).
23888         * modules/tls-tests: Likewise.
23889         * modules/argp-tests: Likewise.
23890         (check_PROGRAMS): New var, replacing...
23891         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
23892
23893 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23894
23895         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
23896         `config.h'.
23897
23898 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23899
23900         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
23901
23902 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23903
23904         Sync from coreutils.
23905         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
23906         gl_CHDIR_SAFER.
23907
23908 2006-02-22  Jim Meyering  <jim@meyering.net>
23909
23910         Sync from coreutils.
23911         * m4/chdir-safer.m4: New file.
23912
23913 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23914
23915         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
23916         AT_FDCWD exceeds INT_MAX.
23917         * lib/openat.h (AT_FDCWD): Likewise.
23918
23919 2006-02-17  Eric Blake  <address@hidden>
23920
23921         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
23922
23923 2006-02-16  Simon Josefsson  <jas@extundo.com>
23924
23925         * modules/getaddrinfo (Depends-on): Add sys_socket.
23926
23927 2006-02-15  Simon Josefsson  <jas@extundo.com>
23928
23929         * build-aux/maint.mk: Add dsyntax-check rule.
23930
23931 2006-02-15  Eric Blake  <ebb9@byu.net>
23932
23933         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
23934         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
23935         'present but cannot compile' warnings on cygwin.
23936         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
23937         use ws2tcpip.h if sys/socket.h works.
23938         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
23939         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
23940
23941 2006-02-14  Simon Josefsson  <jas@extundo.com>
23942
23943         * modules/maintainer-makefile (Files): Rename.
23944
23945         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
23946         and (the local) Makefile.cfg to maint-cfg.mk.
23947
23948         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
23949         to the latter.
23950
23951         * modules/maintainer-makefile: New module.
23952
23953         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
23954         severaly stripped to make it possible to build it up from scratch
23955         with reliable tests.
23956
23957         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
23958         fixes to permit overriding the default actions when configure and
23959         makefile are not available.
23960
23961 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
23962
23963         Sync from coreutils.
23964         * modules/lstat (Depends-on): Don't depend on xalloc.
23965         (License): Change from GPL to LGPL, since this is now simply a
23966         replacement for a libc function.
23967
23968 2006-02-14  Jim Meyering  <jim@meyering.net>
23969
23970         Sync from coreutils.
23971
23972         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
23973         failure on deficient systems, and simplify gnulib lgpl dependencies.
23974         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
23975         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
23976
23977         * lib/xalloc-die.c: Remove unused definition of N_.
23978
23979 2006-02-14  Jim Meyering  <jim@meyering.net>
23980
23981         Sync from coreutils.
23982         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
23983         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
23984         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
23985         double-quote uses of that variable, to accommodate the rare case in
23986         which getmntent is available in none of the libraries checked.  This
23987         happens at least on FreeBSD 5.0.
23988
23989 2006-02-13  Simon Josefsson  <jas@extundo.com>
23990
23991         * gnulib-tool (Usage): Fix --import, from
23992         karl@freefriends.org (Karl Berry).
23993
23994 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
23995
23996         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
23997
23998 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
23999
24000         * lib/argp-namefrob.h: Restore changes accidentally lost during the
24001         "autoupdate" on 2005-12-12.
24002
24003 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24004
24005         * modules/closeout (Depends-on): Remove atexit.
24006
24007 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24008
24009         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
24010         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
24011
24012 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
24013
24014         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
24015         __EXTENSIONS__ if this causes compilation to fail.  Problem
24016         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
24017         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
24018
24019 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
24020
24021         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
24022         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
24023         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
24024         All uses changed.
24025
24026 2006-01-26  Simon Josefsson  <jas@extundo.com>
24027
24028         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
24029         prototype is visible on mingw32.
24030
24031         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
24032         for mingw32.
24033
24034         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
24035         mingw32).
24036
24037 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
24038
24039         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
24040         attempt to open for write; this always fails, at least on POSIX
24041         hosts.  This reinstates the 2006-01-09 change, which was
24042         inadvertently removed.
24043
24044 2006-01-26  Bruno Haible  <bruno@clisp.org>
24045
24046         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
24047         Reported by Paul Eggert.
24048
24049 2006-01-26  Bruno Haible  <bruno@clisp.org>
24050             Paul Eggert  <eggert@cs.ucla.edu>
24051
24052         * lib/stdbool_.h (_Bool)
24053         [(! (defined __cplusplus || defined __BEOS__)
24054           && !defined __GNUC__
24055           && !(defined __HP_cc || defined __xlc__
24056                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
24057                || defined __sgi))]:
24058         #define to signed char in these cases too; this simplifies
24059         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
24060         etc., separately) and makes it more conservative.
24061
24062 2006-01-25  Simon Josefsson  <jas@extundo.com>
24063
24064         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
24065         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
24066         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
24067
24068 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24069
24070         * lib/argp-namefrob.h: Bugfix. Remove stray #
24071
24072 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24073
24074         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
24075         so that we test the test.
24076         Check for yet another HP-UX cc bug involving *bool |= bool.
24077
24078 2006-01-25  Karl Berry  <karl@gnu.org>
24079
24080         * config/srclist.txt (vasnprintf.c): sync lost.
24081
24082 2006-01-25  Jim Meyering  <jim@meyering.net>
24083
24084         Sync from the stable (b5) branch of coreutils:
24085
24086         * lib/fts.c (fts_children): Don't let close() clobber errno from
24087         failed fchdir().
24088
24089         * lib/fts.c (fts_stat): When following a symlink-to-directory,
24090         don't necessarily interpret stat-fails+lstat-succeeds as indicating
24091         a dangling symlink.  That can also happen at least for ELOOP.
24092         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
24093         FYI, this bug predates the inclusion of fts.c in coreutils.
24094
24095         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
24096         in their own block, so pre-c99 compilers don't object.
24097
24098         Avoid the double-free (first in fts_read, second in fts_close) that
24099         would occur when an `active' directory is made inaccessible (e.g.,
24100         via chmod a-x) during a traversal.
24101         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
24102         before returning.  Reproduce this failure by
24103         mkdir -p a/b; cd a; chmod a-x . b
24104         Reported by Stavros Passas.
24105
24106 2006-01-25  Jim Meyering  <jim@meyering.net>
24107
24108         * lib/fileblocks.c: Remove more useless parentheses.
24109         * lib/readutmp.h: Likewise.
24110
24111 2006-01-25  Bruno Haible  <bruno@clisp.org>
24112
24113         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
24114         warnings.
24115         Reported by Paul Eggert.
24116
24117 2006-01-25  Bruno Haible  <bruno@clisp.org>
24118
24119         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
24120         rid of a trap command. For Solaris sh.
24121         Reported by Mark D. Baushke <mdb@gnu.org>.
24122
24123 2006-01-24  Simon Josefsson  <jas@extundo.com>
24124
24125         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
24126         Bruno.
24127
24128 2006-01-24  Karl Berry  <karl@gnu.org>
24129
24130         * config/srclist.txt (argp-namefrob.h): sync lost.
24131
24132 2006-01-24  Jim Meyering  <jim@meyering.net>
24133
24134         * modules/openat (Files): Add lib/intprops.h.
24135         From Mark D. Baushke.
24136
24137 2006-01-24  Jim Meyering  <jim@meyering.net>
24138
24139         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
24140         Reported by Mark D. Baushke.
24141
24142 2006-01-24  Jim Meyering  <jim@meyering.net>
24143
24144         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
24145
24146 2006-01-24  Bruno Haible  <bruno@clisp.org>
24147
24148         * modules/strnlen (Maintainer): Change from glibc to all.
24149
24150 2006-01-24  Bruno Haible  <bruno@clisp.org>
24151
24152         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
24153         Patch by Paul Eggert.
24154
24155 2006-01-24  Bruno Haible  <bruno@clisp.org>
24156
24157         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
24158         already has it.
24159         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
24160         2005-11-26.
24161
24162         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
24163         'signed char' to avoid problems with the built-in _Bool type.
24164         Reported by Paul Eggert on 2005-11-26.
24165
24166 2006-01-24  Bruno Haible  <bruno@clisp.org>
24167
24168         * gnulib-tool (func_import): Avoid constructing complicated sed
24169         expressions inside backquote.
24170         Report and solution by Mark D. Baushke <mdb@gnu.org>.
24171
24172 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
24173
24174         These changes imported from libc.
24175         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
24176         test and two separate function calls.
24177         * lib/strndup.c (__strndup): Add libc_hidden_def.
24178
24179 2006-01-23  Simon Josefsson  <jas@extundo.com>
24180
24181         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
24182         Remove the test_*_SOURCES variable: automake infers it by default.
24183         * modules/tls-tests: Likewise.
24184
24185 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24186
24187         Work around porting bugs reported by Dieter in
24188         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
24189         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
24190         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
24191         Include "getopt.h" first, to check interface.
24192         (getenv): Declare only if defined HAVE_DECL_GETENV &&
24193         !HAVE_DECL_GETENV.
24194         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
24195         (__strndup): Revert to K&R-style function dfns, the glibc style.
24196         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
24197         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
24198         Include strnlen.h first, to get prototype properly.
24199         (strnlen): Renamed from __strnlen.
24200         Remove weak alias.
24201
24202 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24203
24204         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
24205
24206 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24207
24208         * config/srclist.txt: Adjust to reflect glibc reorganization.
24209         This affects only comments.
24210
24211 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24212
24213          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
24214          Reported by Bruce Korb <bkorb@gnu.org>.
24215
24216 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
24217
24218         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
24219         to pacify gcc -Wswitch-default.
24220
24221 2006-01-22  Bruno Haible  <bruno@clisp.org>
24222
24223         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
24224         temporary buffer for sprintf, take into account the precision also
24225         for 'd', 'i', 'u', 'o', 'x', 'X'.
24226
24227 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
24228
24229         * modules/argp-tests: New module
24230         * tests/test-argp.c: New file
24231         * tests/test-argp-2.sh: New file
24232
24233 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
24234
24235         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
24236         (__argp_base_name): Removed
24237         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
24238         typo.
24239         (__argp_base_name): Provide macro definition or extern declaration
24240         depending on the configuration
24241
24242 2006-01-20  Simon Josefsson  <jas@extundo.com>
24243
24244         * modules/inet_ntop (Depends-on): Depend on sys_socket.
24245
24246 2006-01-20  Simon Josefsson  <jas@extundo.com>
24247
24248         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
24249
24250 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24251
24252         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
24253         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
24254         Suggested by Bruno Haible.
24255
24256 2006-01-20  Karl Berry  <karl@gnu.org>
24257
24258         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
24259         until changes propagate, I guess.
24260
24261 2006-01-19  Simon Josefsson  <jas@extundo.com>
24262
24263         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
24264
24265 2006-01-19  Simon Josefsson  <jas@extundo.com>
24266
24267         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
24268
24269 2006-01-19  Simon Josefsson  <jas@extundo.com>
24270
24271         * gnulib-tool: Set check_PROGRAMS.
24272
24273         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
24274         modules/des-tests, modules/gc-arcfour-tests,
24275         modules/gc-arctwo-tests, modules/gc-des-tests,
24276         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
24277         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
24278         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
24279         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
24280         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
24281         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
24282         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
24283         test_*_SOURCES.
24284
24285 2006-01-18  Simon Josefsson  <jas@extundo.com>
24286
24287         * modules/socklen (Depends-on): Depend on sys_socket.
24288
24289 2006-01-18  Simon Josefsson  <jas@extundo.com>
24290
24291         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
24292         modules/des-tests, modules/gc-arcfour-tests,
24293         modules/gc-arctwo-tests, modules/gc-des-tests,
24294         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
24295         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
24296         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
24297         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
24298         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
24299         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
24300         $(EXEEXT) to automake TESTS variable, for mingw32.
24301
24302 2006-01-17  Simon Josefsson  <jas@extundo.com>
24303
24304         * modules/socklen (Include): Need sys/socket.h.
24305
24306 2006-01-17  Bruno Haible  <bruno@clisp.org>
24307
24308         * modules/ssize_t (Include): Add <sys/types.h>.
24309
24310 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
24311
24312         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
24313         it's not portable and it doesn't work with cross-compiles.
24314         Problem reported by Bruno Haible.  Fix missing-$ typo in
24315         'test "gl_cv_ignore_unused_libraries" ...' that prevented
24316         -zignore from being used with Sun's C compiler.
24317
24318 2006-01-12  Simon Josefsson  <jas@extundo.com>
24319
24320         * lib/base64.c: Fix warning, reported by Bruno Haible
24321         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
24322
24323 2006-01-12  Bruno Haible  <bruno@clisp.org>
24324
24325         * modules/ldd: New file.
24326         * build-aux/ldd.sh.in: New file.
24327         * MODULES.html.sh (Support for building libraries and executables): Add
24328         ldd.
24329
24330 2006-01-12  Bruno Haible  <bruno@clisp.org>
24331
24332         * m4/ldd.m4: New file.
24333
24334 2006-01-12  Bruno Haible  <bruno@clisp.org>
24335
24336         * gnulib-tool (func_import, func_create_testdir): Don't go into an
24337         endless loop while replacing $auxdir with build-aux.
24338
24339 2006-01-11  Simon Josefsson  <jas@extundo.com>
24340
24341         * lib/stdint_.h (SIZE_MAX): Add missing (.
24342
24343 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24344
24345         Sync from coreutils.
24346         * lib/md5.c: Fix commentary typos.
24347         (alignof, UNALIGNED_P): No need for a GCC-specific version.
24348         * lib/md5.h (__attribute__): Remove; unused.
24349         * lib/sha1.c: Fix commentary to match md5 better.
24350         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
24351         so that we don't need to worry about alignment.  All uses changed.
24352         This merges the 2005-10-28 md5 change into sha1.
24353
24354 2006-01-11  Jim Meyering  <jim@meyering.net>
24355
24356         Sync from coreutils.
24357         * lib/md5.c (OP): Fix spacing.
24358
24359 2006-01-11  Bruno Haible  <bruno@clisp.org>
24360
24361         Ensure automatic ordering between gl_LOCK and gl_ARGP.
24362         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
24363         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
24364
24365 2006-01-11  Bruno Haible  <bruno@clisp.org>
24366
24367         Ensure automatic ordering between gl_LOCK and gl_ARGP.
24368         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
24369         the "early" section as well.
24370
24371 2006-01-11  Bruno Haible  <bruno@clisp.org>
24372
24373         Avoid "ar: no archive members specified" error on MacOS X.
24374         * gnulib-tool (func_modules_add_dummy): New function.
24375         (func_import, func_create_testdir): Invoke it.
24376
24377 2006-01-11  Bruno Haible  <bruno@clisp.org>
24378
24379         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
24380         with $auxdir in AC_CONFIG_FILES statements.
24381
24382 2006-01-11  Bruno Haible  <bruno@clisp.org>
24383
24384         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24385         Initialize also noinst_HEADERS to empty.
24386
24387 2006-01-11  Bruno Haible  <bruno@clisp.org>
24388
24389         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
24390         variables.
24391         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
24392         autoreconf.
24393
24394 2006-01-11  Bruno Haible  <bruno@clisp.org>
24395
24396         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
24397         overridable by the user.
24398         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24399
24400 2006-01-10  Simon Josefsson  <jas@extundo.com>
24401
24402         * modules/sys_socket: New file.
24403
24404 2006-01-10  Simon Josefsson  <jas@extundo.com>
24405
24406         * m4/sys_socket_h.m4: New file.
24407
24408 2006-01-10  Simon Josefsson  <jas@extundo.com>
24409
24410         * lib/socket_.h: New file.
24411
24412 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24413
24414         * modules/readutmp (Maintainer): Add myself.
24415
24416 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24417
24418         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
24419         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
24420         People who are still concerned with buggy memcmp implementations
24421         can invoke gl_FUNC_MEMCMP themselves.
24422
24423 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24424
24425         * lib/regex_internal.h (BITSET_WORD_BITS):
24426         Work around a bug in 64-bit PGC (before version 6.1-2), where the
24427         preprocessor mishandles large unsigned values as if they were signed.
24428         Problem reported by Claudio Fontana in
24429         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
24430
24431 2006-01-10  Jim Meyering  <jim@meyering.net>
24432
24433         Avoid the double-free (first in fts_read, second in fts_close) that
24434         would occur when an `active' directory is made inaccessible (e.g.,
24435         via chmod a-x) during a traversal.
24436         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
24437         before returning.  Reproduce this failure by
24438         mkdir -p a/b; cd a; chmod a-x . b
24439         Reported by Stavros Passas.
24440
24441         Sync from coreutils.
24442         * lib/sha1.c: Tweak grammar in a comment.
24443
24444 2006-01-10  Jim Meyering  <jim@meyering.net>
24445
24446         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
24447         Patch by Joerg Sonnenberger.
24448
24449 2006-01-10  Bruno Haible  <bruno@clisp.org>
24450
24451         * modules/readutmp: Depend on module free.
24452         * modules/strtok_r: Depend on module restrict.
24453
24454 2006-01-10  Bruno Haible  <bruno@clisp.org>
24455
24456         * modules/gettext (configure.ac): Add an invocation of
24457         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
24458
24459 2006-01-10  Bruno Haible  <bruno@clisp.org>
24460
24461         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
24462         Reported by Werner Lemberg <wl@gnu.org>.
24463
24464 2006-01-10  Bruno Haible  <bruno@clisp.org>
24465
24466         * lib/localcharset.c: Update from GNU gettext.
24467
24468 2006-01-10  Bruno Haible  <bruno@clisp.org>
24469
24470         * lib/argp.h (__const): Remove macro. Use const instead.
24471         * lib/argp-fmtstream.h (__const): Likewise.
24472         * lib/glob_.h (__const): Remove macro.
24473         * lib/glob-libc.h: Use const instead of __const.
24474
24475 2006-01-10  Bruno Haible  <bruno@clisp.org>
24476
24477         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
24478         variable.
24479         Needed to avoid an automake error regarding the 'gettext' module.
24480
24481 2006-01-09  Simon Josefsson  <jas@extundo.com>
24482
24483         * modules/inet_ntop (Depends-on): Add restrict.
24484
24485 2006-01-09  Simon Josefsson  <jas@extundo.com>
24486
24487         * modules/gc-rijndael-tests (License): Put under LGPL.
24488
24489         * modules/gc-des-tests (License): Likewise.
24490
24491         * modules/gc-arcfour-tests (License): Likewise.
24492
24493         * modules/gc-arctwo-tests (License): Likewise.
24494
24495         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
24496
24497         * modules/gc-hmac-sha1-tests (Files): Likewise.
24498
24499         * modules/gc-hmac-md5-tests (License): Likewise.
24500
24501         * modules/gc-sha1-tests (License): Likewise.
24502
24503         * modules/gc-md5-tests (License): Likewise.
24504
24505         * modules/gc-md4-tests (License): Likewise.
24506
24507         * modules/gc-md2-tests (License): Likewise.
24508
24509         * modules/gc-tests (License): Likewise.
24510
24511         * modules/des-tests (License): Likewise.
24512
24513         * modules/md4-tests (License): Likewise.
24514
24515         * modules/md2-tests (License): Likewise.
24516
24517 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24518
24519         Sync from coreutils:
24520
24521         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
24522         * modules/lib-ignore: New file.
24523         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
24524         chdir-safer.m4, lchmod.m4.
24525         * modules/openat: Add mkdirat.c, openat-priv.h.
24526
24527 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24528
24529         Sync from coreutils.
24530         * m4/lib-ignore.m4: New file.
24531         * m4/lchmod.m4: New file.
24532
24533 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24534
24535         Sync from coreutils.
24536         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
24537         for write access: POSIX says that must fail.
24538         * lib/fts.c (diropen): Likewise.
24539         * lib/save-cwd.c (save_cwd): Likewise.
24540         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
24541         well, for minor improvements on hosts that lack O_DIRECTORY.
24542         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
24543         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
24544         Fall back on chown if open failed with EACCES.
24545
24546         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
24547         Report an error at compile-time if only a 1-second nominal clock
24548         resolution is found.
24549
24550         * lib/lchmod.h: New file.
24551         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
24552         (make_dir_parents): Use lchown rather than chown, and
24553         lchmod rather than chmod.
24554
24555         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
24556         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
24557         "proc" reported by n0dalus.
24558
24559         * lib/mountlist.c: Include <limits.h>.
24560         (dev_from_mount_options)
24561         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
24562         New function.  It no longer assumes "dev=" has the System V meaning
24563         on Linux (since it doesn't).  It also parses "dev=" more carefully.
24564         (read_file_system_list)
24565         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
24566         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
24567         dev= in that case.
24568
24569         * lib/posixtm.h (PDS_PRE_2000): New macro.
24570         * lib/posixtm.c (year): Arg is now syntax_bits rather than
24571         allow_century.  All usages changed.  Reject dates outside the range
24572         1969-1999 if PDS_PRE_2000 is used.
24573
24574 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24575
24576         Sync from coreutils.
24577         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
24578         (Time of day items): Mention the possibility of leap seconds.
24579         Problem reported by Dr. David Alan Gilbert.
24580
24581 2006-01-09  Jim Meyering  <jim@meyering.net>
24582
24583         Sync from coreutils.
24584
24585         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
24586
24587         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
24588
24589         * lib/modechange.c (mode_compile): Reject an invalid mode string
24590         that starts with an octal digit.  From Andreas Gruenbacher.
24591
24592         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
24593         and dup to open_safer and dup_safer, respectively.
24594         (openat_permissive): Fix typo in comment.
24595
24596         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
24597         "gettext.h"; either no longer needed or are guaranteed by openat.h.
24598         (_): Remove; no longer needed.
24599         (openat): Renamed from rpl_openat; no need for rpl_openat
24600         since openat.h renames openat for us.
24601         Replace most of the body with a call to openat_permissive,
24602         to avoid duplicate code.
24603         Port to (probably hypothetical) environments were mode_t is
24604         wider than int.
24605         (openat_permissive): Require mode arg, so that we can check
24606         types better.  Put it just after flags.  Change cwd failure
24607         indicator from pointer-to-bool to pointer-to-errno-value.
24608         All callers changed.
24609         Invoke openat_save_fail and/or openat_restore_fail if
24610         cwd_errno is null, so that openat can call us.
24611         (openat_permissive, fdopendir, fstatat, unlinkat):
24612         Simplify errno handling to avoid some duplicate code,
24613         as it's OK to set errno on success.
24614         * lib/openat.h: Revamp code so that function macros depend on
24615         __OPENAT_PREFIX only, not also on AT_FDCWD.
24616         (openat_ro): Remove.  Caller changed to use openat_permissive.
24617         (openat_permissive): Now a macro, if not a function.
24618         (openat_restore_fail, openat_save_fail): Now always functions,
24619         since mkdirat needs them even if __OPENAT_PREFIX is defined.
24620
24621         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
24622         and openat.c.
24623         * lib/mkdirat.c: Include openat-priv.h.
24624         Remove definitions of macros defined therein.
24625         * lib/openat.c: Likewise.
24626
24627         * lib/mkdirat.c (mkdirat): New file and function.
24628         * lib/openat.h (mkdirat): Declare.
24629
24630         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
24631
24632         * lib/openat.h (openat_permissive): Declare.
24633         (openat_ro): Define.
24634
24635         * lib/openat.c (EXPECTED_ERRNO): New macro.
24636         (openat_permissive): New function -- used in remove.c rewrite.
24637         (all functions): Set errno just before returning, only if there
24638         was an actual failure.
24639         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
24640
24641         Emulate openat-family functions using Linux's procfs, if possible.
24642         Idea and some code based on Ulrich Drepper's glibc changes.
24643
24644         * lib/openat.c: (BUILD_PROC_NAME): New macro.
24645         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
24646         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
24647         before falling back on save_cwd and restore_cwd.
24648         (fdopendir, fstatat, unlinkat): Likewise.
24649
24650         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
24651         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
24652
24653         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
24654         as second argument to va_arg.  Otherwise, some versions of gcc
24655         warn that `if this code is reached, the program will abort'.
24656
24657 2006-01-09  Jim Meyering  <jim@meyering.net>
24658
24659         Sync from coreutils.
24660         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
24661         Require openat-priv.h.
24662
24663 2006-01-09  Bruno Haible  <bruno@clisp.org>
24664
24665         * modules/strnlen (Include): Use strnlen.h.
24666
24667 2006-01-09  Bruno Haible  <bruno@clisp.org>
24668
24669         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
24670
24671 2006-01-09  Bruno Haible  <bruno@clisp.org>
24672
24673         * lib/sysexit_.h (EX_OK): New macro.
24674         Suggested by Martin Lambers <marlam@marlam.de>.
24675
24676 2006-01-09  Bruno Haible  <bruno@clisp.org>
24677
24678         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
24679         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
24680
24681 2006-01-09  Bruno Haible  <bruno@clisp.org>
24682
24683         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
24684         numbers.
24685
24686 2006-01-09  Bruno Haible  <bruno@clisp.org>
24687
24688         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
24689         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
24690         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
24691         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
24692
24693 2006-01-09  Bruno Haible  <bruno@clisp.org>
24694
24695         * build-aux/javacomp.sh.in: New file, moved from lib/.
24696         * modules/javacomp-script (Files): Update.
24697         (configure.ac): Add AC_CONFIG_FILES invocation.
24698         (EXTRA_DIST): Remove variable.
24699
24700         * build-aux/javaexec.sh.in: New file, moved from lib/.
24701         * modules/javaexec (Files): Update.
24702         (configure.ac): Add AC_CONFIG_FILES invocation.
24703         (EXTRA_DIST): Remove javaexec.sh.in.
24704
24705         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
24706         * modules/csharpcomp-script (Files): Update.
24707         (configure.ac): Add AC_CONFIG_FILES invocation.
24708         (EXTRA_DIST): Remove variable.
24709
24710         * build-aux/csharpexec.sh.in: New file, moved from lib/.
24711         * modules/csharpexec (Files): Update.
24712         (configure.ac): Add AC_CONFIG_FILES invocation.
24713         (EXTRA_DIST): Remove csharpexec.sh.in.
24714
24715 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
24716
24717         Sync from coreutils.
24718
24719         Add POSIX ACL support
24720         * lib/acl.h (copy_acl, set_acl): Add declarations.
24721         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
24722         systems other than Linux.
24723         (chmod_or_fchmod): New function: use fchmod when possible,
24724         and chmod otherwise.
24725         (file_has_acl): Add a POSIX ACL implementation, with a
24726         Linux-specific subcase.
24727         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
24728         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
24729         acls are unsupported.
24730         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
24731         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
24732         are unsupported.
24733
24734 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
24735
24736         Sync from coreutils.
24737         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
24738
24739 2006-01-07  Bruno Haible  <bruno@clisp.org>
24740
24741         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
24742         gl_EARLY.
24743
24744 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24745
24746         * lib/strftime.c (tzname): Don't declare if it is already #defined.
24747         Problem reported for Mingw by Mark Junker.
24748
24749 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24750
24751         * README: Gnulib normally doesn't generate a tarball.
24752
24753 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
24754
24755         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
24756         long int, not int, for nanosecond counts, so that people who are
24757         used to POSIX struct timespec won't be surprised.  Reported by Jim
24758         Meyering.
24759
24760 2005-12-28  Bruno Haible  <bruno@clisp.org>
24761
24762         * build-aux/config.rpath: Update from GNU gettext.
24763
24764 2005-12-16  Jim Meyering  <jim@meyering.net>
24765
24766         * modules/fprintftime: New module.
24767         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
24768
24769 2005-12-16  Jim Meyering  <jim@meyering.net>
24770
24771         * m4/fprintftime.m4: New file.
24772
24773 2005-12-16  Jim Meyering  <jim@meyering.net>
24774
24775         * lib/fprintftime.c, lib/fprintftime.h: New files.
24776
24777 2005-12-15  Simon Josefsson  <jas@extundo.com>
24778
24779         * modules/socklen (configure.ac): Fix M4 macro name, to align with
24780         new m4/socklen.m4.
24781
24782 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24783
24784         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
24785         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
24786
24787 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24788
24789         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
24790         * lib/argp-help.c (fill_in_uparams): Check if the constructed
24791         struct uparams is valid. Fall back to the default values if it is
24792         not.
24793
24794 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24795
24796         * modules/argp (Files): Add argp-pin.c
24797         (Depends-on): dirname
24798         (lib_SOURCES): Add argp-pin.c
24799
24800 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24801
24802         * m4/argp.m4:  Check if program_invocation_name and
24803         program_invocation_short_name are declared and define appropriate
24804         macros if they are not.
24805
24806 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24807
24808         * lib/argp-help.c (__argp_base_name): New function
24809         (__argp_short_program_name): Rewrite using __argp_base_name
24810         * lib/argp-namefrob.h: Define program_invocation_name and
24811         program_invocation_short_name if requested
24812         (__argp_base_name): Add prototype
24813         * lib/argp-parse.c (argp_def): Use gettext wrappers
24814         (argp_default_parser): Use __argp_base_name
24815         * lib/argp-pin.c: New file. Defines program_invocation_name and
24816         program_invocation_short_name on systems that lack them.
24817
24818 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
24819
24820         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
24821         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24822         porting problem reported by Georg Schwarz in
24823         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24824
24825 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
24826
24827         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
24828         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24829         porting problem reported by Georg Schwarz in
24830         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24831
24832 2005-12-05  Bruno Haible  <bruno@clisp.org>
24833
24834         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
24835         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
24836         Reported by Mark Junker <mjscod@gmx.de>.
24837
24838 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
24839
24840         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
24841         Use implementation from Albert Chin, with some
24842         comments/corrections by Stepan Kasal and myself.
24843
24844 2005-12-02  Bruno Haible  <bruno@clisp.org>
24845
24846         * gnulib-tool (func_import): Accept GPLed build tool modules when
24847         --lgpl is given.
24848         * modules/csharpcomp-script: New file.
24849         * modules/csharpcomp: Depend on it.
24850         * modules/javacomp-script: New file.
24851         * modules/javacomp: Depend on it.
24852         Suggested by Simon Josefsson.
24853
24854 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24855
24856         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
24857         statement, to work around an HP-UX 10.20 compiler bug reported by
24858         Peter O'Gorman.
24859
24860 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
24861
24862         * modules/savedir (Depends-on): Add openat.
24863
24864 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
24865
24866         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
24867         (uintmax_t) [defined uintmax_t]: Do not declare.
24868         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
24869         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
24870         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
24871         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
24872         sake of portability to weird hosts that C allows (though we don't
24873         know of any practical examples).
24874
24875         * lib/savedir.h (fdsavedir): New decl.
24876         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
24877         contains most of the former guts of savedir.
24878         (savedir): Use savedirstream.
24879         Include "openat.h".
24880
24881 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24882
24883         * modules/obstack (Files): Add m4/ulonglong.m4.
24884         Problem reported by Davide Angelocola.
24885
24886 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24887
24888         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
24889         coreutils no longer futzes with rounding modes.
24890
24891 2005-11-14  Jim Meyering  <jim@meyering.net>
24892
24893         * lib/mkstemp-safer.c: Include <config.h>, required for possible
24894         replacement of mkstemp.
24895
24896 2005-11-10  Simon Josefsson  <jas@extundo.com>
24897
24898         * lib/readline.c: Remove EOL.
24899
24900 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24901
24902         * modules/gethrxtime (Depends-on): Add gettime.
24903
24904 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24905
24906         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
24907         or gettimeofday; no longer needed.
24908
24909 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24910
24911         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
24912         time business.
24913         (gethrxtime) [! (HAVE_NANOUPTIME
24914         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
24915         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
24916         our own approximation.
24917
24918 2005-11-08  Eric Blake  <ebb9@byu.net>
24919
24920         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
24921
24922 2005-11-08  Eric Blake  <ebb9@byu.net>
24923
24924         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
24925
24926 2005-11-04  Bruno Haible  <bruno@clisp.org>
24927
24928         * gnulib-tool: Implement --update mode.
24929
24930 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24931
24932         Fix porting problem reported by Theodoros V. Kalamatianos.
24933         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
24934         Don't assume that futimes failing means we must fail.
24935
24936 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24937
24938         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
24939         variables to suggest the intended function of the PATH_MAX check.
24940
24941 2005-10-30  Kean Johnston  <jkj@sco.com>
24942
24943         Trivial changes to support SCO systems.
24944         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
24945         as PATH_MAX.
24946         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
24947         where __ptr is null when no I/O is pending.
24948
24949 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
24950
24951         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
24952         leave errno alone.  Problem reported by Dmitry V. Levin.
24953
24954 2005-10-28  Simon Josefsson  <jas@extundo.com>
24955
24956         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
24957         Test more.
24958
24959         * tests/test-gc-md2.c, tests/test-md2.c: New files.
24960
24961         * modules/md2, modules/md2-tests: New files.
24962
24963 2005-10-28  Simon Josefsson  <jas@extundo.com>
24964
24965         * m4/inet_ntop.m4: More tests.
24966
24967         * m4/gc-md2.m4, md2.m4: New file.
24968
24969 2005-10-28  Simon Josefsson  <jas@extundo.com>
24970
24971         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
24972         "restrict" keywords, as per POSIX.  Protect the function
24973         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
24974         Don't use K&R prototypes.  Check the sprintf return values.
24975         Re-define EAFNOSUPPORT if not present.  Indent.
24976
24977         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
24978         suggested by Bruno Haible <bruno@clisp.org>.
24979
24980         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
24981
24982         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
24983
24984         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
24985         libgcrypt).
24986
24987         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
24988
24989         * lib/md2.h, lib/md2.c: New files.
24990
24991 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
24992
24993         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
24994         errno alone.  Problem reported by Frederic Jolliton.
24995
24996 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
24997
24998         * modules/verify (License): Change from GPL to LGPL.  This is a
24999         tiny module and there are apparently near-equivalents that are
25000         under the BSD license.
25001
25002 2005-10-24  Simon Josefsson  <jas@extundo.com>
25003
25004         * modules/sha1: Relicense to LGPL.
25005
25006 2005-10-24  Simon Josefsson  <jas@extundo.com>
25007
25008         * lib/md4.h: Shrink buffer size, now that we changed the type.
25009
25010 2005-10-23  Simon Josefsson  <jas@extundo.com>
25011
25012         * gnulib-tool (func_import): Fix --tests-base.
25013
25014 2005-10-22  Simon Josefsson  <jas@extundo.com>
25015
25016         * modules/arcfour (Depends-on): Need stdint.
25017
25018 2005-10-22  Simon Josefsson  <jas@extundo.com>
25019
25020         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
25021         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
25022
25023 2005-10-22  Simon Josefsson  <jas@extundo.com>
25024
25025         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
25026         suggested by Bruno Haible <bruno@clisp.org>.
25027
25028 2005-10-22  Simon Josefsson  <jas@extundo.com>
25029
25030         * lib/crc.h: Include stddef.h, for size_t.
25031
25032 2005-10-22  Simon Josefsson  <jas@extundo.com>
25033
25034         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
25035         arcfour_context struct (simplify test vector testing in GNU
25036         Shishi).
25037
25038 2005-10-21  Simon Josefsson  <jas@extundo.com>
25039
25040         * modules/des, modules/des-tests: New files.
25041
25042         * modules/gc-des, modules/gc-des-tests: New files.
25043
25044         * tests/test-des.c, tests/test-gc-des.c: New file.
25045
25046 2005-10-21  Simon Josefsson  <jas@extundo.com>
25047
25048         * modules/arctwo, modules/arctwo-tests: New files.
25049
25050         * tests/test-arctwo.c: New file.
25051
25052         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
25053
25054         * tests/test-gc-arctwo.c: New file.
25055
25056 2005-10-21  Simon Josefsson  <jas@extundo.com>
25057
25058         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
25059         Bruno Haible <bruno@clisp.org>.
25060
25061         * m4/gc-des.m4: New file.
25062
25063 2005-10-21  Simon Josefsson  <jas@extundo.com>
25064
25065         * m4/arctwo.m4: New file.
25066
25067         * m4/gc-arctwo.m4: New file.
25068
25069 2005-10-21  Simon Josefsson  <jas@extundo.com>
25070
25071         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
25072         block.
25073
25074 2005-10-21  Simon Josefsson  <jas@extundo.com>
25075
25076         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
25077         <bruno@clisp.org>.
25078
25079         * lib/hmac-sha1.c (hmac_sha1): Likewise.
25080
25081         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
25082         Bruno Haible <bruno@clisp.org>.
25083
25084         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
25085         <bruno@clisp.org>.
25086
25087 2005-10-21  Simon Josefsson  <jas@extundo.com>
25088
25089         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
25090
25091 2005-10-21  Simon Josefsson  <jas@extundo.com>
25092
25093         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
25094
25095 2005-10-21  Simon Josefsson  <jas@extundo.com>
25096
25097         * lib/des.h, lib/des.c: New files.
25098
25099         * lib/gc-gnulib.c: Support DES.c
25100
25101 2005-10-21  Simon Josefsson  <jas@extundo.com>
25102
25103         * lib/arctwo.h, lib/arctwo.c: New files.
25104
25105         * lib/gc-gnulib.c: Support ARCTWO.
25106
25107 2005-10-21  Simon Josefsson  <jas@extundo.com>
25108
25109         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
25110         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25111
25112 2005-10-21  Simon Josefsson  <jas@extundo.com>
25113
25114         * gnulib-tool (func_import, func_create_testdir): Define automake
25115         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
25116         Makefile.am snippet),
25117         suggested by Bruno Haible <bruno@clisp.org>.
25118
25119         * modules/gc (Makefile.am): Use it.
25120
25121 2005-10-21  Bruno Haible  <bruno@clisp.org>
25122
25123         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
25124         patch.
25125
25126 2005-10-19  Simon Josefsson  <jas@extundo.com>
25127
25128         * tests/test-gc-rijndael.c: New file.
25129
25130         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
25131
25132 2005-10-19  Simon Josefsson  <jas@extundo.com>
25133
25134         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
25135         interface too.
25136
25137 2005-10-19  Simon Josefsson  <jas@extundo.com>
25138
25139         * tests/test-gc-arcfour.c: New file.
25140
25141         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
25142
25143 2005-10-19  Simon Josefsson  <jas@extundo.com>
25144
25145         * modules/gc-md4, modules/gc-md4-tests: New file.
25146
25147         * tests/test-gc-md4.c: New file.
25148
25149 2005-10-19  Simon Josefsson  <jas@extundo.com>
25150
25151         * m4/gc-md4.m4: New file.
25152
25153 2005-10-19  Simon Josefsson  <jas@extundo.com>
25154
25155         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
25156         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
25157         <kasal@ucw.cz>.
25158
25159 2005-10-19  Simon Josefsson  <jas@extundo.com>
25160
25161         * m4/gc-arcfour.m4: New file.
25162
25163         * m4/gc-rijndael.m4: New file.
25164
25165 2005-10-19  Simon Josefsson  <jas@extundo.com>
25166
25167         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
25168
25169 2005-10-19  Simon Josefsson  <jas@extundo.com>
25170
25171         * lib/gc-gnulib.c: Support ARCFOUR.
25172
25173 2005-10-19  Simon Josefsson  <jas@extundo.com>
25174
25175         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
25176         support.
25177
25178         * lib/gc.h: Add ECB enum type.
25179
25180         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
25181
25182 2005-10-18  Simon Josefsson  <jas@extundo.com>
25183
25184         * tests/test-md5.c: New file.
25185
25186         * modules/md5-tests: New file.
25187
25188 2005-10-18  Simon Josefsson  <jas@extundo.com>
25189
25190         * tests/test-md4.c: New file.
25191
25192         * modules/md4, modules/md4-tests: New files.
25193
25194 2005-10-18  Simon Josefsson  <jas@extundo.com>
25195
25196         * m4/md4.m4: New file.
25197
25198 2005-10-18  Simon Josefsson  <jas@extundo.com>
25199
25200         * lib/md4.h, lib/md4.c: New files, based on md5.?.
25201
25202 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
25203
25204         * gnulib-tool (func_create_testdir): Omit the second check whether
25205         BUILT_SOURCES in nonempty.
25206
25207 2005-10-17  Simon Josefsson  <jas@extundo.com>
25208
25209         * tests/test-rijndael.c: New file.
25210
25211 2005-10-17  Simon Josefsson  <jas@extundo.com>
25212
25213         * modules/sha1: Depend on stdint instead of md5.
25214
25215         * modules/md5: Depend on stdint, remove uint32_t.
25216
25217 2005-10-17  Simon Josefsson  <jas@extundo.com>
25218
25219         * modules/gc-sha1-tests: New file.
25220
25221         * tests/test-gc-sha1.c: New file.
25222
25223 2005-10-17  Simon Josefsson  <jas@extundo.com>
25224
25225         * m4/md5.m4: Remove call to uint32_t.m4.
25226
25227 2005-10-17  Simon Josefsson  <jas@extundo.com>
25228
25229         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
25230
25231         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
25232         md5.h.
25233
25234         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
25235
25236         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
25237
25238 2005-10-17  Simon Josefsson  <jas@extundo.com>
25239
25240         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
25241
25242 2005-10-17  Simon Josefsson  <jas@extundo.com>
25243
25244         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
25245
25246 2005-10-17  Simon Josefsson  <jas@extundo.com>
25247
25248         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
25249
25250         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
25251
25252 2005-10-17  Bruno Haible  <bruno@clisp.org>
25253
25254         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
25255         that it can also be used in a test.
25256
25257 2005-10-16  Bruno Haible  <bruno@clisp.org>
25258
25259         * gnulib-tool (func_emit_tests_Makefile_am): Also define
25260         TESTS_ENVIRONMENT, so that individual tests can augment it.
25261
25262         * gnulib-tool (func_create_testdir): Use an intermediate target for
25263         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
25264         macros, like $(ALLOCA_H), which cannot be passed through the command
25265         line.
25266
25267 2005-10-15  Simon Josefsson  <jas@extundo.com>
25268
25269         * modules/rijndael-tests: New file.
25270
25271         * modules/rijndael: New file.
25272
25273 2005-10-15  Simon Josefsson  <jas@extundo.com>
25274
25275         * m4/rijndael.m4: New file.
25276
25277 2005-10-15  Simon Josefsson  <jas@extundo.com>
25278
25279         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
25280
25281         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
25282
25283 2005-10-14  Simon Josefsson  <jas@extundo.com>
25284
25285         * tests/test-arcfour.c: New file.
25286
25287         * modules/arcfour, modules/arcfour-tests: New files.
25288
25289 2005-10-14  Simon Josefsson  <jas@extundo.com>
25290
25291         * m4/arcfour.m4: New file.
25292
25293 2005-10-14  Simon Josefsson  <jas@extundo.com>
25294
25295         * lib/arcfour.h, lib/arcfour.c: New files.
25296
25297 2005-10-14  Roland McGrath  <roland@redhat.com>
25298
25299         Import from libc.  [BZ #1331]
25300         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
25301         macro argument.
25302         Reported by Matej Vela <vela@debian.org>.
25303
25304 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
25305
25306         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
25307         include <wchar.h>; no longer needed.
25308
25309 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
25310
25311         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
25312
25313 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
25314         and  Ulrich Drepper  <drepper@redhat.com>
25315
25316         Import from libc.
25317         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
25318         instead of inline stream orientation test and two separate
25319         function calls.  Pay no attention to USE_IN_LIBIO.
25320
25321 2005-10-13  Simon Josefsson  <jas@extundo.com>
25322
25323         * modules/gc-hmac-md5-tests: New file.
25324
25325         * tests/test-gc-hmac-sha1.c: New file.
25326
25327         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
25328
25329         * modules/gc-hmac-md5-tests: New file.
25330
25331         * tests/test-gc-md5.c: New file.
25332
25333         * modules/gc-md5-tests: New file.
25334
25335 2005-10-13  Simon Josefsson  <jas@extundo.com>
25336
25337         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
25338         Move memory allocation outside of loop.
25339
25340 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25341
25342         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
25343         intermediate directory is in a read-only file system.  Problem
25344         reported by Eric Blake.
25345
25346 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
25347
25348         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
25349
25350 2005-10-12  Simon Josefsson  <jas@extundo.com>
25351
25352         * tests/test-hmac-sha1.c: New file.
25353
25354         * modules/hmac-sha1-tests: New file.
25355
25356         * modules/hmac-sha1: New file.
25357
25358 2005-10-12  Simon Josefsson  <jas@extundo.com>
25359
25360         * modules/gc-sha1: New file.
25361
25362 2005-10-12  Simon Josefsson  <jas@extundo.com>
25363
25364         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
25365
25366         * tests/test-gc-pbkdf2-sha1.c: New file.
25367
25368 2005-10-12  Simon Josefsson  <jas@extundo.com>
25369
25370         * modules/gc-md5, modules/gc-hmac-md5: New files.
25371
25372         * modules/gc (Files): Remove md5, memxor and hmac files.
25373
25374 2005-10-12  Simon Josefsson  <jas@extundo.com>
25375
25376         * m4/gc-pbkdf2-sha1.m4: New file.
25377
25378         * m4/gc-hmac-sha1.m4: New file.
25379
25380         * m4/gc-sha1: New file.
25381
25382         * m4/hmac-sha1.m4: New file.
25383
25384 2005-10-12  Simon Josefsson  <jas@extundo.com>
25385
25386         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
25387
25388         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
25389
25390 2005-10-12  Simon Josefsson  <jas@extundo.com>
25391
25392         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
25393         suggested by Bruno Haible <bruno@clisp.org>.
25394
25395 2005-10-12  Simon Josefsson  <jas@extundo.com>
25396
25397         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
25398
25399 2005-10-12  Simon Josefsson  <jas@extundo.com>
25400
25401         * lib/gc-pbkdf2-sha1.c: New file.
25402
25403         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
25404
25405 2005-10-12  Simon Josefsson  <jas@extundo.com>
25406
25407         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
25408
25409         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
25410
25411 2005-10-12  Simon Josefsson  <jas@extundo.com>
25412
25413         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
25414         GC_USE_HMAC_MD5, respectively.
25415
25416         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
25417         (gc_md5): Fix typo.
25418
25419         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
25420
25421         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
25422
25423         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
25424
25425 2005-10-12  Bruno Haible  <bruno@clisp.org>
25426
25427         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
25428         Reported by Stepan Kasal <kasal@ucw.cz>.
25429
25430 2005-10-11  Simon Josefsson  <jas@extundo.com>
25431
25432         * tests/test-crc.c: New file.
25433
25434         * modules/crc, modules/crc-tests: New files.
25435
25436 2005-10-11  Simon Josefsson  <jas@extundo.com>
25437
25438         * m4/crc.m4: New file.
25439
25440 2005-10-11  Simon Josefsson  <jas@extundo.com>
25441
25442         * lib/gc.h: Add gc_hash and gc_hash_buffer.
25443
25444         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
25445
25446         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
25447
25448 2005-10-11  Simon Josefsson  <jas@extundo.com>
25449
25450         * lib/crc.h, lib/crc.c: New files.
25451
25452         * lib/gc.h (gc_hash_buffer): Add doc.
25453
25454 2005-10-11  Bruno Haible  <bruno@clisp.org>
25455
25456         * modules/c-strcasestr: New file.
25457         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
25458
25459 2005-10-11  Bruno Haible  <bruno@clisp.org>
25460
25461         * modules/c-strcase: New file.
25462         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
25463
25464 2005-10-11  Bruno Haible  <bruno@clisp.org>
25465
25466         * lib/strcasecmp.c: Include limits.h.
25467         (strcasecmp): Avoid integer overflow on exotic platforms.
25468         * lib/strncasecmp.c: Include limits.h.
25469         (strncasecmp): Avoid integer overflow on exotic platforms.
25470         Reported by Paul Eggert.
25471
25472 2005-10-11  Bruno Haible  <bruno@clisp.org>
25473
25474         * lib/c-strcasestr.h: New file, from GNU gettext.
25475         * lib/c-strcasestr.c: New file, from GNU gettext.
25476
25477 2005-10-11  Bruno Haible  <bruno@clisp.org>
25478
25479         * lib/c-strcase.h: New file, from GNU gettext.
25480         * lib/c-strcasecmp.c: New file, from GNU gettext.
25481         * lib/c-strncasecmp.c: New file, from GNU gettext.
25482
25483 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25484
25485         * modules/mempcpy (License): GPL -> LGPL.
25486         * modules/strchrnul (License): Likewise.
25487         * modules/sysexits (License): Likewise.
25488
25489 2005-10-08  Simon Josefsson  <jas@extundo.com>
25490
25491         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
25492
25493 2005-10-07  Simon Josefsson  <jas@extundo.com>
25494
25495         * m4/memxor.m4: Remove gl_C_RESTRICT call.
25496
25497 2005-10-06  Simon Josefsson  <jas@extundo.com>
25498
25499         * tests/test-hmac-md5.c: New file.
25500
25501         * modules/hmac-md5-tests: New file.
25502
25503         * modules/hmac-md5: New file.
25504
25505 2005-10-06  Simon Josefsson  <jas@extundo.com>
25506
25507         * m4/hmac-md5.m4: New file.
25508
25509         * m4/memxor.m4: Require gl_C_RESTRICT.
25510
25511 2005-10-06  Simon Josefsson  <jas@extundo.com>
25512
25513         * lib/memxor.c (memxor): Avoid casts and warnings.
25514
25515 2005-10-06  Simon Josefsson  <jas@extundo.com>
25516
25517         * lib/hmac-md5.c: New file.
25518
25519         * lib/hmac.h: New file.
25520
25521 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25522
25523         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
25524         promotes to int, not unsigned int, to catch the AIX 5.3
25525         compiler bug.
25526
25527 2005-10-05  Simon Josefsson  <jas@extundo.com>
25528
25529         * modules/memxor: New file.
25530
25531         * modules/iconv (Files): Move config.rpath to havelib, it is used
25532         there.
25533
25534         * modules/havelib (Files): Add config.rpath.
25535
25536 2005-10-05  Simon Josefsson  <jas@extundo.com>
25537
25538         * m4/memxor.m4: New file.
25539
25540 2005-10-05  Simon Josefsson  <jas@extundo.com>
25541
25542         * lib/memxor.c (memxor): Fix compiler error.
25543
25544         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
25545         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
25546
25547         * lib/memxor.h, lib/memxor.c: New files.
25548
25549         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
25550         we assume all systems have it, suggested by Jim Meyering
25551         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
25552         any systems lack sys/socket.h; mingw32 is known to lack it, but we
25553         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
25554         same reasons.
25555
25556 2005-10-05  Simon Josefsson  <jas@extundo.com>
25557
25558         * config/srclist.txt: Add glibc bug 1423 for md5.h.
25559
25560 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25561
25562         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
25563         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
25564         needed, since the source code now assumes these .h files.
25565
25566 2005-10-05  Derek Price  <derek@ximbiot.com>
25567
25568         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
25569
25570 2005-10-05  Bruno Haible  <bruno@clisp.org>
25571
25572         * modules/stdint (License): Change to LGPL.
25573
25574 2005-10-04  Simon Josefsson  <jas@extundo.com>
25575
25576         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
25577         D. Baushke" <mdb@gnu.org>.
25578
25579 2005-10-04  Bruno Haible  <bruno@clisp.org>
25580
25581         * lib/verify.h (verify_true): Provide alternative definition for C++.
25582
25583 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25584
25585         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
25586         (SSIZE_MAX): New macro, if not already defined.
25587         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
25588         than 2 GiB.
25589
25590 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25591
25592         Sync from coreutils.
25593         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
25594         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
25595         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
25596         ULLONG_MAX doesn't work with 2.7.2.1.
25597
25598 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25599
25600         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
25601         From Ben Pfaff.
25602
25603         * modules/exclude (Depends-on): Depend on verify.
25604         * modules/strtoimax (Depends-on): Likewise.
25605         * modules/utimecmp (Depends-on): Likewise.
25606
25607 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25608
25609         * lib/exclude.c: Include verify.h.
25610         (verify): Remove.  All callers changed to use verify.h's version.
25611         * lib/strtoimax.c: Likewise.
25612         * lib/utimecmp.c: Likewis.e
25613
25614         Sync from coreutils.
25615         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
25616         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
25617         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
25618         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
25619         bother returning ENOSYS if settimeofday or stime fails; just let
25620         them return whatever errno they want to return.
25621         * lib/utimens.c: Include unistd.h, for dup2.
25622         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
25623         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
25624
25625 2005-10-02  Jim Meyering  <jim@meyering.net>
25626
25627         Sync from coreutils.
25628         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
25629         from glibc-2.2.5 that fails for read-only files.
25630
25631 2005-10-02  Jim Meyering  <jim@meyering.net>
25632
25633         Sync from coreutils.
25634         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
25635         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
25636         `#if HAVE_CONFIG_H'.
25637         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
25638         Remove AT_FDCWD test.
25639         Do not consume the fd unless successful.
25640         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
25641         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
25642         block, so that we don't even try to compile it if settimeofday is
25643         available.  This works around a compilation failure on OSF1 V5.1,
25644         due to stime requiring a `long int*' while tv_sec is `int'.
25645
25646 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
25647
25648         Sync from coreutils.
25649         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
25650         against `yes', rather than just testing for nonempty.
25651
25652 2005-10-01  Simon Josefsson  <jas@extundo.com>
25653
25654         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
25655         and Darwin.
25656
25657         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
25658         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
25659         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
25660         freeaddrinfo and gai_strerror are declared by the POSIX headers.
25661         Check if struct addrinfo is declared.
25662
25663 2005-10-01  Simon Josefsson  <jas@extundo.com>
25664
25665         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
25666         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
25667         AI_* and EAI_* definitions.  Protect function declarations.
25668
25669 2005-10-01  Jim Meyering  <jim@meyering.net>
25670
25671         Sync from coreutils.
25672
25673         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
25674         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
25675         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
25676         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25677         in the inet and nsl libraries.  Required on Solaris 5.7.
25678
25679 2005-10-01  Jim Meyering  <jim@meyering.net>
25680
25681         Sync from coreutils.
25682         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25683         in the inet and nsl libraries.  Required on Solaris 5.7.
25684
25685 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
25686
25687         * lib/getdelim.c (getdelim): Remove unused variables.
25688
25689 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
25690
25691         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
25692         so that the code works even with ancient cpp.  Portability problem
25693         with GCC 2.7.2.1 reported by Thomas M.Ott.
25694
25695 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
25696
25697         * modules/regex (Depends-on): Add strcase.
25698
25699         * modules/gethostname (Licence): Change from GPL to LGPL, since
25700         gethostname.c is a trivial implementation of a standard library
25701         function.
25702         * modules/poll (License): Change from GPL to LGPL, since it's
25703         derived from LGPL code.
25704
25705 2005-09-27  Jim Meyering  <jim@meyering.net>
25706
25707         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
25708         HAVE_CONFIG_H.
25709
25710         * lib/intprops.h (signed_type_or_expr__): Define.
25711         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
25712         for unsigned types.
25713
25714 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25715
25716         * lib/verify.h (verify_expr): Remove, replacing with:
25717         (verify_true): New macro that returns true instead of void.
25718         (verify_type__): Remove.
25719         (verify): Use verify_true rather than verify_type__.
25720
25721 2005-09-26  Bruno Haible  <bruno@clisp.org>
25722
25723         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
25724         is necessary.
25725         (lib_SOURCES): Remove mbchar.c.
25726         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
25727         (Files): Add m4/mbrtowc.m4.
25728         * modules/mbiter: Likewise.
25729         * modules/mbuiter: Likewise.
25730
25731 2005-09-26  Bruno Haible  <bruno@clisp.org>
25732
25733         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
25734         compile mbchar.c if they are not both present.
25735         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
25736         * m4/mbiter.m4 (gl_MBITER): Likewise.
25737         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
25738         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
25739         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
25740
25741 2005-09-25  Jim Meyering  <jim@meyering.net>
25742
25743         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
25744         also uses socklen_t.
25745
25746 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
25747
25748         * lib/utimens.c (ENOSYS): Define if not already defined.
25749         (futimens): Support having a null PATH if the file descriptor
25750         is nonnegative.
25751
25752         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
25753         Remove.
25754         (__attribute): Define to empty unless GCC 3.1 or later.
25755         This works around a core dump on OpenBSD 3.4, which has GCC
25756         2.95.3, which dumps core when given __attribute__(()).  It also
25757         simplifies other tests, since we really don't want to bother with
25758         worrying about which ancient version of GCC supported what.
25759         Original problem reported by Yoann Vandoorselaere, with part of
25760         the fix suggested by Derek Price.
25761
25762 2005-09-24  Jim Meyering  <jim@meyering.net>
25763
25764         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
25765         so we can once again use a positive bitfield width of 1 -- now we
25766         don't have to explain why we were using a bitfield width of 2.
25767
25768 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25769
25770         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
25771         and similarly for the other external symbols.  Problem reported
25772         by James Gallager.
25773
25774         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
25775         bug reported by Jim Meyering.
25776
25777         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
25778         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
25779         not needed, since socklen is a prerequisite module.
25780
25781 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25782
25783         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
25784         Problem reported by Eric Blake.
25785         (getaddrinfo): Initialize se so that it's not garbage.
25786         Redo internal storage allocation so that it doesn't make unportable
25787         assumptions about alignment.
25788         Fix a memory leak.
25789
25790         * lib/utimens.c (futimens): Use futimesat if available.
25791         Prefer it to futimes since it doesn't have the futimes bug.
25792
25793         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
25794         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
25795         Instead, declare a function that returns a pointer to an array,
25796         and use verify_type__ to declare the size of the array.
25797         Problem and germ of a solution reported by Bruno Haible.
25798         (verify_type__): Use 2, not 1, for bitfield size, to avoid
25799         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
25800
25801 2005-09-23  Jim Meyering  <jim@meyering.net>
25802
25803         Sync from coreutils.
25804         Correct build failure (socklen_t not defined) on at least
25805         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
25806         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
25807
25808 2005-09-23  Jim Meyering  <jim@meyering.net>
25809
25810         * modules/getaddrinfo (Depends-on): Add socklen.
25811
25812 2005-09-23  Bruno Haible  <bruno@clisp.org>
25813
25814         * tests/test-verify.c: New file.
25815
25816 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25817
25818         Sync from coreutils.
25819
25820         * modules/argmatch (Depends-on): Add verify.
25821         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
25822         unistd-safer.
25823         * modules/save-cwd (Depends-on): Likewise.
25824
25825         * modules/openat (Files): Add lib/openat-die.c.
25826         (Depends-on): Remove error, exitfail.
25827         Add dirname.
25828
25829         * modules/verify: New file.
25830         * MODULES.html.sh (Diagnostics <assert.h>): New section,
25831         with "verify" module.
25832
25833 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25834
25835         Sync from coreutils.
25836
25837         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
25838         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
25839         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
25840         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
25841         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
25842         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
25843         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
25844         Don't bother checking for string.h, stdlib.h, unistd.h.
25845         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
25846         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
25847         module's job.
25848         * m4/jm-macros.m4 (gl_MACROS): Likewise.
25849         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
25850
25851         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
25852         (gl_GETDATE): Use it.
25853
25854         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
25855
25856 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25857
25858         Sync from coreutils.
25859
25860         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
25861         stat-time.h.
25862         * lib/argmatch.h: Include verify.h
25863         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
25864         (ARGMATCH_ASSERT): Remove; unused.
25865         * lib/canonicalize.c: Assume STDC_HEADERS.
25866         * lib/exclude.c: Include "strcase.h".
25867         * lib/regex_internal.h [!defined _LIBC]: Likewise.
25868         * lib/getusershell.c: Include stdio--.h rather than stdio.h
25869         and stdio-safer.h.
25870         (getusershell): Call fopen, not fopen_safer.
25871         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
25872         Do not include unistd-safer.h.
25873         (save_cwd): Don't call fd_safer; no longer needed
25874         now that we include fcntl--.h.
25875
25876         * lib/getdate.y (relative_time): New type.
25877         (RELATIVE_TIME_0): New constant.
25878         (parser_control): Use relative_time instead of doing it ourselves.
25879         (%union): Add new relative_time rel member.
25880         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
25881         Now typeless.
25882         (relunit, relunit_snumber): Now of type rel.
25883         (zone, rel, relunit, get_date): Adjust to above changes.
25884
25885         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
25886         Do not include unistd-safer.h.
25887         (getloadavg): Don't call fd_safer; no longer needed
25888         now that we include fcntl--.h.
25889
25890         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
25891         (make_dir_parents): Treat ENOSYS like EEXIST.
25892
25893         Improve quality of diagnostics on restore_cwd failure.
25894         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
25895         (make_dir_parents): Last arg is now int * (for errno), not bool *.
25896         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
25897         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
25898         each time through the loop.  Do not diagnose restore_cwd failure;
25899         that is the caller's job (and perhaps the caller does not care).
25900
25901         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
25902         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
25903         If the file already exists but is not a directory, don't bother
25904         to try to make its parents.
25905         Close potential file descriptor leak if we can't chdir("/") (!).
25906         Don't always return true if chdir($PWD) fails; return true only
25907         if the requested action was done successfully (except for the
25908         chdir($PWD)).
25909         Don't log final directory unless we actually made it.
25910         Refactor to avoid duplicate code to fix up permissions.
25911         Don't attempt to fix up parent permissions if chdir($PWD) fails.
25912
25913         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
25914         to make it a bit faster and (I hope) clearer.
25915         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
25916         Fix bug in formats like %2N.
25917
25918         * lib/verify.h: New file.
25919
25920 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25921
25922         Sync from coreutils.
25923         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
25924
25925 2005-09-22  Jim Meyering  <jim@meyering.net>
25926
25927         Sync from coreutils.
25928
25929         * m4/lstat.m4 (gl_FUNC_LSTAT):
25930         Use AC_LIBSOURCES to require lstat.c and lstat.h.
25931         Remove obsolete comment.
25932         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
25933         * m4/xstrtod.m4: Likewise.
25934
25935         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
25936
25937 2005-09-22  Jim Meyering  <jim@meyering.net>
25938
25939         Sync from coreutils.
25940
25941         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
25942
25943         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
25944         the .tm_year member, since otherwise gcc-4.0 would now warn about
25945         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
25946
25947         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
25948         order to avoid an unsuppressible warning from gcc on 64-bit systems.
25949
25950         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
25951         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
25952         when run in a time zone for which daylight savings time is in effect
25953         for the starting date.
25954
25955         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
25956         stop us from restricting permissions of just-created absolute-named
25957         directories.
25958         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
25959         to restore initial working directory.
25960         * lib/mkdir-p.c (make_dir_parents): New parameter:
25961         different_working_dir, to tell caller if/when we change the working
25962         directory and are unable to return to the initial one.
25963         * lib/mkdir-p.h (make_dir_parents): Update prototype.
25964         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
25965         `return false'.  This fixes a bug introduced on 2004-07-30.
25966
25967         * lib/openat.c (fdopendir): Be sure to close the supplied
25968         file descriptor before returning.  This makes our replacement
25969         implementation a little closer to Solaris's, where fdopendir
25970         ties the file descriptor to the returned DIR* pointer.
25971         * lib/openat.c (unlinkat): New function.
25972         * lib/openat.h (unlinkat): Add prototype.
25973         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
25974         (openat_restore_fail): Rename from openat_restore_die.
25975         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
25976
25977         Provide an alternative to exiting immediately upon save_cwd or
25978         restore_cwd failure.  Now, an application can arrange e.g.,
25979         to perform a longjump in that case.
25980         * lib/openat.c: Include dirname.h.
25981         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
25982         (rpl_openat, fdopendir, fstatat): Call openat_save_die
25983         and openat_restore_die rather than calling error directly.
25984         Don't include "error.h" or "exitfail.h"; they're no longer needed.
25985
25986         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
25987         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
25988         define.
25989
25990         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
25991         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
25992                             int utc, int nanoseconds);
25993         Background:
25994         date should not have to allocate a megabyte of virtual memory to
25995         handle a format argument like +%1048575T.  When implemented with
25996         strftime, it must allocate such a buffer, use strftime to fill it
25997         in, print it, then free it.
25998         With fprintftime, it simply prints everything and exits.
25999         With no need for memory allocation, that's one fewer way to fail.
26000         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
26001         optional field width, not before, so we accept %9:z, not %:9z.
26002         (my_strftime): Be sure to use L_('x') for literals.
26003
26004         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
26005         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
26006         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
26007         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
26008         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
26009         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
26010         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
26011         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
26012         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
26013         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
26014         * lib/xgethostname.c, lib/xreadlink.c:
26015         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
26016
26017         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
26018         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
26019         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
26020         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
26021         and don't include <sys/file.h>).
26022
26023 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
26024
26025         Sync from coreutils.
26026
26027         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
26028         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
26029         [!LDAV_DONE]: Avoid unused variable warning.
26030
26031 2005-09-21  Bruno Haible  <bruno@clisp.org>
26032
26033         * lib/unicodeio.h (unicode_to_mb): New declaration.
26034
26035 2005-09-20  Derek Price  <derek@ximbiot.com>
26036
26037         * lib/getaddrinfo.c: Don't include <netdb.h> included from
26038         getaddrinfo.h.
26039
26040 2005-09-20  Bruno Haible  <bruno@clisp.org>
26041
26042         * gnulib-tool: Remove trailing slashes from the values specified for
26043         --source-base, --m4-base, --tests-base, --aux-dir.
26044         Suggested by Simon Josefsson <jas@extundo.com>.
26045
26046 2005-09-20  Bruno Haible  <bruno@clisp.org>
26047
26048         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
26049         func_modules_to_filelist, func_import, func_create_testdir): Make all
26050         sorting results locale-independent, so that gnulib-cache.m4 doesn't
26051         change when gnulib-tool is invoked in a different locale.
26052
26053 2005-09-19  Simon Josefsson  <jas@extundo.com>
26054
26055         * m4/socklen.m4: Fix typo.
26056
26057 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26058
26059         Use a consistent style for including <config.h>.
26060         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
26061         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
26062         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
26063         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
26064         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
26065         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
26066         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
26067         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
26068         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
26069         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
26070         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
26071         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
26072         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
26073         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
26074         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
26075         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
26076         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
26077         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
26078         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
26079         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
26080         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
26081         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
26082         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
26083         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
26084         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
26085         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
26086         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
26087         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
26088         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
26089         lib/xstrtoumax.c, lib/yesno.c:
26090         Standardize inclusion of config.h.
26091         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
26092         lib/inttostr.h:  Removed inclusion of config.h from header files.
26093         * lib/inttostr.c:  Adjusted in-tree users.
26094         * lib/timespec.h: Remove superfluous warning to include config.h.
26095         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
26096         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
26097         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
26098         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
26099         config.h with HAVE_CONFIG_H.
26100
26101 2005-09-19  Jim Meyering  <jim@meyering.net>
26102
26103         * modules/pathmax (License): Change to LGPL.
26104
26105 2005-09-19  Derek Price  <derek@ximbiot.com>
26106
26107         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
26108
26109 2005-09-19  Bruno Haible  <bruno@clisp.org>
26110
26111         * gnulib-tool (import): Provide default for --tests-base.
26112
26113 2005-09-19  Bruno Haible  <bruno@clisp.org>
26114
26115         * doc/quote.texi: New file, extracted from gnulib.texi.
26116         * doc/ctime.texi: New file, extracted from gnulib.texi.
26117         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
26118         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
26119         * doc/gnulib.texi: Include them.
26120
26121 2005-09-18  Bruno Haible  <bruno@clisp.org>
26122
26123         Portability fix.
26124         * gnulib-tool (func_readlink): New function.
26125         (func_ln_if_changed): Use it.
26126
26127 2005-09-18  Bruno Haible  <bruno@clisp.org>
26128
26129         * gnulib-tool: Support --with-tests also with --import.
26130         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
26131         (func_import): Use variables $testsbase and $inctests. Emit a
26132         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
26133         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
26134         SUBDIRS += $testsdir.
26135         (func_create_testdir): Update.
26136
26137 2005-09-18  Bruno Haible  <bruno@clisp.org>
26138
26139         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
26140         instead of $dry_run.
26141         (func_cp_if_changed, func_mv_if_changed): Remove functions.
26142         (func_ln_if_changed): Don't handle dry-run here.
26143         (func_import): In dry-run mode, detect more precisely which actions
26144         would be performed, and don't use "...ing" verbs.
26145
26146 2005-09-18  Bruno Haible  <bruno@clisp.org>
26147
26148         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
26149         (func_import): Use join on two temporary files instead of three nested
26150         loops, in order to determine which files are new or old.
26151
26152 2005-09-18  Bruno Haible  <bruno@clisp.org>
26153
26154         * gnulib-tool (func_import): Comment out code that spits out the
26155         new files with --dry-run.
26156
26157 2005-09-18  Bruno Haible  <bruno@clisp.org>
26158
26159         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
26160
26161 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26162
26163         * lib/stat-time.h: New file.
26164         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
26165         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
26166         in a different way.
26167         (timespec_cmp): New function.
26168         * lib/utimecmp.c: Include stat-time.h.
26169         (SYSCALL_RESOLUTION): Depend on whether various struct stat
26170         members exist, not on the obsolescent ST_MTIM_NSEC.
26171         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
26172
26173 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26174
26175         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
26176
26177 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26178
26179         * MODULES.html.sh (File system functions): Add stat-time.
26180         * modules/stat-time: New file.
26181         * modules/timespec (Files): Remove m4/st_mtim.m4; this
26182         is now done in a different way, by the stat-time module.
26183         * modules/utimecmp (Depends-on): Add stat-time.
26184
26185 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
26186
26187         * m4/st_mtim.m4: Remove.  Superseded by...
26188         * m4/stat-time.m4: New file.
26189         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
26190         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
26191
26192 2005-09-15  Derek Price  <derek@ximbiot.com>
26193
26194         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
26195
26196 2005-09-15  Derek Price  <derek@ximbiot.com>
26197
26198         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
26199         * lib/regex_internal.c: Ditto, using this...
26200         (__GNUC_PREREQ): ...new macro.
26201         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
26202         using...
26203         (__GNUC_PREREQ): ...this new macro.
26204
26205         * lib/strstr.h: Include string.h. Define strstr as a macro here.
26206
26207 2005-09-15  Derek Price  <derek@ximbiot.com>
26208             Paul Eggert  <eggert@cs.ucla.edu>
26209
26210         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
26211         changes, consolidating in...
26212         * lib/regex_internal.h: ...this file.
26213
26214 2005-09-13  Jim Meyering  <jim@meyering.net>
26215
26216         * lib/canon-host.c: Filter through gnu indent and reword comments
26217         slightly.
26218         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
26219
26220 2005-09-13  Derek Price  <derek@ximbiot.com>
26221
26222         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
26223         failure.
26224         Reported by Jim Meyering  <jim@meyering.net>.
26225
26226 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26227
26228         * lib/base64.c: Typo.
26229         (base64_encode): Put b64str in initialized data section.
26230
26231 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26232
26233         Merge glibc and coreutils changes into gnulib, plus a few
26234         extra fixes.
26235         * lib/md5.c: Use #error rather than a string.
26236         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
26237         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
26238         (__attribute__): Define to empty for non recent-GCC.
26239         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
26240         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
26241         Renamed from their non-__ counterparts, with new macros replacing
26242         them if not _LIBC.  Add __THROW attribute.
26243         (rol): Remove.
26244         (struct md5_ctx): Align buffer if using GCC.
26245         * lib/sha1.h (struct sha1_ctx): Likewise.
26246         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
26247         The old name was backwards.
26248         (NOTSWAP): Remove; not used.
26249         (rol): New macro, moved here from md5.h.
26250         (sha1_process_block): Remove a FIXME that doesn't make sense.
26251
26252 2005-09-12  Derek Price  <derek@ximbiot.com>
26253
26254         Return usable errors from canon-host.
26255         * lib/canon-host.h: New file.
26256         * lib/canon-host.c (canon_host): Wrap...
26257         (canon_host_r): ...this new function, which now relies exclusively on
26258         getaddrinfo.
26259         (ch_strerror): New function.
26260         (last_cherror): New global.
26261         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
26262         interface.
26263         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
26264         void *.
26265         (freeaddrinfo): Free ai->ai_canonname when set.
26266
26267 2005-09-12  Derek Price  <derek@ximbiot.com>
26268
26269         Make canon-host require getaddrinfo.
26270         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
26271         AC_LIBSOURCE canon-host.h.  Call...
26272         (gl_PREREQ_CANON_HOST): ...this new function, which requires
26273         gl_GETADDRINFO.
26274         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
26275
26276 2005-09-12  Derek Price  <derek@ximbiot.com>
26277
26278         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
26279         LGPL.
26280         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
26281
26282 2005-09-12  Derek Price  <derek@ximbiot.com>
26283
26284         * lib/gai_strerror.c: Include config.h when available.  Include
26285         getaddrinfo.h before other headers to test interface.
26286         Reported by Larry Jones <lawrence.jones@ugs.com>.
26287
26288 2005-09-12  Derek Price  <derek@ximbiot.com>
26289             Paul Eggert  <eggert@cs.ucla.edu>
26290
26291         * modules/glob (Files): Add glob-libc.h.
26292
26293 2005-09-12  Derek Price  <derek@ximbiot.com>
26294             Paul Eggert  <eggert@cs.ucla.edu>
26295
26296         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
26297         glob_.h, glob-libc.h.
26298         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
26299
26300 2005-09-12  Derek Price  <derek@ximbiot.com>
26301             Paul Eggert  <eggert@cs.ucla.edu>
26302
26303         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
26304         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
26305         protecting things that should be done only in gnulib contexts.
26306         * lib/glob_.h: New file, containing only the glob things needed for
26307         gnulib.
26308         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
26309         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
26310         (glob, globfree, glob_pattern_p): Now defined simply in terms of
26311         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
26312         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
26313         and to respect the namespace rules better.
26314
26315 2005-09-08  Simon Josefsson  <jas@extundo.com>
26316
26317         * modules/socklen: New file.
26318
26319 2005-09-08  Simon Josefsson  <jas@extundo.com>
26320
26321         * m4/socklen.m4: New file.
26322
26323 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26324
26325         * modules/utimens (Files): Add m4/utimbuf.m4, since
26326         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
26327         Reported by Sergey Poznyakoff.
26328
26329 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26330
26331         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
26332         definitions, since that's the preferred style in glibc.
26333         Fix a minor spacing issue, and update copyright notice to match
26334         glibc's.
26335
26336 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26337
26338         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
26339
26340 2005-09-06  Simon Josefsson  <jas@extundo.com>
26341
26342         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
26343         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
26344
26345 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26346
26347         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
26348         warning.
26349
26350 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26351
26352         * config/srclist.txt: Add glibc bug 1302.
26353
26354 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
26355
26356         Change bitset word type from unsigned int to unsigned long int,
26357         as this has better performance on typical 64-bit hosts.
26358         Port bitset code to hosts with unusual word sizes.
26359         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
26360         (build_collating_symbol):
26361         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
26362         argument is a bitset.  This is merely a style issue, but it makes
26363         it clearer that an entire array is expected.
26364         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
26365         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
26366         Port to the case where bitset_word is not the same as unsigned int.
26367         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
26368         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
26369         Likewise.
26370         * lib/regexec.c (check_dst_limits_calc_pos_1,
26371         check_subexp_matching_top):
26372         (build_trtable, group_nodes_into_DFAstates):
26373         Likewise.
26374         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
26375         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
26376         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
26377         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
26378         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
26379         * lib/regcomp.c (optimize_subexps, lower_subexp):
26380         Work even if bitset_word has holes in its bitwise representation.
26381         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
26382         * lib/regexec.c (check_dst_limits_calc_pos_1,
26383         check_subexp_matching_top):
26384         Likewise.
26385         * lib/regex_internal.c (re_string_reconstruct):
26386         Don't assume UCHAR_MAX == 255.
26387         * lib/regex_internal.h (bitset_set_all): Likewise.
26388         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
26389         All uses changed.
26390         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
26391         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
26392         All uses changed.
26393         (BITSET_WORD_MAX): New macro.
26394         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
26395         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
26396         (bitset_empty, bitset_copy):
26397         Prefer sizeof (bitset) to multiplying it out ourselves.
26398         (bitset_not_merge): Remove; unused.
26399         (bitset_contain): Return bool, not unsigned int with one bit on.
26400         All callers changed.
26401         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
26402         alignment than re_node_set; do this by defining a new internal
26403         type struct dests_alloc and using it to allocate memory.
26404
26405 2005-09-05  Bruno Haible  <bruno@clisp.org>
26406
26407         * gnulib-tool (func_import): Fix comparison in handling of symbolic
26408         links.
26409
26410 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
26411
26412         * modules/size_max (Makefile.am): Add size_max.h
26413
26414 2005-09-04  Derek Price  <derek@ximbiot.com>
26415
26416         * gnulib-tool (func_import): Fix reversed $symbolic logic.
26417
26418 2005-09-03  Simon Josefsson  <jas@extundo.com>
26419
26420         * gnulib-tool: Fix typo.
26421
26422 2005-09-03  Simon Josefsson  <jas@extundo.com>
26423
26424         * config/srclist.txt: Add glibc bug 1293.
26425
26426 2005-09-03  Derek Price  <derek@ximbiot.com>
26427
26428         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
26429         From Larry Jones <lawrence.jones@ugs.com>.
26430
26431 2005-09-02  Simon Josefsson  <jas@extundo.com>
26432
26433         * modules/socklen: New file.
26434
26435 2005-09-02  Simon Josefsson  <jas@extundo.com>
26436
26437         * modules/havelib: New module.
26438
26439         * modules/gettext, modules/iconv, modules/lock, modules/readline:
26440         Use havelib.
26441
26442 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26443
26444         Check for arithmetic overflow when calculating sizes, to prevent
26445         some buffer-overflow issues.  These patches are conservative, in the
26446         sense that when I couldn't determine whether an overflow was possible,
26447         I inserted a run-time check.
26448         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
26449         macros.
26450         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
26451         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
26452         (re_xnrealloc, re_x2nrealloc): New inline functions.
26453         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
26454         parse_bracket_exp):
26455         (build_equiv_class, build_charclass): Check for arithmetic overflow
26456         in size expression calculations.
26457         * lib/regex_internal.c (re_string_realloc_buffers):
26458         (build_wcs_upper_buffer, re_node_set_add_intersect):
26459         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
26460         (re_dfa_add_node, register_state): Likewise.
26461         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
26462         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
26463         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
26464         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
26465
26466 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26467
26468         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
26469         m4/ulonglong.m4.  Problem reported by Martin Lambers.
26470
26471 2005-09-02  Bruno Haible  <bruno@clisp.org>
26472
26473         Support for lib vs. lib64 distinction on biarch platforms.
26474         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
26475         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
26476         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
26477
26478 2005-09-02  Bruno Haible  <bruno@clisp.org>
26479
26480         * gnulib-tool (import): In the other first-use case, provide defaults
26481         as well.
26482
26483 2005-09-02  Bruno Haible  <bruno@clisp.org>
26484
26485         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
26486         patches not yet found in the latest gettext release.
26487
26488 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26489
26490         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
26491         to avoid a collision with bits/local_lim.h in glibc.
26492         All uses changed.  Problem reported by Dmitry V. Levin in
26493         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
26494
26495         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
26496         bugs in int versus size_t comparisons.
26497         (re_string_context_at): Fix bug where the code assumed that
26498         Idx is signed.
26499
26500         Use bool where appropriate.
26501         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
26502         All callers changed.
26503         (calc_eclosure_iter): Likewise, for ROOT arg.
26504         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
26505         (build_charclass_op): Likewise, for NON_MATCH arg.
26506         * lib/regex_internal.c (re_string_allocate, re_string_construct):
26507         (re_string_construct_common): Likewise, for ICASE arg.
26508         * lib/regexec.c (re_search_2_stub, re_search_stub):
26509         Likewise, for RET_LEN arg.
26510         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
26511         (set_regs): Likewise, for FL_BACKTRACK arg.
26512         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
26513         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
26514         (calc_eclosure_iter, parse_bracket_exp):
26515         Use bool for internal variables that are booleans.
26516         * lib/regexec.c (re_search_internal, check_matching,
26517         proceed_next_node):
26518         (set_regs, build_sifted_states, sift_states_bkref):
26519         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
26520         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
26521         (find_collation_sequence_value):
26522         Likewise.
26523         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
26524         (re_node_set_compare):
26525         Return bool, not int. All callers changed.
26526         * lib/regexec.c (check_halt_node_context, check_dst_limits):
26527         (build_trtable, check_node_accept): Likewise.
26528         * lib/regex_internal.h: Include stdbool.h.
26529
26530         Fix bugs uncovered when converting to bool.
26531         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
26532         failure instead of charging ahead blindly.
26533         * lib/regex_internal.c (register_state): Likewise.
26534         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
26535         for freeing internal storage.
26536         (group_nodes_into_DFA_states): Use unsigned int, not int, for
26537         bitset pieces used as boolean, to avoid undefined behavior
26538         on hosts that do int overflow checking.
26539
26540 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26541
26542         * config/srclist.txt: Add glibc bugs 1285-1287.
26543
26544 2005-09-01  Jim Meyering  <jim@meyering.net>
26545
26546         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
26547         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
26548         Require gl_STAT_MACROS, too.
26549
26550 2005-09-01  Bruno Haible  <bruno@clisp.org>
26551
26552         * gnulib-tool (import): In the first-use case, provide defaults.
26553
26554 2005-09-01  Bruno Haible  <bruno@clisp.org>
26555
26556         * gnulib-tool (func_import): Remove the .tmp files.
26557
26558 2005-09-01  Bruno Haible  <bruno@clisp.org>
26559
26560         * gnulib-tool (func_import): Fix handling of symbolic links.
26561
26562 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26563
26564         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
26565         old glibc regex code mishandles strings longer than 2**31 bytes.
26566         This patch fixes this when the regex code is used in gnulib
26567         (i.e., outside glibc).
26568
26569         This patch should not affect the use of the regex code inside
26570         glibc.  No doubt this problem also needs to be handled for glibc
26571         as well, but the result will be an incompatible change to the
26572         glibc ABI, and the old ABI will have to be supported too.  That
26573         can be the the subject for another patch.
26574
26575         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
26576         governing whether the rest of this patch is active.  By default,
26577         the macro is disabled and the patch has no effect.
26578         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
26579         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
26580         (struct re_pattern_buffer, re_search, re_search_2, re_match):
26581         (re_match_2, re_set_registers): Use the new types.
26582         * lib/regex_internal.h (Idx, re_hashval_t): New types.
26583         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
26584         New macros.
26585         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
26586         (re_string_context_at, bin_tree_t, re_dfastate_t):
26587         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
26588         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
26589         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
26590         (re_string_char_size_at, re_string_wchar_at):
26591         (re_string_elem_size_at):
26592         Use the new types and macros to port to 64-bit hosts.
26593         Use unsigned types for internal values, so that the code
26594         mostly works even for arrays larger than SSIZE_MAX.
26595         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
26596         (search_duplicated_node, calc_eclosure_iter, fetch_number):
26597         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
26598         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
26599         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
26600         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
26601         (calc_inveclosure, parse_dup_op, build_range_exp):
26602         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
26603         (fetch_number, create_token_tree, mark_opt_subexp):
26604         Likewise.
26605         * lib/regex_internal.c (re_string_construct_common,
26606         create_ci_newstate):
26607         (create_cd_newstate, re_string_allocate, re_string_construct):
26608         (re_string_realloc_buffers, build_wcs_upper_buffer):
26609         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
26610         (re_string_reconstruct, re_string_peek_byte_case):
26611         (re_string_fetch_byte_case, re_string_context_at):
26612         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
26613         (re_node_set_init_copy, re_node_set_add_intersect):
26614         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26615         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26616         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
26617         (re_acquire_state, re_acquire_state_context, register_state):
26618         Likewise.
26619         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
26620         search_cur_bkref_entry):
26621         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
26622         (re_search_internal, re_search_2_stub, re_search_stub)
26623         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
26624         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
26625         (update_cur_sifted_state, check_dst_limits):
26626         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26627         (check_subexp_limits, sift_states_bkref, merge_state_array):
26628         (check_subexp_matching_top, get_subexp, get_subexp_sub):
26629         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
26630         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
26631         (expand_bkref_cache, check_node_accept_bytes):
26632         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
26633         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
26634         (acquire_init_state_context, check_halt_node_context):
26635         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
26636         (sift_states_backward, clean_state_log_if_needed):
26637         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
26638         (find_recover_state, transit_state_sb, transit_state_mb):
26639         (transit_state_bkref, build_trtable, match_ctx_clean):
26640         Likewise.
26641         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
26642         to work around an assumption that REG_MISSING is negative.
26643
26644         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
26645         (seek_collating_symbol_entry) [defined _LIBC]:
26646         (lookup_collation_sequence_value) [defined _LIBC]:
26647         (build_range_exp, build_collating_symbol) [defined _LIBC]:
26648         Use prototypes rather than old-style function definitions.
26649         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
26650         (transit_state_sb) [0]:
26651         (find_collation_sequence_value) [defined _LIBC]: Likewise.
26652
26653         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
26654         rm_eo.
26655
26656         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
26657         (optimize_subexps, lower_subexp):
26658         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
26659         since the signed shift might overflow.  Use 1u<<31 instead.
26660         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
26661         Likewise.
26662         * lib/regexec.c (check_dst_limits_calc_pos_1,
26663         check_subexp_matching_top): Likewise.
26664
26665         * lib/regcomp.c (optimize_subexps, lower_subexp):
26666         Use CHAR_BIT rather than 8, for clarity.
26667         * lib/regexec.c (check_dst_limits_calc_pos_1):
26668         (check_subexp_matching_top): Likewise.
26669         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
26670         have to worry about portability issues when shifting it left.
26671         Remove no-longer-needed test for table_size > 0.
26672         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
26673         in a word, as the resulting behavior is undefined.
26674         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
26675         in one case, a <= should have been an <, and in another case the
26676         whole test was missing.
26677         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
26678         the standard name CHAR_BIT.
26679         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
26680         this is not true on one's complement and signed-magnitude hosts.
26681
26682         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
26683         next_last_offset.
26684         (struct re_dfa_t): Remove unused member states_alloc.
26685         * lib/regcomp.c (init_dfa): Don't initialize unused members.
26686
26687 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26688
26689         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
26690         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
26691         and large-file glibc and in 32-bit large-file Solaris.
26692
26693 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26694
26695         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
26696         lengths fit in regoff_t; this isn't true if regoff_t is the same
26697         width as size_t.
26698         * lib/regex.c (re_search_internal): 5th arg is LAST_START
26699         (= START + RANGE) instead of RANGE.  This avoids overflow
26700         problems when regoff_t is the same width as size_t.
26701         All callers changed.
26702         (re_search_2_stub): Check for overflow when adding the
26703         sizes of the two strings.
26704         (re_search_stub): Check for overflow when adding START
26705         to RANGE; if it occurs, substitute the extreme value.
26706
26707 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26708
26709         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
26710
26711 2005-08-31  Jim Meyering  <jim@meyering.net>
26712
26713         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
26714         a pointer-to-const.
26715         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
26716         (register_state): Likewise.
26717         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
26718         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26719         (group_nodes_into_DFAstates): Likewise.
26720
26721 2005-08-31  Jim Meyering  <jim@meyering.net>
26722
26723         * check-module: Add a FIXME comment.
26724
26725 2005-08-31  Eric Blake  <ebb9@byu.net>
26726
26727         * modules/unistd-safer (Files): Add unistd--.h.
26728         * modules/stdio-safer (Files): Add stdio--.h.
26729
26730 2005-08-31  Derek Price  <derek@ximbiot.com>
26731
26732         * lib/getdelim.c (getdelim): Return EOF on EOF.
26733         Reported by Larry Jones <lawrence.jones@ugs.com>.
26734
26735 2005-08-31  Bruno Haible  <bruno@clisp.org>
26736
26737         Avoid unnecessary diffs in the generated lib/Makefile.am.
26738         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
26739         the generated files.
26740         (func_import): Don't set cmd.
26741
26742 2005-08-31  Bruno Haible  <bruno@clisp.org>
26743
26744         * lib/strstr.c: Include <stddef.h>, for NULL.
26745         * lib/strcasestr.c: Likewise.
26746         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26747
26748 2005-08-31  Bruno Haible  <bruno@clisp.org>
26749
26750         * gnulib-tool: New option --macro-prefix.
26751         (func_import): Use macro_prefix.
26752         (import): Handle option --macro-prefix.
26753
26754 2005-08-31  Bruno Haible  <bruno@clisp.org>
26755
26756         * gnulib-tool (import): Rename most ac_* variables to cached_*.
26757         Also use new variables cached_lgpl, cached_libtool.
26758
26759 2005-08-31  Bruno Haible  <bruno@clisp.org>
26760
26761         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
26762         always instantiating them.
26763
26764 2005-08-31  Bruno Haible  <bruno@clisp.org>
26765
26766         * gnulib-tool (func_import): Read the previous cached settings
26767         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
26768         earlier added by gnulib but are now dropped. Warn when a gnulib file
26769         overwrites a non-gnulib file.
26770
26771 2005-08-31  Bruno Haible  <bruno@clisp.org>
26772
26773         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
26774         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
26775         projects that don't keep autogenerated files in CVS. Put into
26776         actioncmd only the specified modules, not the transitive closure.
26777
26778 2005-08-31  Bruno Haible  <bruno@clisp.org>
26779
26780         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
26781         Create directories that shall be filled.
26782         (import): Don't look for gl_* macros in configure.ac. Recurse across
26783         all directories containing a gnulib-cache.m4 files, if meaningful.
26784
26785 2005-08-31  Bruno Haible  <bruno@clisp.org>
26786
26787         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
26788         (import): Set seen_libtool when we see gl_LIBTOOL.
26789
26790 2005-08-31  Bruno Haible  <bruno@clisp.org>
26791
26792         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
26793         declaration macro definitions from generated gnulib.m4.
26794
26795 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
26796
26797         * lib/iconvme.h: Add prototype for iconv_alloc.
26798
26799 2005-08-29  Simon Josefsson  <jas@extundo.com>
26800
26801         * lib/iconvme.c: Fix errno.
26802
26803 2005-08-29  Bruno Haible  <bruno@clisp.org>
26804
26805         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
26806         that it works when the directory contains spaces.
26807
26808 2005-08-29  Bruno Haible  <bruno@clisp.org>
26809
26810         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
26811
26812 2005-08-29  Bruno Haible  <bruno@clisp.org>
26813
26814         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
26815         Emit more advice.
26816
26817 2005-08-29  Bruno Haible  <bruno@clisp.org>
26818         and Stepan Kasal  <kasal@ucw.cz>
26819
26820         * check-module: If more parameters are given, check each of them
26821         separately; add more exceptions, as noted by Jim Meyering.
26822         (check_module): New procedure.
26823         (%exempt_header): Now contains all exceptions.
26824
26825 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
26826
26827         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
26828
26829 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
26830
26831         * lib/iconvme.c: Split iconv_string into iconv_alloc.
26832
26833 2005-08-28  Bruno Haible  <bruno@clisp.org>
26834
26835         * m4/gnulib-tool.m4: New file.
26836
26837 2005-08-27  Jim Meyering  <jim@meyering.net>
26838
26839         * modules/unistd-safer (Files): Add pipe-safer.c.
26840         * modules/fcntl-safer (Files): Add creat-safer.c.
26841
26842 2005-08-27  Jim Meyering  <jim@meyering.net>
26843
26844         * m4/stdlib-safer.m4: New file.  From coreutils.
26845         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
26846         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
26847         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
26848         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
26849         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
26850
26851 2005-08-27  Jim Meyering  <jim@meyering.net>
26852
26853         * lib/fopen-safer.c: Merge minor changes from coreutils.
26854         * lib/dup-safer.c: Likewise.
26855         * lib/fd-safer.c: Likewise.
26856
26857         Merge from coreutils.
26858         * lib/stdio--.h: New file.
26859         * lib/stdlib--.h: New file.
26860         * lib/mkstemp-safer.c: New file.
26861
26862         GNU tar needs these.
26863         * lib/pipe-safer.c: New file.
26864         * lib/creat-safer.c: New file.
26865         * lib/fcntl--.h (creat): Define to creat_safer.
26866         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
26867         * lib/unistd--.h (pipe): Define to pipe_safer.
26868         * lib/unistd-safer.h: Declare pipe_safer.
26869
26870 2005-08-26  Simon Josefsson  <jas@extundo.com>
26871
26872         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
26873         Haible <bruno@clisp.org>.
26874
26875 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
26876
26877         * lib/regex_internal.h: Remove all references to
26878         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
26879         or better.
26880         (bitset_not, bitset_merge, bitset_not_merge):
26881         (bitset_mask, re_string_allocate, re_string_construct):
26882         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
26883         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
26884         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
26885         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
26886         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26887         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26888         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
26889         (re_acquire_state_context):
26890         Remove unnecessary forward decls.
26891         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
26892         Put __attribute at function definition,
26893         now that the function decl has been removed.
26894         * lib/regex_internal.c (re_string_peek_byte_case):
26895         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
26896         Likewise.
26897
26898 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
26899
26900         * m4/regex.m4: Add AC_PREREQ(2.50).
26901         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
26902
26903 2005-08-25  Simon Josefsson  <jas@extundo.com>
26904
26905         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
26906         __fsetlocking.
26907
26908 2005-08-25  Simon Josefsson  <jas@extundo.com>
26909
26910         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
26911         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
26912         GLIBC specific code.
26913
26914 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26915
26916         Make regex safe for g++.  This fixes one real bug (an "err"
26917         that should have been "*err").  g++ problem reported by
26918         Sam Steingold.
26919         * lib/regex_internal.h (re_calloc): New macro, consistent with
26920         re_malloc etc.  All callers of calloc changed to use re_calloc.
26921         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
26922         not int.  All callers changed.
26923         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
26924         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
26925         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
26926         (find_recover_state): Change "err" to "*err"; this fixes what
26927         appears to be a real bug.
26928         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
26929         versus int.
26930
26931 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26932
26933         * modules/regex (Depends-on): Add malloc, since the code
26934         assumes that !malloc(0) means failure.
26935
26936 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26937
26938         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
26939
26940         alloca modernization/simplification for regex.
26941         * lib/regex.c: Remove portability cruft for alloca.  This no longer
26942         needs to be at the start of the file, and can be moved into
26943         regex_internal.h and simplified.
26944         * lib/regex_internal.h: Include <alloca.h>.
26945         (__libc_use_alloca) [!defined _LIBC]: New macro.
26946         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
26947         now works outside glibc.
26948
26949 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26950
26951         * config/srclist.txt: Add glibc bugs 1241, 1245.
26952
26953 2005-08-25  Jim Meyering  <jim@meyering.net>
26954
26955         * lib/open-safer.c: Include <config.h>.
26956         Otherwise, we'd lose LARGEFILE support in any file using
26957         e.g. "fcntl--.h"
26958
26959 2005-08-25  Bruno Haible  <bruno@clisp.org>
26960
26961         * m4/minmax.m4: Require autoconf 2.52.
26962         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
26963         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
26964         alternatives of translit over the alphabet.
26965         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
26966
26967 2005-08-24  Simon Josefsson  <jas@extundo.com>
26968
26969         * tests/test-getpass.c: New file.
26970
26971 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26972
26973         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
26974         for GNU regex features.
26975
26976 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26977
26978         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
26979         * lib/regex.h (regerror): Likewise.
26980
26981         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
26982         requires this.  (The code never needed it.)
26983
26984         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
26985         All uses of recently-renamed identifiers changed to use the new,
26986         POSIX-compliant names.  The code will build and run just fine
26987         without these changes, but it's better to eat our own dog food
26988         and use the standard-conforming names.
26989
26990         * lib/regex.h: Fix a multitude of POSIX name space violations.
26991         These changes have an effect only for programs that define
26992         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
26993         do not change anything for programs compiled in the normal way.
26994         Also, there is no effect on the ABI.
26995
26996         (_REGEX_SOURCE): New macro.
26997         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
26998         defined and _GNU_SOURCE is not; this fixes a name space violation.
26999
27000         Rename the following macros to obey POSIX requirements.
27001         The old names are still visible as macros if _REGEX_SOURCE is defined.
27002         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
27003         RE_BACKSLASH_ESCAPE_IN_LISTS.
27004         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
27005         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
27006         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
27007         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
27008         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
27009         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
27010         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
27011         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
27012         (REG_INTERVALS): renamed from RE_INTERVALS.
27013         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
27014         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
27015         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
27016         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
27017         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
27018         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
27019         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
27020         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
27021         RE_UNMATCHED_RIGHT_PAREN_ORD.
27022         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
27023         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
27024         (REG_DEBUG): renamed from RE_DEBUG.
27025         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
27026         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
27027         unusual, since we can't clash with the POSIX REG_ICASE.
27028         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
27029         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
27030         (REG_NO_SUB): renamed from RE_NO_SUB.
27031         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
27032         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
27033         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
27034         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
27035         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
27036         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
27037         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
27038         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
27039         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
27040         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
27041         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
27042         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
27043         RE_SYNTAX_POSIX_MINIMAL_BASIC.
27044         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
27045         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
27046         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
27047         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
27048         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
27049         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
27050         (REG_FIXED): Renamed from REGS_FIXED.
27051         (REG_NREGS): Renamed from RE_NREGS.
27052
27053         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
27054         of other REG_* macros, since POSIX says the user is allowed to
27055         #undef these macros selectively.
27056
27057         (reg_errcode_t): Update comment stating what other tables need
27058         to be consistent.
27059
27060         Rename the following enum values to obey POSIX requirements.
27061         The old names are still visible as macros.
27062         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
27063         is not defined, since GNU is supposed to be a superset of POSIX as
27064         much as possible, and since we want reg_errcode_t to be a signed
27065         type for implementation consistency.
27066         (_REG_NOERROR): Renamed from REG_NOERROR.
27067         (_REG_NOMATCH): Renamed from REG_NOMATCH.
27068         (_REG_BADPAT): Renamed from REG_BADPAT.
27069         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
27070         (_REG_ECTYPE): Renamed from REG_ECTYPE.
27071         (_REG_EESCAPE): Renamed from REG_EESCAPE.
27072         (_REG_ESUBREG): Renamed from REG_ESUBREG.
27073         (_REG_EBRACK): Renamed from REG_EBRACK.
27074         (_REG_EPAREN): Renamed from REG_EPAREN.
27075         (_REG_EBRACE): Renamed from REG_EBRACE.
27076         (_REG_BADBR): Renamed from REG_BADBR.
27077         (_REG_ERANGE): Renamed from REG_ERANGE.
27078         (_REG_ESPACE): Renamed from REG_ESPACE.
27079         (_REG_BADRPT): Renamed from REG_BADRPT.
27080         (_REG_EEND): Renamed from REG_EEND.
27081         (_REG_ESIZE): Renamed from REG_ESIZE.
27082         (_REG_ERPAREN): Renamed from REG_ERPAREN.
27083         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
27084         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
27085         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
27086         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
27087
27088         (_REG_RE_NAME, _REG_RM_NAME): New macros.
27089         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
27090         changed.  But support the old name if the new one is not defined
27091         and if _REGEX_SOURCE.
27092
27093         Change the following member names in struct re_pattern_buffer.
27094         The old names are still supported if !_REGEX_SOURCE.
27095         The new names are always supported, regardless of _REGEX_SOURCE.
27096         (re_buffer): Renamed from buffer.
27097         (re_allocated): Renamed from allocated.
27098         (re_used): Renamed from used.
27099         (re_syntax): Renamed from syntax.
27100         (re_fastmap): Renamed from fastmap.
27101         (re_translate): Renamed from translate.
27102         (re_can_be_null): Renamed from can_be_null.
27103         (re_regs_allocated): Renamed from regs_allocated.
27104         (re_fastmap_accurate): Renamed from fastmap_accurate.
27105         (re_no_sub): Renamed from no_sub.
27106         (re_not_bol): Renamed from not_bol.
27107         (re_not_eol): Renamed from not_eol.
27108         (re_newline_anchor): Renamed from newline_anchor.
27109
27110         Change the following member names in struct re_registers.
27111         The old names are still supported if !_REGEX_SOURCE.
27112         The new names are always supported, regardless of _REGEX_SOURCE.
27113         (rm_num_regs): Renamed from num_regs.
27114         (rm_start): Renamed from start.
27115         (rm_end): Renamed from end.
27116
27117         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
27118         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
27119         Prepend __ to parameter names.
27120
27121         Undo yesterday's changes.
27122
27123 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27124
27125         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
27126         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
27127         lib/regex.c.
27128
27129 2005-08-24  Jim Meyering  <jim@meyering.net>
27130
27131         Sync from coreutils.
27132         * m4/fcntl-safer.m4: New file.
27133
27134         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
27135         and object files for this module.
27136
27137 2005-08-24  Jim Meyering  <jim@meyering.net>
27138
27139         Sync from coreutils.
27140         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
27141
27142 2005-08-24  Jim Meyering  <jim@meyering.net>
27143
27144         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
27145         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
27146
27147 2005-08-24  Jim Meyering  <jim@meyering.net>
27148
27149         * modules/fcntl-safer: New module.
27150         * modules/fts (Depends-on): Add fcntl-safer.
27151         * MODULES.html.sh (File descriptor based Input/Output):
27152         Add fcntl-safer.
27153
27154 2005-08-24  Bruno Haible  <bruno@clisp.org>
27155
27156         Support for unit test modules.
27157         * modules/README: Mention tests modules.
27158         * modules/TEMPLATE-TESTS: New file.
27159         * gnulib-tool: New options --extract-tests-module, --with-tests and
27160         --tests-base (unused for the moment).
27161         (testsbase, inctests): New variables.
27162         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
27163         (func_verify_module): Exclude TEMPLATE-TESTS.
27164         (func_verify_nontests_module, func_verify_tests_module): New functions.
27165         (func_get_dependencies): Add implicit dependency for tests modules.
27166         (func_get_tests_module): New function.
27167         (func_modules_transitive_closure): When --with-tests was specified,
27168         include the unit tests as well, unless explicitly avoided.
27169         (func_emit_lib_Makefile_am): Ignore the tests modules here.
27170         (func_emit_tests_Makefile_am): New function.
27171         (func_create_testdir): When --with-tests was specified, emit a
27172         tests/ directory.
27173         * MODULES.html.sh (Future developments): Update.
27174
27175 2005-08-24  Bruno Haible  <bruno@clisp.org>
27176
27177         * modules/tls-tests: New file.
27178         * tests/test-tls.c: New file, from GNU gettext.
27179
27180 2005-08-24  Bruno Haible  <bruno@clisp.org>
27181
27182         * modules/lock-tests: New file.
27183         * tests/test-lock.c: New file, from GNU gettext.
27184
27185 2005-08-24  Bruno Haible  <bruno@clisp.org>
27186
27187         * lib/lock.h: Add multiple inclusion guard.
27188         * lib/tls.h: Add multiple inclusion guard.
27189
27190 2005-08-24  Bruno Haible  <bruno@clisp.org>
27191
27192         * gnulib-tool: Add support for the --aux-dir option to
27193         --create-testdir, --create-megatestdir, --test, --megatest.
27194         (func_create_testdir, func_create_megatestdir): Optionally emit a
27195         AC_CONFIG_AUX_DIR directive.
27196         (create-testdir, create-megatestdir, test, megatest): Provide a
27197         default value for $auxdir.
27198
27199 2005-08-24  Bruno Haible  <bruno@clisp.org>
27200
27201         * gnulib-tool (import): Use compound statement instead of subshell
27202         where possible.
27203
27204 2005-08-24  Bruno Haible  <bruno@clisp.org>
27205
27206         * gnulib-tool (import): Change --aux-dir default to "build-aux".
27207
27208 2005-08-24  Bruno Haible  <bruno@clisp.org>
27209
27210         * gnulib-tool (func_version): Update.
27211
27212 2005-08-24  Bruno Haible  <bruno@clisp.org>
27213
27214         * gnulib-tool (func_import, func_create_testdir,
27215         func_create_megatestdir): Quote all autoconf macro arguments.
27216
27217 2005-08-24  Bruno Haible  <bruno@clisp.org>
27218
27219         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
27220         option --force, because --force causes the aclocal.m4 of each
27221         subdirectory to be newer than the corresponding config.h.in.
27222
27223 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27224
27225         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
27226         All contents moved to gl_REGEX.
27227         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
27228         assume that it does.
27229
27230 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27231
27232         * lib/regex.h (REG_NOSYS)
27233         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
27234         Define, since POSIX requires it as of 2001.
27235         (_REG_ENOSYS)
27236         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
27237         New private symbol, used to keep the enum signed in all cases.
27238         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
27239         Youngman in
27240         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
27241
27242         * lib/regex_internal.c (re_string_skip_chars, register_state):
27243         (calc_state_hash):
27244         Remove forward decls; no longer needed now that we use prototypes.
27245         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
27246         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
27247         (clean_state_log_if_needed): Likewise.
27248
27249 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27250
27251         * config/srclist.txt: Add glibc bugs 1231-1233.
27252
27253 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27254
27255         Fix problems reported by Sam Steingold in
27256         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
27257         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
27258         assumed that reg_errcode_t is a signed type, which is not
27259         necessarily true if _XOPEN_SOURCE is not defined.
27260         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
27261         since some compilers warn about it otherwise.
27262
27263 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27264
27265         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
27266         (init_word_char, create_initial_state, duplicate_node_closure):
27267         (fetch_token, peek_token_bracket, build_range_exp):
27268         (build_collating_symbol): Remove forward decls; no longer needed
27269         now that we use prototypes.
27270
27271         * lib/regcomp.c:
27272         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
27273         (re_compile_fastmap_iter, regcomp, regerror, regfree):
27274         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
27275         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
27276         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
27277         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
27278         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
27279         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
27280         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
27281         (build_range_exp, build_collating_symbol, parse_bracket_exp):
27282         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
27283         (build_charclass, build_charclass_op, fetch_number, create_tree):
27284         (create_token_tree, mark_opt_subexp, duplicate_tree):
27285         Use prototypes rather than old-style definitions.
27286
27287         * lib/regex_internal.c:
27288         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
27289         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
27290         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
27291         (re_string_reconstruct, re_string_peek_byte_case):
27292         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
27293         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
27294         (re_node_set_init_copy, re_node_set_add_intersect):
27295         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
27296         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
27297         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
27298         (re_acquire_state, re_acquire_state_context, register_state):
27299         (create_ci_newstate, create_cd_newstate, free_state):
27300         Likewise.
27301         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
27302         re_search_2):
27303         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
27304         (re_search_internal, prune_impossible_nodes):
27305         (acquire_init_state_context, check_matching, static):
27306         (check_halt_node_context, check_halt_state_context, proceed_next_node):
27307         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
27308         (update_regs, sift_states_backward, build_sifted_states):
27309         (clean_state_log_if_needed, merge_state_array):
27310         (update_cur_sifted_state, add_epsilon_src_nodes):
27311         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
27312         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
27313         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
27314         (find_recover_state, check_subexp_matching_top, transit_state_mb):
27315         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
27316         (check_arrival, check_arrival_add_next_nodes):
27317         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
27318         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
27319         (check_node_accept_bytes, check_node_accept, extend_buffers):
27320         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
27321         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
27322         (sift_ctx_init):
27323         Likewise.
27324
27325         * lib/regex_internal.h:
27326         (re_string_allocate, re_string_construct, re_string_reconstruct):
27327         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
27328         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
27329         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
27330         (re_string_context_at, re_string_peek_byte_case):
27331         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
27332         is defined, since we now use prototypes always.
27333
27334         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
27335         C89 or better.  All uses removed.
27336
27337 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27338
27339         * config/srclist.txt: Add glibc bugs 1220-1227.
27340
27341 2005-08-20  Jim Meyering  <jim@meyering.net>
27342
27343         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
27344         of unused local, dfa.
27345
27346 2005-08-20  Bruno Haible  <bruno@clisp.org>
27347
27348         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
27349
27350 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27351
27352         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
27353         (re_node_set_insert_last, re_dfa_add_node):
27354         Rename local variables to avoid GCC shadowing warnings.
27355
27356 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27357
27358         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
27359         [defined lint]: Suppress bogus uninitialized-variable warnings.
27360
27361         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
27362         and let the caller return REG_ESPACE if out of space.  This
27363         removes an uninitialied-variable warning with GCC 4.0.1, and also
27364         avoids taking the address of a local variable.  All callers
27365         changed.
27366
27367 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27368
27369         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
27370         $LIBCSRC/posix/regexec.c.
27371         Add glibc bug 1217 for regcomp.c.
27372
27373 2005-08-19  Jim Meyering  <jim@meyering.net>
27374
27375         * lib/regexec.c (proceed_next_node): Redo local variables to
27376         avoid GCC shadowing warnings.
27377
27378 2005-08-18  Bruno Haible  <bruno@clisp.org>
27379
27380         * lib/strstr.c (strstr): Fix return value in multibyte case.
27381         * lib/strcasestr.c (strcasestr): Likewise.
27382
27383 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27384
27385         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
27386
27387 2005-08-17  Jim Meyering  <jim@meyering.net>
27388
27389         Make the %s format (seconds since the epoch) work for a negative
27390         number and when used with a zero-padded field width, e.g. %015s.
27391
27392         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
27393         label so that it precedes the code to set `digits'.  Otherwise,
27394         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
27395         print `00-22'.  Now, it prints `-0022', as it should.
27396
27397 2005-08-17  Bruno Haible  <bruno@clisp.org>
27398
27399         * modules/strstr (Files): Add m4/mbrtowc.m4.
27400         (Depends-on): Add mbuiter.
27401
27402 2005-08-17  Bruno Haible  <bruno@clisp.org>
27403
27404         * modules/strcasestr: New file.
27405         * MODULES.html.sh (String handling, based on ANSI C 89): Add
27406         strcasestr.
27407
27408 2005-08-17  Bruno Haible  <bruno@clisp.org>
27409
27410         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
27411
27412 2005-08-17  Bruno Haible  <bruno@clisp.org>
27413
27414         * modules/mbuiter: New file.
27415         * MODULES.html.sh (Extended multibyte and wide character utilities):
27416         Add mbuiter.
27417
27418 2005-08-17  Bruno Haible  <bruno@clisp.org>
27419
27420         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
27421         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
27422
27423 2005-08-17  Bruno Haible  <bruno@clisp.org>
27424
27425         * m4/strcasestr.m4: New file.
27426
27427 2005-08-17  Bruno Haible  <bruno@clisp.org>
27428
27429         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
27430         * lib/strstr.c: Completely rewritten, with multibyte locale support.
27431
27432 2005-08-17  Bruno Haible  <bruno@clisp.org>
27433
27434         * lib/strcasestr.h: New file.
27435         * lib/strcasestr.c: New file.
27436
27437 2005-08-17  Bruno Haible  <bruno@clisp.org>
27438
27439         * lib/strcasecmp.c: Use mbuiter.h.
27440
27441 2005-08-17  Bruno Haible  <bruno@clisp.org>
27442
27443         * lib/mbuiter.h: New file.
27444
27445 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
27446
27447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
27448         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
27449         and gl_GETOPT are both invoked via different paths (as happens
27450         with GNU tar CVS because it uses both argp and getopt), the former
27451         wins.
27452
27453 2005-08-16  Bruno Haible  <bruno@clisp.org>
27454
27455         * modules/tls: New file.
27456         * MODULES.html.sh (Multithreading): Add tls.
27457
27458 2005-08-16  Bruno Haible  <bruno@clisp.org>
27459
27460         * modules/strnlen1: New file.
27461         * MODULES.html.sh (String handling): Add strnlen1.
27462
27463 2005-08-16  Bruno Haible  <bruno@clisp.org>
27464
27465         * modules/strcase (Files): Add m4/mbrtowc.m4.
27466         (Depends-on): Add strnlen1, mbchar.
27467
27468 2005-08-16  Bruno Haible  <bruno@clisp.org>
27469
27470         * modules/mbiter: New file.
27471         * MODULES.html.sh (Extended multibyte and wide character utilities):
27472         Add mbiter.
27473
27474 2005-08-16  Bruno Haible  <bruno@clisp.org>
27475
27476         * modules/mbfile: New file.
27477         * MODULES.html.sh (Extended multibyte and wide character utilities):
27478         Add mbfile.
27479
27480 2005-08-16  Bruno Haible  <bruno@clisp.org>
27481
27482         * modules/mbchar: New file.
27483         * MODULES.html.sh (Extended multibyte and wide character utilities):
27484         New section.
27485
27486 2005-08-16  Bruno Haible  <bruno@clisp.org>
27487
27488         * m4/tls.m4: New file, from GNU gettext.
27489
27490 2005-08-16  Bruno Haible  <bruno@clisp.org>
27491
27492         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
27493         always.
27494         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
27495
27496 2005-08-16  Bruno Haible  <bruno@clisp.org>
27497
27498         * m4/mbiter.m4: New file.
27499
27500 2005-08-16  Bruno Haible  <bruno@clisp.org>
27501
27502         * m4/mbfile.m4: New file.
27503
27504 2005-08-16  Bruno Haible  <bruno@clisp.org>
27505
27506         * m4/mbchar.m4: New file.
27507
27508 2005-08-16  Bruno Haible  <bruno@clisp.org>
27509
27510         * lib/tls.h: New file, from GNU gettext.
27511         * lib/tls.c: New file, from GNU gettext.
27512
27513 2005-08-16  Bruno Haible  <bruno@clisp.org>
27514
27515         * lib/strnlen1.h: New file.
27516         * lib/strnlen1.c: New file.
27517
27518 2005-08-16  Bruno Haible  <bruno@clisp.org>
27519
27520         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
27521         (mbi_init): Update.
27522         (mbi_avail, mbi_advance): Let the iteration end before the terminating
27523         NUL byte, not after it.
27524
27525 2005-08-16  Bruno Haible  <bruno@clisp.org>
27526
27527         * lib/strcase.h (strcasecmp): Add note in comments.
27528         * lib/strncasecmp.c: Use code from strcasecmp.c.
27529         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
27530         (strcasecmp): Work correctly in multibyte locales.
27531
27532 2005-08-16  Bruno Haible  <bruno@clisp.org>
27533
27534         * lib/mbiter.h: New file.
27535
27536 2005-08-16  Bruno Haible  <bruno@clisp.org>
27537
27538         * lib/mbfile.h: New file.
27539
27540 2005-08-16  Bruno Haible  <bruno@clisp.org>
27541
27542         * lib/mbchar.h: New file.
27543         * lib/mbchar.c: New file.
27544
27545 2005-08-16  Bruno Haible  <bruno@clisp.org>
27546
27547         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
27548         the valid ones. Makes the comparison operations transitive:
27549         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
27550         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
27551
27552 2005-08-15  Simon Josefsson  <jas@extundo.com>
27553
27554         * modules/ssize_t (License): Change to 'unlimited'.
27555
27556         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
27557
27558 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
27559
27560         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
27561         Add comments for each pending glibc patch.
27562
27563 2005-08-15  Bruno Haible  <bruno@clisp.org>
27564
27565         * lib/regex.h (__restrict_arr): Don't define to __restrict if
27566         __cplusplus is defined.
27567
27568 2005-08-14  Jim Meyering  <jim@meyering.net>
27569
27570         Sync from coreutils.
27571
27572         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
27573         Use the hash-table-based cycle-detection code not just when
27574         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
27575         Reported by James Youngman in
27576         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
27577         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
27578         FTS_TIGHT_CYCLE_CHECK.
27579         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
27580         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
27581         once again.
27582         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
27583         * lib/fts.c (fd_safer): Remove decl.
27584         Include fcntl--.h rather than unistd-safer.h
27585         (fts_safe_changedir): Don't call fd_safer; no longer needed
27586         now that we include fcntl--.h.
27587
27588 2005-08-12  Simon Josefsson  <jas@extundo.com>
27589
27590         * modules/getndelim2: Use ssize_t module.
27591         * modules/getnline: Likewise.
27592         * modules/safe-read: Likewise.
27593         * modules/xreadlink: Likewise.
27594
27595         * modules/ssize_t: New file.
27596
27597 2005-08-12  Simon Josefsson  <jas@extundo.com>
27598
27599         * m4/readline.m4: Look for termcap, curses or ncurses if required.
27600
27601 2005-08-12  Simon Josefsson  <jas@extundo.com>
27602
27603         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27604         ssize_t.
27605
27606 2005-08-12  Simon Josefsson  <jas@extundo.com>
27607
27608         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
27609         readline, getdelim and check_version.
27610         (Support for systems lacking ISO C 99: Sizes of integer types):
27611         Add size_max.
27612
27613 2005-08-12  Bruno Haible  <bruno@clisp.org>
27614
27615         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
27616
27617 2005-08-11  Simon Josefsson  <jas@extundo.com>
27618
27619         * modules/readline: New file.
27620
27621         * modules/strnlen (Files): Add strnlen.h.
27622
27623 2005-08-11  Simon Josefsson  <jas@extundo.com>
27624
27625         * m4/readline.m4: New file.
27626
27627 2005-08-11  Simon Josefsson  <jas@extundo.com>
27628
27629         * lib/readline.h, readline.c: New file.
27630
27631 2005-08-11  Simon Josefsson  <jas@extundo.com>
27632
27633         * doc/gnulib.texi (Initial import, Finishing touches): Mention
27634         gl_AVOID.
27635
27636 2005-08-11  Bruno Haible  <bruno@clisp.org>
27637
27638         * lib/strnlen.h (strnlen): Change parameter name to match comment.
27639
27640 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
27641
27642         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
27643
27644 2005-08-10  Simon Josefsson  <jas@extundo.com>
27645
27646         * tests/test-iconvme.c: New file.
27647
27648 2005-08-10  Simon Josefsson  <jas@extundo.com>
27649
27650         * m4/strnlen.m4: New file.
27651
27652         * m4/strndup.m4: Don't check for strnlen declaration, done in
27653         strnlen.m4.
27654
27655 2005-08-10  Simon Josefsson  <jas@extundo.com>
27656
27657         * lib/strndup.c: Use strnlen.h.
27658
27659         * lib/strnlen.h: New file.
27660
27661 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
27662
27663         * README: Typos.
27664
27665 2005-08-02  Simon Josefsson  <jas@extundo.com>
27666
27667         * modules/readline: New file.
27668
27669 2005-08-02  Simon Josefsson  <jas@extundo.com>
27670
27671         * modules/getdelim: New file.
27672
27673         * modules/getline: Rewrite, don't use getndelim2.
27674
27675 2005-08-02  Simon Josefsson  <jas@extundo.com>
27676
27677         * m4/getline.m4: Separate out getdelim stuff into separate module.
27678
27679         * m4/getdelim.m4: New file.
27680
27681 2005-08-02  Simon Josefsson  <jas@extundo.com>
27682
27683         * lib/getline.h, getline.c: Rewrite.
27684
27685         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
27686
27687 2005-07-31  Bruno Haible  <bruno@clisp.org>
27688
27689         * lib/lock.h (gl_lock_initializer): New macro.
27690         (gl_lock_define_initialized): Use it.
27691         (gl_rwlock_initializer): New macro.
27692         (gl_rwlock_define_initialized): Use it.
27693         (gl_recursive_lock_initializer): New macro.
27694         (gl_recursive_lock_define_initialized): Use it.
27695
27696 2005-07-30  Karl Berry  <karl@gnu.org>
27697
27698         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
27699         Report from Ben Pfaff, regarding getopt.
27700
27701 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
27702
27703         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
27704         normal way.
27705         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
27706         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
27707         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
27708         (gl_GETOPT): Use the new macros.  Most of the implementation
27709         is moved to the new macros.  This is for programs like Emacs
27710         that don't want all the functionality of gl_GETOPT.
27711
27712 2005-07-26  Bruno Haible  <bruno@clisp.org>
27713
27714         * m4/lock.m4: Update from GNU gettext.
27715
27716 2005-07-26  Bruno Haible  <bruno@clisp.org>
27717
27718         * lib/lock.h: Update from GNU gettext.
27719         * lib/lock.c: Update from GNU gettext.
27720
27721 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
27722
27723         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
27724         obsolescent AC_TRY_RUN.  Include the default includes files, for
27725         'exit'.
27726
27727 2005-07-24  Bruno Haible  <bruno@clisp.org>
27728
27729         * modules/visibility: New file.
27730         * MODULES.html.sh (Misc): Add visibility.
27731
27732 2005-07-24  Bruno Haible  <bruno@clisp.org>
27733
27734         * m4/visibility.m4: New file.
27735
27736 2005-07-24  Bruno Haible  <bruno@clisp.org>
27737
27738         * doc/visibility.texi: New file.
27739
27740 2005-07-22  Bruno Haible  <bruno@clisp.org>
27741
27742         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
27743         $(ALLOCA_H), redundant through BUILT_SOURCES.
27744         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
27745         redundant through BUILT_SOURCES.
27746         * modules/byteswap (Makefile.am): Remove explicit dependency on
27747         $(BYTESWAP_H), redundant through BUILT_SOURCES.
27748         * modules/fnmatch (Makefile.am): Remove explicit dependency on
27749         $(FNMATCH_H), redundant through BUILT_SOURCES.
27750         * modules/getopt (Makefile.am): Remove explicit dependency on
27751         $(GETOPT_H), redundant through BUILT_SOURCES.
27752         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
27753         redundant through BUILT_SOURCES.
27754         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
27755         redundant through BUILT_SOURCES.
27756         * modules/stdbool (Makefile.am): Remove explicit dependency on
27757         $(STDBOOL_H), redundant through BUILT_SOURCES.
27758         * modules/stdint (Makefile.am): Remove explicit dependency on
27759         $(STDINT_H), redundant through BUILT_SOURCES.
27760         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
27761         Remove explicit dependency on $(SYSEXITS_H).
27762         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
27763
27764 2005-07-18  Simon Josefsson  <jas@extundo.com>
27765
27766         * lib/check-version.c (check_version): Accept identical versions too.
27767
27768 2005-07-18  Bruno Haible  <bruno@clisp.org>
27769
27770         * modules/lock: New file.
27771         * MODULES.html.sh (Multithreading): New section.
27772
27773 2005-07-18  Bruno Haible  <bruno@clisp.org>
27774
27775         * m4/lock.m4: New file, from GNU gettext.
27776
27777 2005-07-18  Bruno Haible  <bruno@clisp.org>
27778
27779         * lib/lock.h: New file, from GNU gettext.
27780         * lib/lock.c: New file, from GNU gettext.
27781
27782 2005-07-18  Bruno Haible  <bruno@clisp.org>
27783
27784         * lib/lock.h (gl_once_t): New type.
27785         (gl_once_define, gl_once): New macros.
27786         * lib/lock.c (fresh_once): New variable.
27787         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
27788         functions.
27789
27790 2005-07-16  Simon Josefsson  <jas@extundo.com>
27791
27792         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
27793         workaround, suggested by Bruno.
27794
27795 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27796
27797         * modules/xalloc (Depends-on): Add xalloc-die.
27798         * modules/xvasprintf (Depends-on): Add xalloc-die.
27799
27800 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27801
27802         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
27803         with a minor change.
27804
27805 2005-07-15  Bruno Haible  <bruno@clisp.org>
27806
27807         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
27808         When using lib/poll.c, define poll as rpl_poll.
27809
27810 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
27811
27812         * modules/argp (Depends-on): Remove unlocked-io.
27813
27814 2005-07-14  Derek Price  <derek@ximbiot.com>
27815
27816         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
27817         for glob symlink bug.
27818
27819 2005-07-14  Bruno Haible  <bruno@clisp.org>
27820
27821         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
27822         Instead, test for *_unlocked function declarations directly.
27823
27824 2005-07-11  Simon Josefsson  <jas@extundo.com>
27825
27826         * modules/size_max: New file.
27827
27828         * modules/xsize: Depend on size_max module for size_max.m4.
27829
27830 2005-07-11  Simon Josefsson  <jas@extundo.com>
27831
27832         * lib/size_max.h: New file.
27833
27834 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
27835
27836         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
27837         copyright symbol and the year.
27838         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
27839         (version_etc_va): Use parameterized copyright notice.
27840         Reword to conform to the current GNU coding standards.
27841
27842 2005-07-11  Karl Berry  <karl@gnu.org>
27843
27844         * doc/gnulib.texi (Quoting): new node.
27845         (Initial import): more info, from Patrice.
27846
27847 2005-07-11  Bruno Haible  <bruno@clisp.org>
27848
27849         * gnulib-tool (func_usage): Document option --avoid.
27850         (Command line options): Handle --avoid.
27851         (func_acceptable): New function.
27852         (func_modules_transitive_closure): Use it.
27853
27854 2005-07-11  Bruno Haible  <bruno@clisp.org>
27855
27856         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
27857         Reported by Jim Meyering.
27858
27859 2005-07-10  Bruno Haible  <bruno@clisp.org>
27860
27861         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
27862         Needed when size_t is smaller than 'unsigned int'.
27863         Reported by Paul Eggert.
27864
27865 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27866
27867         * modules/argp (Depends-on): Add unlocked-io
27868
27869 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27870
27871         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
27872         block of defines.
27873
27874 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27875
27876         * config/srclist.txt: Comment out regcomp.c, since we have a porting
27877         fix now.
27878
27879 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
27880         and Paul Eggert  <eggert@cs.ucla.edu>
27881
27882         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
27883         in wint_t, not wchar_t.  Remove now-unnecessary cast.
27884
27885 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27886
27887         * modules/regex (Files): Add lib/regex_internal.c,
27888         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
27889         (Depends-on): Add extensions.
27890         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
27891
27892 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27893
27894         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
27895         pathconf.
27896         * m4/same.m4 (gl_SAME): Likewise.
27897         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
27898
27899         * m4/regex.m4: Adjust to new libc regex implementation.
27900         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
27901         all the .c and .h parts of (the new) regex.
27902         Quote the m4 stuff better.
27903         Check for RE_ICASE bug of old gnulib.
27904         Check for REG_STARTEND of recent libc.
27905         Rename local variables from jm_* to gl_*.
27906         Quote operand of "test -f".
27907         Say "recent enough" version of libc, not "version 2".
27908         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
27909         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
27910         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
27911         Remove check for btowc, isascii.
27912         Require AM_LANGINFO_CODESET.
27913
27914 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27915
27916         * lib/regex.c, regex.h: Sync from libc.
27917         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
27918         * lib/regexec.c:
27919         New files, synced from libc, except that regex_internal.h
27920         currently has a small porting fix.
27921
27922 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27923
27924         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
27925         regex_internal.c, regexec.c.
27926         Add regex_internal.h too, but as a comment, since the libc version
27927         is currently broken in gnulib mode.
27928
27929 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
27930
27931         Support programs like Emacs that use gnulib but not gettext.
27932         * MODULES.html.sh (Internationalization functions): Add gettext-h.
27933         * modules/gettext-h: New file.
27934         * modules/gettext (Files): Remove lib/gettext.h.
27935         (Depends-on): Add gettext-h.
27936         (Makefile.am): Remove lib_SOURCES.
27937         * modules/argmatch, modules/c-stack, modules/closeout:
27938         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
27939         * modules/execute, modules/file-type, modules/getaddrinfo:
27940         * modules/getopt, modules/human, modules/javacomp:
27941         * modules/javaexec, modules/mkdir-p, modules/obstack:
27942         * modules/openat, modules/pagealign_alloc, modules/pipe:
27943         * modules/quotearg, modules/regex, modules/rpmatch:
27944         * modules/unicodeio, modules/userspec, modules/version-etc:
27945         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
27946         * modules/xsetenv:
27947         Depend on gettext-h, not gettext.
27948
27949 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
27950
27951         * gnulib-tool (func_import): Add support for 'public domain' license.
27952         * modules/alloca, modules/atexit, modules/memmove:
27953         Now public domain, not GPL.
27954         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
27955         * modules/realloc, modules/strerror, modules/strtod:
27956         Now LGPL, not GPL.
27957
27958 2005-07-05  Bruno Haible  <bruno@clisp.org>
27959
27960         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
27961         autoconf CVS. Needed for mingw.
27962
27963 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27964
27965         Remove the dependency of the strftime module on the tzset module.
27966         * modules/strftime (Depends-on): Remove dependency on tzset.
27967
27968 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27969
27970         Remove the dependency of the strftime module on the tzset module.
27971         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
27972         gl_FUNC_TZSET_CLOBBER.
27973
27974 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27975
27976         Remove the dependency of the strftime module on the tzset module.
27977         * lib/strftime.c (my_strftime)
27978         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
27979         Copy the input structure, to work around some of the bug with
27980         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
27981         Solaris releases, you should also use the tzset module, but we won't
27982         require it as a dependency any more since we don't want LGPLed code
27983         to depend on GPLed code.
27984
27985 2005-07-02  Jim Meyering  <jim@meyering.net>
27986
27987         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
27988         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
27989         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
27990         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
27991
27992 2005-07-02  Jim Meyering  <jim@meyering.net>
27993
27994         * lib/backupfile.c (backup_args): Change a `0' to NULL.
27995
27996 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
27997
27998         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
27999         declares only 'struct timespec;' (!).
28000
28001 2005-07-01  Jim Meyering  <jim@meyering.net>
28002
28003         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
28004         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
28005         * lib/save-cwd.c, tempname.c:
28006         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
28007         and don't include <sys/file.h>).
28008
28009 2005-06-29  Jim Meyering  <jim@meyering.net>
28010
28011         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
28012         type name.  Use the variable name instead.
28013         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
28014         Likewise.
28015
28016 2005-06-28  Simon Josefsson  <jas@extundo.com>
28017
28018         * modules/check-version (Files): Add check-version.m4.
28019
28020 2005-06-28  Simon Josefsson  <jas@extundo.com>
28021
28022         * m4/check-version.m4: New file, suggested by Jim Meyering
28023         <jim@meyering.net>.
28024
28025 2005-06-28  Simon Josefsson  <jas@extundo.com>
28026
28027         * lib/check-version.h, lib/check-version.c: New files.
28028
28029 2005-06-28  Simon Josefsson  <jas@extundo.com>
28030
28031         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
28032         collision with global variable.  Better indentation.  Don't
28033         increment buffer pointer beyond buffer end.  Based on comments
28034         from Paul Eggert <eggert@cs.ucla.edu>.
28035
28036         * lib/base64.h: Indent.
28037
28038 2005-06-28  Simon Josefsson  <jas@extundo.com>
28039
28040         * doc/gnulib.texi (Library version handling): New section.
28041
28042 2005-06-28  Jim Meyering  <jim@meyering.net>
28043
28044         * check-module (find_included_lib_files): Hard-code another
28045         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
28046         but modules/fts-lgpl (correctly) does not list those files.
28047
28048         * modules/canonicalize (Files): Add lib/pathmax.h.
28049
28050 2005-06-25  Simon Josefsson  <jas@extundo.com>
28051
28052         * modules/check-version: New file.
28053
28054 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
28055
28056         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
28057         initializer of struct addrinfo, as an indication that we don't
28058         care how many members the structure has.
28059
28060 2005-06-24  Derek Price  <derek@ximbiot.com>
28061         and Bruno Haible  <bruno@clisp.org>
28062
28063         Remove stat module & update lstat.
28064         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
28065         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28066         * m4/stat.m4: Remove this file.
28067
28068 2005-06-24  Derek Price  <derek@ximbiot.com>
28069         and Bruno Haible  <bruno@clisp.org>
28070
28071         Remove stat module & update lstat.
28072         * lib/stat.c: Remove this file...
28073         (slash_aware_lstat): ...moving this content and its support...
28074         * lib/lstat.c (rpl_lstat): ...into here.
28075         * lib/lstat.h: New file.
28076
28077 2005-06-24  Derek Price  <derek@ximbiot.com>
28078         and Bruno Haible  <bruno@clisp.org>
28079
28080         Remove stat module & update lstat.
28081         * config/srclist.txt (libc sources): Remove stat.
28082
28083 2005-06-24  Derek Price  <derek@ximbiot.com>
28084         and Bruno Haible  <bruno@clisp.org>
28085
28086         Remove stat module & update lstat.
28087         * MODULES.html.sh (stat): Remove.
28088         * MODULES.html: Regenerated.
28089         * modules/lstat (Description): Correct function name.
28090         (Files): Add "lstat.h".
28091         (Depends-on): Remove stat, add xalloc, stat-macros.
28092         * modules/stat: Remove this file.
28093         (Include): Add "lstat.h", remove <sys/stat.h>.
28094
28095 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
28096
28097         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
28098         (ranged_convert): Don't save conversion in a temporary struct.
28099         This causes a warning with GCC 4.0.0, and anyway in the typical
28100         case it's not worth the extra 100 bytes or so of code.
28101         (ranged_convert, __mktime_internal): When calling a function via a
28102         pointer P, use P () rather than (*P) (), as we now assume C89 or
28103         better.
28104
28105 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28106
28107         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
28108         "who -r" failed to give output.  Problem reported by Tim Waugh.
28109
28110         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
28111         (xcalloc): Use it to avoid needless tests.
28112         Problem reported by Jim Meyering.
28113
28114 2005-06-20  Derek Price  <derek@ximbiot.com>
28115
28116         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
28117         unnecessary for Autoconfs > 2.59c.
28118
28119 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28120
28121         * lib/argp.h (__option_is_short): Check upper limit of
28122         __key. Isprint() requires its argument to have the value
28123         of an unsigned char or EOF.
28124
28125 2005-06-16  Jim Meyering  <jim@meyering.net>
28126
28127         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
28128         when either N or S is zero.
28129
28130 2005-06-16  Derek Price  <derek@ximbiot.com>
28131
28132         * m4/bison.m4: Declare YACC & YFLAGS precious.
28133
28134 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
28135
28136         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
28137         multibyte string or pattern, fall back on unibyte matching.
28138         Problem reported by James Youngman.
28139
28140 2005-06-08  Bruno Haible  <bruno@clisp.org>
28141
28142         * modules/csharpcomp: New file.
28143         * MODULES.html.sh (C#): Add csharpcomp.
28144
28145 2005-06-08  Bruno Haible  <bruno@clisp.org>
28146
28147         * m4/csharpcomp.m4: New file, from GNU gettext.
28148
28149 2005-06-08  Bruno Haible  <bruno@clisp.org>
28150
28151         * lib/csharpcomp.h: New file, from GNU gettext.
28152         * lib/csharpcomp.c: New file, from GNU gettext.
28153         * lib/csharpcomp.sh.in: New file, from GNU gettext.
28154
28155 2005-06-08  Bruno Haible  <bruno@clisp.org>
28156
28157         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
28158         warning on mingw.
28159
28160 2005-06-07  Derek Price  <derek@ximbiot.com>
28161
28162         Sync from CVS.
28163         * lib/glob_.h: Indent nested #ifdef.
28164
28165 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
28166
28167         Sync from coreutils.
28168         Use "file name" when talking about file names, instead of "filename"
28169         or "path", as per the GNU coding standards.
28170         * lib/mkdir-p.c: Renamed from makepath.c.
28171         (make_dir_parents): Renamed from make_path.  All callers changed.
28172         * lib/mkdir-p.h: Likewise.  All includers changed.
28173         * lib/filenamecat.c: Renamed from path-concat.c.
28174         (file_name_concat): Renamed from path_concat.  All callers changed.
28175         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
28176         * lib/filenamecat.h: Likewise.  All includers changed.
28177         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
28178         in comments or local variable names.
28179         * lib/basename.c: Likewise.
28180         * lib/canonicalize.c, canonicalize.h: Likewise.
28181         * lib/dirname.c, dirname.h: Likewise.
28182         * lib/euidaccess.c: Likewise.
28183         * lib/exclude.c: Likewise
28184         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
28185         * lib/fsusage.c, fsuage.h: Likewise.
28186         * lib/fts.c, fts_.h: Likewise.
28187         * lib/getcwd.c: Likewise.
28188         * lib/getloadavg.c: Likewise.
28189         * lib/mkstemp.c: Likewise.
28190         * lib/mountlist.c, mountlist.h: Likewise.
28191         * lib/openat.c, openat.h: Likewise.
28192         * lib/readlink-stub.c: Likewise.
28193         * lib/readutmp.c, readutmp.h: Likewise.
28194         * lib/rename.c: Likewise.
28195         * lib/rmdir.c: Likewise.
28196         * lib/same.c: Likewise.
28197         * lib/savedir.c: Likewise.
28198         * lib/stripslash.c: Likewise.
28199         * lib/tempname.c: Likewise.
28200         * lib/xreadlink.c: Likewise.
28201         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
28202         All uses changed.
28203         * lib/exclude.h: Likewise.
28204
28205         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
28206         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
28207         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
28208         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
28209         * lib/pathmax.h: Include <limits.h> unconditionally, since other
28210         files have been getting away with it for years (MORE/BSD 4.3
28211         is extinct now).
28212         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
28213         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
28214
28215         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
28216         Define to 256, not 255, as per modern POSIX.
28217
28218 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
28219
28220         Sync from coreutils.
28221         Use "file name" when talking about file names, instead of "filename"
28222         or "path", as per the GNU coding standards.
28223         * MODULES.html.sh: mkdir-p renamed from makepath.
28224         filenamecat renamed from path-concat.
28225         * modules/filenamecat: Renamed from modules/path-concat.
28226         (Files): filenamecat.h and filenamecat.c renamed from
28227         path-concat.h and path-concat.c.
28228         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
28229         (Include): filenamecat.h, not path-concat.h.
28230         * modules/mkdir-p: Renamed from modules/makepath.
28231         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
28232         makepath.c.
28233         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
28234         (Include): mkdir-p.h, not makepath.h.
28235
28236 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
28237
28238         Sync from coreutils.
28239         * m4/mkdir-p.m4: Renamed from makepath.m4.
28240         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
28241         Rename files from makepath.c to mkdir-p.c, and from
28242         makepath.h to mkdir-p.h.
28243         * m4/filenamecat.m4: Renamed from path-concat.m4.
28244         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
28245         Rename files from path-concat.c to filenamecat.c,
28246         and from path-concat.h to filenamecat.h.
28247         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
28248         "file name" in local variables or comments.
28249         * m4/rename.m4: Likewise.
28250
28251 2005-06-01  Bruno Haible  <bruno@clisp.org>
28252
28253         * modules/csharpexec: New file.
28254         * MODULES.html.sh (C#): New section.
28255
28256 2005-06-01  Bruno Haible  <bruno@clisp.org>
28257
28258         * m4/csharp.m4: New file, from GNU gettext.
28259         * m4/csharpexec.m4: New file, from GNU gettext.
28260
28261 2005-06-01  Bruno Haible  <bruno@clisp.org>
28262
28263         * lib/csharpexec.h: New file, from GNU gettext.
28264         * lib/csharpexec.c: New file, from GNU gettext.
28265         * lib/csharpexec.sh.in: New file, from GNU gettext.
28266
28267 2005-05-31  Derek Price  <derek@ximbiot.com>
28268             Paul Eggert  <eggert@cs.ucla.edu>
28269
28270         Sync from cvs.
28271         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
28272
28273 2005-05-31  Derek Price  <derek@ximbiot.com>
28274             Paul Eggert  <eggert@cs.ucla.edu>
28275
28276         Sync from cvs.
28277         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
28278
28279 2005-05-29  Derek Price  <derek@ximbiot.com>
28280
28281         * config/srclist.txt (glob_.h, glob.c): Add these files.
28282
28283 2005-05-29  Derek Price  <derek@ximbiot.com>
28284
28285         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
28286         * modules/glob: New file.
28287         * modules/getlogin_r: Add link to POSIX spec in description.
28288
28289 2005-05-29  Derek Price  <derek@ximbiot.com>
28290             Paul Eggert  <eggert@cs.ucla.edu>
28291
28292         * m4/glob.m4: New file.
28293
28294 2005-05-29  Derek Price  <derek@ximbiot.com>
28295             Paul Eggert  <eggert@cs.ucla.edu>
28296
28297         * lib/glob_.h, lib/glob.c: New files.
28298
28299 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
28300
28301         * modules/fts (Files): Remove m4/inttypes-pri.m4.
28302         * modules/fts-lgpl (Depends-on): Remove gettext.
28303
28304 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
28305
28306         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
28307         and don't require gt_INTTYPES_PRI.
28308
28309 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
28310
28311         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
28312
28313         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
28314         the configuration hassle isn't worth it.
28315         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
28316         (LONGEST_MODIFIER, PRIuMAX): Remove.
28317
28318 2005-05-27  Bruno Haible  <bruno@clisp.org>
28319
28320         * lib/getlogin_r.h: Remove second include of <stddef.h>.
28321
28322 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
28323
28324         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
28325         _POSIX_PTHREAD_SEMANTICS for Solaris.
28326
28327 2005-05-25  Derek Price  <derek@ximbiot.com>
28328
28329         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
28330
28331 2005-05-25  Derek Price  <derek@ximbiot.com>
28332             Paul Eggert  <eggert@cs.ucla.edu>
28333
28334         * modules/getlogin_r, m4/getlogin_r.m4: New files.
28335         * lib/getlogin_r.c, getlogin_r.h: New files.
28336
28337 2005-05-25  Bruno Haible  <bruno@clisp.org>
28338             Derek Price  <derek@ximbiot.com>
28339
28340         * lib/getlogin_r.h: Simplify API documentation.
28341
28342 2005-05-23  Derek Price  <derek@ximbiot.com>
28343
28344         * modules/minmax (Files): Add m4/minmax.m4.
28345         (configure.ac): Add gl_MINMAX.
28346
28347 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
28348
28349         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
28350         so that unistd-safer.h (GPL'ed code) need not be included.
28351
28352 2005-05-22  Bruno Haible  <bruno@clisp.org>
28353
28354         * m4/minmax.m4: New file.
28355         Based on a patch by Derek Price <derek@ximbiot.com>.
28356
28357 2005-05-22  Bruno Haible  <bruno@clisp.org>
28358
28359         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
28360         (INT64_MIN): Fix definition.
28361         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
28362
28363         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
28364         NEED_SIGNED_INT_TYPES.
28365
28366         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
28367         HAVE_SYSTEM_INTTYPES.
28368
28369 2005-05-22  Bruno Haible  <bruno@clisp.org>
28370
28371         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
28372         Also include <sys/param.h> if it defines MIN, MAX.
28373         Based on a patch by Derek Price <derek@ximbiot.com>.
28374
28375 2005-05-21  Jim Meyering  <jim@meyering.net>
28376
28377         * modules/fts (Files): Add m4/inttypes-pri.m4.
28378         (Depends-on): Add lstat and remove gettext.  Alphabetize.
28379
28380 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28381
28382         New fts module.
28383         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
28384         (setup_dir, free_dir): New functions.
28385         (enter_dir, leave_dir): Define trivial
28386         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
28387         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
28388         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
28389         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
28390         Move to fts-cycle.c.
28391         (fts_open): Use setup_dir.
28392         (fts_close): Use free_dir.
28393         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
28394         This adds a label and some gotos, but the alternatives were messier.
28395         Check for memory allocation failure when entering a dir.
28396         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
28397         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
28398         (FTS): New member fts_cycle, that is a union that contains the
28399         old active_dir_ht and cycle_state.  All uses changed to mention
28400         fts_cycle.ht and fts_cycle.state.
28401         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
28402         fts.c, with the following changes:
28403         (setup_dir, free_dir): New functions.
28404         (enter_dir): Now returns bool.  Return true if successful, false
28405         if memory exhausted.  All callers changed.
28406         Do not bother partly cleaning up on
28407         memory allocation failure; that is free_dir's job.
28408         However, free ad if hash_insert fails, to avoid memory leak.
28409         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
28410         fts->fts_options to see which union member to use.
28411
28412 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28413
28414         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
28415         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
28416
28417 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28418
28419         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
28420
28421 2005-05-20  Jim Meyering  <jim@meyering.net>
28422
28423         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
28424         Now a macro, to pacify GCC.
28425
28426 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
28427
28428         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
28429         of -1.
28430
28431 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
28432
28433         * lib/chown.c (rpl_chown): Return -1 on failure.
28434
28435 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
28436
28437         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
28438         Don't check for stddef.h.
28439         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
28440         don't use its results.
28441         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
28442         since we include them unconditionally.  Don't require
28443         AM_STDBOOL_H, since stdbool is a prerequisite.
28444         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
28445         since we assume C89 or better.
28446         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
28447         as we don't use their results.
28448         Don't check for fchdir, memmove, memset, strrchr, as we use
28449         them unconditionally.
28450         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
28451         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
28452
28453 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
28454
28455         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
28456         Include <stddef.h> unconditionally, since we assume C89 now.
28457         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
28458         * lib/fts.c: Include fts_.h first, to check interface.
28459         Do not include intprops.h; no longer needed.
28460         Include cycle-check.h and hash.h, since fts_.h no longer does.
28461         Remove unnecessary casts of closedir to void.
28462         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
28463         decide whether to decrement nlinks.
28464         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
28465         (FTS): Use struct hash_table * instead of Hash_table, so that
28466         we no longer need to include hash.h here.
28467
28468 2005-05-18  Jim Meyering  <jim@meyering.net>
28469
28470         * modules/dirfd (License): Change to LGPL.  Most of the code
28471         is already in the public domain.
28472
28473 2005-05-18  Jim Meyering  <jim@meyering.net>
28474
28475         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
28476         Reported by Yoann Vandoorselaere.
28477
28478 2005-05-17  Jim Meyering  <jim@meyering.net>
28479
28480         * m4/fts.m4: New file, from coreutils.
28481
28482 2005-05-17  Jim Meyering  <jim@meyering.net>
28483
28484         * lib/fts.c, lib/fts_.h: New files, from coreutils.
28485
28486 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28487
28488         Sync from coreutils.
28489         * m4/unlinkdir.m4: New file.
28490
28491 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28492
28493         Sync from coreutils.
28494         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
28495         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
28496         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
28497         White space changes only.
28498         * lib/makepath.c (make_path): Port to hosts where leading "//" is
28499         special.
28500         * lib/yesno.c: Include getline.h, not ctype.h.
28501         (yesno): Don't remove leading white space; POSIX doesn't allow it.
28502         Use getline to remove arbitrary restriction on response length.
28503
28504 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28505
28506         * config/srclist-update: Spell out "Street" in FSF postal
28507         mail address; this is the style the FSF seems to prefer.
28508
28509         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
28510         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
28511         this updates FSF postal mail address.
28512
28513         Sync from coreutils.
28514         * modules/unlinkdir: New file.
28515         * modules/yesno (Depends-on): Add getline.
28516         * MODULES.html.sh (File system functions): Add unlinkdir.
28517
28518 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28519
28520         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
28521         lib/strsep.h:
28522         Change the initial comment to refer to GPL, not LGPL.
28523         gnulib-tool will change it to LGPL as needed.
28524
28525         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
28526         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
28527         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
28528         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
28529         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
28530         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
28531         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
28532         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
28533         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
28534         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
28535         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
28536         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
28537         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
28538         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
28539         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
28540         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
28541         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
28542         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
28543         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
28544         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
28545         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
28546         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
28547         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
28548         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
28549         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
28550         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
28551         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
28552         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
28553         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
28554         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
28555         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
28556         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
28557         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
28558         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
28559         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
28560         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
28561         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
28562         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
28563         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
28564         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
28565         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
28566         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
28567         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
28568         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
28569         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
28570         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
28571         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
28572         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
28573         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
28574         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
28575         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
28576         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
28577         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
28578         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
28579         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
28580         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
28581         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
28582         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
28583         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
28584         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
28585         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
28586         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
28587         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
28588         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
28589         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
28590         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
28591         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
28592         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
28593         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
28594         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
28595         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
28596         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
28597         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
28598         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
28599         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
28600         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
28601         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
28602         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
28603         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
28604         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
28605         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
28606         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
28607         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
28608         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
28609         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
28610         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
28611         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
28612         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
28613         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
28614         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
28615         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
28616         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
28617         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
28618         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
28619         lib/yesno.c, lib/yesno.h:
28620         Update FSF postal mail address.
28621
28622 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28623
28624         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
28625         tests/test-memmem.c, tests/test-stpncpy.c:
28626         Update FSF postal mail address.
28627
28628 2005-05-13  Bruno Haible  <bruno@clisp.org>
28629
28630         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
28631         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
28632         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
28633         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
28634         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
28635         Add support for 64-bit integers in the MSVC compiler.
28636
28637 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28638
28639         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
28640
28641 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
28642
28643         * gnulib-tool (func_import): Sort and uniquify recommended includes.
28644
28645 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
28646
28647         * doc/getdate.texi (General date syntax): Don't say that date
28648         date --iso-8601=ns generates acceptable dates; it doesn't yet.
28649         Problem reported by Nic Ferrier.
28650
28651 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28652
28653         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
28654         specified in ai_socktype. Fix invalid ai_protocol
28655         check. ai_protocol is usually set to 0 or depending on
28656         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
28657         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
28658         ai_socktype / ai_protocol in the returned addrinfo structure.
28659
28660 2005-05-10  Simon Josefsson  <jas@extundo.com>
28661
28662         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
28663         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28664
28665 2005-05-10  Karl Berry  <karl@gnu.org>
28666
28667         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
28668         (from http://www.gnu.org/licenses).
28669         * doc/COPYING.LIB: also rename to COPYING.LESSER.
28670         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
28671         fdl.texi suffices.
28672
28673 2005-05-10  Karl Berry  <karl@gnu.org>
28674
28675         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
28676         (COPYING.DOC): remove.
28677
28678         * config/srclist-update: new FSF address.
28679
28680 2005-05-10  Derek Price  <derek@ximbiot.com>
28681
28682         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
28683         possible.
28684
28685 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28686             Bruno Haible  <bruno@clisp.org>
28687
28688         * modules/inet_ntop: New file.
28689         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28690         inet_ntop.
28691
28692 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28693             Bruno Haible  <bruno@clisp.org>
28694
28695         * m4/inet_ntop.m4: New file.
28696
28697 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28698             Bruno Haible  <bruno@clisp.org>
28699
28700         * lib/inet_ntop.h: New file.
28701         * lib/inet_ntop.c: New file, from glibc with modifications.
28702
28703 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
28704
28705         * modules/time_r (License): Change to LGPL.
28706         * modules/extensions (License): Change to LGPL.  Actually,
28707         the license is more permissive than that, but currently gnulib-tool
28708         doesn't know how to handle more-permissive licenses.
28709
28710         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
28711         Problem reported by Dave Love.
28712
28713 2005-05-08  Jim Meyering  <jim@meyering.net>
28714
28715         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
28716         blank.
28717
28718 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
28719
28720         * modules/argmatch (Depends-on): Add stdbool.
28721         * modules/backupfile (Depends-on): Likewise.
28722         * modules/chdir-long (Depends-on): Likewise.
28723         * modules/closeout (Depends-on): Likewise.
28724         * modules/cycle-check (Depends-on): Likewise.
28725         * modules/dirname (Depends-on): Likewise.
28726         * modules/fnmatch (Depends-on): Likewise.
28727         * modules/fsusage (Depends-on): Likewise.
28728         * modules/fwriteerror (Depends-on): Likewise.
28729         * modules/getcwd (Depends-on): Likewise.
28730         * modules/getloadavg (Depends-on): Likewise.
28731         * modules/hard-locale (Depends-on): Likewise.
28732         * modules/makepath (Depends-on): Likewise.
28733         * modules/mountlist (Depends-on): Likewise.
28734         * modules/nanosleep (Depends-on): Likewise.
28735         * modules/posixtm (Depends-on): Likewise.
28736         * modules/quotearg (Depends-on): Likewise.
28737         * modules/readtokens (Depends-on): Likewise.
28738         * modules/readtokens0 (Depends-on): Likewise.
28739         * modules/readutmp (Depends-on): Likewise.
28740         * modules/save-cwd (Depends-on): Likewise.
28741         * modules/strftime (Depends-on): Likewise.
28742         * modules/userspec (Depends-on): Likewise.
28743         * modules/utimecmp (Depends-on): Likewise.
28744         * modules/xgetcwd (Depends-on): Likewise.
28745         * modules/xnanosleep (Depends-on): Likewise.
28746         * modules/xstrtod (Depends-on): Likewise.
28747         * modules/yesno (Depends-on): Likewise.
28748
28749 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28750
28751         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
28752         needless checks.
28753
28754 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28755
28756         Merge from coreutils.  Among other things,
28757         add bulletproofing for cases where stdin, stdout, or stderr are closed.
28758         * lib/fd-safer.c: New file.
28759         * lib/fcntl-safer.h, open-safer.c: Remove.
28760         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
28761         * lib/dup-safer.c: Include unistd-safer.h first.
28762         Don't include errno.h.
28763         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
28764         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
28765         * lib/file-type.c: Rely on file-type.h change.
28766         * lib/getloadavg.c: Include unistd-safer.h.
28767         (getloadavg): Use safer open.
28768         * lib/getusershell.c: Include "stdio-safer.h".
28769         (getusershell): Use safer fopen.
28770         * lib/long-options.c (long_options): Use NULL rather than 0.
28771         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
28772         'free'.
28773         * lib/modechange.c: Likewise.
28774         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
28775         (MODE_DONE): New constant.
28776         (struct mode_change): Remove 'next' member.
28777         (make_node_op_equals): New function; like the old one of the
28778         same name, except it allocates an array.
28779         (mode_compile, mode_create_from_ref): Use it.
28780         (mode_compile): Allocate result as an array, not a linked list.
28781         Parse octal string ourself, so that we catch mistakes like "+0".
28782         (mode_adjust): Arg is an array, not a linked list.
28783         * lib/modechange.c: Include stat-macros.h, xalloc.h.
28784         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
28785         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
28786         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
28787         Remove.  This is now stat-macros.h's job.
28788         (talloc): Remove.  All callers replaced by xalloc, so that
28789         our invokers don't have to worry about reporting memory failures.
28790         (make_node_op_equals): Remove.
28791         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28792         New constants.
28793         (struct mode_change): Moved here from modechange.h.
28794         (mode_append_entry): Remove.
28795         (mode_compile): Remove MASKED_OPS arg, since it encouraged
28796         apps to have incorrect behavior.  Use simpler algorithm for head
28797         and tail.  Don't futz with umask; that's now the job of mode_adjust.
28798         Detect more invalid usages rather than having somewhat-random behavior.
28799         Don't insert an "a=" action, as that leads to incorrect behavior.
28800         (mode_compile, mode_create_from_ref): Return NULL on error instead
28801         of an enum, since now there's only one way to have an error.  All
28802         callers changed.
28803         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
28804         at the correct time.  Simplify calculation of "+u" and its ilk.
28805         Don't mishandle "+X".
28806         (mode_free): Remove "register" and localize decls.
28807         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28808         (struct mode_change): Move to modechange.c; callers don't
28809         need to see this stuff.
28810         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
28811         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
28812         (mode_change, mode_adjust): Reflect the new signatures noted above.
28813         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
28814         that might redefine system include files.
28815         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
28816         (my_usleep): Use NULL rather than (void *) 0.
28817         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
28818         Use siginterrupt to specify that system calls should be interrupted.
28819         (rpl_nanosleep): Move initialization of suspended closer to call of
28820         my_usleep.
28821         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
28822         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
28823         (desirable_utmp_entry): New function.
28824         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
28825         using x2nrealloc, to simplify logic.
28826         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
28827         size calculation.  Do not assume utmp file is a regular file.
28828         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
28829         (READ_UTMP_CHECK_PIDS): New constant.
28830         * lib/save-cwd.c: Include unistd-safer.h.
28831         (save_cwd): Use fd_safer.
28832         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
28833         [!_LIBC] Include "stat-macros.h" instead.
28834         * lib/unistd-safer.h (fd_safer): New decl.
28835
28836 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28837
28838         * modules/getloadavg (Depends-on): Add unistd-safer.
28839         * modules/getusershell (Depends-on): Add stdio-safer.
28840         * modules/lstat (Depends-on): Remove xalloc.
28841         * modules/mkstemp (Depends-on): Add stat-macros.
28842         * modules/modechange (Depends-on): Remove xstrtol.
28843         Add stat-macros, xalloc.
28844         * modules/save-cwd (Depends-on): Add unistd-safer.
28845         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
28846         * modules/unistd-safer (Files): Add lib/fd-safer.c
28847         (Makefile.am): Remove lib_SOURCES.
28848
28849         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
28850         Remove fcntl-safer; unistd-safer supersedes it.
28851
28852 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28853
28854         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
28855         AC_HEADER_STAT.
28856         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
28857         (gl_PREREQ_CHOWN): Remove.
28858         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
28859         it.  Don't require AC_HEADER_STAT.
28860         (gl_PREREQ_LSTAT): Remove.
28861         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
28862         Don't require AC_HEADER_STAT.
28863         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
28864         (gl_PREREQ_RMDIR): Remove.
28865         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
28866         mention stat-macros.h or AC_HEADER_STAT, since we'll make
28867         the stat-macros module a prerequisite.
28868         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
28869         * m4/filemode.m4 (gl_FILEMODE): Likewise.
28870         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
28871         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
28872         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
28873         variable names.
28874         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
28875         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
28876         variable prefixes.
28877         * m4/fcntl-safer.m4: Remove.
28878         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
28879         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
28880         Invoke gl_PREREQ_FD_SAFER.
28881         (gl_PREREQ_FD_SAFER): New macro.
28882         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
28883         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
28884         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
28885         Remove duplicate call to AC_LIBOBJ(readutmp).
28886         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
28887
28888         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
28889         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
28890
28891 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28892
28893         * MODULES.html.sh (Misc): Add byteswap.
28894
28895 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28896
28897         * modules/getcwd (Depends-on): Add extensions.
28898         * modules/openat (Depends-on): Likewise.
28899
28900 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28901
28902         * modules/byteswap: New file.
28903
28904 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28905
28906         * m4/byteswap.m4: New file.
28907
28908 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28909
28910         * lib/byteswap_.h: New file.
28911
28912 2005-04-25  Karl Berry  <karl@gnu.org>
28913
28914         * m4/gettext.m4: Update from GNU gettext 0.14.4.
28915
28916 2005-04-25  Albert Chin  <china@thewrittenword.com>
28917
28918         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
28919         Toolkit C bug.
28920
28921 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
28922
28923         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
28924         (func_ln_if_changed) Remove forcibly for no error message
28925         in case file does not exist.
28926
28927 2005-04-19  Simon Josefsson  <jas@extundo.com>
28928
28929         * gnulib-tool (Options): Make --symlink mean --symbolic.
28930
28931 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
28932
28933         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
28934
28935 2005-04-16  Simon Josefsson  <jas@extundo.com>
28936
28937         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
28938
28939 2005-04-15  Simon Josefsson  <jas@extundo.com>
28940
28941         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
28942
28943 2005-04-15  Simon Josefsson  <jas@extundo.com>
28944
28945         * gnulib-tool: Rename --symlink to --symbolic.
28946
28947 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
28948
28949         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
28950         symbolic links to files instead of copying/moving.  Add --aux-dir,
28951         specifying directory relative --dir where auxiliary build tools
28952         are placed.
28953
28954 2005-04-14  Bruno Haible  <bruno@clisp.org>
28955
28956         * modules/allocsa (License): Change to LGPL.
28957         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28958
28959 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
28960
28961         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
28962         that "UTC +1 second" continues to work.  Problem reported
28963         by Dmitry V. Levin.
28964         (relunit_snumber): New rule.
28965         (relunit): Use it.
28966
28967 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
28968
28969         * lib/getdate.y (universal_time_zone_table): New constant.
28970         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
28971         universal_time_zone_table.
28972         (lookup_zone): Prefer universal_time_zone_table to
28973         local_time_zone_table, so that "GMT" time stamps are allowed in
28974         London during the summer.  Problem reported by Ian Abbott.
28975
28976 2005-04-12  Jim Meyering  <jim@meyering.net>
28977
28978         * lib/human.c (humblock): Set *options even when returning due to
28979         xstrtoumax conversion failure.  Thanks to a used-uninitialized
28980         warning from gcc-4.
28981
28982 2005-04-09  Jim Meyering  <jim@meyering.net>
28983
28984         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
28985         -Wuninitialized: initialize tm0.tm_year.
28986
28987 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
28988
28989         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
28990         count, since there's no maximum.  All uses changed.
28991         Add member dsts_seen.
28992         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
28993         not being INT_MAX.
28994         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
28995         Use pc_rels_seen to decide whther a date is absolute.
28996
28997         * lib/getdate.y (number): Don't overwrite year.
28998         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
28999         check.
29000
29001 2005-04-02  Simon Josefsson  <jas@extundo.com>
29002
29003         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
29004         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
29005
29006 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
29007
29008         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
29009         where no absolute path name can be longer than PATH_MAX.
29010
29011 2005-03-27  Jim Meyering  <jim@meyering.net>
29012
29013         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
29014
29015 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
29016
29017         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
29018         "one's complement" -> "ones' complement" in comment, as per Knuth.
29019         "value of type" -> "type or expression" in comment.
29020         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
29021
29022 2005-03-26  Jim Meyering  <jim@meyering.net>
29023
29024         Comment nits.
29025         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
29026         Correct typos: s/or/of/.
29027
29028 2005-03-26  Jim Meyering  <jim@meyering.net>
29029
29030         * modules/check-include-files: Move to ../ and rename to...
29031         * check-module: ...this.
29032
29033 2005-03-25  Jim Meyering  <jim@meyering.net>
29034
29035         * modules/xvasprintf (Files): Add xalloc.h.
29036
29037 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
29038
29039         * modules/gettext (Files): config/config.rpath ->
29040         build-aux/config.rpath
29041         * modules/iconv (Files): Likewise.
29042         Problem reported by Oskar Liljeblad.
29043
29044 2005-03-23  Jim Meyering  <jim@meyering.net>
29045
29046         * modules/check-include-files: New script to check for
29047         missing dependencies, multiple includes, etc.
29048
29049         * modules/c-strtold (Depends-on): Add xalloc.
29050         * modules/c-strtod (Depends-on): Add xalloc.
29051         * modules/hash (Depends-on): Add xalloc.
29052         (Files): Remove lib/xalloc.h.
29053
29054         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
29055         * modules/userspec (Files): Add lib/inttostr.h.
29056
29057 2005-03-23  Jim Meyering  <jim@meyering.net>
29058
29059         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
29060
29061 2005-03-22  Jim Meyering  <jim@meyering.net>
29062
29063         * modules/stat-macros: New module.
29064         * modules/canonicalize, modules/euidaccess, modules/file-type,
29065         * modules/filemode, modules/lchown, modules/makepath,
29066         * modules/rmdir, modules/stat: Depend on new stat-macros module
29067         rather than listing lib/stat-macros.h manually.
29068         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
29069
29070 2005-03-22  Jim Meyering  <jim@meyering.net>
29071
29072         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
29073
29074 2005-03-22  Bruno Haible  <bruno@clisp.org>
29075
29076         * config/srclist.txt: Replace target directory 'config' with
29077         'build-aux'.
29078         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
29079         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
29080         ../build-aux/.
29081
29082 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
29083
29084         * modules/chdir-long (Depends-on): Add mempcpy.
29085
29086         * modules/acl, modules/backupfile, modules/c-strtod,
29087         modules/c-strtold, modules/canon-host, modules/canonicalize,
29088         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
29089         modules/exclude, modules/exitfail, modules/file-type,
29090         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
29091         modules/getdate, modules/getline, modules/getpagesize,
29092         modules/getpass, modules/getugroups, modules/group-member,
29093         modules/hard-locale, modules/hash, modules/human, modules/idcache,
29094         modules/inttostr, modules/long-options, modules/makepath,
29095         modules/md5, modules/memcasecmp, modules/memcoll,
29096         modules/modechange, modules/mountlist, modules/path-concat,
29097         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
29098         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
29099         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
29100         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
29101         modules/strftime, modules/strndup, modules/strverscmp,
29102         modules/timespec, modules/unlocked-io, modules/userspec,
29103         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
29104         modules/yesno:
29105         Remove lib_SOURCES line from Makefile.am section, as this is now
29106         done automatically by the corresponding Autoconf macro.
29107
29108 2005-03-21  Jim Meyering  <jim@meyering.net>
29109
29110         Changes imported from coreutils.
29111
29112         * lib/cycle-check.c: Don't include xalloc.h.
29113
29114         * lib/path-concat.c: Don't include assert.h.
29115         (path_concat): Remove assertion that would have triggered
29116         for ABASE starting with more than one slash.
29117         Reported by Andreas Schwab.
29118
29119         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
29120         properly when ABASE is an absolute file name.
29121         Correct the description of this function.
29122         Include <assert.h>.
29123         Add an assertion and a test driver.
29124         This fixes a bug introduced on 2004-07-02.
29125         Andreas Schwab reported the resulting failure of cp --parents:
29126         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
29127
29128 2005-03-21  Jim Meyering  <jim@meyering.net>
29129
29130         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
29131         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
29132
29133 2005-03-21  Jim Meyering  <jim@meyering.net>
29134         and  Paul Eggert  <eggert@cs.ucla.edu>
29135
29136         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
29137         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
29138         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
29139         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
29140         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
29141         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
29142         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
29143         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
29144         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
29145         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
29146         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
29147         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
29148         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
29149         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
29150         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
29151         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
29152         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
29153         for these modules.
29154
29155 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
29156
29157         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
29158         (which shouldn't happen), generate nothing instead of returning 0
29159         immediately, so that nstrftime (NULL, ...) doesn't return 0.
29160
29161 2005-03-16  Bruno Haible  <bruno@clisp.org>
29162
29163         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
29164         HAVE_LONGLONG_64BIT.
29165
29166 2005-03-16  Bruno Haible  <bruno@clisp.org>
29167
29168         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
29169         HAVE_LONGLONG_64BIT.
29170
29171 2005-03-16  Bruno Haible  <bruno@clisp.org>
29172
29173         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
29174         HAVE_LONGLONG_64BIT.
29175
29176 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
29177
29178         * lib/strftime.c (my_strftime): Prepend space to format so that we can
29179         reliably distinguish strftime failure from empty output on POSIX
29180         hosts.
29181
29182 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
29183
29184         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
29185         (iconv_string): Don't guess a size-zero buffer, as that might cause
29186         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
29187         result would be 'too large', where 'too large' is (heuristically)
29188         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
29189         overflow concerns.  This will prevent some unwanted malloc failures
29190         when the inputs are very large.
29191
29192 2005-03-15  Karl Berry  <karl@gnu.org>
29193
29194         * config/srclist.txt (config.rpath): from gettext.
29195         * config/config.rpath: update.
29196
29197 2005-03-15  Bruno Haible  <bruno@clisp.org>
29198
29199         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
29200         to 'negate'.
29201
29202         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
29203         variable.
29204
29205         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
29206         results.
29207
29208 2005-03-14  Simon Josefsson  <jas@extundo.com>
29209
29210         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
29211         <fx@gnu.org>.
29212
29213 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
29214
29215         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
29216         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
29217         intprops.h.
29218         * lib/strtol.c: Likewise.
29219
29220 2005-03-14  Jim Meyering  <jim@meyering.net>
29221
29222         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
29223         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
29224         to be nonzero so that we (and caller) can detect the difference
29225         between a valid zero-length expansion and an error return, even
29226         when the underlying strftime fails before writing anything into
29227         that location.
29228
29229 2005-03-14  Bruno Haible  <bruno@clisp.org>
29230
29231         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
29232         Update from GNU gettext 0.14.3.
29233
29234 2005-03-10  Jim Meyering  <jim@meyering.net>
29235
29236         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
29237
29238 2005-03-10  Jim Meyering  <jim@meyering.net>
29239
29240         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
29241         so that this module works on systems without fchdir.
29242
29243 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
29244
29245         Factor int-properties macros into a single file, except for
29246         glibc-related files.
29247         * lib/intprops.h: New file.
29248         * lib/getloadavg.c: Include it instead of limits.h.
29249         (INT_STRLEN_BOUND): Remove.
29250         * lib/human.c: Include intprops.h.
29251         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
29252         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
29253         302/1000.
29254         * lib/inttostr.h: Include intprops.h instead of limits.h.
29255         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
29256         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
29257         for consistency with intprops.h.
29258         (time_t_is_integer, twos_complement_arithmetic): Use them.
29259         * lib/sig2str.h: Include <signal.h>, intprops.h.
29260         (INT_STRLEN_BOUND): Remove.
29261         * lib/strftime.c (TYPE_SIGNED): Remove.
29262         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
29263         * lib/strtol.c: Adjust comments to match intprops.h.
29264         * lib/userspec.c: Include intprops.h.
29265         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
29266         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
29267         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
29268         instead of rolling our own expressions.
29269         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
29270
29271         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
29272         instead of int.
29273         (my_strftime): Do not mishandle years close to INT_MAX, by doing
29274         the right thing even if adding 1900 would overflow.  Similarly
29275         for tm_mon + 1 and tm_yday + 1.
29276         Make %Y always equivalent to %C%y, and similarly for %G and %g.
29277         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
29278         (DO_SIGNED_NUMBER): New macro.
29279         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
29280
29281 2005-03-07  Bruno Haible  <bruno@clisp.org>
29282
29283         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
29284
29285 2005-03-07  Bruno Haible  <bruno@clisp.org>
29286
29287         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
29288
29289 2005-03-04  Derek R. Price  <derek@ximbiot.com>
29290
29291         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
29292         (func_import): Only replace files via --import when they have actually
29293         changed.
29294
29295 2005-03-03  Derek R. Price  <derek@ximbiot.com>
29296
29297         * m4/mmap-anon.m4: New file.
29298         * m4/pagealign_alloc.m4: New file.
29299
29300 2005-03-03  Derek R. Price  <derek@ximbiot.com>
29301             Bruno Haible  <bruno@clisp.org>
29302
29303         * modules/pagealign_alloc: New file.
29304         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
29305
29306 2005-03-03  Derek R. Price  <derek@ximbiot.com>
29307             Bruno Haible  <bruno@clisp.org>
29308
29309         * lib/pagealign_alloc.h: New file.
29310         * lib/pagealign_alloc.c: New file.
29311
29312 2005-03-03  Bruno Haible  <bruno@clisp.org>
29313
29314         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
29315         Use an all-permissive copyright notice, recommended by RMS.
29316
29317 2005-03-02  Bruno Haible  <bruno@clisp.org>
29318
29319         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
29320         of AIX, the replacement has to be done only after <string.h> is
29321         included, therefore not in config.h. stpncpy.h does the replacement,
29322         and stpncpy.c uses it.
29323
29324 2005-03-02  Bruno Haible  <bruno@clisp.org>
29325
29326         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
29327         stpncpy.c uses it.
29328
29329 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
29330
29331         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
29332         The workaround isn't strictly needed for POSIX conformance, and
29333         it's too much of a pain to configure and maintain.  We'll ask
29334         people to fix their kernels instead.
29335         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
29336         (NANOSLEEP_BUG_WORKAROUND): Remove.
29337         (xnanosleep): Remove the workaround.
29338
29339 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
29340
29341         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
29342         Reported by Derek Price.
29343         (Include): Add "timespec.h".
29344
29345         * modules/xnanosleep (Depends-on): Remove gethrxtime.
29346
29347 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
29348
29349         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
29350         to detect nanosleep bug.
29351
29352 2005-03-01  Bruno Haible  <bruno@clisp.org>
29353
29354         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
29355
29356 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
29357
29358         * modules/gethrxtime: New file.
29359         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
29360         (Depends-on): Add gethrxtime.
29361         (configure.ac): Add gl_XNANOSLEEP.
29362         (Makefile.am): Remove lib_SOURCES line.
29363
29364 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
29365
29366         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
29367         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
29368
29369 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
29370
29371         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
29372         * lib/timespec.h (gettime): Return void, since it always
29373         succeeds now.  All uses changed.
29374         * lib/gettime.c (gettime) Likewise.
29375         [HAVE_NANOTIME]: Prefer nanotime.
29376         Assume gettimeofday succeeds, as POSIX requires.
29377         Assime time () succeeds, since other code already does.
29378         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
29379         (timespec_subtract): Remove.
29380         (NANOSLEEP_BUG_WORKAROUND): New constant.
29381         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
29382         things considerably.  Use it only on GNU/Linux hosts, since the
29383         workaround shouldn't be needed elsewhere.
29384
29385 2005-02-24  Bruno Haible  <bruno@clisp.org>
29386
29387         * modules/gettext (Files): Add m4/glibc2.m4.
29388
29389 2005-02-24  Bruno Haible  <bruno@clisp.org>
29390
29391         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
29392         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
29393         * m4/progtest.m4:
29394         Update from GNU gettext 0.14.2.
29395         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
29396
29397 2005-02-24  Bruno Haible  <bruno@clisp.org>
29398
29399         * lib/localcharset.c: Update from GNU gettext 0.14.2.
29400         * lib/config.charset: Update from GNU gettext 0.14.2.
29401
29402 2005-02-24  Bruno Haible  <bruno@clisp.org>
29403
29404         * lib/gettext.h: Update from GNU gettext 0.14.2.
29405
29406 2005-02-23  Simon Josefsson  <jas@extundo.com>
29407
29408         * m4/iconvme.m4: New file.
29409
29410 2005-02-23  Jim Meyering  <jim@meyering.net>
29411
29412         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
29413         change.
29414         Thanks to Bruno Haible for catching it.
29415
29416 2005-02-22  Simon Josefsson  <jas@extundo.com>
29417
29418         * modules/iconvme: New file.
29419
29420         * MODULES.html.sh: Add iconvme.
29421
29422 2005-02-22  Simon Josefsson  <jas@extundo.com>
29423
29424         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
29425
29426 2005-02-22  Simon Josefsson  <jas@extundo.com>
29427
29428         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
29429
29430 2005-02-22  Jim Meyering  <jim@meyering.net>
29431
29432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
29433         s/ifndef/ifdef/.
29434
29435 2005-02-20  Neil Conway  <neilc@samurai.com>
29436
29437         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
29438         returned by OSX/Darwin if the specified buffer is not large
29439         enough for the hostname.
29440
29441 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29442
29443         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
29444         pass it to _help, otherwise the latter coredumps trying to
29445         dereference state.root_argp.
29446
29447 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
29448
29449         * modules/chdir-long (Depends-on): Add memrchr.
29450         * modules/memrchr (Files): Add lib/memrchr.h.
29451         (Include): "memrchr.h".
29452
29453 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
29454
29455         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
29456
29457 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
29458
29459         * lib/memrchr.h: New file.
29460         * lib/chdir-long.c: Include it.
29461         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
29462         Don't bother including stddef.h.
29463
29464 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
29465
29466         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
29467         inclusion.
29468         Include <sys/types.h>, for dev_t.
29469         (ME_DUMMY, ME_REMOTE): Move from here....
29470         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
29471         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
29472         Dmitry V. Levin.
29473         Include mountlist.h first, to test the interface.
29474
29475 2005-01-29  Bruno Haible  <bruno@clisp.org>
29476
29477         * lib/progname.c (program_name): Initialize.
29478         Needed when linking statically on MacOS X.
29479
29480 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
29481
29482         Sync from coreutils.
29483         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
29484         (Depends-on): Add c-strtod.
29485         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
29486
29487 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
29488
29489         Sync from coreutils.
29490         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
29491
29492         Remove files that are specific to coreutils.
29493         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
29494
29495 2005-01-28  Bruno Haible  <bruno@clisp.org>
29496
29497         * modules/javacomp: New file.
29498         * MODULES.html.sh (Java): Add javacomp.
29499
29500 2005-01-28  Bruno Haible  <bruno@clisp.org>
29501
29502         * m4/javacomp.m4: New file, from GNU gettext.
29503
29504 2005-01-28  Bruno Haible  <bruno@clisp.org>
29505
29506         * lib/javacomp.sh.in: New file, from GNU gettext.
29507         * lib/javacomp.h: New file, from GNU gettext.
29508         * lib/javacomp.c: New file, from GNU gettext.
29509
29510 2005-01-26  Simon Josefsson  <jas@extundo.com>
29511
29512         * lib/gai_strerror.c: Use GPL in header.
29513
29514 2005-01-26  Bruno Haible  <bruno@clisp.org>
29515
29516         * modules/javaexec: New file.
29517         * MODULES.html.sh (Java): Add javaexec.
29518
29519 2005-01-26  Bruno Haible  <bruno@clisp.org>
29520
29521         * m4/javaexec.m4: New file, from GNU gettext.
29522
29523 2005-01-26  Bruno Haible  <bruno@clisp.org>
29524
29525         * lib/javaexec.sh.in: New file, from GNU gettext.
29526         * lib/javaexec.h: New file, from GNU gettext.
29527         * lib/javaexec.c: New file, from GNU gettext.
29528
29529 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29530
29531         * modules/lchown (Depends-on): Remove lchown.h
29532
29533 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29534
29535         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
29536         must be defined if the header file was not found, in order
29537         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
29538
29539 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29540
29541         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
29542         initializers for struct pentry_state.
29543         (__argp_error): Check return value of __asprintf
29544         (__argp_failure): Translate error message
29545
29546         * lib/argp-parse.c: Removed braces around the expansion of N_()
29547
29548 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29549
29550         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
29551         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
29552         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
29553         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
29554         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
29555         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
29556         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
29557         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
29558         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
29559         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
29560         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
29561         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
29562         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
29563         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
29564         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
29565         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
29566         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
29567         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
29568         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
29569         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
29570         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
29571         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
29572         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
29573         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
29574         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
29575         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
29576         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
29577         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
29578         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
29579         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
29580         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
29581         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
29582         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
29583         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
29584         xstrtol.m4, xstrtoumax.m4, yesno.m4:
29585         Use an all-permissive copyright notice, recommended by RMS.
29586
29587 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
29588
29589         * modules/chdir-long (Depends-on): Remove mempcpy.
29590
29591 2005-01-21  Jim Meyering  <jim@meyering.net>
29592
29593         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
29594         same value as for Solaris 9.
29595
29596         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
29597         component length.  This included changing the parameter to be
29598         of type `char *' rather than `char const *'.
29599         * lib/chdir-long.h (chdir_long): Update prototype.
29600
29601         * lib/openat.c (fdopendir, fstatat): New functions.
29602         * lib/openat.h: Include headers required for use of DIR and struct
29603         stat.
29604         [AT_SYMLINK_NOFOLLOW]: Define.
29605         (fdopendir, fstatat): Add prototypes.
29606
29607 2005-01-21  Bruno Haible  <bruno@clisp.org>
29608
29609         * modules/classpath: New file.
29610         * MODULES.html.sh (Java): Add classpath.
29611
29612 2005-01-21  Bruno Haible  <bruno@clisp.org>
29613
29614         * lib/classpath.h: New file, from GNU gettext.
29615         * lib/classpath.c: New file, from GNU gettext.
29616
29617 2005-01-20  Simon Josefsson  <jas@extundo.com>
29618
29619         * modules/version-etc-fsf: New file.
29620
29621 2005-01-20  Simon Josefsson  <jas@extundo.com>
29622
29623         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
29624         * lib/version-etc.c: Remove version_etc_copyright.
29625         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
29626         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
29627
29628 2005-01-20  Simon Josefsson  <jas@extundo.com>
29629
29630         * lib/base64.h (isbase64): Add.
29631
29632         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
29633         using a unsigned prototype, don't inline.
29634         (base64_decode): Use it.
29635
29636 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29637
29638         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
29639         it.
29640
29641 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29642
29643         * lib/save-cwd.c (save_cwd): Remove code to support the case
29644         where fchdir is missing or flaky.
29645
29646 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29647
29648         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
29649
29650 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
29651
29652         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
29653         AC_LIBSOURCES now does this.
29654         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
29655         with new ullong_max module.
29656
29657 2005-01-19  Bruno Haible  <bruno@clisp.org>
29658
29659         * modules/sh-quote: New file.
29660         * MODULES.html.sh (Executing programs): Add sh-quote.
29661
29662 2005-01-19  Bruno Haible  <bruno@clisp.org>
29663
29664         * lib/sh-quote.h: New file, from GNU gettext.
29665         * lib/sh-quote.c: New file, from GNU gettext.
29666
29667 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29668
29669         Merge from coreutils.
29670         * m4/ullong_max.m4: New file.
29671         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
29672         (gl_MACROS): Assume localeconv exists.
29673
29674 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29675
29676         Merge changes from coreutils, as described below in several
29677         changelogs dated today.
29678
29679         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
29680         (O_DIRECTORY): Remove; not needed here, since "." must be
29681         a directory.  All uses removed.
29682         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
29683         universal on Suns, and we also need to test for IRIX.
29684         Revamp code to use 'if' rather than '#if'.
29685         Avoid unnecessary comparison of cwd->desc to 0.
29686
29687         * lib/utimens.c (futimens): Robustify the previous patch, by checking
29688         for known valid error numbers rather than observed invalid ones.
29689
29690 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29691
29692         * modules/ullong_max: New file.
29693
29694         * modules/chdir-long, modules/openat: New files.
29695         * modules/save-cwd (Depends-on): Depend on chdir-long.
29696         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
29697
29698 2005-01-18  Jim Meyering  <jim@meyering.net>
29699
29700         Merge from coreutils.
29701         * m4/chdir-long.m4, m4/openat.m4: New files.
29702         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
29703         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
29704         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
29705         is sane and DOES follow symlinks.  Besides, testing 20 different
29706         systems found no broken chown implementations.
29707         Prompted by a change in rsync's copy of this macro.
29708         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
29709
29710         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
29711
29712         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
29713         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
29714         NULL-means-set-to-current-time semantics.
29715         Remove temporary file immediately, rather than waiting
29716         for configure's at-exit trap code to do it.
29717
29718 2005-01-18  Jim Meyering  <jim@meyering.net>
29719
29720         * lib/version-etc.c (version_etc_copyright): Update copyright date.
29721
29722         * lib/utimens.c (futimens): Account for the fact that futimes
29723         can also fail with errno == ENOSYS or errno == ENOENT.
29724         Patch from Dmitry V. Levin.
29725
29726         Change the name of the robust chdir function from chdir to chdir_long.
29727         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
29728         (restore_cwd): Use chdir_long, not chdir.
29729         * lib/chdir-long.c: Renamed from chdir.c.
29730         * lib/chdir-long.h: Renamed from chdir.h.
29731         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
29732         Hurd.
29733
29734 2005-01-18  Bruno Haible  <bruno@clisp.org>
29735
29736         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
29737         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
29738         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
29739         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
29740         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
29741         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
29742         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
29743         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
29744         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
29745         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
29746         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
29747         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
29748         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
29749         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
29750         Use an all-permissive copyright notice, recommended by RMS.
29751
29752 2005-01-18  Bob Proulx  <bob@proulx.com>
29753
29754         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
29755         simplify offsetof() macro construct to avoid compile failure with
29756         native HP-UX 11.0 ANSI C compiler.
29757
29758 2005-01-17  Bruno Haible  <bruno@clisp.org>
29759
29760         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
29761         redundant because stpncpy.m4 takes care of it.
29762
29763 2005-01-17  Bruno Haible  <bruno@clisp.org>
29764
29765         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
29766
29767 2005-01-17  Bruno Haible  <bruno@clisp.org>
29768
29769         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
29770         used.
29771
29772 2005-01-17  Bruno Haible  <bruno@clisp.org>
29773
29774         * lib/fwriteerror.h (fwriteerror): Change specification to include
29775         fclose.
29776         * lib/fwriteerror.c: Include <stdbool.h>.
29777         (fwriteerror): At the end, close the file stream. Record whether
29778         stdout was already closed.
29779
29780 2005-01-17  Bruno Haible  <bruno@clisp.org>
29781
29782         * lib/execute.c (environ): Declare if needed.
29783         * lib/pipe.c (environ): Likewise.
29784         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
29785
29786 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29787
29788         * modules/argp: Depend on vsnprintf
29789
29790 2005-01-10  Jim Meyering  <jim@meyering.net>
29791
29792         * modules/closeout (Depends-on): Add atexit.
29793
29794 2005-01-06  Bruno Haible  <bruno@clisp.org>
29795
29796         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
29797
29798 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29799
29800         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
29801         definitions to be after all include files, to avoid collisions.
29802         Problem reported by Bob Proulx.
29803
29804 2005-01-04  Jim Meyering  <jim@meyering.net>
29805
29806         Changes imported from coreutils.
29807         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
29808         as the mkstemp template, use a temporary directory and an
29809         8.3-friendly template to avoid trouble on systems like DJGPP.
29810         Reported by Juan M. Guerrero via Stepan Kasal.
29811         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
29812         close. Remove the temporary directory right away, rather than waiting
29813         for configure's at-exit trap code to do it.
29814         Suggestion from Stepan Kasal.
29815
29816 2005-01-01  Simon Josefsson  <jas@extundo.com>
29817
29818         * gnulib-tool: Print #include directives when --import'ing.
29819
29820 2004-12-28  Simon Josefsson  <jas@extundo.com>
29821
29822         * tests/test-base64.c: Include required header files.  Remove
29823         unused variables.
29824
29825 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29826
29827         * modules/error (Depends-on): Remove gettext.
29828
29829 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29830
29831         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
29832         not needed.  This removes a dependency on the gettext module.
29833         [defined _LIBC]: Do not include <libintl.h>; not needed.
29834
29835 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
29836
29837         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
29838         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
29839
29840 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
29841
29842         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
29843         HAVE_DECL_STRTOLD.
29844
29845 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29846
29847         * modules/getdate (Depends-on): Remove alloca-opt.
29848
29849 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29850
29851         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
29852
29853 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29854
29855         * lib/argp-parse.c: Include <stddef.h>.
29856         (alignof, alignto): New macros.
29857         (parser_init): Don't assume that void * is aligned sufficiently
29858         for struct option.
29859
29860         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
29861         need to extend the stack.
29862         (YYINITDEPTH): New macro, so that the initial stack isn't overly
29863         large.
29864
29865 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29866
29867         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
29868
29869 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
29870
29871         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
29872         (2004-10-24) change.  Apparently this was a false alarm.
29873
29874         * modules/getdate: Depend on alloca-opt, not alloca.
29875
29876 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
29877
29878         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
29879         Remove now-obsolete comment about AIX.
29880         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
29881         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
29882         (YYMAXDEPTH): New macro.
29883
29884 2004-12-18  Simon Josefsson  <jas@extundo.com>
29885
29886         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
29887
29888 2004-12-18  Bruno Haible  <bruno@clisp.org>
29889
29890         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
29891
29892 2004-12-18  Bruno Haible  <bruno@clisp.org>
29893
29894         * lib/fatal-signal.c (fatal_signals): Make non-const.
29895         (init_fatal_signals): New function.
29896         (uninstall_handlers, install_handlers): Ignore signals that were set to
29897         SIG_IGN.
29898         (at_fatal_signal): Call init_fatal_signals.
29899         (init_fatal_signal_set): Likewise. Ignore signals that were set to
29900         SIG_IGN.
29901         Reported by Paul Eggert.
29902
29903 2004-12-18  Bruno Haible  <bruno@clisp.org>
29904
29905         * doc/alloca.texi: New file.
29906         * doc/alloca-opt.texi: New file.
29907
29908 2004-12-17  Jim Meyering  <jim@meyering.net>
29909
29910         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
29911         Otherwise, install-sh could exit with improper exit status when
29912         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
29913
29914 2004-12-16  Simon Josefsson  <jas@extundo.com>
29915
29916         * tests/test-base64.c: Add license.
29917
29918 2004-12-15  Stepan Kasal  <address@hidden>
29919
29920         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
29921
29922 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
29923
29924         * modules/getcwd (Files): Add m4/d-ino.m4.
29925         Suggested by Mark D. Baushke.
29926
29927 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
29928
29929         * lib/getdate.y (textint): New member "negative".
29930         (time_zone_hhmm): New function.
29931         Expect 14 shift-reduce conflicts, not 13.
29932         (o_colon_minutes): New rule.
29933         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
29934         (yylex): Set the "negative" member of signed numbers.
29935
29936 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
29937
29938         * doc/getdate.texi (Time of day items, Time zone items):
29939         Describe new formats +00:00, UTC+00:00.
29940
29941 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29942
29943         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
29944         spurious "-l"s.  Problem reported by Stepan Kasal.
29945
29946 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
29947
29948         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
29949         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
29950
29951 2004-12-04  Simon Josefsson  <jas@extundo.com>
29952
29953         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
29954         Vandoorselaere <yoann@prelude-ids.org>.
29955
29956 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29957
29958         Changes imported from coreutils.
29959         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
29960         exist.
29961         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
29962
29963 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29964
29965         Changes imported from coreutils.
29966         * lib/hard-locale.c: Assume <locale.h> exists.
29967         Include "strdup.h".
29968         (GLIBC_VERSION): New macro.
29969         (hard_locale): Assume setlocale exists.
29970         Rewrite to avoid #ifdef.
29971         Use strdup rather than malloc + strcpy.
29972         * lib/human.c: Assume <locale.h> exists.
29973         (human_readable): Assume localeconv exists.
29974
29975 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29976
29977         * modules/hard-locale (Depends-on): Add strdup.
29978
29979 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
29980
29981         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
29982         convert T2, not T.  (Imported from libc.)
29983
29984 2004-11-30  Simon Josefsson  <jas@extundo.com>
29985
29986         * modules/restrict (License): Change to LGPL.
29987
29988 2004-11-30  Simon Josefsson  <jas@extundo.com>
29989
29990         * m4/restrict.m4: Add copyright and copying conditions.
29991
29992 2004-11-30  Simon Josefsson  <jas@extundo.com>
29993
29994         * m4/base64.m4: New file.
29995
29996 2004-11-30  Simon Josefsson  <jas@extundo.com>
29997
29998         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
29999         base64.
30000
30001         * tests/test-base64.c: New file.
30002
30003         * modules/base64: New file.
30004
30005 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
30006
30007         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
30008         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
30009
30010         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
30011
30012 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
30013
30014         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
30015         (__getcwd.c): Don't restore errno; glibc doesn't.
30016         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
30017         first, falling back to our code only if its results look suspicious.
30018         Ensure that the resulting buffer is only as large as necessary.
30019
30020         * lib/readutmp.c: Include readutmp.h first.
30021         Include <errno.h>, since readutmp.h no longer does that.
30022         * lib/readutmp.h: Don't include <errno.h>,
30023         <sys/param.h>, <time.h>; not needed to establish interface.
30024         (errno): Remove decl.
30025         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
30026         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
30027         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
30028
30029 2004-11-28  Simon Josefsson  <jas@extundo.com>
30030
30031         * lib/base64.h, base64.c: New file.
30032
30033 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
30034
30035         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
30036
30037 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
30038
30039         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
30040         (Depends-on): Remove pathmax, same.  Add mempcpy.
30041         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
30042         (Makefile.am): Append getcwd.h to lib_SOURCES.
30043         (Include): Add getcwd.h.
30044         (Maintainer): Change from Jim Meyering to "all, glibc",
30045         since getdate now uses intended-for-glibc code.
30046         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
30047         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
30048
30049 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
30050
30051         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
30052         HP's ANSI C compiler.
30053         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
30054         Declaring int functions causes warnings on some modern systems and
30055         shouldn't be needed to compile on ancient ones.
30056         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
30057         defined.
30058
30059         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
30060         with the following changes.
30061         (__set_errno): Parenthesize properly.
30062         Include <stdbool.h>.
30063         (MIN, MAX, MATCHING_INO): New macros.
30064         (__getcwd): Define with prototype, not K&R form.
30065         Use heuristics to allocate default buffer on stack if possible.
30066         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
30067         behavior, and to avoid the PATH_MAX limit when computing
30068         ../../../../...
30069         Use MATCHING_INO to compare inode number to file.
30070         Check for arithmetic overflow in size calculations.
30071         Fix bug in reallocation of dot array that caused getcwd to fail
30072         on directories nested deeper than 75.
30073         Be more careful about saving errno on error.
30074         Do not use realloc; use only free+malloc, as this is a bit
30075         more flexible and avoids a needless copy operation.
30076         Do not inspect st_dev and st_ino for symbolic links; POSIX
30077         doesn't specify the latter.
30078         Check for closedir errors.
30079         Avoid needless casts.
30080         Use "#ifdef weak_alias" around weak_alias, to be like other
30081         glibc code.
30082         The following changes to getcwd.c have effect only when used in
30083         gnulib; they have no effect inside glibc proper.
30084         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
30085         as alloca isn't used.
30086         (alloca, __alloca): Likewise.
30087         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
30088         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
30089         unconditionally, as gnulib assumes C89 or better.
30090         Do not include <sys/param.h>.
30091         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
30092         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
30093         better.
30094         (NULL) [!defined NULL]: Remove; we assume C89 or better.
30095         Include <dirent.h> in a way that is compatible with modern Autoconf.
30096         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
30097         New macros, if not already defined.
30098         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
30099         Use "_LIBC", not "defined _LIBC", for consistency.
30100         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
30101         a mempcpy module.
30102         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
30103         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
30104         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
30105         credit only to Jim Meyering and adjust the copyright dates.
30106         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
30107         <stdlib.h>, <unistd.h>, "pathmax.h".
30108         Instead, include "xgetcwd.h" (first) and "getcwd.h".
30109         (INITIAL_BUFFER_SIZE): Remove.
30110         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
30111
30112 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
30113
30114         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
30115         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
30116         Use the _ONCE methods, for efficiency.
30117         Check for fcntl.h.  In test program, include <errno.h>
30118         and <fcntl.h> if available.  Remove old K&R cruft from
30119         test program.  Check for common errors in GNU/Linux,
30120         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
30121         don't do AC_LIBOBJ, as that's getcwd.m4's job.
30122         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
30123         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
30124         name accordingly.
30125         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
30126         accommodate new getcwd.c.
30127         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
30128         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
30129         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
30130         that's all we need now.
30131
30132 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30133
30134         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
30135         argp-parse.c depends on getopt internals, that means we should
30136         always use our getopt, to be on the safe side.
30137         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
30138         order not to spoil the result of an eventual previous invocation
30139         of gl_GETOPT_SUBSTITUTE.
30140
30141 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30142
30143         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
30144         redefinition warnings. To avoid them, include the defines
30145         in `#if !defined __need_getopt ... #endif'. The only place
30146         where __getopt_argv_const is used is in definitions
30147         of getopt_long and getopt_long_only below, which are as well
30148         protected by `#ifndef __need_getopt'.
30149         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
30150         __need_getopt after including <stdio.h> and <unistd.h> These
30151         headers might have defined it.
30152
30153 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
30154
30155         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
30156
30157 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
30158
30159         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
30160         (futimens): New function, which uses futimes if available.
30161         (futimens, utimens): Support timespec==NULL, with same semantics
30162         as utime and utimens.
30163         * lib/utimens.h (futimens): New decl.
30164
30165 2004-11-23  Jim Meyering  <jim@meyering.net>
30166
30167         * lib/getopt_.h: Remove trailing blanks.
30168
30169 2004-11-23  Jim Meyering  <jim@meyering.net>
30170
30171         * lib/__fpending.c: Add comment.
30172
30173 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
30174
30175         * modules/canonicalize (Depends-on): Add xreadlink.
30176         Problem reported by James Youngman.
30177
30178 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
30179
30180         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
30181         New macros.
30182         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
30183         optopt): Use them instead of invoking ## directly; otherwise, the
30184         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
30185
30186 2004-11-19  Bruno Haible  <bruno@clisp.org>
30187
30188         * lib/strtok_r.c: Move comments from here...
30189         * lib/strtok_r.h: ... to here.
30190
30191 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
30192
30193         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
30194         implementations that mishandle size_t overflow.
30195
30196 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
30197
30198         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
30199         might fail.  Problem reported by Yoann Vandoorselaere.
30200         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
30201         implementations that mishandle size_t overflow.
30202
30203 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30204
30205         * modules/canon-host (Depends-on): Add strdup.
30206
30207 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30208
30209         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
30210
30211 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30212
30213         * lib/canon-host.c: Include "strdup.h".
30214         (canon_host): Use getaddrinfo if available, so that IPv6 works.
30215         Use strdup instead of malloc/strcpy to duplicate strings.
30216
30217         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
30218         (human_space_before_unit): New constant.
30219         * lib/human.c (human_readable): Support it.
30220
30221         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
30222         (xgetcwd): Set errno correctly when failing.
30223         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
30224         the failure is actually due to a PATH_MAX problem.
30225
30226         Further getopt changes to make it more likely that glibc will
30227         buy the changes back.
30228         * lib/getopt.c (POSIXLY_CORRECT): New constant.
30229         (getopt): Use it, so to preserve glibc semantic
30230         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
30231         when compiling for libc.
30232         * lib/getopt_.h (__getopt_argv_const): Bring it back.
30233         (getopt_long, getopt_long_only): Use it.
30234
30235         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
30236         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
30237         (getopt): Argv is now char * const *, as per standard.
30238         (_getopt_internal_r, _getopt_internal): Argv is now char **,
30239         not char *__getopt_argv_const *.
30240         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
30241         _getopt_long_only_r): Likewise.
30242         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
30243         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
30244         _getopt_long_r, _getopt_long_only_r): Likewise.
30245         * lib/getopt_.h (__getopt_argv_const): Remove.
30246         (getopt): Argv is now char * const *, as per standard.
30247
30248         * lib/getdate.y (tORDINAL): New token.
30249         (day, relunit): Allow it for relative times.
30250         (relative_time_table): Use tORDINAL for ordinals.
30251
30252 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30253
30254         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
30255         Document that "second" isn't allowed as an ordinal number.
30256
30257 2004-11-16  Jim Meyering  <jim@meyering.net>
30258
30259         * modules/closeout (Depends-on): Add fpending.
30260
30261 2004-11-15  Jim Meyering  <jim@meyering.net>
30262
30263         * lib/closeout.c: Include "__fpending.h" once again.
30264         Include <stdbool.h>.
30265         (close_stdout): Don't fail just because stdout was closed initially,
30266         since some programs don't write to stdout in the normal course of
30267         operation (other than --version and --help), and we don't want this
30268         function to make e.g. `touch file >&-' fail.
30269         But do fail if it was closed and someone has tried to write to it.
30270         E.g., `printf foo >&-' must fail.
30271
30272 2004-11-13  Jim Meyering  <jim@meyering.net>
30273
30274         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
30275
30276 2004-11-12  Simon Josefsson  <jas@extundo.com>
30277
30278         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
30279         small doc fix is still pending.
30280
30281 2004-11-11  Simon Josefsson  <jas@extundo.com>
30282
30283         * modules/strtok_r: New file.
30284
30285         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30286         strtok_r.
30287
30288 2004-11-11  Simon Josefsson  <jas@extundo.com>
30289
30290         * m4/strtok_r.m4: New file.
30291
30292         * m4/getopt.m4: Replace opterr.
30293
30294 2004-11-11  Simon Josefsson  <jas@extundo.com>
30295
30296         * lib/strtok_r.h, strtok_r.c: New file.
30297
30298 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
30299
30300         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
30301         of replacing opterr, getopt, etc.  This should handle the
30302         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
30303
30304 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
30305
30306         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
30307         we can stop lying to compilers about the constness of argv when we
30308         are compiled outside glibc.
30309         (getopt, getopt_long, getopt_long_only): Use it.
30310         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
30311         _getopt_internal, getopt): Likewise.
30312         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
30313         _getopt_long_only_r): Likewise.
30314         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
30315         _getopt_long_r, _getopt_long_only_r): Likewise.
30316
30317         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
30318         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
30319         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
30320         the other external symbols.
30321         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
30322         declaration, since the above renaming now works around collisions.
30323
30324 2004-11-11  Jim Meyering  <jim@meyering.net>
30325
30326         * lib/linebreak.c: Remove trailing blanks.
30327         * lib/alloca_.h: Likewise.
30328         * lib/acosl.c: Likewise.
30329         * lib/euidaccess.c: Likewise.
30330         * lib/allocsa.h: Likewise.
30331
30332 2004-11-10  Simon Josefsson  <jas@extundo.com>
30333
30334         * m4/getaddrinfo.m4: New file.
30335
30336 2004-11-10  Simon Josefsson  <jas@extundo.com>
30337
30338         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
30339
30340 2004-11-10  Simon Josefsson  <jas@extundo.com>
30341
30342         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30343         getaddrinfo.
30344
30345         * modules/getaddrinfo: New file.
30346
30347 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30348
30349         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
30350
30351 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30352
30353         * lib/mktime.c (SHR): New macro, which is a portable
30354         substitute for >> that should work even on Crays.
30355         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
30356         Problem reported by Mark D. Baushke in
30357         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
30358         * lib/getdate.y (SHR): Likewise.
30359         (tm_diff): Use it.
30360         * lib/strftime.c (SHR): Likewise.
30361         (tm_diff): Use it.
30362         * lib/quotearg.c (struct quoting_options): Use unsigned int for
30363         quote_these_too, so that right shifts are well defined.  All uses
30364         changed.
30365
30366 2004-11-10  Jim Meyering  <jim@meyering.net>
30367
30368         Ensure that no close failure goes unreported.
30369         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
30370         return early when it seems there's nothing to flush.
30371         Don't include __fpending.h.
30372
30373 2004-11-10  Jim Meyering  <jim@meyering.net>
30374
30375         * modules/closeout (Depends-on): Remove fpending.
30376
30377 2004-11-10  Jim Meyering  <jim@meyering.net>
30378
30379         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
30380
30381 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30382
30383         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
30384         gl_FUNC_STRFTIME.
30385         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
30386         and AC_REQUIRE when possible, to avoid duplicate checks.
30387         Check for <wchar.h>.
30388
30389 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30390
30391         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
30392
30393 2004-11-09  Bruno Haible  <bruno@clisp.org>
30394
30395         * m4/sockpfaf.m4: New file.
30396
30397 2004-11-05  Bruno Haible  <bruno@clisp.org>
30398
30399         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
30400         Reported by Mark D. Baushke <mdb@cvshome.org>.
30401
30402 2004-11-04  Bruno Haible  <bruno@clisp.org>
30403
30404         2004-09-11  Bruno Haible  <bruno@clisp.org>
30405                 * allocsa.valgrind: New file.
30406         2004-02-06  Bruno Haible  <bruno@clisp.org>
30407                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
30408                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
30409                 Reported by Christopher Seip <chris.seip@hp.com>.
30410
30411 2004-11-04  Bruno Haible  <bruno@clisp.org>
30412
30413         * modules/allocsa (Files): Add lib/allocsa.valgrind.
30414         (Makefile.am): Distribute it.
30415
30416 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30417
30418         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
30419         with errno == ERANGE if the buffer is too small.
30420         Problem reported by Mark D. Baushke.
30421
30422 2004-11-03  Albert Chin  <china@thewrittenword.com>
30423             Paul Eggert  <eggert@cs.ucla.edu>
30424
30425         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
30426         equivalent, substitute $ac_type for equivalent type rather than
30427         blindly using uint32_t *always* which won't work if uint32_t is not
30428         available.  Define _UINT32_T to work around typedef of uint32_t if
30429         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
30430         2.5.1.
30431
30432 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30433
30434         * m4/jm-macros.m4: Sync from coreutils.
30435         (gl_MACROS): Check for mbrlen, for pathchk.
30436         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
30437
30438 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30439
30440         * lib/xreadlink.c (MAXSIZE): New macro.
30441         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
30442         size does not exceed MAXSIZE.  Avoid cast.
30443         As suggested by Mark D. Baushke in
30444         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
30445         if readlink fails with buffer size just under MAXSIZE, try again
30446         with MAXSIZE.
30447
30448 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30449
30450         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
30451
30452 2004-11-02  Derek R. Price  <derek@ximbiot.com>
30453         and  Paul Eggert  <eggert@cs.ucla.edu>
30454
30455         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
30456         (get_date): Overparenthesize to avoid GCC warning.
30457
30458 2004-11-02  Bruno Haible  <bruno@clisp.org>
30459
30460         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
30461         returns void.
30462
30463 2004-11-02  Bruno Haible  <bruno@clisp.org>
30464
30465         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
30466         function returns void.
30467
30468 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30469
30470         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
30471         fflush_unlocked, flockfile, funlockfile, funlockfile,
30472         fputs_unlocked, putc_unlocked.
30473
30474 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30475
30476         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30477         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
30478         already declared.
30479
30480 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30481
30482         * modules/getdate (Files): Add doc/getdate.texi.
30483         (Depends-on): Add setenv, xalloc.
30484
30485 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30486
30487         * lib/getdate.y: Add support for TZ="foo" within a date string.
30488         Fix some bugs near time_t boundaries.  Reject dates with
30489         out-of-range components, e.g., "Sept 31".
30490         Include <stdlib.h>, "setenv.h", "xalloc.h".
30491         (ISDIGIT_LOCALE): Remove; unused.
30492         Note that the TZ and time functions used here are not reentrant.
30493         (mktime_ok, get_tz): New functions.
30494         (TZBUFSIZE): New constant.
30495         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
30496         This requires that we sometimes generate our own TZ="XXX..." setting.
30497
30498 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30499
30500         * doc/getdate.texi: New file, from coreutils with modifications for
30501         the new TZ parsing.
30502
30503 2004-10-27  Derek R. Price  <derek@ximbiot.com>
30504
30505         * lib/mktime.c (not_equal_tm): Remove redundant check.
30506
30507 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30508
30509         * modules/regex (lib_SOURCES): Add regex.c.
30510         Reported by James Youngman in
30511         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
30512
30513 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30514
30515         * lib/getdate.y: Use Bison 1.875 features, and some minor
30516         code cleanups.  This change does not affect semantics.
30517         Don't include <stdlib.h>; no longer needed.
30518         Don't include unlocked-io.h; only the "#if TEST" code uses
30519         stdio, and performance isn't crucial there.
30520         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
30521         Bison 1.875 features as described below.
30522         All uses of "PC." replaced by "pc->".
30523         (YYSTYPE): Add a forward declaration.
30524         (yylex, yyerror): Use full prototypes in forward decls.
30525         Use "%pure-parser" rather than obsolescent "%pure_parser".
30526         Use %parse-param and %lex-param instead of obsolescent
30527         YYPARSE_PARAM and YYLEX_PARAM.
30528         (meridian_table, month_and_day_table, time_units_table,
30529         relative_time_table, time_zone_table, military_table,
30530         lookup_zone, lookup_word, get_date):
30531         Use NULL instead of 0 where appropriate.
30532         (to_hour): Avoid abort (), to avoid a dependency on
30533         stdlib.h.
30534         (yyerror, yylex): Now accepts parser_control * arg.
30535         (main) [TEST]: Use '\0' rather than 0 for char.
30536
30537 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30538
30539         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
30540
30541 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30542
30543         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
30544         It's now the caller's responsibility to handle the case where
30545         !HAVE_GETPAGESIZE && !defined getpagesize.
30546
30547         * lib/mktime.c (leapyear): Arg is long int, not int.
30548
30549 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30550
30551         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
30552
30553 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30554
30555         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
30556         missing.  Problem reported by James Youngman.
30557
30558 2004-10-16  Simon Josefsson  <jas@extundo.com>
30559
30560         * gnulib-tool: Fix comments.  Fix parse problem.
30561         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
30562
30563 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
30564
30565         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
30566         implementation of getopt_long.  Problem reported by Alexander Taler in:
30567         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
30568
30569 2004-10-15  Bruno Haible  <bruno@clisp.org>
30570
30571         * gnulib-tool: Untabify. Initialize supplied_libname.
30572         (func_usage): More homogenous output.
30573         (func_modules_transitive_closure, func_modules_to_filelist,
30574         func_emit_lib_Makefile_am): New functions.
30575         (func_import): New function, extracted from big case statement. Use
30576         func_get_license, func_modules_transitive_closure,
30577         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
30578         opt_lgpl. Don't use test -a, as it's not portable.
30579         (func_create_testdir): Use func_modules_transitive_closure,
30580         func_modules_to_filelist, func_emit_lib_Makefile_am.
30581
30582 2004-10-15  Bruno Haible  <bruno@clisp.org>
30583
30584         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
30585
30586 2004-10-15  Bruno Haible  <bruno@clisp.org>
30587
30588         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
30589         the portions belonging to each module.
30590         Suggested by Derek Robert Price <derek@ximbiot.com>.
30591
30592 2004-10-12  Simon Josefsson  <jas@extundo.com>
30593
30594         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30595         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
30596         to real functions.
30597
30598 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30599
30600         * modules/vsnprintf: New file.
30601
30602 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30603
30604         * m4/vsnprintf.m4: New file.
30605
30606 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30607
30608         * lib/vsnprintf.h: New file.
30609         * lib/vsnprintf.c: New file.
30610
30611 2004-10-11  Bruno Haible  <bruno@clisp.org>
30612
30613         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
30614         vsnprintf.
30615
30616 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30617
30618         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
30619
30620 2004-10-07  Bruno Haible  <bruno@clisp.org>
30621
30622         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
30623         fits into the provided buffer.
30624
30625 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30626
30627         * lib/diacrit.c, diacrit.h: Add GPL notice.
30628
30629         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
30630         notice.
30631         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
30632         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
30633         This avoids a potential constant-folding bug.
30634
30635 2004-10-05  Bruno Haible  <bruno@clisp.org>
30636
30637         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
30638         for the declaration of strsep.
30639
30640 2004-10-05  Bruno Haible  <bruno@clisp.org>
30641
30642         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
30643
30644 2004-10-04  Simon Josefsson  <jas@extundo.com>
30645
30646         * modules/memmem: New file.
30647         * tests/test-memmem.c: New file.
30648         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
30649
30650 2004-10-04  Simon Josefsson  <jas@extundo.com>
30651
30652         * m4/memmem.m4: New file.
30653
30654 2004-10-04  Simon Josefsson  <jas@extundo.com>
30655
30656         * lib/memmem.h: New file.
30657         * lib/memmem.c: New file, taken from glibc.
30658
30659 2004-10-04  Simon Josefsson  <jas@extundo.com>
30660
30661         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
30662         '#ifdef USE_UNLOCKED_IO'.
30663
30664 2004-10-04  Simon Josefsson  <jas@extundo.com>
30665
30666         * config/srclist.txt: Add memmem from glibc.
30667
30668 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30669
30670         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
30671
30672         * modules/argmatch, modules/argp, modules/closeout, modules/error,
30673         modules/exclude, modules/getdate, modules/getline,
30674         modules/getndelim2, modules/getpass, modules/getpass-gnu,
30675         modules/getusershell, modules/linebuffer, modules/md5,
30676         modules/mountlist, modules/posixtm, modules/readtokens,
30677         modules/readutmp, modules/regex, modules/sha1,
30678         modules/version-etc, modules/yesno:
30679         Remove dependency on unlocked-io.
30680
30681 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30682
30683         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
30684
30685         * m4/unlocked-io.m4: Add copyright notice.
30686         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
30687
30688 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30689
30690         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
30691         * lib/xmalloc.c (xmemdup): Likewise.
30692         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
30693         XFREE): Remove these long-obsolescent macros.
30694         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
30695         * lib/xstrdup.c: Remove.
30696
30697         * lib/regex.c (re_comp): Cast gettext return value to char *,
30698         Problem reported by Martin Neitzel via Mark D. Baushke.
30699
30700 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30701
30702         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
30703         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
30704         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
30705         regex.c, sha1.c, version-etc.c, yesno.c:
30706         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
30707         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
30708         the includer's responsibility.
30709
30710         Sync from coreutils.
30711
30712         * lib/modechange.c (mode_compile): Don't decrement a pointer that
30713         points to the start of a string, as the C Standard says the
30714         resulting behavior is undefined.
30715
30716         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
30717         simple -> simple_backups, numbered_existing ->
30718         numbered_existing_backups, numbered -> numbered_backups
30719         to avoid shadowing problems.  All uses changed.
30720         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
30721         * lib/backupfile.c (check_extension, numbered_backup):
30722         Rename locals to avoid shadowing 'basename'.
30723         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
30724         once.
30725
30726         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
30727         * lib/.cvsignore: Add getopt.h.
30728
30729 2004-10-04  Bruno Haible  <bruno@clisp.org>
30730
30731         * modules/README: New file.
30732         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
30733         not a module.
30734
30735 2004-10-02  Jim Meyering  <jim@meyering.net>
30736
30737         * lib/dirfd.h, getpagesize.h: Add copyright notice.
30738
30739 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30740
30741         * modules/strsep: New file.
30742
30743 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30744
30745         * m4/strsep.m4: New file.
30746
30747 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30748
30749         * lib/strsep.h: New file.
30750         * lib/strsep.c: New file.
30751
30752 2004-10-01  Simon Josefsson  <jas@extundo.com>
30753
30754         * lib/snprintf.c (snprintf): Handle size==0.
30755
30756 2004-10-01  Simon Josefsson  <jas@extundo.com>
30757             Bruno Haible  <bruno@clisp.org>
30758
30759         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
30760         (snprintf): Declare 'args'.
30761
30762 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
30763
30764         * lib/snprintf.c: Remove comments as to why each header is needed.
30765
30766 2004-10-01  Bruno Haible  <bruno@clisp.org>
30767
30768         * MODULES.html.sh: Add strsep.
30769
30770 2004-09-30  Simon Josefsson  <jas@extundo.com>
30771
30772         * modules/snprintf: New file.
30773
30774 2004-09-30  Simon Josefsson  <jas@extundo.com>
30775
30776         * m4/snprintf.m4: New file.
30777
30778 2004-09-30  Simon Josefsson  <jas@extundo.com>
30779
30780         * lib/snprintf.h, lib/snprintf.c: New files.
30781
30782 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30783
30784         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
30785         (hol_entry_help): Never translate an empty string.
30786         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
30787         * lib/argp.h (OPTION_NO_TRANS): New option.
30788
30789 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30790
30791         * modules/argp (Maintainer): Replace Simon Josefsson
30792         by Sergey Poznyakoff.
30793
30794 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30795
30796         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
30797         changes merged back into glibc.
30798
30799 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30800
30801         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
30802
30803 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
30804
30805         * lib/xvasprintf.c: Include xalloc.h.
30806         (xvasprintf): Use xalloc_die, not xmalloc_die.
30807
30808 2004-09-29  Bruno Haible  <bruno@clisp.org>
30809
30810         * modules/alloca-opt: New file, derived from modules/alloca.
30811         * modules/allocsa: Depend on alloca-opt instead of alloca.
30812         * modules/setenv: Likewise.
30813         * modules/vasnprintf: Likewise.
30814         * MODULES.html.sh: Add alloca-opt.
30815
30816 2004-09-28  Simon Josefsson  <jas@extundo.com>
30817
30818         * gnulib-tool: New parameter --lgpl, to asseert that modules are
30819         LGPL, and to replace license template from GPL to LGPL.
30820
30821 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
30822
30823         * modules/dummy: Change license to LGPL.
30824
30825 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
30826
30827         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
30828
30829 2004-09-24  Simon Josefsson  <jas@extundo.com>
30830
30831         * modules/minmax (License): Change from GPL to LGPL.
30832
30833 2004-09-23  Simon Josefsson  <jas@extundo.com>
30834
30835         * gnulib-tool (--import): Typo.
30836
30837 2004-09-23  Simon Josefsson  <jas@extundo.com>
30838
30839         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
30840
30841 2004-09-22  Bruno Haible  <bruno@clisp.org>
30842
30843         * modules/*: Add 'License' field.
30844         * gnulib-tool: Accept --extract-license option.
30845         (func_get_license): New function.
30846
30847 2004-09-21  Bruno Haible  <bruno@clisp.org>
30848
30849         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
30850         Reported by Simon Josefsson.
30851
30852 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30853
30854         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
30855         gl_AC_TYPE_LONG_LONG.
30856
30857 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30858
30859         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
30860
30861 2004-09-18  Simon Josefsson  <jas@extundo.com>
30862         and  Paul Eggert  <eggert@cs.ucla.edu>
30863
30864         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
30865         calls with autoreconf.  Define GL_LIB.
30866
30867 2004-09-14  Karl Berry  <karl@gnu.org>
30868
30869         * config/srclist.txt: unsync setenv.c, sigh.
30870
30871 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30872
30873         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
30874         Problem reported by Bruno Haible in:
30875         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
30876
30877 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30878
30879         * config/srclist.txt: Comment out argp-pvh.c.
30880
30881 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
30882
30883         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
30884         in case some system header has #define'd it.  Problem reported by
30885         Soeren D. Schulze in
30886         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
30887
30888 2004-09-09  Karl Berry  <karl@gnu.org>
30889
30890         * regex.[ch]: delete from the root.  These were supposed to be
30891                 synced with emacs cvs, but this has not happened for about
30892                 a year, and anyway nothing else uses emacs regex.[ch].
30893                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
30894                 lib/regex[.ch] is untouched.
30895
30896 2004-09-09  Bruno Haible  <bruno@clisp.org>
30897
30898         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
30899
30900 2004-09-09  Bruno Haible  <bruno@clisp.org>
30901
30902         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
30903         modifications.
30904         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
30905
30906 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
30907
30908         * modules/xvasprintf: New file.
30909         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
30910
30911 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
30912
30913         * lib/xvasprintf.h: New file.
30914         * lib/xvasprintf.c: New file.
30915         * lib/xasprintf.c: New file.
30916
30917 2004-09-08  Bruno Haible  <bruno@clisp.org>
30918
30919         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
30920
30921 2004-09-08  Bruno Haible  <bruno@clisp.org>
30922
30923         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
30924         length is > INT_MAX.
30925         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
30926         more.
30927
30928 2004-09-08  Bruno Haible  <bruno@clisp.org>
30929
30930         * lib/stdint_.h: New file, taken from GNU clisp.
30931
30932 2004-09-08  Bruno Haible  <bruno@clisp.org>
30933             Oskar Liljeblad  <oskar@osk.mine.nu>
30934
30935         * modules/stdint: New file.
30936         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
30937
30938 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30939
30940         Import from coreutils.
30941         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
30942         strings on unbounded length.  alloca's performance benefits aren't
30943         that important here.
30944         (V_STRDUP): Remove.
30945         (parse_with_separator): New function, with most of the internals
30946         of the old parse_user_spec.  Allow user to omit both user and group,
30947         for compatibility with FreeBSD.
30948         Clone only the user name, not the entire spec.
30949         Do not set *uid, *gid unless entirely successful.
30950         Avoid memory leak in some failing cases.
30951         Fix regression for USER.GROUP reported by Dmitry V. Levin in
30952         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
30953         (parse_user_spec): Rewrite to use parse_with_separator.
30954
30955 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30956
30957         * modules/userspec: Don't depend on alloca.
30958
30959 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30960
30961         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
30962
30963 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30964
30965         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
30966         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
30967         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
30968
30969 2004-08-16  Simon Josefsson  <jas@extundo.com>
30970
30971         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
30972         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
30973         Add --dry-run for --import.
30974         Let user provided command line parameters override configure.ac
30975         settings.
30976
30977 2004-08-12  Simon Josefsson  <jas@extundo.com>
30978
30979         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
30980         as discussed with Paul Eggert in threads rooted at
30981         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
30982         and
30983         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
30984         Before, the test was empty, and relied on ELIDE_CODE in source
30985         code.)
30986         (gl_PREREQ_GETOPT): New macro.
30987         (gl_GETOPT): Use them.
30988
30989 2004-08-12  Simon Josefsson  <jas@extundo.com>
30990
30991         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
30992         * lib/getopt_.h: Renamed from getopt.h.
30993
30994 2004-08-12  Simon Josefsson  <jas@extundo.com>
30995
30996         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
30997         Change default library name from libfoo to libgnu.
30998         Now, if you have a configure.ac that says:
30999                 gl_SOURCE_BASE(gl)
31000                 gl_M4_BASE(gl/m4)
31001                 gl_MODULES(error getopt etcetera)
31002                 gl_INIT
31003         you can import all you need by running:
31004                 ../gnulib/gnulib-tool --import
31005
31006         * modules/getopt (Files): Rename getopt.h to getopt_.h.
31007         (Makefile.am): Rewrite, use logic from argz.
31008         (Include): Use <getopt.h> instead of "getopt.h".
31009
31010 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31011
31012         * modules/argp (Files): Add m4/unlocked-io.m4.
31013         (Depends-on): Add extensions.
31014
31015 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31016
31017         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
31018         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
31019         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
31020         Check for program_invocation_name, program_invocation_short_name,
31021         flockfile, funlockfile, features.h, _getopt_long_only_r.
31022
31023 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31024
31025         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
31026         its complicated substitute.
31027         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
31028         and program_invocation_name.
31029         (__argp_basename) [!_LIBC]: Remove; the only use was
31030         replaced by its body.
31031         (__argp_short_program_name): Change condition from
31032         !defined __argp_short_program_name to
31033         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
31034         to match argp-namefrob.h.
31035         (__argp_failure): Don't assume strerror_r returns char *.
31036         * lib/argp-parse.c (N_): Define unconditionally.
31037         (argp_default_options): Fill out initializers with 0 to avoid
31038         gcc warnings.
31039
31040 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31041
31042         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
31043         getopt1.c.
31044
31045 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31046
31047         Merge from coreutils.
31048
31049         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
31050
31051         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
31052         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
31053
31054 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31055
31056         Merge from coreutils.
31057
31058         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
31059         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
31060         for Reliant Unix 5.43.
31061
31062         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
31063         (union fooround): Use uintmax_t, not long int.
31064         The rest is a merge from libc:
31065         [defined _LIBC]: Include <shlib-compat.h>.
31066         (_obstack) [defined _LIBC]: Remove after 2.3.4.
31067
31068         * lib/settime.c (settime): Recode to avoid warning with
31069         Sun Forte C 6U2.
31070
31071         * lib/strverscmp.c: Convert to UTF-8.
31072
31073 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31074
31075         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
31076         m4/uintmax_t.m4.
31077
31078 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31079
31080         * modules/xalloc-die: New file.
31081         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
31082
31083         * modules/md5 (Files): Add m4/uint32_t.m4.
31084         * modules/sha1: Renamed from modules/sha.
31085         (Files):
31086         Rename lib/sha.h to lib/sha1.h.
31087         Rename lib/sha.c to lib/sha1.c.
31088         Rename m4/sha.m4 to m4/sha1.m4.
31089         (lib_SOURCES): Likewise.
31090         (configure.ac): Rename gl_SHA to gl_SHA1.
31091         (Include): sha.h -> sha1.h.
31092
31093 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31094
31095         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
31096         * m4/sha1.m4: Renamed from sha.m4.
31097         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
31098
31099 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31100
31101         * lib/obstack.h (obstack_empty_p):
31102         Don't assume that chunk->contents is suitably aligned.
31103         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
31104         Likewise. Problem reported by Benno in
31105         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
31106
31107         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
31108         readable.  This could be improved further but it'd take some work.
31109
31110 2004-08-08  Simon Josefsson  <jas@extundo.com>
31111
31112         * modules/xgethostname (Depends-on): Remove exit and error (not
31113         used).
31114
31115         * modules/getpass-gnu: Add getpass.h.
31116         (Depends-on): Add stdbool.
31117         * modules/getpass: Add getpass.h.
31118
31119 2004-08-08  Simon Josefsson  <jas@extundo.com>
31120
31121         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
31122         Check getpass declaration.
31123
31124 2004-08-08  Simon Josefsson  <jas@extundo.com>
31125
31126         * lib/xgethostname.c: Don't include error.h (not used).
31127
31128         * lib/getpass.h: Add.
31129         * lib/getpass.c: Include getpass.h first.
31130
31131 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
31132
31133         * lib/xalloc-die.c: New file.
31134         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
31135         All uses removed.
31136         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
31137         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
31138         xalloc-die.c.
31139         (_, N_, xalloc_die): Move to xalloc-die.c.
31140         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
31141         so that we needn't mess with xalloc_msg_memory_exhausted.
31142
31143         * lib/sha1.h: Renamed from sha.h.
31144         (SHA1_H): Renamed from _SHA_H.
31145         (sha1_ctx): Renamed from sha_ctx.
31146         (sha1_init_ctx): Renamed from sha_init_ctx.
31147         (sha1_process_block): Renamed from sha_process_block.
31148         (sha1_process_bytes): Renamed from sha_process_bytes.
31149         (sha1_finish_ctx): Renamed from sha_finish_ctx.
31150         (sha1_read_ctx): Renamed from sha_read_ctx.
31151         (sha1_stream): Renamed from sha_stream.
31152         (sha1_buffer): Renamed from sha_buffer.
31153         * lib/sha1.c: Likewise; renamed from sha.c.
31154         Do not include <sys/types.h>.
31155         Include <stddef.h> rather than <stdlib.h>.
31156
31157 2004-08-08  Bruno Haible  <bruno@clisp.org>
31158
31159         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
31160         FILESYSTEM_PREFIX_LEN.
31161         * lib/progreloc.c: Likewise.
31162         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
31163
31164 2004-08-06  Simon Josefsson  <jas@extundo.com>
31165
31166         * modules/progname (Depends-on): Don't depend on stdbool.
31167
31168 2004-08-06  Simon Josefsson  <jas@extundo.com>
31169
31170         * modules/getsubopt: New file.
31171         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31172         getsubopt.
31173
31174 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31175
31176         More merge from coreutils.
31177
31178         * m4/utimens.m4, m4/utimecmp.m4: New files.
31179         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
31180         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
31181         prereq.m4, sha.m4: Import changes from coreutils.
31182
31183 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31184
31185         More merge from coreutils.
31186         * modules/raise, modules/readtokens0, modules/utimens:
31187         * modules/utimecmp, module/xnanosleep: New files.
31188         * modules/strftime: Add lib/strftime.h.
31189         Change include from <time.h> to "strftime.h".
31190         * modules/yesno: Add lib/yesno.h.
31191         * modules/backupfile: Remove lib/addext.c.
31192         * modules/euidaccess: Add stat-macros.h.
31193         * modules/canonicalize, modules/euidaccess,
31194         modules/filemode, modules/lchown, modules/makepath,
31195         modules/rmdir, modules/stat: Likewise.
31196
31197 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31198
31199         Merge from tar.
31200         * lib/argp-help.c (make_hol, hol_append): Don't assume that
31201         SIZE_MAX is a valid preprocessor constant.
31202         (__argp_basename): Change from "#ifndef _LIBC"
31203         to "#ifndef __argp_short_program_name", so that
31204         we don't compile these functions for tar.
31205
31206         More merges from coreutils.
31207         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
31208         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
31209         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
31210         * lib/addext.c: Remove; no longer needed.
31211         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
31212         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
31213         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
31214         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
31215         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
31216         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
31217         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
31218         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
31219         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
31220         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
31221         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
31222         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
31223         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
31224         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
31225         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
31226         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
31227         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
31228         Import changes from coreutils.
31229
31230 2004-08-05  Simon Josefsson  <jas@extundo.com>
31231
31232         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
31233
31234 2004-08-05  Simon Josefsson  <jas@extundo.com>
31235
31236         * m4/getsubopt.m4: New file.
31237
31238 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31239
31240         Merge from coreutils.
31241
31242         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
31243         * m4/getcwd-path-max.m4: New files.
31244
31245         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
31246         FILESYSTEM_PREFIX_LEN ->
31247         FILE_SYSTEM_PREFIX_LEN.
31248         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
31249         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
31250         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
31251         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
31252
31253         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
31254         prerequisite modules now handle the DOS stuff.
31255         Don't check for unistd.h.
31256
31257 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31258
31259         Merge from coreutils.
31260
31261         * lib/.gdb-history: Remove; this doesn't belong here.
31262
31263         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
31264         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
31265         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
31266         * lib/getcwd.c: New files.
31267
31268         * lib/dirname.h: Include <stdbool.h>.
31269         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
31270         for consistency with POSIX terminology.  All uses changed.
31271         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
31272         (strip_trailing_slashes): Use bool for booleans.
31273         * lib/stripslash.c (strip_trailing_slashes): Likewise.
31274
31275         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
31276         sometimes returns a positive errno value even when it succeeds.
31277         (print_errno_message) [!LIBC]: Fall back on strerror if
31278         __strerror_r fails.
31279
31280         * lib/path-concat.c (mempcpy): Don't define if a system header defines
31281         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
31282         (longest_relative_suffix): New function.
31283         (path_concat): Use it.  Assume first argument is not NULL.
31284         Port to DOS.  Omit redundant separators.
31285         Report an error instead of returning NULL.
31286         Use mempcpy instead of memcpy.
31287         (xpath_concat): Remove: not declared or used.
31288
31289         * lib/same.h: Include <stdbool.h>
31290         (same_name): Return bool, not int.
31291         * lib/same.c (same_name): Likewise.
31292         (errno): Don't declare; we assume C89 or better now.
31293
31294         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
31295         if not already defined.
31296
31297         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
31298         * lib/dup-safer.c (errno): Likewise.
31299
31300 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31301
31302         Merge from coreutils.
31303         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
31304         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
31305         * modules/path-concat: Don't depend on strdup.
31306
31307 2004-08-03  Simon Josefsson  <jas@extundo.com>
31308
31309         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
31310         * lib/progname.h: Don't include stdbool.h.
31311
31312 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
31313
31314         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
31315         * MODULES.html.sh (func_all_modules): Remove fatal.
31316
31317 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
31318
31319         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
31320
31321 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
31322
31323         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
31324         working.
31325
31326 2004-08-02  Simon Josefsson  <jas@extundo.com>
31327
31328         * lib/getsubopt.h: New file, with comments from Bruno Haible.
31329         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
31330         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
31331
31332 2004-08-01  Simon Josefsson  <jas@extundo.com>
31333
31334         * lib/xgetdomainname.c: Include stdlib.h, for free().
31335
31336 2004-07-19  Bruno Haible  <bruno@clisp.org>
31337
31338         * MODULES.html.sh (func_all_modules): Add dummy.
31339
31340 2004-07-16  Simon Josefsson  <jas@extundo.com>
31341
31342         * modules/dummy: New file.
31343
31344 2004-07-16  Simon Josefsson  <jas@extundo.com>
31345
31346         * lib/dummy.c: New file.
31347
31348 2004-07-16  Bruno Haible  <bruno@clisp.org>
31349
31350         * lib/backupfile.h: Add extern "C" for C++.
31351         * lib/closeout.h: Likewise.
31352         * lib/copy-file.h: Likewise.
31353         * lib/findprog.h: Likewise.
31354         * lib/full-write.h: Likewise.
31355         * lib/pathname.h: Likewise.
31356         * lib/progname.h: Likewise.
31357         * lib/stpcpy.h: Likewise.
31358         * lib/stpncpy.h: Likewise.
31359         * lib/strcase.h: Likewise.
31360         * lib/strstr.h: Likewise.
31361         * lib/xalloc.h: Likewise.
31362
31363         * lib/mbswidth.h: Add extern "C" for C++.
31364         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
31365
31366 2004-07-13  Robert Millan  <robertmh@gnu.org>
31367
31368         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
31369
31370 2004-07-09  Simon Josefsson  <jas@extundo.com>
31371
31372         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
31373         failed without this.)
31374
31375 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31376
31377         * modules/chown (Files): Add lib/fchown-stub.c, since
31378         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
31379
31380 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31381
31382         * lib/fchown-stub.c: New file.
31383
31384 2004-06-24  Jim Meyering  <jim@meyering.net>
31385
31386         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
31387
31388 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31389
31390         * modules/argz: Omit "#include".
31391
31392         * MODULES.html.sh (func_all_modules): Add calloc, to match
31393         2004-06-01 addition of calloc module.
31394
31395 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31396
31397         * m4/argz.m4: New file, which is autoupdated from libtool.
31398
31399 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31400
31401         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
31402         libtool.
31403
31404 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31405
31406         * config/srclist-update: Don't insist on "USA." before the
31407         close-comment, as libtool omits the period and puts the */ on a
31408         separate line.
31409         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
31410         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
31411
31412 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
31413
31414         * modules/argz: New file.
31415         * MODULES.html.sh (func_all_modules): Add argz.
31416
31417 2004-06-12  Jim Meyering  <jim@meyering.net>
31418         and  Paul Eggert  <eggert@cs.ucla.edu>
31419
31420         * modules/hash (Files): Add lib/xalloc.h.
31421         * modules/pipe (Depends-on): Add wait-process.
31422         * modules/stat (Depends-on): Add xalloc.
31423         * modules/userspec (Files): Add lib/userspec.h.
31424         * modules/xstrto
31425
31426         Upgrade from gettext-0.13.
31427         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
31428         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
31429         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
31430
31431 2004-06-10  Jim Meyering  <jim@meyering.net>
31432
31433         * lib/calloc.c: New file.
31434
31435 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
31436
31437         * lib/getdate.y (yylex): Allow space between sign and number.
31438         Problem reported by Dan Jacobson.
31439
31440 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
31441
31442         Merge from coreutils CVS.
31443
31444         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
31445         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
31446         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
31447         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
31448         xstrtol.m4: Fix copyright date and/or serial number.
31449
31450         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
31451         See if we need an fchown replacement.
31452         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
31453         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
31454         and use the replacement function if we detect either defect.
31455
31456         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
31457         gl_UTIMECMP.
31458
31459 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
31460         and  Jim Meyering  <jim@meyering.net>
31461
31462         Merge from coreutils CVS.
31463
31464         * lib/stat-macros.h: New file, with contents from file-type.h
31465         and coreutils' system.h.
31466         * lib/file-type.c: Include "stat-macros.h".
31467         * lib/file-type.h (file_type): Move all macro definitions to new file,
31468         stat-macros.h.
31469
31470         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
31471         Wrap old code with this conditional.
31472         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
31473         function that does not dereference symlinks.
31474         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
31475
31476         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
31477         dependency problems.
31478         (xreadlink): Accept new arg SIZE, for efficiency.
31479         All decls and uses changed.
31480         * lib/xreadlink.h: Include <stddef.h>, for size_t.
31481
31482         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
31483         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
31484
31485         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
31486         sysexits.h.
31487
31488 2004-06-01  Jim Meyering  <jim@meyering.net>
31489
31490         * m4/calloc.m4: New file.
31491
31492 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
31493
31494         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
31495         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
31496         Also, fix a typo in a diagnostic.
31497
31498 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
31499
31500         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
31501         or AC_FUNC_REALLOC.
31502
31503 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
31504
31505         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
31506         macros to be defined.
31507         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
31508         the allocator returns NULL because the requested size is zero.
31509
31510 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31511
31512         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
31513         var.  Add comment explaining why libc still defines it.  This
31514         merges the following patch from glibc:
31515         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
31516
31517 2004-05-20  Andreas Schwab  <schwab@suse.de>
31518
31519         * m4/free.m4: Replace free if it not known to work, not the other
31520         way round.
31521
31522 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31523
31524         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
31525         present in glibc since revision 1.1 of this file.
31526         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
31527         obstack_alignment_mask, obstack_alloc, obstack_base,
31528         obstack_blank, obstack_blank_fast, obstack_chunk_size,
31529         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
31530         obstack_grow0, obstack_init, obstack_int_grow,
31531         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
31532         obstack_next_free, obstack_object_size, obstack_ptr_grow,
31533         obstack_ptr_grow_fast, obstack_room): Remove declarations of
31534         nonexistent functions.
31535
31536 2004-05-18  Karl Berry  <karl@gnu.org>
31537
31538         * config/srclist.txt: break link for vasnprintf.c.
31539
31540 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31541
31542         Port obstack to the AS/400, where pointers are 16 bytes wide and
31543         you cannot cast an integer to a valid pointer.  This patch is
31544         currently waiting to be integrated into glibc; see
31545         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
31546
31547         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
31548         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
31549         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
31550         (struct obstack): temp member is now a union of a pointer and
31551         an integer, instead of an integer.  All integer uses changed.
31552         This does not affect the physical layout of struct obstack,
31553         except on hosts (like the AS/400) where the size or alignment of
31554         void * is greater than that of ptrdiff_t.
31555         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
31556         __STDC__)]: Store temporary in pointer member of union, not
31557         integer member.
31558         * lib/obstack.c: Include <stddef.h>, for offsetof.
31559         (struct fooalign): Remove; it doesn't need a name.
31560         (union fooround): Change double to long double, and add void *.
31561         (DEFAULT_ALIGNMENT): Use offsetof to compute.
31562         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
31563         not a macro.  Hence the values are always int; so remove all
31564         casts-to-int in uses.
31565
31566 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31567
31568         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
31569         we can get this patch merged into glibc.
31570
31571 2004-05-17  Derek R. Price  <derek@ximbiot.com>
31572             Paul Eggert  <eggert@cs.ucla.edu>
31573
31574         * m4/argp: Depend on alloca.
31575
31576 2004-05-17  Derek R. Price  <derek@ximbiot.com>
31577             Paul Eggert  <eggert@cs.ucla.edu>
31578
31579         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
31580         freecoding.
31581
31582 2004-05-17  Bruno Haible  <bruno@clisp.org>
31583
31584         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
31585         precision that consists of a '.' followed by an empty digit string.
31586         Patch by Tor Lillqvist <tml@iki.fi>.
31587
31588 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31589
31590         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
31591         for backward compatibility with older code.  We need our own
31592         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
31593         it under some other name, and our alloca.h will define it.
31594
31595 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31596             Derek Price  <derek@ximbiot.com>
31597
31598         * lib/alloca.c: Include <alloca.h>, to get our interface.
31599         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
31600         include <alloca.h> first.  Use C89 prototype for alloca; this
31601         requires including <stddef.h> for size_t.  Use extern "C" if C++.
31602         Use #elif for simplicity, since we can assume C89 now.
31603         Don't try to source the system alloca.h since it will not be found
31604         and to prevent recursively including its replacement.
31605         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
31606         * lib/regex.c: Likewise.
31607
31608 2004-05-16  Derek Price  <derek@ximbiot.com>
31609             Paul Eggert  <eggert@cs.ucla.edu>
31610
31611         getline cleanup.  This changes the getndelim2 API: both order of
31612         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
31613         no delimiter).
31614
31615         * lib/getline.c: Don't include stddef.h or stdio.h, since our
31616         interface does that.
31617         (getline): Always use getdelim, so that we don't have two
31618         copies of this code.
31619         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
31620         if available.
31621         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
31622         (GETNDELIM2_MAXIMUM): New macro.
31623         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
31624         instead of the old practice of delim2==0.  All callers changed.
31625         Return -1 on overflow, instead of returning junk.
31626         Do not set *linesize unless allocation succeeds.
31627         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
31628         that we include sys/types.h.
31629         * lib/getnline.h: Likewise.
31630         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
31631         (getndelim2): Reorder arguments.
31632         * lib/getnline.c (getnline, getndelim):
31633         Don't discard the NMAX argument.
31634         (getnline): Invoke getndelim, to avoid code duplication.
31635         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
31636         of (size_t) -1 by callers of the getnline family.
31637
31638 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31639
31640         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
31641         Check for gettimeofday.
31642         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
31643         Check for settimeofday, stime.
31644
31645 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31646
31647         * lib/nanosleep.c (suspended): Change its type from int to
31648         sig_atomic_t volatile.
31649         (first_call): Make it private to rpl_nanosleep, and have it
31650         be zero initially as that's a bit faster.
31651         (my_usleep): Round up fractional times instead of truncating them,
31652         as this is the usual meaning for 'sleep'.
31653
31654         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
31655         doesn't work.
31656         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
31657         (ENOSYS): Define if not defined.
31658         (settime): Fall back on stime if it exists and settimeofday fails.
31659         But don't bother with fallbacks if a method fails with errno == EPERM.
31660
31661 2004-05-11  Jim Meyering  <jim@meyering.net>
31662
31663         Prior to this change, the save_cwd caller required read access to the
31664         current directory on most systems (ones with the fchdir function).
31665
31666         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
31667         fails, try write-only, and finally, resort to using xgetcwd.
31668
31669 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31670
31671         * lib/obstack.c, obstack.h: Import changes from libc.
31672
31673 2004-04-28  Bruno Haible  <bruno@clisp.org>
31674
31675         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
31676         also implicitly appends .exe to executables.
31677         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
31678         accepts Windows pathnames.
31679         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31680         Treat Cygwin like Windows, since it now accepts Windows pathnames.
31681         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31682         Treat Cygwin like Windows, since it now accepts Windows pathnames.
31683         Reported by Derek Robert Price <derek@ximbiot.com>.
31684
31685 2004-04-21  Karl Berry  <karl@gnu.org>
31686
31687         * config/srclist.txt (localcharset.c): break sync.
31688
31689 2004-04-20  Paul Eggert  <eggert@twinsun.com>
31690
31691         * m4/host-os.m4: Add a copyright notice.
31692
31693 2004-04-20  Jim Meyering  <jim@meyering.net>
31694
31695         Change UTILS_ to gl_ in AC_DEFINE'd names.
31696         Change utils_- and jm_-prefixed variables, too.
31697         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
31698         UTILS_FUNC_MKDIR_TRAILING_SLASH.
31699         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
31700
31701         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
31702         Don't emit trailing blanks.
31703         Also rename jm_-prefixed variables to have gl_ prefix.
31704
31705         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
31706         Also rename jm_-prefixed variables to have gl_ prefix.
31707
31708         * m4/jm-macros.m4: Reflect the renamings.
31709         * m4/prereq.m4: Likewise.
31710
31711 2004-04-20  Jim Meyering  <jim@meyering.net>
31712
31713         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
31714         memory.
31715
31716 2004-04-20  Jim Meyering  <jim@meyering.net>
31717             Bruno Haible  <bruno@clisp.org>
31718
31719         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
31720         memory when realloc fails.
31721
31722 2004-04-19  Jim Meyering  <jim@meyering.net>
31723
31724         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
31725         now that readutmp.c may call `free (0)'.
31726
31727 2004-04-19  Bruno Haible  <bruno@clisp.org>
31728
31729         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
31730         * m4/inttypes_h.m4: Likewise.
31731         * m4/stdint_h.m4: Likewise.
31732         * m4/intmax_t.m4: Likewise.
31733         * m4/uintmax_t.m4: Likewise.
31734
31735 2004-04-18  Jim Meyering  <jim@meyering.net>
31736
31737         * m4/prereq.m4: Don't forbid jm_ prefix.
31738
31739         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
31740         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
31741         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
31742         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
31743         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
31744         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
31745         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
31746         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
31747         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
31748         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
31749         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
31750         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
31751         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
31752         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
31753         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
31754         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
31755         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
31756         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
31757         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
31758
31759 2004-04-18  Jim Meyering  <jim@meyering.net>
31760
31761         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
31762         failure, don't leak memory and do call END_UTMP_ENT.
31763
31764 2004-04-16  Jim Meyering  <jim@meyering.net>
31765
31766         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
31767         coreutils' stat program.
31768         (gl_PREREQ): Don't require jm_PREREQ_STAT.
31769
31770 2004-04-11  Paul Eggert  <eggert@twinsun.com>
31771
31772         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
31773         C89.
31774         (CHAR_BIT): Remove, since we assume C89.
31775         Include <stdint.h> if available, as per current Autoconf CVS advice.
31776
31777 2004-03-31  Jim Meyering  <jim@meyering.net>
31778
31779         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
31780         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
31781         * m4/xalloc.m4: Likewise.
31782
31783 2004-03-30  Paul Eggert  <eggert@twinsun.com>
31784
31785         Merge from coreutils.
31786
31787         * m4/inttostr.m4: New file.
31788         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
31789         Require AM_STDBOOL_H and gl_TIMESPEC instead.
31790         Require gl_CLOCK_TIME.
31791         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
31792
31793 2004-03-30  Paul Eggert  <eggert@twinsun.com>
31794
31795         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
31796         not bool, to be more consistent with Unix conventions.
31797         Suggested by Bruno Haible.
31798
31799         Merge from coreutils.
31800
31801         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
31802         * lib/umaxtostr.c: New files.
31803
31804         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
31805         the usual <time.h> dance.
31806         (get_date): Change signature to support fractional time stamps.
31807         All callers changed.
31808         * lib/getdate.y: Include "getdate.h" first, as we can now
31809         assume C89 and don't need to worry about 'const'.
31810         Similarly, include "unlocked-io.h" near start, not in middle.
31811         Include <limits.h>.
31812         (textint.value): Use long int rather than int.
31813         (textint.digits): Use size_t rather than int.
31814         (BILLION, LOG10_BILLION): New constants.
31815         (parser_control): New member rel_ns.  Members day_ordinal,
31816         time_zone, month, day, hour, minutes, rel_year, rel_month,
31817         rel_day, rel_hour, rel_minutes, rel_seconds
31818         are now long int, not int.  Member seconds is now struct timespec,
31819         not int.  New member timespec_seen.  Members dates_seen, days_seen,
31820         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
31821         not int.
31822         (%union.intval): Now long int, not int.
31823         New member timespec.
31824         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
31825         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
31826         (spec): Now is a timespec or an item list.
31827         (timespec, items): New nonterminals.
31828         (time, rel, relunit, number, get_date):
31829         Add support for fractional seconds.
31830         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
31831         (gmtime, localtime, mktime): Remove decls; not needed with C89.
31832         (to_hour): First arg is now long int, not int.
31833         (to_year): Returns long int, not int.
31834         Don't treat year -70 like 70.
31835         (tm_diff): Returns long int, not int.
31836         (lookup_word): Use bool instead of int when appropriate.
31837         (yylex): Use size_t for count, not int.
31838         Detect overflow when parsing large integer constants.
31839         Add support for fractions.
31840         (get_date): Make pointers 'const' if possible.
31841         Use more-portable code to detect integer overflow.
31842         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
31843         Don't use ctime; it's not reliable if the year has >4 digits.
31844
31845         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
31846         This is for compatibility with BSD.
31847
31848         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
31849         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
31850         From coreutils' system.h.
31851
31852         * lib/userspec.c: Don't include "posixver.h".
31853         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
31854         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
31855         compatible extension.  Simplify code by removing a boolean int
31856         that was always nonzero if a string was nonnull.
31857
31858 2004-03-30  Jim Meyering  <jim@meyering.net>
31859
31860         Merge from coreutils.
31861
31862         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
31863         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
31864         on some systems one must include <grp.h> before it.
31865         Reported by Christian Krackowizer.
31866
31867 2004-03-30  Jim Meyering  <jim@meyering.net>
31868
31869         Merge from coreutils.
31870
31871         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
31872
31873         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
31874         an empty input stream.
31875
31876         * lib/readtokens.c: Include <stdbool.h>.
31877         (readtoken): Use `size_t' rather than int/long.
31878         All callers adjusted.
31879         Use `bool' rather than `int' where appropriate.
31880         Use memset rather than an explicit loop.
31881         Use x2nrealloc rather than xrealloc.
31882         Allow the use of `\0' as a delimiter.
31883         (readtokens): Likewise.
31884         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
31885
31886 2004-03-30  Jim Meyering  <jim@meyering.net>
31887
31888         * m4/realloc.m4: Remove file, since now it does no more than
31889         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
31890         the `configure.ac' section of module/realloc.
31891         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
31892
31893 2004-03-30  Bruno Haible  <bruno@clisp.org>
31894
31895         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
31896         nonnull.
31897
31898 2004-03-29  Paul Eggert  <eggert@twinsun.com>
31899
31900         Merge changes to getloadavg.c from coreutils and Emacs.
31901
31902         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
31903         Define to an expression, not to the empty string.
31904         Include cloexec.h and xalloc.h.
31905         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
31906         Use set_cloexec_flag rather than rolling our own.
31907         * lib/cloexec.c, lib/cloexec.h: New files.
31908
31909 2004-03-29  Paul Eggert  <eggert@twinsun.com>
31910
31911         * m4/cloexec.m4: New file.
31912
31913 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31914
31915         * lib/getopt.h: Sync with libc CVS.
31916
31917 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31918             Bruno Haible  <bruno@clisp.org>
31919
31920         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
31921         mbswidth.
31922
31923 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31924             Bruno Haible  <bruno@clisp.org>
31925
31926         * lib/mbswidth.h: Include <wchar.h> only if
31927         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
31928         <wchar.h>.
31929         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
31930
31931 2004-03-09  Paul Eggert  <eggert@twinsun.com>
31932
31933         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
31934         Sync with libc CVS.
31935         * lib/getopt_int.h: New file, also synced from libc.
31936
31937 2004-03-09  Paul Eggert  <eggert@twinsun.com>
31938
31939         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
31940         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
31941         Bring back getopt.c, getopt.h, getopt1.c.
31942
31943 2004-03-07  Paul Eggert  <eggert@twinsun.com>
31944
31945         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
31946         All uses changed.  Check for sa_sigaction member; this fixes
31947         a bug first reported by Jason Andrade in
31948         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
31949
31950 2004-03-07  Paul Eggert  <eggert@twinsun.com>
31951
31952         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
31953         '#if' expressions.  Unlike the code it replaces, it does not
31954         depend on (defined _SC_PAGESIZE).  However, it does depend on
31955         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
31956         first reported by Jason Andrade in
31957         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
31958
31959 2004-02-25  Simon Josefsson  <jas@extundo.com>
31960
31961         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
31962
31963 2004-02-25  Simon Josefsson  <jas@extundo.com>
31964
31965         * lib/strdup.h: New file.
31966         * lib/strdup.c: Include it.
31967         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
31968         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
31969
31970 2004-02-23  Karl Berry  <karl@gnu.org>
31971
31972         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
31973         (from fencepost.gnu.org:/gd/gnuorg).
31974
31975 2004-02-23  Karl Berry  <karl@gnu.org>
31976
31977         * config/srclistvars.sh (GNUORG) [karl]: redefine.
31978         * config/srclist.txt: add maintain/standards documents.
31979
31980 2004-02-18  Bruno Haible  <bruno@clisp.org>
31981
31982         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
31983         Reported by Derek Robert Price <derek@ximbiot.com>.
31984
31985 2004-02-16  Karl Berry  <karl@gnu.org>
31986
31987         * config/mkinstalldirs, install-sh: update from automake.
31988
31989 2004-02-06  Karl Berry  <karl@gnu.org>
31990
31991         * m4/po.m4: update from gettext 0.14.1.
31992
31993 2004-02-06  Karl Berry  <karl@gnu.org>
31994
31995         * lib/config.charset: update from gettext 0.14.1.
31996
31997 2004-02-05  Paul Eggert  <eggert@twinsun.com>
31998
31999         Add comments and code, prompted by suggestions from Bruno Haible
32000         for sh-quote.
32001         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
32002         describing the enum quoting_style values.
32003         * lib/quotearg.c (quotearg_alloc): New function.
32004         (quotearg_buffer_restyled): Treat lone { and } as special.
32005         Treat = as special.  Work around bug with older shells
32006         that "see" a '\' that is really the 2nd byte of a multibyte char.
32007         Quote empty string with shell_quoting_style.
32008
32009 2004-02-03  Bruno Haible  <bruno@clisp.org>
32010
32011         * m4/pipe.m4: New file, from GNU gettext.
32012
32013 2004-02-03  Bruno Haible  <bruno@clisp.org>
32014
32015         * lib/pipe.h: New file, from GNU gettext.
32016         * lib/pipe.c: New file, from GNU gettext.
32017
32018 2004-01-27  Bruno Haible  <bruno@clisp.org>
32019
32020         * m4/execute.m4: New file, from GNU gettext.
32021
32022 2004-01-27  Bruno Haible  <bruno@clisp.org>
32023
32024         * lib/execute.h: New file, from GNU gettext.
32025         * lib/execute.c: New file, from GNU gettext.
32026         * lib/w32spawn.h: New file, from GNU gettext.
32027
32028 2004-01-24  Paul Eggert  <eggert@twinsun.com>
32029
32030         Merge from diffutils.
32031
32032         * lib/file-type.c (file_type): Add typed memory objects.
32033         * lib/file-type.h (S_TYPEISTMO): New macro.
32034
32035         * lib/c-stack.h (c_stack_action): Remove argv argument.
32036         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
32037         (die): Don't calculate message unless segv_action returns.
32038         (get_stack_location, min_address_from_argv, max_address_from_argv,
32039         volatile stack_base, volatile_stack_size): Remove.
32040         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
32041         that every segmentation violation is a stack overflow.  (Ouch!)
32042         See Debian bug 136249 (still outstanding) for more info about why
32043         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
32044
32045 2004-01-24  Paul Eggert  <eggert@twinsun.com>
32046
32047         Exit-status fix from coreutils.
32048
32049         Use exit_failure consistently in place of EXIT_FAILURE,
32050         so that program exit statuses are consistent on failure.
32051
32052         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
32053         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
32054         * lib/argmatch.h: Comment fix to match the above.
32055         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
32056         Now a macro referring to exit_failure, instead of a separate
32057         variable.  Include "exitfail.h" to get it.
32058         * lib/xstrtol.h: Include "exitfail.h".
32059         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
32060
32061         * lib/long-options.c (parse_long_options): Use prototype
32062         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
32063         for clarity.
32064
32065 2004-01-21  Jim Meyering  <jim@meyering.net>
32066
32067         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
32068         so as not to conflict with a different-sized __mktime_internal
32069         function in GNU libc.
32070         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
32071         Problem building statically-linked `ls' reported by Michael Brunnbauer.
32072
32073 2004-01-20  Karl Berry  <karl@gnu.org>
32074
32075         * config/config.guess: update from config.
32076
32077         * config/srclistvars.sh: GNUWWWLICENSES for karl.
32078
32079 2004-01-20  Bruno Haible  <bruno@clisp.org>
32080
32081         Safer stack allocation.
32082         * lib/setenv.c: Include allocsa.h.
32083         (alloca): Remove fallback definition.
32084         (freea): Remove macro.
32085         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
32086         instead of freea.
32087
32088 2004-01-20  Bruno Haible  <bruno@clisp.org>
32089
32090         * m4/eealloc.m4: New file, from GNU gettext.
32091
32092 2004-01-20  Bruno Haible  <bruno@clisp.org>
32093
32094         * m4/allocsa.m4: New file, from GNU gettext.
32095
32096 2004-01-20  Bruno Haible  <bruno@clisp.org>
32097
32098         * lib/xallocsa.h: New file, from GNU gettext.
32099         * lib/xallocsa.c: New file, from GNU gettext.
32100
32101 2004-01-20  Bruno Haible  <bruno@clisp.org>
32102
32103         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
32104
32105 2004-01-20  Bruno Haible  <bruno@clisp.org>
32106
32107         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
32108         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
32109         specially.
32110
32111 2004-01-20  Bruno Haible  <bruno@clisp.org>
32112
32113         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
32114         patch.
32115
32116 2004-01-20  Bruno Haible  <bruno@clisp.org>
32117
32118         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
32119
32120 2004-01-20  Bruno Haible  <bruno@clisp.org>
32121
32122         * lib/eealloc.h: New file.
32123
32124 2004-01-20  Bruno Haible  <bruno@clisp.org>
32125
32126         * lib/binary-io.h: Avoid warnings on Cygwin.
32127
32128 2004-01-20  Bruno Haible  <bruno@clisp.org>
32129
32130         * lib/allocsa.h: New file, from GNU gettext.
32131         * lib/allocsa.c: New file, from GNU gettext.
32132
32133 2004-01-18  Karl Berry  <karl@gnu.org>
32134
32135         * doc/gpl.texi, doc/lgpl.texi: new files.
32136
32137 2004-01-18  Karl Berry  <karl@gnu.org>
32138
32139         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
32140         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
32141
32142 2004-01-15  Paul Eggert  <eggert@twinsun.com>
32143
32144         Merge from coreutils.
32145
32146         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
32147         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
32148         (gl_DEFAULT_POSIX2_VERSION): Move
32149         the documentation from 'configure' into 'config.hin',
32150         so that 'configure --help' isn't burdened by it and
32151         we don't have to worry about its formatting there.
32152         Reword the documentation so that it's more succinct
32153         and can be run together into a single paragraph.
32154         * m4/same.m4 (gl_SAME): Check for pathconf.
32155
32156 2004-01-15  Paul Eggert  <eggert@twinsun.com>
32157
32158         Merge from coreutils.
32159
32160         * lib/posixver.c: Include posixver.h.
32161
32162         * lib/same.c: Include <stdbool.h>, <limits.h>.
32163         (_POSIX_NAME_MAX): Define if not defined.
32164         (MIN): New macro.
32165         (same_name): If file names are silently truncated, report
32166         that the file names are the same if they are the same after
32167         the silent truncation.
32168
32169         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
32170         conversion function.
32171         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
32172         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
32173         longer needed.
32174
32175 2004-01-15  Jim Meyering  <jim@meyering.net>
32176
32177         Merge from coreutils.
32178
32179         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
32180         if no library is required.
32181         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
32182         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
32183         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
32184         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
32185         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
32186         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
32187         value, $ac_cv_search_crypt, if it's "none required".
32188         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
32189         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
32190         not gl_FUNC_GETLOADAVG.
32191         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
32192         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
32193
32194 2004-01-15  Jim Meyering  <jim@meyering.net>
32195
32196         Merge from coreutils.
32197
32198         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
32199         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
32200         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
32201
32202         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
32203         optional configure-time default.
32204
32205         * lib/version-etc.c (version_etc_copyright): Update copyright date.
32206
32207         * lib/xreadlink.c (xreadlink): Correct outdated comment.
32208
32209 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
32210
32211         Merge from coreutils.
32212
32213         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
32214         value, $ac_cv_search_nanosleep, if it's "none required".
32215
32216 2004-01-14  Paul Eggert  <eggert@twinsun.com>
32217
32218         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
32219         with like-named macro in fnmatch.c.
32220         (EXT): Use an internal constant instead.
32221
32222         Merge fnmatch patches from glibc.
32223         * lib/fnmatch.c (mbsinit): Remove define.
32224         Add libc_hidden_ver (__fnmatch, fnmatch).
32225         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
32226         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
32227
32228 2004-01-14  Karl Berry  <karl@gnu.org>
32229
32230         * config/install-sh: update from automake.
32231
32232 2004-01-13  Karl Berry  <karl@gnu.org>
32233
32234         * config/install-sh: update from automake.
32235
32236 2004-01-09  Karl Berry  <karl@gnu.org>
32237
32238         * config/install-sh: update from automake.
32239
32240 2004-01-05  Karl Berry  <karl@gnu.org>
32241
32242         * config/config.{sub,guess}: update from config.
32243
32244 2003-12-31  Karl Berry  <karl@gnu.org>
32245
32246         * config/depcomp: update from automake.
32247
32248 2003-12-14  Karl Berry  <karl@gnu.org>
32249
32250         * lib/config.charset: update from gettext-runtime.
32251
32252 2003-12-03  Paul Eggert  <eggert@twinsun.com>
32253
32254         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
32255         Bug reported by Alfred M. Szmidt.
32256
32257 2003-12-03  Bruno Haible  <bruno@clisp.org>
32258
32259         * m4/gettext.m4: Upgrade from gettext-0.13.
32260         * m4/po.m4: Upgrade from gettext-0.13.
32261         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
32262         * m4/intmax.m4: New file, from gettext-0.13.
32263         * m4/printf-posix.m4: New file, from gettext-0.13.
32264
32265 2003-11-29  Karl Berry  <karl@gnu.org>
32266
32267         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
32268
32269 2003-11-25  Paul Eggert  <eggert@twinsun.com>
32270             Bruno Haible  <bruno@clisp.org>
32271
32272         * lib/printf-parse.h: Don't include sys/types.h.
32273         (ARG_NONE): New macro.
32274         (char_directive): Change type of *arg_index fields to size_t.
32275         * lib/printf-parse.c: Don't include sys/types.h.
32276         (SSIZE_MAX): Remove macro.
32277         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
32278         Remove unnecessary overflow check.
32279         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
32280         fields.
32281
32282 2003-11-25  Bruno Haible  <bruno@clisp.org>
32283
32284         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
32285
32286 2003-11-25  Bruno Haible  <bruno@clisp.org>
32287
32288         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
32289         gt_TYPE_SSIZE_T.
32290
32291 2003-11-24  Paul Eggert  <eggert@twinsun.com>
32292
32293         * modules/alloca: Remove dependency on xalloc.
32294
32295 2003-11-24  Paul Eggert  <eggert@twinsun.com>
32296
32297         * lib/alloca.c: Remove dependency on xalloc module.
32298         (xalloc_die): Remove.
32299         (memory_full) [!defined emacs]: New macro.
32300         [!defined emacs]: Don't include xalloc.h.
32301         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
32302         address arithmetic overflows.  Change datatypes a bit to avoid
32303         unnecessary casts.
32304
32305 2003-11-22  Jim Meyering  <jim@meyering.net>
32306
32307         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
32308         s/size/size_t/.
32309
32310 2003-11-21  Karl Berry  <karl@gnu.org>
32311
32312         * config/config.{sub,guess}: update from config.
32313
32314 2003-11-18  Karl Berry  <karl@gnu.org>
32315
32316         * config/config.{sub,guess}: update from config.
32317
32318         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
32319
32320 2003-11-17  Paul Eggert  <eggert@twinsun.com>
32321
32322         * README: Mention that S+T cannot overflow if S is the size of
32323         an existing object and T is sufficiently small.
32324
32325 2003-11-17  Jim Meyering  <jim@meyering.net>
32326
32327         On systems without utime and without a utimes function capable of
32328         dealing with a NULL struct utimbuf* argument, this utime replacement
32329         could -- in unusual circumstances -- leak a file descriptor.
32330         * lib/utime.c: Include <unistd.h> and <errno.h>.
32331         (utime_null): Be sure to close `fd' and to preserve errno.
32332         Reported by Geoff Collyer via Arnold Robbins.
32333
32334 2003-11-17  Bruno Haible  <bruno@clisp.org>
32335
32336         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
32337         (Depends-on): Add xsize.
32338
32339 2003-11-17  Bruno Haible  <bruno@clisp.org>
32340
32341         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
32342
32343 2003-11-17  Bruno Haible  <bruno@clisp.org>
32344
32345         * lib/vasnprintf.c (alloca): Remove fallback definition.
32346         (freea): Remove definition.
32347         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
32348         Reported by Paul Eggert.
32349
32350 2003-11-16  Paul Eggert  <eggert@twinsun.com>
32351             Bruno Haible  <bruno@clisp.org>
32352
32353         Protect against address arithmetic overflow.
32354         * lib/printf-args.h: Include stddef.h.
32355         (arguments): Change type of field 'count' to size_t.
32356         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
32357         'unsigned int' where appropriate.
32358         * lib/printf-parse.h: Include sys/types.h.
32359         (char_directive): Change type of *arg_index fields to ssize_t.
32360         (char_directives): Change type of fields 'count', max_*_length to
32361         size_t.
32362         * lib/printf-parse.c: Include sys/types.h and xsize.h.
32363         (SSIZE_MAX): Define fallback value.
32364         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
32365         instead of 'int' where appropriate. Check a_allocated, d_allocated
32366         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
32367         * lib/vasnprintf.c: Include xsize.h.
32368         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
32369         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
32370         overflow. Avoid wraparound when converting a width or precision from
32371         decimal to binary.
32372
32373 2003-11-16  Bruno Haible  <bruno@clisp.org>
32374
32375         Update from GNU gettext.
32376         * lib/printf-parse.c: Generalize to it can be compiled for wide
32377         strings.
32378         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
32379         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
32380         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
32381         SNPRINTF): New macros.
32382         Don't include <alloca.h> if the file is used inside libintl.
32383         (local_wcslen): New function, for Solaris 2.5.1.
32384         (VASNPRINTF): Use it instead of wcslen.
32385
32386 2003-11-16  Bruno Haible  <bruno@clisp.org>
32387
32388         * lib/xsize.h (xmax): New function.
32389         (xsum, xsum3, xsum4): Declare as "pure" functions.
32390
32391 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32392
32393         * modules/xalloc (Files): Undo latest change, since xalloc.h
32394         no longer needs SIZE_MAX or PTRDIFF_MAX.
32395
32396 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32397
32398         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
32399         gl_PTRDIFF_MAX.
32400
32401 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32402
32403         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
32404         "return", to pacify some unknown compiler.  Problem reported
32405         by Joerg Schilling.
32406
32407 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32408
32409         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
32410         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
32411         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
32412         heuristic is just as accurate as far as we know, and it removes a
32413         dependency on size_max.m4 and ptrdiff_max.m4.
32414
32415 2003-11-11  Bruno Haible  <bruno@clisp.org>
32416
32417         * modules/xsize (Files): Add m4/size_max.m4.
32418         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
32419
32420 2003-11-11  Bruno Haible  <bruno@clisp.org>
32421
32422         * m4/size_max.m4: New file.
32423         * m4/ptrdiff_max.m4: New file.
32424         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
32425         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
32426         (gl_XALLOC): Invoke it.
32427
32428 2003-11-11  Bruno Haible  <bruno@clisp.org>
32429
32430         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
32431         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
32432         defined.
32433
32434 2003-11-10  Paul Eggert  <eggert@twinsun.com>
32435
32436         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
32437         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
32438         rejected some allocations of exactly SIZE_MAX - 2 bytes.
32439         From Bruno Haible.
32440         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
32441         not (size_t) -1, since it's defined here.
32442
32443 2003-11-09  Karl Berry  <karl@gnu.org>
32444
32445         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
32446
32447 2003-11-06  Paul Eggert  <eggert@twinsun.com>
32448
32449         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
32450         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
32451         Reject sizes of exactly SIZE_MAX bytes.
32452         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
32453         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
32454
32455 2003-11-05  Bruno Haible  <bruno@clisp.org>
32456
32457         * lib/xsize.h: Include limits.h, to avoid a possible collision with
32458         SIZE_MAX defined in <limits.h> on Solaris.
32459
32460 2003-11-04  Jim Meyering  <jim@meyering.net>
32461
32462         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
32463         variable names, rather than @VAR@.
32464         * modules/poll: Likewise.
32465
32466 2003-11-04  Bruno Haible  <bruno@clisp.org>
32467
32468         * modules/xsize: New file.
32469         * modules/linebreak: Depend on xsize.
32470         * MODULES.html.sh (func_all_modules): Add xsize.
32471
32472 2003-11-04  Bruno Haible  <bruno@clisp.org>
32473
32474         * m4/xsize.m4: New file.
32475
32476 2003-11-04  Bruno Haible  <bruno@clisp.org>
32477
32478         * lib/xsize.h: New file.
32479         * lib/linebreak.c: Include xsize.h.
32480         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
32481         argument for overflow.
32482         Suggested by Paul Eggert.
32483
32484 2003-11-03  Karl Berry  <karl@gnu.org>
32485
32486         * config/config.{guess,sub}: update from config.
32487
32488 2003-11-03  Jim Meyering  <jim@meyering.net>
32489
32490         * modules/userspec (lib_SOURCES): Add userspec.h.
32491         (Include): Add "userspec.h".
32492         Improve description.
32493
32494 2003-11-03  Jim Meyering  <jim@meyering.net>
32495
32496         * lib/userspec.c: Include "userspec.h".
32497         * lib/userspec.h: New file.
32498
32499 2003-11-03  Bruno Haible  <bruno@clisp.org>
32500
32501         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
32502
32503 2003-11-03  Bruno Haible  <bruno@clisp.org>
32504
32505         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
32506         available, to avoid (extremely rare) race condition.
32507         Suggested by Paul Eggert.
32508
32509 2003-11-02  Karl Berry  <karl@gnu.org>
32510
32511         * config/srclist.txt (vasprintf.c): sync broken, sigh.
32512
32513 2003-10-31  Paul Eggert  <eggert@twinsun.com>
32514
32515         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
32516         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
32517         (read_filesystem_list): Set and use me_type_malloced.
32518         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
32519         whatever the type happens to be), for brevity and consistency.
32520         Check for size calculation overflow on Alphas running OSF/1.
32521
32522 2003-10-31  Jim Meyering  <jim@meyering.net>
32523
32524         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
32525
32526         * lib/linebuffer.c: Include <string.h> for declaration of memset.
32527
32528 2003-10-30  Paul Eggert  <eggert@twinsun.com>
32529             Bruno Haible  <bruno@clisp.org>
32530
32531         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
32532         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
32533
32534 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32535
32536         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
32537         netbsd*-gnu*.  Suggested by Robert Millan.
32538
32539 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32540
32541         * modules/group-member: Depend on stdbool.
32542
32543 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32544
32545         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
32546
32547 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32548
32549         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
32550         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
32551         after the 'gnu' in these cases.  This fixes some bugs in the
32552         previous change, and is based on suggestions by Robert Millan.
32553
32554 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32555
32556         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
32557         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
32558         no longer needed.
32559         * lib/quotearg.c (quotearg_n_options): Use it.
32560         * lib/group-member.c: Include <stdbool.h>.
32561         (free_group_info): Arg is now const *; don't free arg.
32562         (get_group_info): Now returns bool and accepts struct group_info *,
32563         rather than returning a malloc'ed struct group_info *.
32564         All uses changed.  Check for overflow in internal size calculation.
32565
32566         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
32567         rather than xmalloc/xrealloc.
32568         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
32569         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
32570         conformance bug: the old code used a pointer after freeing the
32571         storage that it addressed.
32572         * lib/hash.c (hash_initialize): Simplify the code by using
32573         xalloc_oversized rather than doing it by hand.
32574         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
32575         the buffer preserved.  Use free and xmalloc instead.
32576         * lib/quotearg.c (quotearg_n_options): Likewise.
32577         Use a simpler test for size overflow.  Don't use xalloc_oversized
32578         because unsigned int might be wider than size_t (!); this suggests
32579         that we should switch from unsigned int to size_t for slot numbers.
32580
32581 2003-10-28  Paul Eggert  <eggert@twinsun.com>
32582
32583         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
32584         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
32585         NetBSD kernels.  Requested by Richard Stallman.
32586
32587 2003-10-27  Paul Eggert  <eggert@twinsun.com>
32588
32589         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
32590         to allocate the returned structure.  Do not allocate a subarray,
32591         as x2nrealloc will do that.
32592         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
32593         instead of xnrealloc.
32594         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
32595
32596 2003-10-27  Bruno Haible  <bruno@clisp.org>
32597
32598         * lib/stdbool_.h: Better support for BeOS.
32599
32600 2003-10-26  Paul Eggert  <eggert@twinsun.com>
32601
32602         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
32603         now uses inline.
32604
32605 2003-10-26  Paul Eggert  <eggert@twinsun.com>
32606
32607         * lib/xalloc.h (xalloc_oversized): New static inline function, for
32608         callers that want to do their own size-overflow checking.  Include
32609         <stdbool.h>, since xalloc_oversized returns bool.
32610         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
32611         to use xalloc_oversized.
32612
32613         Add two functions x2realloc, x2nrealloc, for programs that grow
32614         arrays dynamically by doubling their sizes.
32615         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
32616         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
32617         New functions.
32618
32619         Port to C99 semantics for 'inline' of external functions.
32620         Bug reported by Bruno Haible.
32621         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
32622         with the old contents of xnmalloc.
32623         (xnmalloc, xmalloc): Use it.
32624         (xnrealloc_inline): New static inline function,
32625         with the old contents of xnrealloc.
32626         (xnrealloc, xrealloc): Use it.
32627
32628         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
32629         that.
32630
32631 2003-10-26  Karl Berry  <karl@gnu.org>
32632
32633         * config/srclist.txt (COPYING.DOC): no longer available from
32634         /gd/gnuorg; don't know where the ultimate source is.
32635
32636 2003-10-25  Paul Eggert  <eggert@twinsun.com>
32637
32638         Fix several address-calculation bugs in the hash modules,
32639         plus some minor code cleanup.
32640
32641         * lib/hash.h: Include <stdbool.h>, for bool.
32642         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
32643         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
32644         hash_get_n_entries, hash_get_max_bucket_length,
32645         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
32646         hash_rehash): Use size_t rather than unsigned.
32647         * lib/hash.c (struct hash_table, hash_get_n_buckets,
32648         hash_get_n_buckets_used, hash_get_n_entries,
32649         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
32650         hash_get_entries, hash_do_for_each, hash_string, is_prime,
32651         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
32652         Likewise.
32653         (SIZE_MAX): Define if not defined.
32654         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
32655         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
32656         hash_print):
32657         Use const * when possible.
32658         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
32659         (check_tuning): Fix bug: if tuning parameters were very close to
32660         0 or 1, rounding errors could have caused subscript violations.
32661         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
32662         (hash_initialize): Add 'fail:' label
32663         to free table and return NULL, and use it to simplify code.
32664         Use calloc rather than clearing the storage ourself.
32665         (hash_initialize, hash_rehash): Check for arithmetic overflow in
32666         buffer size calculations.
32667         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
32668         Include <stddef.h>, for size_t.
32669         * lib/hash-pjw.c (hash_pjw): Likewise.
32670         Switch to method described by Bruno Haible.
32671         Include <limits.h>, for CHAR_BIT.
32672         (SIZE_BITS): New macro.
32673
32674 2003-10-23  Paul Eggert  <eggert@twinsun.com>
32675
32676         * m4/getline.m4 (AM_FUNC_GETLINE):
32677         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
32678         hosts.  Problem reported by Derek Robert Price in
32679         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
32680         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
32681         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
32682
32683 2003-10-21  Paul Eggert  <eggert@twinsun.com>
32684
32685         * lib/getndelim2.c (getndelim2): When size calculation overflows,
32686         ceiling the allocation at NMAX bytes rather than silently
32687         discarding input bytes before NMAX is reached.  This makes
32688         a difference only if NMAX exceeds SIZE_MAX / 2.
32689
32690         * lib/obstack.c: Merge from glibc.
32691         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
32692         Add libc_hidden_def (_obstack_newchunk).
32693         (_obstack_free) [! defined _LIBC]: Remove.
32694         [defined _LIBC]: Make a strong alias from obstack_free, rather than
32695         a clone of the function body.
32696         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
32697         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
32698
32699         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
32700         glibc.
32701         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
32702         arg to memcpy.
32703
32704         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
32705         (obstack_ptr_grow_fast, obstack_int_grow_fast):
32706         Don't use lvalue casts, as GCC plans to remove support for them
32707         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
32708         was also present in the non-GCC version, indicating that this
32709         code had always been buggy and had never been widely used.
32710         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
32711         Use the fast variant of each macro, rather than copying the
32712         definiens of the fast variant; that way, we'll be more likely to
32713         catch future bugs in the fast variants.
32714
32715 2003-10-20  Bruno Haible  <bruno@clisp.org>
32716
32717         * modules/wait-process: New file.
32718         * MODULES.html.sh (func_all_modules): Add wait-process.
32719
32720 2003-10-20  Bruno Haible  <bruno@clisp.org>
32721
32722         * m4/wait-process.m4: New file.
32723
32724 2003-10-20  Bruno Haible  <bruno@clisp.org>
32725
32726         * lib/wait-process.h: New file, from GNU gettext.
32727         * lib/wait-process.c: New file, from GNU gettext.
32728
32729 2003-10-19  Jim Meyering  <jim@meyering.net>
32730
32731         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
32732         HPUX 10.20.
32733
32734 2003-10-18  Karl Berry  <karl@gnu.org>
32735
32736         * config/config.guess: update from config.
32737
32738 2003-10-16  Paul Eggert  <eggert@twinsun.com>
32739
32740         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
32741         (getgroups): First arg is int, not size_t.
32742         Don't let 'free' mangle errno.
32743
32744 2003-10-16  Paul Eggert  <eggert@twinsun.com>
32745
32746         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
32747
32748 2003-10-16  Karl Berry  <karl@gnu.org>
32749
32750         * config/config.{guess,sub}: update from config.
32751
32752 2003-10-16  Jim Meyering  <jim@meyering.net>
32753
32754         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
32755         memcpy.
32756
32757 2003-10-15  Paul Eggert  <eggert@twinsun.com>
32758
32759         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
32760         (SIZE_MAX): Remove.
32761         (new_exclude, add_exclude_file): Initial size no longer needs to
32762         be a power of 2.
32763         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
32764         our own address arithmetic overflow checking.
32765
32766         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
32767         (fnmatch): Do not alloca more than 2000 wide characters;
32768         instead, use malloc for large buffers.
32769         Check for address arithmetic overflow, and return -1
32770         with errno set to ENOMEM in that case.
32771         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
32772         (NEW_PATTERN): Do not alloca more than 8000 bytes;
32773         instead, return -1.  Check for address arithmetic overflow.
32774
32775 2003-10-14  Paul Eggert  <eggert@twinsun.com>
32776
32777         Handle invalid suffixes and overflow independently, so that
32778         callers can treat them independently as needed.  Fix some bugs in
32779         suffix handling, e.g., "100k@" was not diagnosed as an invalid
32780         suffix for a human-readable blocksize.  The major caller-visible
32781         change is the addition of a new
32782         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
32783         that both overflow and suffix chars were found.
32784
32785         * lib/human.c (humblock): Don't check separately for invalid suffix
32786         char; that is xstrtoumax's job (now that its bug is fixed).
32787         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
32788         INTMAX_MAX]: New macros.
32789         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
32790         TYPE_MAXIMUM): New macros.
32791         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
32792         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
32793         if overflow occurs, as it's what __strtol does and it's more useful
32794         in practice.
32795         (__xstrtol): If __strtol reports some error other than ERANGE,
32796         reflect it to the caller as LONGINT_INVALID.  If it reports
32797         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
32798         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
32799         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
32800         value.
32801         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
32802         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
32803         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
32804         [defined UINTMAX_MAX]: New macros.
32805
32806 2003-10-14  Bruno Haible  <bruno@clisp.org>
32807
32808         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
32809
32810 2003-10-14  Bruno Haible  <bruno@clisp.org>
32811
32812         * m4/sig_atomic_t: New file, from GNU gettext.
32813         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
32814
32815 2003-10-14  Bruno Haible  <bruno@clisp.org>
32816
32817         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
32818         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
32819         Also use volatile where needed.
32820
32821 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32822
32823         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
32824         Change maintainer from Bruno Haible to 'all'.
32825
32826 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32827
32828         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
32829
32830 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32831
32832         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
32833         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
32834         and define in terms of the other primitives.
32835         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
32836         (SIZE_MAX): Define if not already defined.
32837         (array_size_overflow): New function.
32838         (xalloc_die): Abort instead of exiting if 'error' returns.
32839         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
32840         (xmalloc, xrealloc): Use them.
32841         (xcalloc): Check for address arithmetic overflow.
32842         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
32843         a bit faster than strcpy.
32844
32845 2003-10-10  Simon Josefsson  <jas@extundo.com>
32846
32847         * modules/argp (Depends-on): Add restrict and strcase.
32848
32849 2003-10-10  Simon Josefsson  <jas@extundo.com>
32850
32851         * m4/argp.m4: Add AC_C_INLINE.
32852
32853 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32854
32855         Merge getpass from libc, plus a few fixes.
32856
32857         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
32858         Include <stdbool.h>.
32859         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
32860         __fsetlocking to empty.
32861         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
32862         do include <bits/libc-lock.h>.
32863         Do not include <fcntl.h>; not needed.
32864         [_LIBC]: Include <wchar.h>.
32865         (NOTCANCEL_MODE): New macro.
32866         (flockfile, funlockfile) [_LIBC]: New macros.
32867         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
32868         [!_LIBC]: New macros.
32869         (call_fclose): New function.
32870         (getpass): Use it.  Save tty stream separately; this simplifies the
32871         code and makes it more reliable if stdin happens to equal stdout.
32872         Invoke __fsetlocking on tty.
32873         Handle thread cancellation if needed.
32874         Namespace cleanup (use __tcgetattr, __getline).
32875         Use bool for Booleans.
32876         [USE_IN_LIBIO]: Handle wide streams.
32877         [!_LIBC]: Unconditionally do the fseek, since we don't know what
32878         stream might go where.
32879
32880         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
32881         doesn't have to include <stdio.h> before us.
32882         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
32883         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
32884         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
32885         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
32886         if not declared, so that we can use getpass.c code from libc without
32887         rewriting it.
32888         (flockfile, ftrylockfile, funlockfile): New macros.
32889
32890 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32891
32892         * modules/getpass: Depend on stdbool.
32893
32894 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32895
32896         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
32897
32898 2003-10-07  Karl Berry  <karl@gnu.org>
32899
32900         * config/config.{guess,sub}: update from config.
32901
32902 2003-10-06  Jim Meyering  <jim@meyering.net>
32903             Bruno Haible  <bruno@clisp.org>
32904
32905         This lets translators provide better translations for the
32906         "Written by ..." part of --version output.
32907         * lib/version-etc.h: Include stdarg.h.
32908         (version_etc_copyright): Declare as readonly.
32909         (version_etc): Make this function variadic with a NULL-terminated list
32910         of author name strings.
32911         (version_etc_va): New declaration.
32912         * lib/version-etc.c: Include stdarg.h, stdlib.h.
32913         (version_etc_copyright): Declare as readonly.
32914         (version_etc_va): New function. Provide a different translatable string
32915         for each possible number of authors < 10. Abbreviate when there are 10
32916         authors or more.
32917         (version_etc): Make this function variadic. Call version_etc_va.
32918         Suggestion from Gary V. Vaughan.
32919
32920         * lib/long-options.h (parse_long_options): Change prototype: the
32921         authors string is moved to the end and becomes variadic.
32922         * lib/long-options.c: Include stdarg.h.
32923         (parse_long_options): Make this function variadic, too.
32924         Call version_etc_va, not version_etc.
32925
32926 2003-10-06  Bruno Haible  <bruno@clisp.org>
32927
32928         * modules/version-etc-2: Remove file.
32929         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
32930
32931 2003-10-06  Bruno Haible  <bruno@clisp.org>
32932
32933         * modules/fatal-signal: New file.
32934         * MODULES.html.sh (func_all_modules): Add fatal-signal.
32935
32936 2003-10-06  Bruno Haible  <bruno@clisp.org>
32937
32938         * m4/fatal-signal.m4: New file.
32939         * m4/signalblocking.m4: New file, from GNU gettext.
32940
32941 2003-10-06  Bruno Haible  <bruno@clisp.org>
32942
32943         * lib/version-etc-2.h: Remove file.
32944         * lib/version-etc-2.c: Remove file.
32945
32946 2003-10-06  Bruno Haible  <bruno@clisp.org>
32947
32948         * lib/fatal-signal.h: New file, from GNU gettext.
32949         * lib/fatal-signal.c: New file, from GNU gettext.
32950
32951 2003-10-05  Paul Eggert  <eggert@twinsun.com>
32952
32953         * README: Rework advice for preventing empty .o files.
32954         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
32955         not <sys/types.h>.
32956
32957 2003-10-04  Karl Berry  <karl@gnu.org>
32958
32959         * lib/argp*: update from libc.
32960
32961 2003-10-04  Karl Berry  <karl@gnu.org>
32962
32963         * config/config.{guess,sub}: update from config.
32964
32965 2003-10-02  Bruno Haible  <bruno@clisp.org>
32966
32967         * modules/lchown (Include): Add lchown.h.
32968         * modules/time_r (Include): Use "..." syntax.
32969         * modules/xgetdomainname (Include): Add xgetdomainname.h.
32970
32971 2003-10-01  Simon Josefsson  <jas@extundo.com>
32972
32973         * MODULES.html.sh (func_all_modules): Move gethostname from section
32974         'based on' to section 'lacking' POSIX:2001.
32975
32976 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
32977
32978         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
32979         to output mode on the same stream.
32980
32981 2003-09-29  Paul Eggert  <eggert@twinsun.com>
32982
32983         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
32984         Fix arg typo in previous patch.
32985
32986 2003-09-28  Jim Meyering  <jim@meyering.net>
32987
32988         * lib/error.c: Correct cpp indentation.
32989
32990 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32991
32992         * modules/free: New file.
32993
32994 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32995
32996         * m4/free.m4: New file.
32997
32998 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32999
33000         * lib/minmax.h (MIN, MAX)
33001         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
33002         Omit the special code that used __typeof__, since we worry that
33003         it could be more trouble than it's worth.  See:
33004         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
33005         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
33006
33007         * lib/free.c: New file.
33008
33009 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
33010
33011         Trivial fixes to Makefile.am parts of module listings.
33012         * modules/strstr: Append strstr.h to lib_SOURCES.
33013         * modules/strcase: Likewise, for strcase.h.
33014
33015 2003-09-27  Karl Berry  <karl@gnu.org>
33016
33017         * config/mkinstalldirs: update from automake.
33018
33019 2003-09-26  Paul Eggert  <eggert@twinsun.com>
33020
33021         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
33022         (error_tail): Do not loop, reallocating temporary buffer, since
33023         the output cannot contain more wide characters than the input
33024         contains bytes, the size must be big enough already.  This avoids
33025         one potential size overflow calculation.  Check for size overflow
33026         when calculating temporary buffer size.  Free temporary buffer
33027         when done, if it was allocated with malloc; this plugs a memory
33028         leak.  Remove casts from void * to pointers, that are no longer
33029         needed now that we're assuming C89 or better.
33030
33031         Merge error changes from glibc.
33032
33033         * lib/error.c, error.h: Update copyright notice header to match glibc.
33034         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
33035         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
33036         Disable cancellation while printing error.
33037         * lib/error.h: Prepend __ to parameter names.
33038
33039 2003-09-26  Jim Meyering  <jim@meyering.net>
33040
33041         * lib/error.c (error_tail): Move some declarations
33042         into inner scope where the local variables are used.
33043
33044 2003-09-26  Bruno Haible  <bruno@clisp.org>
33045
33046         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
33047         stpncpy().
33048         Don't define stpncpy through config.h; it's now done through stpncpy.h.
33049
33050 2003-09-26  Bruno Haible  <bruno@clisp.org>
33051
33052         * lib/stpncpy.h (gnu_stpncpy): New declaration.
33053         (stpncpy): Define as alias for gnu_stpncpy.
33054         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
33055
33056 2003-09-25  Simon Josefsson  <jas@extundo.com>
33057
33058         * lib/xgetdomainname.h: New file.
33059         * lib/xgetdomainname.c: New file.
33060
33061 2003-09-25  Simon Josefsson  <jas@extundo.com>
33062             Bruno Haible  <bruno@clisp.org>
33063
33064         * modules/getdomainname: New file.
33065         * modules/xgetdomainname: New file.
33066         * MODULES.html.sh (func_all_modules): Add getdomainname,
33067         xgetdomainname.
33068
33069 2003-09-25  Simon Josefsson  <jas@extundo.com>
33070             Bruno Haible  <bruno@clisp.org>
33071
33072         * m4/getdomainname.m4: New file.
33073
33074 2003-09-25  Simon Josefsson  <jas@extundo.com>
33075             Bruno Haible  <bruno@clisp.org>
33076
33077         * lib/getdomainname.h: New file.
33078         * lib/getdomainname.c: New file.
33079
33080 2003-09-25  Karl Berry  <karl@gnu.org>
33081
33082         * lib/argp-fmtstream.c, argp-help.c: update from libc.
33083
33084 2003-09-25  Karl Berry  <karl@gnu.org>
33085
33086         * config/install-sh: update from automake.
33087
33088 2003-09-25  Bruno Haible  <bruno@clisp.org>
33089
33090         * modules/version-etc-2: New file, from modules/version-etc with
33091         modifications.
33092         * MODULES.html.sh (func_all_modules): Add version-etc-2.
33093
33094 2003-09-25  Bruno Haible  <bruno@clisp.org>
33095
33096         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
33097         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
33098
33099 2003-09-24  Simon Josefsson  <jas@extundo.com>
33100
33101         * modules/xgethostname: Add xgethostname.h.
33102
33103 2003-09-24  Paul Eggert  <eggert@twinsun.com>
33104
33105         * lib/linebuffer.c (freebuffer): Don't free the argument, just
33106         the buffer associated with the argument.  Bug reported by
33107         Simon Josefsson.
33108
33109 2003-09-24  Paul Eggert  <eggert@twinsun.com>
33110
33111         * README: Document assumptions that 'int' is at least 32 bits
33112         wide, that integer arithmetic is 2's complement without overflow,
33113         that there are no holes in integer values, that adding sizes of
33114         two nonoverlapping objects can't overflow, and that all-bits-zero
33115         yields scalar zero.  Fix spelling and capitalization typos.
33116
33117 2003-09-19  Karl Berry  <karl@gnu.org>
33118
33119         * lib/argp.h: update from libc.
33120
33121 2003-09-17  Paul Eggert  <eggert@twinsun.com>
33122
33123         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
33124         to avoid spurious warnings like "AC_RUN_IFELSE was called before
33125         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
33126
33127 2003-09-17  Paul Eggert  <eggert@twinsun.com>
33128
33129         * gnulib-tool: Use "test -h", not "test -L", for portability
33130         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
33131         (tags_regexp): Remove, since \| doesn't conform to POSIX.
33132         (sed_extract_prog): Issue s commands one-by-one, rather than
33133         using \| in one s command.
33134
33135 2003-09-16  Paul Eggert  <eggert@twinsun.com>
33136
33137         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
33138         input error, instead of returning NULL the next time we are called
33139         (and therefore losing track of errno).
33140
33141 2003-09-16  Bruno Haible  <bruno@clisp.org>
33142
33143         * gnulib-tool (func_create_testdir): Warn about duplicated
33144         dependencies.
33145
33146 2003-09-15  Paul Eggert  <eggert@twinsun.com>
33147
33148         * modules/argmatch, modules/fatal, modules/obstack,
33149         modules/xalloc, modules/xgethostname: Sort dependencies by
33150         importance, not alphabetically.
33151
33152 2003-09-15  Paul Eggert  <eggert@twinsun.com>
33153
33154         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
33155         fails, so that the caller gets the proper errno.
33156
33157         * lib/readutmp.c (read_utmp): Likewise.
33158         Check for fstat error.  Close stream and free storage
33159         when failing.
33160
33161 2003-09-14  Karl Berry  <karl@gnu.org>
33162
33163         * config/srclist.txt (strdup.c): disable for c89 changes.
33164
33165 2003-09-14  Jim Meyering  <jim@meyering.net>
33166
33167         * lib/getloadavg.c: Correct cpp indentation.
33168         * lib/strdup.c: Likewise.
33169         * lib/vasnprintf.c: Likewise.
33170
33171 2003-09-14  Bruno Haible  <bruno@clisp.org>
33172
33173         * modules/fwriteerror: New file.
33174         * MODULES.html.sh (func_all_modules): Add fwriteerror.
33175
33176 2003-09-14  Bruno Haible  <bruno@clisp.org>
33177
33178         * lib/fwriteerror.h: New file.
33179         * lib/fwriteerror.c: New file.
33180
33181 2003-09-12  Paul Eggert  <eggert@twinsun.com>
33182
33183         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
33184         modules/xgethostname, modules/xalloc: Depend on exit.
33185
33186 2003-09-12  Paul Eggert  <eggert@twinsun.com>
33187
33188         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
33189
33190         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
33191         and AC_MINIX, too, so that their extensions are available.
33192
33193         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
33194         This macro has been superseded by gl_BACKUPFILE.
33195
33196         More patches to assume C89 or better.
33197
33198         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
33199
33200         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
33201         unconditionally.
33202         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
33203         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
33204         Include <string.h>, <stdlib.h> unconditionally.
33205         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
33206         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
33207         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
33208         headers or for string.h.
33209         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
33210         or strtoul.
33211
33212         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
33213         headers.
33214         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
33215         * m4/userspec.m4 (gl_USERSPEC): Likewise.
33216         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
33217         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
33218         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33219         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
33220         memcpy, memset.
33221         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
33222         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
33223         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
33224         strtol.
33225         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
33226         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
33227         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
33228         strtoul.
33229
33230 2003-09-12  Paul Eggert  <eggert@twinsun.com>
33231
33232         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
33233         * lib/obstack.c [!defined _LIBC]: Likewise.
33234         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
33235         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
33236         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
33237
33238         More changes to assume C89 or better.
33239
33240         * lib/error.c (error_tail): Assume vprintf.
33241
33242         * lib/argmatch.c (getenv): Remove decl.
33243         * lib/progreloc.c (get_full_program_name): Define via prototype.
33244         * lib/setenv.c (clearenv): Likewise.
33245         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
33246         needed.
33247         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
33248         (malloc, memcpy): Remove decls.
33249         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
33250         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
33251         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
33252         (memcpy): Remove macro.
33253         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
33254         (__P): Remove.  All uses removed.
33255         (PTR): Remove.  All uses changed to void *.
33256         (CHAR_BIT, NULL): Remove.
33257         (spaces, zeros, memset_space, memset_zero)
33258         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
33259         Remove.
33260         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
33261         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
33262         Define with prototype.
33263         Remove now-unnecessary prototype decl.
33264         (extra_args_spec): Assume ANSI C.  All uses changed.
33265         (extra_args_spec_iso): Remove.
33266         (my_strftime, emacs_strftimeu): Define via prototype.
33267         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
33268         unconditionally.
33269         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
33270         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
33271         (strtoul, strtol): Remove decls.
33272         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
33273         LONG_MAX): Remove.
33274         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
33275         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
33276         (LOCALE_PARAM_PROTO): New macro.
33277         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
33278         (INTERNAL (strtol), strtol): Define with a prototype.
33279         (PARAMS): Remove.  All uses removed.
33280         * lib/tempname.c: Include <string.h> unconditionally.
33281         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
33282         * lib/xgethostname.c (main): Define with a prototype.
33283         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
33284         Include <stdlib.h> unconditionally.
33285         (calloc, malloc, realloc, free): Remove decls.
33286         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
33287         Include <stdlib.h> unconditionally.  Sort include file names.
33288         (strtod): Remove.
33289         (xstrtod): Define with a prototype.
33290         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
33291         (strtol, strtoul): Remove decls.
33292
33293 2003-09-11  Paul Eggert  <eggert@twinsun.com>
33294
33295         More patches to assume C89 or better.
33296         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
33297         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
33298         string.h, memchr, STDC_HEADERS.
33299
33300 2003-09-11  Paul Eggert  <eggert@twinsun.com>
33301
33302         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
33303         Include <stdlib.h>, <string.h> unconditionally.
33304         Remove now-unnecessary cast to char *.
33305         * lib/strnlen.c: Include <string.h> unconditionally.
33306         * lib/yesno.c (yesno): Define with a prototype.
33307
33308 2003-09-11  Bruno Haible  <bruno@clisp.org>
33309
33310         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
33311
33312 2003-09-10  Jim Meyering  <jim@meyering.net>
33313
33314         * lib/error.c: Correct indentation of cpp directives.
33315
33316 2003-09-10  Bruno Haible  <bruno@clisp.org>
33317
33318         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
33319         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
33320         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
33321         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
33322         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
33323         <stdlib.h> and <string.h> checks.
33324         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
33325         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
33326
33327 2003-09-10  Bruno Haible  <bruno@clisp.org>
33328
33329         * lib/strcspn.c: Include <string.h> unconditionally.
33330         * lib/strpbrk.c: Include <string.h> unconditionally.
33331         * lib/strstr.c: Include <string.h> unconditionally.
33332         * lib/unicodeio.c: Include <string.h> unconditionally.
33333         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
33334         * lib/unsetenv.c: Likewise.
33335         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
33336         * lib/yesno.c: Include <stdlib.h> unconditionally.
33337         (rpmatch): Add prototype.
33338
33339 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33340
33341         More patches to assume C89 or better.
33342         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
33343         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
33344         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
33345         or for string.h.
33346         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
33347         stdlib.h.
33348         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
33349         C headers.
33350         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
33351         string.h.
33352         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
33353         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
33354         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
33355         or for string.h.
33356         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
33357         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
33358         C headers.
33359         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
33360         memcpy.
33361         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
33362         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
33363         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
33364         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
33365         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
33366         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
33367         string.h, free.
33368         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
33369         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
33370         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
33371         C headers, or for string.h.
33372         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
33373         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
33374         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
33375         headers, memory.h, stdlib.h, string.h, strings.h.
33376         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
33377         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
33378         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
33379         strchr.
33380         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
33381         headers, memory.h, string.h.
33382         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
33383         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
33384         free.
33385         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
33386         headers.
33387         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
33388         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
33389         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
33390         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
33391         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
33392
33393 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33394
33395         More K&R removal.
33396
33397         * lib/acosl.c (main): Use a prototype.
33398         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
33399         tanl.c: Likewise.
33400
33401         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
33402
33403         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
33404         (getopt, etopt_long, getopt_long_only, _getopt_internal)
33405         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
33406         with a prototype.
33407         * lib/getopt.c (const): Remove macro.
33408         Include <string.h> unconditionally.
33409         (my_index): Remove; all uses changed to strchr.
33410         (strlen): Remove decl.
33411         (exchange): Remove forward decl; no longer needed.
33412         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
33413         Define with prototype.
33414         * lib/getopt1.c (const): Remove macro.
33415         (getopt_long, getopt_long_only, main): Define with prototype.
33416
33417         * lib/getugroups.c: Include <string.h> unconditionally.
33418
33419         * lib/getusershell.c: Include <stdlib.h> unconditionally.
33420         (getusershell, setusershell, endusershell, readname, main):
33421         Define with prototypes.
33422
33423         * lib/group-member.c: Include group-member.h first.
33424         Include <stdlib.h> unconditionally.
33425
33426         * lib/hard-locale.c: Include hard-locale.h first.
33427         Include <stdlib.h>, <string.h> unconditionally.
33428
33429         * lib/hash.c (free, malloc): Remove decls.
33430         Include <stdlib.h> unconditionally.
33431
33432         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
33433         (getenv): Do not declare.
33434
33435         * lib/idcache.c: Include <string.h> unconditionally.
33436
33437         * lib/long-options.c: Include long-options.h first, to test interface.
33438         Include <stdlib.h> unconditionally.
33439
33440         * lib/makepath.c: Include makepath.h first, to test interface.
33441         Include <stdlib.h> and <string.h> unconditionally.
33442
33443         * lib/linebuffer.c: Include <stdlib.h>.
33444         (free): Remove decl.
33445
33446         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
33447         stddef.h. rpl_malloc returns void *, not char *.
33448         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
33449         prototype.
33450
33451         * lib/md5.h: Include <limits.h> unconditionally.
33452         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
33453         (__P): Remove; all uses removed.
33454         * lib/md5.c: Include "md5.h" first.
33455         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
33456         md5_buffer, md5_process_bytes, md5_process_block):
33457         Define with prototypes.
33458         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
33459         * lib/sha.c: Include "sha.h" first.
33460         Include <stdlib.h>, <string.h> unconditionally.
33461
33462         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
33463         * lib/memcmp.c (__ptr_t): Likewise.
33464         * lib/memrchr.c (__ptr_t): Likewise.
33465         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
33466         Include <string.h> unconditionally.
33467         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
33468         * lib/memchr.c: Include <stdlib.h> unconditionally.
33469         * lib/memchr.c (LONG_MAX): Remove.
33470         * lib/memrchr.c (LONG_MAX): Likewise.
33471         * lib/memchr.c (__memchr): Define via a prototype.
33472         * lib/memrchr.c (__memrchr): Likewise.
33473         * lib/memcmp.c (__P): Remove, and remove all uses.
33474         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
33475         Remove forward decls; no longer needed.
33476         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
33477         Use types required by C89 in prototype.
33478
33479         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
33480         * lib/savedir.c: Likewise.
33481         * lib/mkdir.c (free): Remove decl.
33482         * lib/rmdir.c (rmdir): Define with a prototype.
33483         * lib/savedir.c: Include savedir.h first, to test interface.
33484
33485         * lib/mktime.c (STDC_HEADERS): Remove.
33486         Include <stdlib.h>, <string.h> unconditionally.
33487
33488         * lib/modechange.c: Include <stdlib.h> unconditionally.
33489         (malloc): Remove decl.
33490
33491         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
33492         (free): Remove decl.
33493
33494         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
33495         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
33496         (This type really should be intptr_t, but that's a C99ism.)
33497         (_obstack_memcpy): Remove: all uses changed to memcpy.
33498         Include <string.h> unconditionally.
33499         (struct obstack): Assume __STDC__ for types of members
33500         chunkfun, freefun, extra_arg.
33501         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
33502         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
33503         obstack_begin, obstack_specify_allocation,
33504         obstack_specify_allocation_with_arg, obstack_chunkfun,
33505         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
33506         Remove unprototyped decls and the macros that use them.
33507         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
33508         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
33509         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
33510         (defined __STDC__ && __STDC__)]:
33511         Remove nonprototyped code.
33512         Include <stdlib.h> unconditionally.
33513         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
33514         _obstack_allocated_p, _obstack_free, obstack_free,
33515         _obstack_memory_used, print_and_abort):
33516         Define using prototypes.
33517         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
33518         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
33519         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
33520         obstack_next_free, obstack_object_size, obstack_room) [0]:
33521         Remove unused, unprototyped code.
33522
33523         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
33524
33525         * lib/physmem.c (physmem_total, physmem_available, main): Define
33526         with prototypes.
33527
33528         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
33529         (main): Define with a prototype.
33530
33531         * lib/posixver.c (getenv): Remove decl.
33532
33533         * lib/putenv.c (malloc): Returns void *, not char *.
33534         Include <string.h> unconditionally.
33535         (strchr, memcpy, NULL): Do not define.
33536
33537         * lib/readtokens.c: Include readtokens.h first, to test interface.
33538         Include <stdlib.h>, <string.h> unconditionally.
33539         (init_tokenbuffer): Define with a prototype.
33540
33541         * lib/regex.c (PARAMS): Remove.  All uses removed.
33542         All uses of _RE_ARGS removed, too.
33543         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33544         unconditionally.
33545         (bzero): Assume memset exists.
33546         (memcmp, memcpy, NULL): Remove.
33547         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
33548         char, or assignments to local vars of type signed char.
33549         (init_syntax_once, PREFIX(extract_number_and_incr),
33550         PREFIX(print_partial_compiled_pattern),
33551         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
33552         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
33553         PREFIX(regex_grow_registers), PREFIX(regex_compile),
33554         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
33555         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
33556         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
33557         wcs_compile_range, byte_compile_range, truncate_wchar,
33558         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
33559         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
33560         count_mbs_length, wcs_re_match_2_internal,
33561         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
33562         PREFIX(alt_match_null_string_p),
33563         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
33564         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
33565         regfree, PREFIX(extract_number)): Define with prototype.  Remove
33566         now-unnecessary declaration, if any.
33567         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
33568         regcomp, regexec):
33569         Remove now-unnecessary casts among pointer types.
33570         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
33571
33572         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
33573         (free): Remove decl.
33574
33575         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
33576
33577         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
33578         (free): Remove decl.
33579
33580         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
33581         * lib/xgetcwd.c: Likewise.
33582
33583         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
33584         (free): Remove decl.
33585
33586         * lib/strchrnul.c (strchrnul): Define with a prototype.
33587         Fix bug: c_in was not converted to char before searching.
33588
33589         The following changes are not K&R related:
33590
33591         * lib/group-member.h: Include <sys/types.h>, so that this file is
33592         self-contained.
33593         * lib/makepath.h: Likewise.
33594
33595         * lib/getusershell.c (readname, default_index, line_size, readname):
33596         Use size_t, not int, for sizes.
33597         (readname): If the size overflows, report an error instead of
33598         looping forever.
33599
33600 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33601
33602         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
33603         libc.
33604
33605 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33606
33607         * README: New section: portability guidelines.
33608
33609 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
33610
33611         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
33612         C89 spec.
33613
33614 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
33615
33616         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
33617
33618 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33619
33620         Assume C89 or better; remove K&R cruft.
33621         A few of these changes were first proposed by Derek Robert Price
33622         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
33623
33624         * lib/addext.c: Include <string.h> unconditionally.
33625         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
33626         Don't declare getenv or malloc.
33627
33628         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
33629         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
33630         (NULL): Remove.
33631         (find_stack_direction, alloca): Use prototypes.
33632
33633         * lib/atexit.c (atexit): Define using a prototype.
33634
33635         * lib/basename.c, dirname.c, stripslash.c:
33636         Include <string.h> unconditionally.
33637
33638         * lib/bcopy.c: Include <stddef.h>.
33639         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
33640
33641         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
33642
33643         * lib/error.h (error, error_at_line, error_print_progname)
33644         [! (defined (__STDC__) && __STDC__)]: Remove decls.
33645         * lib/error.c: Include error.h first, to check interface.
33646         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33647         (VA_START): Remove; all uses changeed to va_start.
33648         (exit, strerror): Remove decls.
33649         (error_print_progname): Prototype uncondionally.
33650         Don't include <errno.h>; no longer needed.
33651         (private_strerror): Remove.
33652         (error_tail): Always define.
33653         (error, error_at_line): Assume C89 or better; always use prototypes.
33654         * lib/fatal.c: Include "fatal.h" first, to test interface.
33655         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33656         (VA_START): Remove; all uses changed to va_start.
33657         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
33658         this case.
33659         (exit): Remove decl.
33660         (fatal): Prototype unconditionally.  Assume va_start works.
33661         Abort at end, to pacify gcc.
33662
33663         * lib/euidaccess.c (main): Define with a prototype.
33664
33665         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
33666
33667         * lib/exitfail.c: Include <stdlib.h> unconditionally.
33668
33669         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
33670         prototypes.
33671         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
33672         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
33673         (getenv): Remove decl.
33674         (fnmatch): Define using a prototype.
33675         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
33676         (FCT): Define using a prototype.
33677
33678         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
33679
33680         * lib/gethostname.c: Include <stddef.h>.
33681         (gethostname): Define with prototype.  Length is size_t, not int.
33682
33683 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33684
33685         Assume C89 or better; remove K&R cruft.
33686         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
33687         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
33688         string.h, getenv, malloc.
33689         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
33690         headers.
33691         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
33692         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
33693         do not check for strerror.
33694         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
33695         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
33696         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
33697         do not check for doprnt or vprintf.
33698         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
33699         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
33700
33701 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33702
33703         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
33704         getversion.c should have been removed then, but was accidentally
33705         preserved.
33706
33707         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
33708         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
33709
33710 2003-09-08  Karl Berry  <karl@gnu.org>
33711
33712         * config/config.sub, config.guess, srclistvars.sh: update from savannah
33713                 config, forget about prep.
33714
33715         * config/depcomp, missing: update from automake.
33716
33717 2003-09-07  Paul Eggert  <eggert@twinsun.com>
33718
33719         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
33720         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33721
33722 2003-09-07  Paul Eggert  <eggert@twinsun.com>
33723
33724         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
33725         copy_tm_result.  Bug reported by Simon Josefsson in
33726         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33727
33728 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33729
33730         * m4/time_r.m4: New file.
33731         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
33732         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
33733         is. Check for timegm declaration.
33734         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
33735         Do not check for gmtime_r.
33736         Replace mktime if __mktime_internal does not exist and if mktime
33737         hasn't been replaced already.
33738
33739 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33740
33741         * lib/time_r.c, lib/time_r.h: New files.
33742
33743         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
33744         __localtime_r.
33745         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
33746         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
33747
33748         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
33749         __gmtime_r.
33750         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
33751         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
33752         Include <time_r.h>.
33753
33754         * lib/timegm.c: Switch to glibc implementation, with the following
33755         changes:
33756         [defined HAVE_CONFIG_H]: Include <config.h>.
33757         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
33758         (__mktime_internal) [!defined _LIBC]: New decl.
33759         (__gmtime_r) [!defined _LIBC]: New macro and function.
33760         (timegm): Use a prototype, since gnulib assumes C89.
33761         Do not bother declaring tmp to be const, as it's not really usefu.
33762         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
33763         (timegm): Declare only if HAVE_DECL_TIMEGM.
33764
33765 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33766
33767         * MODULES.html.sh (func_all_modules): Add time_r.
33768         * modules/time_r: New file.
33769         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
33770         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
33771
33772 2003-09-03  Paul Eggert  <eggert@twinsun.com>
33773
33774         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
33775         Bug reported by Lute Kamstra in
33776         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
33777
33778         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
33779         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
33780         course with correspondingly smaller numbers for tomorrow and
33781         yesterday.  From Tadayoshi Funaba.  Originally installed into
33782         sh-utils on 1999-08-07, but the patch got lost (I guess during the
33783         coreutils merge?).
33784
33785 2003-08-31  Simon Josefsson  <jas@extundo.com>
33786
33787         * modules/timegm: New file.
33788         * MODULES.html.sh (func_all_modules): Add timegm.
33789
33790 2003-08-31  Simon Josefsson  <jas@extundo.com>
33791
33792         * m4/timegm.m4: New file.
33793
33794 2003-08-31  Simon Josefsson  <jas@extundo.com>
33795
33796         * lib/timegm.h: New file.
33797         * lib/timegm.c: New file.  Based on
33798         wget-1.8.2/src/http.c:mktime_from_utc.
33799
33800 2003-08-31  Karl Berry  <karl@gnu.org>
33801
33802         * lib/argp.h: update from libc.
33803
33804 2003-08-28  Bruno Haible  <bruno@clisp.org>
33805
33806         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
33807         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
33808         followed by '#define fnmatch fnmatch_posix' gives an error.
33809
33810 2003-08-28  Bruno Haible  <bruno@clisp.org>
33811
33812         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
33813         warning on QNX, which defines O_BINARY to 000000.
33814
33815 2003-08-27  Jim Meyering  <jim@meyering.net>
33816
33817         * m4/mkstemp.m4: Require that the system mkstemp be able to create
33818         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
33819         would fail after 32.  Reported by Danny Levinson.  Details here:
33820         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
33821
33822 2003-08-24  Bruno Haible  <bruno@clisp.org>
33823
33824         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
33825         MSVC7 <stdio.h> is included later.
33826
33827 2003-08-22  Simon Josefsson  <jas@extundo.com>
33828
33829         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
33830
33831 2003-08-20  Karl Berry  <karl@gnu.org>
33832
33833         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
33834
33835 2003-08-20  Bruno Haible  <bruno@clisp.org>
33836
33837         * modules/progname: New file.
33838         * MODULES.html.sh (func_all_modules): Add progname.
33839
33840 2003-08-20  Bruno Haible  <bruno@clisp.org>
33841
33842         * lib/progname.h: New file, from GNU gettext.
33843         * lib/progname.c: New file, from GNU gettext.
33844         * lib/progreloc.c: New file, from GNU gettext.
33845
33846 2003-08-19  Jim Meyering  <jim@meyering.net>
33847
33848         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
33849         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
33850
33851 2003-08-19  Bruno Haible  <bruno@clisp.org>
33852
33853         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
33854         more.
33855
33856 2003-08-19  Bruno Haible  <bruno@clisp.org>
33857
33858         * lib/xstrdup.c: Assume <string.h> exists.
33859
33860 2003-08-18  Paul Eggert  <eggert@twinsun.com>
33861
33862         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
33863         in makefile rules.
33864
33865 2003-08-18  Jim Meyering  <jim@meyering.net>
33866
33867         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
33868         * m4/lib-ld.m4: Likewise.
33869
33870 2003-08-18  Jim Meyering  <jim@meyering.net>
33871
33872         * lib/setenv.h: Indent nested cpp directive.
33873         * lib/vasnprintf.c: Remove trailing blanks.
33874
33875 2003-08-17  Simon Josefsson  <jas@extundo.com>
33876
33877         * modules/xstrndup: New file.
33878         * MODULES.html.sh (func_all_modules): Add xstrndup.
33879
33880 2003-08-17  Simon Josefsson  <jas@extundo.com>
33881
33882         * modules/argp: Fix autoconf macro name. Add more dependencies.
33883
33884 2003-08-17  Simon Josefsson  <jas@extundo.com>
33885
33886         * m4/xstrndup.m4: New file.
33887
33888 2003-08-17  Simon Josefsson  <jas@extundo.com>
33889
33890         * m4/argp.m4: New file.
33891
33892 2003-08-17  Simon Josefsson  <jas@extundo.com>
33893             Bruno Haible  <bruno@clisp.org>
33894
33895         * lib/xstrndup.h: New file.
33896         * lib/xstrndup.c: New file.
33897
33898 2003-08-17  Bruno Haible  <bruno@clisp.org>
33899
33900         * modules/strndup (Files, Include): Add lib/strndup.h.
33901
33902 2003-08-17  Bruno Haible  <bruno@clisp.org>
33903
33904         * modules/euidaccess (Files): Add lib/euidaccess.h.
33905
33906 2003-08-17  Bruno Haible  <bruno@clisp.org>
33907
33908         * lib/strndup.h: New file.
33909
33910 2003-08-17  Bruno Haible  <bruno@clisp.org>
33911
33912         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
33913         like AC_GNU_SOURCE.
33914         * modules/extensions (configure.ac): Comment out the invocation of
33915         gl_USE_SYSTEM_EXTENSIONS.
33916
33917 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33918
33919         Merges from coreutils, etc.
33920         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
33921         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
33922         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
33923         fixing a typo.
33924         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
33925         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
33926
33927 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33928
33929         Document merge from coreutils.
33930         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
33931         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
33932         * modules/utime: Add m4/utimes-null.m4.
33933
33934 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33935
33936         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
33937         space, undoing this 2003-08-12 change:
33938         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
33939
33940 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33941
33942         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
33943         strtoul.c from libc, undoing this 2003-08-12 change:
33944         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
33945
33946 2003-08-16  Jim Meyering  <jim@meyering.net>
33947
33948         Merges from coreutils.
33949         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
33950         prefix.  Adjust cache variables similarly.  Create 500 rather than
33951         just 300 files, to exercise bug on Darwin6.5, too.
33952         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
33953         $missing_dir.
33954         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
33955         AM_SYS_POSIX_TERMIOS.
33956         Reported by mkc@mathdogs.com.
33957         Also change use of $am_cv_sys_posix_termios
33958         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
33959         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
33960         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
33961         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
33962         in /proc/mounts until it finds one with matching device number.  This
33963         is unnecessary when the FILE argument *is* a mount point.  No stat call
33964         is necessary in that case.  So, disable the statvfs-testing code on
33965         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
33966         as RedHat bug# 84846.
33967         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
33968         to 1MB, so as not to render systems with no stack size limit (e.g.,
33969         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
33970         Include <unistd.h>.  On some systems,
33971         it is required for the definition of _SC_PAGESIZE.
33972
33973 2003-08-16  Jim Meyering  <jim@meyering.net>
33974
33975         Merge from coreutils.
33976         * lib/xstrtoimax.c: #else #if -> #elif.
33977         * lib/xstrtoumax.c: Likewise.
33978
33979 2003-08-16  Jim Meyering  <jim@meyering.net>
33980
33981         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
33982         * m4/utimes.m4: Removed.
33983         * m4/utimes-null.m4: Renamed from utimes.m4.
33984
33985         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
33986         to 1MB, so as not to render systems with no stack size limit (e.g.,
33987         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
33988         Include <unistd.h>.  On some systems,
33989         it is required for the definition of _SC_PAGESIZE.
33990
33991 2003-08-16  Jim Meyering  <jim@meyering.net>
33992         and Paul Eggert  <eggert@cs.ucla.edu>
33993
33994         Merges from coreutils, etc.
33995
33996         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
33997         using the latest version from cvs.  This avoids problems with #line
33998         directives using a vendor (Sun) compiler.
33999         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
34000         Don't set GETGROUPS_LIB here; now it's
34001         done via getgroups.m4's wrapper function.
34002         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
34003         rather than just in sh-util/configure.in, so that the
34004         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
34005         same.
34006         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
34007         AC_FUNC_GETLOADAVG where to find getloadavg.c.
34008         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
34009         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
34010         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
34011         Remove code that is now done by the newly-required macros.
34012         Append $(EXEEXT) to DF_PROG.
34013         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
34014         Do not invoke or require the following here,
34015         since prereq.m4 or some gnulib .m4 now does this for us:
34016         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
34017         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
34018         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
34019         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
34020         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
34021         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
34022         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
34023         AC_FUNC_OBSTACK.
34024         Do not replace the following functions, as this is now the job
34025         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
34026         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
34027         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
34028         atexit getpass, strdup, getpagesize.
34029         Replace 'raise'.
34030         Do not check for the following functions, as this is now the job
34031         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
34032         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
34033         setregid.
34034         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
34035         Check for sys/sysctl.h.
34036         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
34037         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
34038         of checking for ssize_t ourselves.
34039
34040         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
34041         Require every macro that gnulib/modules/* suggests for us.
34042         (jm_PREREQ_ADDEXT): New macro.
34043         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
34044         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
34045
34046         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
34047         (gl_PHYSMEM): Use it.
34048         Also check for `table' function.
34049         Check for new headers and functions.
34050         Add check for sys/sysmp.h.
34051         With suggestions from Kaveh Ghazi.
34052         Ignore headers that are present but cannot be compiled.  This
34053         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
34054         C 5.4.
34055
34056 2003-08-15  Paul Eggert  <eggert@twinsun.com>
34057
34058         Document merge from coreutils.
34059         * modules/userspec: Depend on posixver.
34060         * modules/strftime: Depend on tzset.
34061
34062 2003-08-15  Paul Eggert  <eggert@twinsun.com>
34063
34064         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
34065         rather than tab, after '#' in shell-script copyright notices.
34066         Suggested by Bruno Haible.
34067
34068 2003-08-15  Paul Eggert  <eggert@twinsun.com>
34069
34070         * config/srclist-update: Use three spaces, rather than tab, after '#'
34071         in shell-script copyright notices.  Suggested by Bruno Haible.
34072         Remove unnecessary parenthesization in regular expression.
34073
34074 2003-08-15  Jim Meyering  <jim@meyering.net>
34075
34076         Merge from coreutils.
34077         * lib/xgethostname.c: Include <stdlib.h>.
34078         (xghostname): Don't exit for anything other than memory-related
34079         failure; just return NULL.
34080         * lib/userspec.c: Include "posixver.h".
34081         (parse_user_spec): Accept `.' as a separator only
34082         in pre-POSIX-200112 mode.
34083         * lib/strtoimax.c: Use #elif rather than #else #if.
34084         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
34085         Remove function, now that we can rely on a working tzset function.
34086         [!_LIBC]: Ensure that the required autoconf test has been run.
34087         [!defined _NL_CURRENT && HAVE_STRFTIME]:
34088         Use underlying_strftime for %r.
34089         * lib/sha.c: Merge in some clean-up and optimization changes from
34090         glibc.
34091         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
34092         Ensure that it is a multiple of 64.
34093         Rearrange loop exit tests so as to avoid performing an
34094         additional fread after encountering an error or EOF.
34095         * lib/realloc.c: Update copyright date.
34096
34097 2003-08-15  Jim Meyering  <jim@meyering.net>
34098         and Paul Eggert  <eggert@twinsun.com>
34099
34100         Merge from coreutils.
34101         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
34102         member but strut utmpx does not.  Needed for AIX 4.3.3.
34103         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
34104
34105 2003-08-15  Jim Meyering  <jim@meyering.net>
34106         and Paul Eggert  <eggert@cs.ucla.edu>
34107
34108         Merges from coreutils, etc.
34109         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
34110         Require gl_FUNC_TZSET_CLOBBER.
34111         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
34112         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
34113         members.
34114
34115 2003-08-14  Paul Eggert  <eggert@twinsun.com>
34116
34117         Help the merge from coreutils.
34118         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
34119         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
34120         * m4/tzset.m4: Use it too.
34121
34122 2003-08-14  Paul Eggert  <eggert@twinsun.com>
34123
34124         * modules/tzset: New file.
34125
34126 2003-08-14  Jim Meyering  <jim@meyering.net>
34127
34128         Merges from coreutils.
34129         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
34130         variable names, rather than @FNMATCH_H@.
34131         * modules/alloca: Likewise for $(ALLOCA_H).
34132
34133         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
34134         the three copies of the literal target, `fnmatch.h'.
34135         * modules/alloca (alloca.h): Likewise.
34136
34137 2003-08-14  Jim Meyering  <jim@meyering.net>
34138
34139         Merge from coreutils.
34140         * m4/tzset.m4: New file.
34141         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
34142         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
34143         otherwise, AIX 5.1 systems would end up using the latter.
34144         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
34145         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
34146         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
34147         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
34148
34149 2003-08-14  Jim Meyering  <jim@meyering.net>
34150
34151         Merge from coreutils.
34152         * lib/obstack.h: Whitespace changes.
34153         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
34154         and xcalloc return values.
34155         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
34156         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
34157         hang on OSF/1 5.1 for DIR on both local and remote file systems.
34158         Reported by (and fix confirmed by) Nelson H. F. Beebe.
34159         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
34160         error from mntctl.
34161         Use mntctl's return value to drive the entry-processing loop, since
34162         we can't rely on the value of the vmt_length member in the last
34163         entry.  On some systems doing so could result in exhausting
34164         virtual memory.  Based in part on a patch from Mike Jetzer.
34165
34166 2003-08-14  Jim Meyering  <jim@meyering.net>
34167         and Paul Eggert  <eggert@twinsun.com>
34168
34169         Merges from coreutils, plus other fixes.
34170         * lib/physmem.c: Merge in portability changes from gcc/libiberty
34171         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
34172         for credits and details.  Thanks to Kaveh Ghazi for helping
34173         to keep these files in sync.
34174         (ARRAY_SIZE): Define it.
34175         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
34176         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
34177         (memcasecmp): Don't assume size_t fits in unsigned int.
34178         Remove casts and duplicate code.
34179         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
34180         (memcpy): Remove definition.
34181         Merge in some clean-up and optimization changes from glibc.
34182         [BLOCKSIZE]: Move definition to top of file.
34183         Ensure that it is a multiple of 64.
34184         Rearrange loop exit tests so as to avoid performing an
34185         additional fread after encountering an error or EOF.
34186         * lib/md5.h (md5_uintptr): Define.
34187         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
34188         return to the initial working directory.  Preserve errno
34189         for caller.
34190         * lib/idcache.c: Include "xalloc.h".
34191         (xmalloc, xrealloc): Remove decls.
34192         (getuser): Remove casts no longer required in C89.
34193         * lib/human.c: Include stdio.h, for sprintf.
34194         * lib/group-member.c: Include "xalloc.h".
34195         (xmalloc, xrealloc): Remove decls.
34196         (get_group_info): Remove casts no longer required in C89.
34197         * lib/getusershell.c (readname): Remove casts no longer required in
34198         C89.
34199         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
34200         * lib/getline.c: Whitespace fix, from coreutils.
34201
34202 2003-08-13  Paul Eggert  <eggert@twinsun.com>
34203
34204         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
34205         Check for isascii.
34206
34207         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
34208         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
34209         Undo previous (whitespace-only) change.
34210
34211 2003-08-13  Paul Eggert  <eggert@twinsun.com>
34212
34213         * lib/exclude.c: Include <ctype.h>
34214         (IN_CTYPE_DOMAIN): New macro.
34215         (is_space): New fn.
34216         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
34217         and empty lines.
34218
34219         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
34220         Undo previous (whitespace-only) change.
34221
34222 2003-08-13  Paul Eggert  <eggert@twinsun.com>
34223
34224         * config/srclist-update: Change update back to the old behavior,
34225         leaving whitespace alone.  Use one 'sed' command rather than a
34226         pipeline.
34227         (fixlicense): Now a variable, not a function.
34228         (remove_trailing_blanks): Remove.
34229         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
34230         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
34231         Undo previous (whitespace-only) change.
34232
34233 2003-08-12  Paul Eggert  <eggert@twinsun.com>
34234
34235         Merge from coreutils.
34236         * modules/euidaccess: Add lib_SOURCES, include for new
34237         file euidaccess.h
34238
34239 2003-08-12  Paul Eggert  <eggert@twinsun.com>
34240
34241         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
34242         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
34243         Normalize leading white space and remove trailing white space.
34244
34245         Merge from coreutils
34246         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
34247
34248         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
34249         0.12.1.  These files are now being upgraded automatically by
34250         ../config/srclist-update.
34251
34252 2003-08-12  Paul Eggert  <eggert@twinsun.com>
34253
34254         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
34255         Normalize leading white space and remove trailing white space.
34256         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
34257         notice, as per ../config/srclist-update.
34258
34259         Merge from coreutils.
34260         * lib/euidaccess.h: New file.
34261         * lib/euidaccess.c: Include it.
34262         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
34263         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
34264         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
34265
34266 2003-08-12  Paul Eggert  <eggert@twinsun.com>
34267
34268         * config/srclist-update: Add copyright notice.
34269         (remove_id_lines, remove_trailing_blanks): New constants.
34270         (fixfile): Use them to normalize spacing a bit in copied files.
34271         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
34272         Normalize leading white space and remove trailing white space.
34273
34274         * config/texinfo.tex: Sync with texinfo.
34275
34276         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
34277         strtoul.c from libc, to merge coreutils whitespace changes.
34278
34279         * config/srclist.txt: Get the following m4 files from gettext:
34280         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
34281         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
34282         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
34283         wint_t.m4.
34284
34285 2003-08-12  Karl Berry  <karl@gnu.org>
34286
34287         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
34288         been made.
34289
34290 2003-08-11  Paul Eggert  <eggert@twinsun.com>
34291
34292         * modules/gnu-source, m4/gnu-source.m4:
34293         Remove; we're assuming Autoconf 2.54 or later now.
34294         Suggested by Bruno Haible.
34295         * MODULES.html.sh (func_all_modules): Remove gnu-source.
34296
34297 2003-08-11  Bruno Haible  <bruno@clisp.org>
34298
34299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
34300
34301 2003-08-11  Bruno Haible  <bruno@clisp.org>
34302
34303         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
34304         (vasnprintf): Use it instead of wcslen.
34305
34306 2003-08-11  Bruno Haible  <bruno@clisp.org>
34307
34308         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
34309         value to ensure that _Bool promotes to int. Use #define for _Bool when
34310         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
34311
34312 2003-08-10  Karl Berry  <karl@gnu.org>
34313
34314         * lib/regex.h: update from libc (whitespace fix).
34315
34316 2003-08-09  Paul Eggert  <eggert@twinsun.com>
34317
34318         Merge some files from coreutils.  These changes were
34319         originally made by Jim Meyering.
34320         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
34321         many older Unixes require this.
34322         * lib/alloca.c (alloca): Remove cast to argument of free;
34323         no longer needed in C89.
34324         * lib/alloca_.h, regex.h: Fix white space to match
34325         what GNU indent does.
34326
34327 2003-08-09  Paul Eggert  <eggert@twinsun.com>
34328
34329         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
34330         apparently Emacs's Unicode mode got confused before my 2003-08-05
34331         checkin.
34332
34333 2003-08-08  Paul Eggert  <eggert@twinsun.com>
34334
34335         * m4/extensions.m4: New file.
34336         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
34337         Require gl_USE_SYSTEM_EXTENSIONS.
34338         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
34339         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
34340
34341 2003-08-08  Paul Eggert  <eggert@twinsun.com>
34342
34343         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
34344         * modules/extensions, modules/gnu-source: New files.
34345         * modules/timespec, modules/unlocked-io: Depend on extensions.
34346
34347 2003-08-07  Paul Eggert  <eggert@twinsun.com>
34348
34349         * modules/restrict: New file.
34350         * MODULES.html.sh (func_all_modules): Add restrict.
34351         * modules/regex: Depend on restrict.
34352
34353 2003-08-07  Paul Eggert  <eggert@twinsun.com>
34354
34355         * m4/restrict.m4: New file.
34356         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
34357
34358 2003-08-07  Bruno Haible  <bruno@clisp.org>
34359
34360         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
34361         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
34362
34363 2003-08-07  Bruno Haible  <bruno@clisp.org>
34364
34365         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
34366         makes the module 'getndelim2' compatible with the module 'getline'.
34367
34368 2003-08-05  Paul Eggert  <eggert@twinsun.com>
34369
34370         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
34371         byte with "\201" to avoid glitches when editing that source file
34372         with multi-gnome-terminal.
34373
34374 2003-08-05  Paul Eggert  <eggert@twinsun.com>
34375
34376         * lib/bumpalloc.h: Remove.
34377
34378 2003-08-05  Paul Eggert  <eggert@twinsun.com>
34379
34380         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
34381         * modules/bumpalloc: Remove.
34382
34383 2003-08-04  Paul Eggert  <eggert@twinsun.com>
34384
34385         * lib/getloadavg.c: Change copyright notice and spacing to conform to
34386         GNU coding style.
34387
34388         Merge from coreutils.
34389         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
34390         1. From glibc.
34391         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
34392         from Karl Berry, implemented by Jim Meyering.
34393         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
34394         from Dmitry V. Levin.
34395         Remove anachronistic cast of xrealloc.
34396         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
34397         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
34398         type. Otherwise, it wouldn't compile with at least /bin/cc on
34399         ymp-cray-unicos9.0.2.X.
34400         Combine two mostly-identical uses of alloca into one.
34401         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
34402
34403 2003-08-04  Dave Love  <d.love@dl.ac.uk>
34404
34405         [From Emacs.]
34406
34407         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
34408         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
34409         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
34410         obsolete NLIST_NAME_UNION.
34411         [__GNU__]: Undef BSD and FSCALE.
34412         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
34413
34414 2003-08-03  Paul Eggert  <eggert@twinsun.com>
34415
34416         * lib/stdbool_.h (_Bool): Make it signed char, instead of
34417         an enum type, so that it's guaranteed to promote to int.  See:
34418         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
34419
34420 2003-08-03  Karl Berry  <karl@gnu.org>
34421
34422         * config/depcomp: update from automake.
34423
34424 2003-07-31  Paul Eggert  <eggert@twinsun.com>
34425
34426         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
34427         (strerror): Don't assume that a printable int fits in 14 bytes.
34428
34429 2003-07-31  Bruno Haible  <bruno@clisp.org>
34430
34431         * modules/getpass-gnu: New file.
34432         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
34433
34434 2003-07-31  Bruno Haible  <bruno@clisp.org>
34435
34436         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
34437
34438 2003-07-24  Karl Berry  <karl@gnu.org>
34439
34440         * config/missing: update from automake.
34441
34442 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
34443             Bruno Haible  <bruno@clisp.org>
34444
34445         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
34446         * lib/getline.c (getline, getdelim): Likewise.
34447         Remove _GNU_SOURCE define; now it's defined in config.h through
34448         m4/getline.m4.
34449
34450 2003-07-23  Karl Berry  <karl@gnu.org>
34451
34452         * config/config.sub: update from prep.
34453
34454 2003-07-22  Paul Eggert  <eggert@twinsun.com>
34455
34456         * modules/xalloc (Depends-on): Add exitfail.
34457         * modules/xmemcoll: Likewise.
34458
34459 2003-07-22  Paul Eggert  <eggert@twinsun.com>
34460
34461         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
34462         over-parenthesization in macros.
34463
34464         Sync with coreutils.
34465
34466         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
34467         required by C99.
34468
34469         Use `exit_failure' for xalloc and xmemcoll instead of their own
34470         private exit-failure variables.
34471         * lib/xalloc.h (xalloc_exit_failure): Remove.
34472         * lib/xmalloc.c: Likewise.  Include exitfail.h.
34473         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
34474         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
34475         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
34476         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
34477
34478 2003-07-20  Jim Meyering  <jim@meyering.net>
34479
34480         * modules/closeout (Depends-on): Add exitfail.
34481         Suggestion from Bruno Haible.
34482
34483 2003-07-19  Karl Berry  <karl@gnu.org>
34484
34485         * config/config.sub: update from prep.
34486
34487 2003-07-18  Paul Eggert  <eggert@twinsun.com>
34488
34489         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
34490         Remove.
34491         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
34492         to test that it can stand by itself.  Include "exitfail.h".
34493         Clients should set exit_failure instead.
34494         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
34495
34496 2003-07-18  Bruno Haible  <bruno@clisp.org>
34497
34498         * modules/getndelim2: New file.
34499         * modules/getline: Share files with module getndelim2.
34500         * modules/getnline: Depend on getndelim2 instead of sharing files with
34501         it. Add getnline.c to lib_SOURCES.
34502         * MODULES.html.sh (func_all_modules): Add getndelim2.
34503
34504 2003-07-18  Bruno Haible  <bruno@clisp.org>
34505
34506         * m4/getndelim2.m4: New file.
34507         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
34508         invoke gl_PREREQ_GETNDELIM2.
34509         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
34510         gl_PREREQ_GETNDELIM2.
34511         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
34512         gl_GETNDELIM2.
34513
34514 2003-07-18  Bruno Haible  <bruno@clisp.org>
34515
34516         * lib/getndelim2.h: New file.
34517         * lib/getndelim2.c: Make into a module of its own. Include config.h,
34518         getndelim2.h.
34519         (getndelim2): Make non-static. Change return type to ssize_t.
34520         * lib/getline.h: Change argument names.
34521         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
34522         * lib/getnline.c: Include getndelim2.h.
34523
34524 2003-07-18  Andreas Schwab  <schwab@suse.de>
34525
34526         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
34527
34528 2003-07-17  Karl Berry  <karl@gnu.org>
34529
34530         * config/config.sub: update from prep.
34531
34532 2003-07-17  Bruno Haible  <bruno@clisp.org>
34533
34534         * modules/getnline: New file.
34535         * modules/getline: Add lib/getndelim2.c to source file list.
34536         * MODULES.html.sh (func_all_modules): Add getnline.
34537
34538 2003-07-17  Bruno Haible  <bruno@clisp.org>
34539
34540         * m4/getnline.m4: New file.
34541
34542 2003-07-17  Bruno Haible  <bruno@clisp.org>
34543
34544         * m4/Makefile.am.in: Remove file.
34545         * m4/Makefile.am: Remove file.
34546         * m4/Makefile.in: Remove file.
34547
34548 2003-07-17  Bruno Haible  <bruno@clisp.org>
34549
34550         * lib/getnline.h: New file.
34551         * lib/getnline.c: New file.
34552         * lib/getndelim2.c: New file, extracted from getline.c.
34553         (getndelim2): Renamed from getdelim2, with added nmax argument.
34554         * lib/getline.c: Include getndelim2.c.
34555         (getdelim2): Moved out to getndelim2.c.
34556         (getline, getdelim): Update.
34557
34558 2003-07-17  Bruno Haible  <bruno@clisp.org>
34559
34560         * lib/Makefile.am: Remove file.
34561         * lib/Makefile.in: Remove file.
34562
34563 2003-07-17  Bruno Haible  <bruno@clisp.org>
34564
34565         * configure.in: Remove file.
34566         * Makefile.in: Remove file.
34567
34568 2003-07-17  Bruno Haible  <bruno@clisp.org>
34569
34570         * MODULES.html.sh: Put the </BODY> right before </HTML>.
34571
34572 2003-07-16  Karl Berry  <karl@gnu.org>
34573
34574         * config/srclist-update: was running fixlicense twice, which caused
34575                 texinfo.tex to be nullified for some reason.  Simplify,
34576                 $gplsrc is no longer needed as far as I can see?
34577
34578 2003-07-16  Jim Meyering  <jim@meyering.net>
34579
34580         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
34581
34582 2003-07-15  Paul Eggert  <eggert@twinsun.com>
34583
34584         * config/srclist.txt: Get the following files from gettext-runtime/intl
34585         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
34586         ref-del.sin.  From Bruno Haible.
34587         * config/srclist-update (fixfile): Change grep pattern again, since the
34588         previous fix didn't work (there was another trailing $).  Use
34589         '[$]' to escape the $s.
34590
34591 2003-07-15  Karl Berry  <karl@gnu.org>
34592
34593         * lib/vasnprintf.c: update from gettext.
34594
34595 2003-07-15  Karl Berry  <karl@gnu.org>
34596
34597         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
34598         gets expanded when surrounded by '$'.
34599
34600 2003-07-15  Jim Meyering  <jim@meyering.net>
34601
34602         * modules/save-cwd: Don't depend on error.  From Derek Price.
34603
34604 2003-07-15  Jim Meyering  <jim@meyering.net>
34605
34606         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
34607
34608 2003-07-14  Simon Josefsson  <jas@extundo.com>
34609
34610         * modules/mempcpy: New file.
34611         * MODULES.html.sh (func_all_modules): Add mempcpy.
34612
34613 2003-07-14  Simon Josefsson  <jas@extundo.com>
34614
34615         * m4/mempcpy.m4: New file.
34616
34617 2003-07-14  Simon Josefsson  <jas@extundo.com>
34618
34619         * lib/mempcpy.h: New file.
34620         * lib/mempcpy.c: New file.
34621
34622 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34623
34624         * modules/getdate, modules/posixtm: Depend on mktime.
34625
34626 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34627
34628         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
34629         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
34630         unicodeio.c, unicodeio.h, unlocked-io.h:
34631         Switch from LGPL to GPL.
34632
34633 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34634
34635         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
34636         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
34637         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
34638         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
34639         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
34640         updated automatically by ../config/srclist-update.  This changes
34641         their license from LPGL to GPL.
34642
34643 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34644
34645         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
34646         assumed to refer to the root of the most recent stable gettext version.
34647         * config/srclistvars.sh: Add defaults for eggert.
34648         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
34649         Match "This program" as well as "The program".  This is needed
34650         for gettext.
34651
34652 2003-07-14  Jim Meyering  <jim@meyering.net>
34653
34654         Don't emit diagnostics.  Let callers do that.
34655         * lib/save-cwd.c: Don't include "error.h".
34656         (save_cwd): Don't call error.  Ensure that errno is valid
34657         when returning nonzero.
34658
34659         * lib/save-cwd.h (restore_cwd): Update prototype.
34660         * lib/save-cwd.c (restore_cwd): Remove two parameters.
34661         Simplify.  Don't call error upon failure.  Let callers do that.
34662         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
34663         when auditing is enabled.  But don't bother updating the #if.
34664
34665 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
34666
34667         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
34668         it breaks C++ compilation.
34669         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
34670
34671 2003-07-10  Simon Josefsson  <jas@extundo.com>
34672
34673         * modules/strchrnul (Makefile.am): Add strchrnul.h.
34674
34675 2003-07-10  Jim Meyering  <jim@meyering.net>
34676
34677         * m4/clock_time.m4: Remove trailing blank.
34678         * m4/intmax_t.m4: Likewise.
34679
34680 2003-07-10  Jim Meyering  <jim@meyering.net>
34681
34682         * lib/vasnprintf.c: Remove trailing blanks.
34683         Make cpp indentation consistent.
34684
34685 2003-07-09  Paul Eggert  <eggert@twinsun.com>
34686
34687         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
34688         posixver.c, strftime.c, strnlen.c, strverscmp.c:
34689         Switch from LGPL to GPL.
34690
34691 2003-07-09  Paul Eggert  <eggert@twinsun.com>
34692
34693         * config/srclist.txt: Sort sublists.  Add
34694         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
34695         that differ from gnulib for one reason or another; we'd like this list
34696         to be smaller but for now let's document what we have.
34697
34698 2003-07-08  Paul Eggert  <eggert@twinsun.com>
34699
34700         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
34701         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
34702         and sweeter "eval x=$x".
34703         * config/srclist.txt: Get lib/argp* from glibc.
34704
34705 2003-07-07  Paul Eggert  <eggert@twinsun.com>
34706
34707         * lib/mktime.c: Fix some boundary cases and remove need for floating
34708         point.
34709
34710         Issue a compile-time diagnostic if time_t is floating point, or if
34711         two's complement arithmetic is not in effect, or if arithmetic
34712         right shift does not propagate the sign.  These assumptions were
34713         all in the original code but they weren't checked.
34714
34715         (TIME_T_MIDPOINT, verify): New macros.
34716         (__isleap): Remove; it has integer overflow problems.
34717         (leapyear): New function, without those problems.
34718         (ydhms_tm_diff): Remove; splitting into two parts.
34719         (ydhms_diff): New function, containing the arithmetic part of
34720         the old ydhms_tm_diff function.  Issue a compile-time
34721         diagnostic if we are not using C99 integer division.
34722         Avoid casts when possible.
34723         (guess_time_tm): New function, containing the checking part of
34724         the old ydhms_tm_diff function.  Return the new value, rather than
34725         the difference between it and the old.  Accept a new argument T
34726         so that *T specifies the old value.  Check for overflow in the result.
34727
34728         (__mktime_internal): Use a time_t offset, not a long int offset.
34729         This undoes the 2003-06-04 change, which is no longer needed now
34730         that we have better overflow checking.
34731         (localtime_offset): Likewise.
34732
34733         (__mktime_internal): Avoid harmful overflow on hosts where time_t
34734         and long are 64-bit but int is only 32-bit.
34735         (ydhms_diff): Use long int to store year1 and yday1.
34736         Issue a compile-time diagnostic if long int is not wide enough.
34737
34738         (__mktime_internal): Use long int to store adjusted year and yday.
34739         Use plain C rather than preprocessor commands, if that doesn't
34740         affect efficiency.
34741         Check for overflow (and try to repair) after each probe
34742         rather than checking only at the very end.  This avoids some bugs
34743         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
34744         does not equal GMT offset at maximum time).
34745         Use integer to check for overflow rather than floating point; this
34746         is more portable to non-IEEE hosts, and is a tad faster.
34747         When we detect that we are oscillating between two values,
34748         don't check whether tm_isdst has the requested value, since
34749         we already know the answer.  When tm_isdst has the wrong value,
34750         use a different heuristic to find the right one, based on the
34751         extreme values actually observed in practice in tz2003a,
34752         rather than the (overly optimistic) "previous 3 calendar quarters".
34753
34754         (not_equal_tm, print_tm, check_result): Use "const T" rather than
34755         "T const" to accommodate glibc style.
34756         (check_result): Use less-confusing report format.  "long" -> "long int.
34757         (main): Likewise.
34758         Don't loop if the iteration overflows time_t.
34759         Allow a negative step in the iteration.
34760
34761 2003-07-06  Karl Berry  <karl@gnu.org>
34762
34763         * config/depcomp: update from automake.
34764         * config/config.sub: update from prep.
34765
34766 2003-07-03  Karl Berry  <karl@gnu.org>
34767
34768         * config/config.guess: update from prep.
34769
34770 2003-07-01  Paul Eggert  <eggert@twinsun.com>
34771
34772         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
34773         xreadlink.c now includes it unconditionally.
34774
34775 2003-07-01  Paul Eggert  <eggert@twinsun.com>
34776
34777         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
34778         having it depend on HAVE_SYS_TYPES_H.
34779
34780 2003-07-01  Bruno Haible  <bruno@clisp.org>
34781
34782         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
34783         <sys/types.h> should be sufficient.
34784         Reported by Paul Eggert.
34785
34786 2003-06-26  Karl Berry  <karl@gnu.org>
34787
34788         * config/depcomp: update from automake.
34789
34790 2003-06-26  Bruno Haible  <bruno@clisp.org>
34791
34792         * modules/human: Depend on module stdbool.
34793
34794 2003-06-25  Bruno Haible  <bruno@clisp.org>
34795
34796         * modules/readlink: New file.
34797         * modules/xreadlink: Depend on it.
34798         * MODULES.html.sh (func_all_modules): Add readlink.
34799
34800 2003-06-25  Bruno Haible  <bruno@clisp.org>
34801
34802         * m4/readlink.m4: New file.
34803
34804 2003-06-25  Bruno Haible  <bruno@clisp.org>
34805
34806         * lib/readlink.c: New file.
34807
34808 2003-06-22  Karl Berry  <karl@gnu.org>
34809
34810         * config/srclist.txt: update mkinstalldirs from automake.
34811         * config/mkinstalldirs: update.
34812
34813 2003-06-22  Bruno Haible  <bruno@clisp.org>
34814
34815         Portability to mingw32.
34816         * m4/ssize_t.m4: New file, from GNU gettext.
34817         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
34818         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
34819
34820 2003-06-22  Bruno Haible  <bruno@clisp.org>
34821
34822         * modules/safe-read: Add m4/ssize_t.m4.
34823         * modules/xreadlink: Add m4/ssize_t.m4.
34824
34825 2003-06-20  Bruno Haible  <bruno@clisp.org>
34826
34827         Assume C89, so PARAMS isn't needed.
34828         * lib/unicodeio.h (PARAMS): Remove.
34829         * lib/unicodeio.c: Don't use PARAMS.
34830
34831 2003-06-18  Karl Berry  <karl@gnu.org>
34832
34833         * config/config.{guess,sub}: update from prep.
34834
34835 2003-06-18  Jim Meyering  <jim@meyering.net>
34836
34837         Merge changes from coreutils.
34838         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
34839         Remove explicit declarations of xmalloc and realloc.
34840         Include xalloc.h.
34841         (read_utmp): Remove anachronistic cast of xmalloc.
34842
34843 2003-06-17  Paul Eggert  <eggert@twinsun.com>
34844
34845         Assume C89, so PARAMS isn't needed.
34846         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
34847         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
34848         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
34849         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
34850         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
34851         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
34852         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
34853         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
34854         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
34855         lib/xstrtod.h, lib/xstrtol.h: Likewise.
34856         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
34857         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
34858         no longer needed. Anyway, config.h should always be included before any
34859         other file.
34860
34861 2003-06-11  Simon Josefsson  <jas@extundo.com>
34862
34863         * modules/sysexits: New file.
34864         * MODULES.html.sh (func_all_modules): Add sysexits.
34865
34866 2003-06-11  Simon Josefsson  <jas@extundo.com>
34867
34868         * lib/sysexit_.h: New file.
34869
34870 2003-06-11  Derek Price  <derek@ximbiot.com>
34871
34872         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
34873         necessary.
34874
34875 2003-06-11  Bruno Haible  <bruno@clisp.org>
34876
34877         * m4/sysexits.m4: New file.
34878
34879 2003-06-10  Simon Josefsson  <jas@extundo.com>
34880
34881         * lib/argp.h: New file, from glibc.
34882         * lib/argp-ba.c: New file, from glibc.
34883         * lib/argp-eexst.c: New file, from glibc.
34884         * lib/argp-fmtstream.c: New file, from glibc.
34885         * lib/argp-fmtstream.h: New file, from glibc.
34886         * lib/argp-fs-xinl.c: New file, from glibc.
34887         * lib/argp-help.c: New file, from glibc.
34888         * lib/argp-namefrob.h: New file, from glibc.
34889         * lib/argp-parse.c: New file, from glibc.
34890         * lib/argp-pv.c: New file, from glibc.
34891         * lib/argp-pvh.c: New file, from glibc.
34892         * lib/argp-xinl.c: New file, from glibc.
34893
34894 2003-06-10  Simon Josefsson  <jas@extundo.com>
34895
34896         * modules/strchrnul: New file.
34897
34898 2003-06-10  Simon Josefsson  <jas@extundo.com>
34899
34900         * modules/argp: New file.
34901
34902 2003-06-10  Simon Josefsson  <jas@extundo.com>
34903
34904         * m4/strchrnul.m4: New file.
34905
34906 2003-06-10  Simon Josefsson  <jas@extundo.com>
34907
34908         * lib/strchrnul.h: New file.
34909         * lib/strchrnul.c: New file.
34910
34911 2003-06-10  Bruno Haible  <bruno@clisp.org>
34912
34913         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
34914
34915 2003-06-07  Karl Berry  <karl@gnu.org>
34916
34917         * config/config.{guess,sub}: update from prep.
34918
34919 2003-06-07  Jim Meyering  <jim@meyering.net>
34920
34921         * modules/strtod: Use $(...) notation, not @...@ for
34922         AC_REPLACE'd variables.
34923         * modules/localcharset: Likewise.
34924
34925 2003-06-07  Jim Meyering  <jim@meyering.net>
34926
34927         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
34928         in place of my name in the copyright comment.
34929         Remove definition and uses of __P.
34930
34931         From coreutils.
34932         * lib/stat.c: Don't declare xmalloc explicitly.
34933         Instead, include "xalloc.h".
34934         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
34935         xrealloc, and xcalloc return values.
34936         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
34937         Improve comment.
34938         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
34939
34940 2003-06-07  Bruno Haible  <bruno@clisp.org>
34941
34942         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
34943         avoid AC_CONFIG_LINKS.
34944         * modules/fnmatch (Makefile.am): Use explicit creation rule for
34945         fnmatch.h, to avoid AC_CONFIG_LINKS.
34946         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
34947
34948 2003-06-07  Bruno Haible  <bruno@clisp.org>
34949
34950         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
34951         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
34952         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
34953         directory.
34954         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
34955         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
34956         directory.
34957
34958 2003-06-06  Jim Meyering  <jim@meyering.net>
34959
34960         Merge from coreutils.
34961         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
34962         Consolidate declarations and initializations of *_base* locals.
34963
34964         Merge from coreutils.
34965         This avoids a core dump on systems without GNU putenv,
34966         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
34967         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
34968         (unsetenv): New static function, from GNU libc.
34969         (rpl_putenv): Use it.
34970
34971         * lib/modechange.c: Remove trailing blanks.
34972
34973         Merge from coreutils.
34974         * lib/fsusage.c: Remove declaration of statfs.
34975         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
34976
34977         * lib/posixtm.c: Include <stdbool.h> unconditionally.
34978
34979 2003-06-06  Jim Meyering  <jim@meyering.net>
34980
34981         * lib/stdbool_.h: Renamed from stdbool.h.in.
34982
34983 2003-06-06  Jim Meyering  <jim@meyering.net>
34984             Bruno Haible  <bruno@clisp.org>
34985
34986         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
34987         Adjust Makefile.am snippet not to redirect directly to target.
34988         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
34989
34990 2003-06-05  Paul Eggert  <eggert@twinsun.com>
34991
34992         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
34993         mismatch, look in future quarters as well as past.  This fixes a
34994         bug when processing fall-backwards gaps immediately after a long
34995         period of daylight-saving time.
34996
34997         * lib/mktime.c: Assume freestanding C89 or better.
34998         (HAVE_LIMITS_H): Remove.  Assume it's 1.
34999         (__P): Remove; not used.
35000         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
35001         (mktime, not_equal_tm, print_tm, check_result,
35002         main): Use prototypes.  Use const * where appropriate.
35003         (main): Fix typo in testing code that uncovered by above changes.
35004         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
35005
35006 2003-06-04  Paul Eggert  <eggert@twinsun.com>
35007
35008         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
35009         locale.h, localeconv.  This merges changes from coreutils.
35010
35011         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
35012         It can be removed after the next Autoconf is released.
35013         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
35014         needed.
35015
35016 2003-06-04  Paul Eggert  <eggert@twinsun.com>
35017
35018         * lib/mktime.c: Fix Debian bug 177940
35019         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
35020         (localtime_offset): Now long int, not time_t, because we want it
35021         to be guaranteed to be signed.  All uses changed.
35022         (__mktime_internal): If overflow would occur when adding offset,
35023         don't add it.
35024
35025         Merge 'human' changes from coreutils.  Rewrite to support
35026         locale-specific notations like thousands separators.
35027         * lib/human.c: Simplify authorship notice.
35028         Include human.h immediately after config.h.
35029         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
35030         <limits.h>: Do not include, since human.h does.
35031         (SIZE_MAX, UINTMAX_MAX): New macros.
35032         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
35033         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
35034         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
35035         (power_letter): Renamed from suffixes.
35036         (generate_suffix_backwards): Remove.
35037         (adjust_value): Now takes int style (because of human.h changes)
35038         and long double value (for greater precision on some platforms).
35039         (group_number): New function.
35040         (human_readable): Use it.  Use integer options, not enum.
35041         Put the options before the sizes in the arg list.
35042         Support all the new options.
35043         The old human_readable function has been removed;
35044         use inttostr.h instead.
35045         (human_readable, default_block_size, humblock):
35046         Use uintmax_t, not int, for block sizes.
35047         (human_readable_inexact, block_size_types): Remove.
35048         (block_size_opts): New constant.
35049         (human_options): Renamed from human_block_size, with new signature
35050         that allows block sizes up to UINTMAX_MAX.  All callers changed.
35051         * lib/human.h: Add copyright and authorship notice.
35052         Include <limits.h> and <stdbool.h> unconditionally.
35053         (PARAMS): Remove.  All uses removed.
35054         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
35055         (enum human_inexact_style): Remove tag; now a nameless enum.
35056         (human_floor, human_ceiling, human_round_to_even): Now have
35057         values 2, 0, 1 rather than -1, 1, 0.
35058         (human_group_digits, human_suppress_point_zero, human_autoscale,
35059         human_base_1024, human_SI, human_B): New constants.
35060         (human_readable_inexact, human_block_size): Remove.
35061         (human_readable): Size args are now uintmax_t, not int.
35062         (human_options): New decl.
35063
35064         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
35065         unnecessary now that we assume C89 or better.  This change
35066         imported from coreutils.
35067
35068         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
35069         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
35070         in the 2003-05-30 sync from glibc.
35071
35072         .h files should stand alone, but we shouldn't include <sys/types.h>
35073         if we can get away with just <stddef.h>.
35074
35075         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
35076         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
35077         rather than <sys/types.h>, as we merely need size_t.
35078         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
35079         to get size_t.
35080         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
35081         Include <stdio.h>, to get FILE.
35082         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
35083         memcasecmp.h has included <stddef.h> and all we need is size_t.
35084         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
35085         our interface, instead of including <sys/types.h>
35086
35087 2003-06-04  Paul Eggert  <eggert@twinsun.com>
35088
35089         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
35090         now, as glibc mktime is buggy on non-glibc systems.
35091
35092 2003-06-03  Karl Berry  <karl@gnu.org>
35093
35094         * config/config.sub: update from prep.
35095
35096 2003-06-02  Paul Eggert  <eggert@twinsun.com>
35097
35098         [from coreutils]
35099         Fix some minor time-related bugs with POSIX time arguments.
35100         Some valid time stamps were being rejected (notably -1, and
35101         time stamps before 1900 on 64-bit hosts).  And some invalid
35102         time stamps were being accepted, e.g. September 31.
35103
35104         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
35105         that we can return (time_t) -1 successfully.
35106         * lib/posixtm.c: Likewise.
35107         [HAVE_STDBOOL_H]: Include <stdbool.h>.
35108         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
35109         (t): Remove static var.
35110         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
35111         of static var.  All uses changed.
35112         (year): Do not reject years before 1900; they can occur with
35113         64-bit time_t.
35114         (posix_time_parse): Do not check for out-of-range components;
35115         that is now the caller's responsibility, since our checks were
35116         only approximations.
35117         (posixtime): Use mktime to check for out-of-range components,
35118         since it knows them exactly.
35119         If mktime returns (time_t) -1, check whether an error actually occurred
35120         by invoking localtime on -1.
35121         (main) [TEST_POSIXTIME]: Check for input data errors, and report
35122         posixtime failures better.
35123         Improve the test data (in comments only).
35124
35125 2003-06-02  Karl Berry  <karl@gnu.org>
35126
35127         * config/mkinstalldirs (version): new variable.
35128         (--version): new option.
35129         (usage): improve message.
35130
35131 2003-05-30  Karl Berry  <karl@gnu.org>
35132
35133         * lib/mktime.c: update from libc.
35134
35135 2003-05-30  Bruno Haible  <bruno@clisp.org>
35136
35137         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
35138         * config/config.rpath: Upgrade to gettext-0.12.1.
35139
35140 2003-05-30  Bruno Haible  <bruno@clisp.org>
35141
35142         * m4/gettext.m4: Upgrade to gettext-0.12.1.
35143         * m4/nls.m4: New file, from gettext-0.12.1.
35144         * m4/po.m4: New file, from gettext-0.12.1.
35145         * m4/progtest.m4: Upgrade to gettext-0.12.1.
35146
35147 2003-05-30  Bruno Haible  <bruno@clisp.org>
35148
35149         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
35150         * lib/localcharset.h: Likewise.
35151         * lib/localcharset.c: Likewise.
35152
35153 2003-05-29  Karl Berry  <karl@gnu.org>
35154
35155         * config/config.rpath: update from gettext.
35156
35157 2003-05-28  Paul Eggert  <eggert@twinsun.com>
35158
35159         Assume the headers required for C89 freestanding compilers.
35160         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
35161         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
35162         * m4/human.m4 (gl_HUMAN): Likewise.
35163         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
35164         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
35165         * m4/userspec.m4 (gl_USERSPEC): Likewise.
35166         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
35167         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35168         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
35169
35170 2003-05-28  Paul Eggert  <eggert@twinsun.com>
35171
35172         Assume the headers required for C89 freestanding compilers.
35173         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
35174         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
35175         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
35176         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
35177         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
35178         define, since <limits.h> is guaranteed to do that.
35179         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
35180         * lib/exclude.c: Include <stdbool.h> unconditionally.
35181         * lib/tempname.c: Include <stddef.h> unconditionally.
35182         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
35183         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
35184         <stddef.h> does that.
35185         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
35186         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
35187         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
35188         needed.
35189         * lib/xstrtol.c: Likewise.
35190         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
35191         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
35192
35193         * lib/addext.c (addext): Use assignment rather than cast, to avoid
35194         warnings on some platforms.
35195
35196         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
35197         arbitrarily.
35198
35199 2003-05-26  Jim Meyering  <jim@meyering.net>
35200
35201         Merge in a change from coreutils:
35202         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
35203         that is guaranteed to be `no'.  Use `no_such_member' to indicate
35204         that condition, rather than `-1' which is slightly misleading.
35205         Change the name of the cache variable to have the gl_ prefix.
35206         Prompted by a patch from Richard Dawe for DJGPP.
35207
35208 2003-05-24  Karl Berry  <karl@gnu.org>
35209
35210         * config/config.guess: update from prep.
35211
35212 2003-05-22  Karl Berry  <karl@gnu.org>
35213
35214         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
35215
35216 2003-05-20  Karl Berry  <karl@gnu.org>
35217
35218         * config/config.guess: update from prep.
35219
35220 2003-05-18  Karl Berry  <karl@gnu.org>
35221
35222         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
35223         might actually be set by the user.
35224
35225         * config/depcomp, install-sh, mdate-sh: update from automake.
35226
35227 2003-05-17  Bruno Haible  <bruno@clisp.org>
35228
35229         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
35230         invalid expansion for AC_EGREP_CPP.
35231         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
35232         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
35233         Suggested by Akim Demaille <akim@epita.fr> in
35234         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
35235
35236 2003-05-12  Jim Meyering  <jim@meyering.net>
35237
35238         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
35239         the space-padded-by-default conversion specifiers, %e, %k, %l.
35240
35241 2003-05-12  Bruno Haible  <bruno@clisp.org>
35242
35243         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
35244         the string is longer than 4 KB.
35245
35246 2003-05-11  Karl Berry  <karl@gnu.org>
35247
35248         * config/config.{guess,sub}: update from prep.
35249
35250 2003-05-09  Bruno Haible  <bruno@clisp.org>
35251
35252         * modules/error: Add m4/strerror_r.m4 to file list.
35253
35254 2003-05-03  Bruno Haible  <bruno@clisp.org>
35255
35256         Upgrade to Unicode-4.0.
35257         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
35258         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
35259         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
35260         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
35261         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
35262         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
35263         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
35264         Change width of U+E0100..U+E01EF from 1 to 0.
35265
35266 2003-04-25  Jim Meyering  <jim@meyering.net>
35267
35268         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
35269         of type size_t, not int.
35270
35271 2003-04-25  Bruno Haible  <bruno@clisp.org>
35272
35273         * lib/copy-file.c: Include <stddef.h>, for size_t.
35274
35275 2003-04-21  Paul Eggert  <eggert@twinsun.com>
35276
35277         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
35278         code which expansion is under static control.  Patch imported from
35279         Akim Demaille's patch to Bison; see
35280         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
35281
35282 2003-04-14  Bruno Haible  <bruno@clisp.org>
35283
35284         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
35285
35286 2003-04-11  Jim Meyering  <jim@meyering.net>
35287
35288         Merge changes from Coreutils.
35289
35290         2003-03-22  Jim Meyering  <jim@meyering.net>
35291
35292         * lib/strftime.c (widen): Cast alloca return value to proper type.
35293
35294         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
35295
35296         From GNU libc.
35297         * lib/strftime.c (my_strftime): Handle very large width
35298         specifications for numeric values correctly.  Improve checks for
35299         overflow.
35300
35301         2003-01-19  Jim Meyering  <jim@meyering.net>
35302
35303         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
35304         definitions.
35305         (nl_get_alt_digit) [! defined my_strftime]: Define.
35306         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
35307         _nl_get_alt_digit and _nl_get_walt_digit.
35308
35309         * lib/strftime.c (my_strftime): Merge in locale-related changes from
35310         libc. These changes have no effect outside of _LIBC.
35311
35312 2003-04-10  Bruno Haible  <bruno@clisp.org>
35313
35314         * modules/findprog: New file.
35315         * MODULES.html.sh (func_all_modules): Add it.
35316
35317 2003-04-10  Bruno Haible  <bruno@clisp.org>
35318
35319         * m4/findprog.m4: New file.
35320         * m4/eaccess.m4: New file.
35321
35322 2003-04-10  Bruno Haible  <bruno@clisp.org>
35323
35324         * lib/findprog.h: New file, from GNU gettext.
35325         * lib/findprog.c: New file, from GNU gettext.
35326
35327 2003-04-05  Jim Meyering  <jim@meyering.net>
35328
35329         Merge changes from Coreutils.
35330
35331         * lib/exclude.h (PARAMS): Remove definition and uses.
35332         * lib/exclude.c: Remove uses of `PARAMS'.
35333
35334         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
35335         Add test-cases for DOS filenames. Declare program_name.
35336         (main): Set up program_name.  Patch by Rich Dawe.
35337
35338         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
35339         error from mntctl.
35340         Use mntctl's return value to drive the entry-processing loop, since
35341         we can't rely on the value of the vmt_length member in the last
35342         entry.  On some systems doing so could result in exhausting
35343         virtual memory.  Based in part on a patch from Mike Jetzer.
35344
35345 2003-04-04  Bruno Haible  <bruno@clisp.org>
35346
35347         * modules/linebreak: New file.
35348         * MODULES.html.sh (func_all_modules): Add it.
35349
35350 2003-04-04  Bruno Haible  <bruno@clisp.org>
35351
35352         * m4/linebreak.m4: New file.
35353
35354 2003-04-04  Bruno Haible  <bruno@clisp.org>
35355
35356         * lib/linebreak.h: New file, from GNU gettext.
35357         * lib/linebreak.c: New file, from GNU gettext with slight
35358         modifications.
35359         * lib/lbrkprop.h: New file, from GNU gettext.
35360
35361 2003-04-03  Bruno Haible  <bruno@clisp.org>
35362
35363         * modules/utf8-ucs4: New file.
35364         * modules/utf16-ucs4: New file.
35365         * modules/ucs4-utf8: New file.
35366         * modules/ucs4-utf16: New file.
35367         * MODULES.html.sh (func_all_modules): Add them.
35368
35369 2003-04-03  Bruno Haible  <bruno@clisp.org>
35370
35371         * m4/utf-ucs4.m4: New file.
35372         * m4/ucs4-utf.m4: New file.
35373
35374 2003-04-03  Bruno Haible  <bruno@clisp.org>
35375
35376         * lib/utf8-ucs4.h: New file, from GNU gettext.
35377         * lib/utf16-ucs4.h: New file, from GNU gettext.
35378         * lib/ucs4-utf8.h: New file, from GNU gettext.
35379         * lib/ucs4-utf16.h: New file, from GNU gettext.
35380
35381 2003-04-02  Bruno Haible  <bruno@clisp.org>
35382
35383         * modules/binary-io: New file.
35384         * MODULES.html.sh (func_all_modules): Add it.
35385
35386 2003-04-02  Bruno Haible  <bruno@clisp.org>
35387
35388         * lib/binary-io.h: New file, from GNU gettext.
35389
35390 2003-04-01  Bruno Haible  <bruno@clisp.org>
35391
35392         * modules/pathname: New file.
35393         * MODULES.html.sh (func_all_modules): Add it.
35394
35395 2003-04-01  Bruno Haible  <bruno@clisp.org>
35396
35397         * lib/pathname.h: New file, from GNU gettext.
35398         * lib/concatpath.c: New file, from GNU gettext.
35399
35400 2003-03-30  Bruno Haible  <bruno@clisp.org>
35401
35402         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
35403
35404 2003-03-30  Bruno Haible  <bruno@clisp.org>
35405
35406         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
35407         function chown() doesn't exist.
35408
35409 2003-03-28  Bruno Haible  <bruno@clisp.org>
35410
35411         * modules/copy-file: New file.
35412         * MODULES.html.sh (func_all_modules): Add it.
35413
35414 2003-03-28  Bruno Haible  <bruno@clisp.org>
35415
35416         * m4/copy-file.m4: New file.
35417
35418 2003-03-28  Bruno Haible  <bruno@clisp.org>
35419
35420         * lib/copy-file.h: New file, from GNU gettext.
35421         * lib/copy-file.c: New file, from GNU gettext.
35422
35423 2003-03-18  Jim Meyering  <jim@meyering.net>
35424
35425         * lib/quote.c (quote_n): Fix typo in comment.
35426
35427 2003-03-18  Bruno Haible  <bruno@clisp.org>
35428
35429         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
35430         checking.
35431         * m4/onceonly_2_57.m4: Likewise.
35432
35433 2003-03-17  Bruno Haible  <bruno@clisp.org>
35434
35435         * m4/onceonly.m4: Require autoconf 2.54 or newer.
35436         (m4_quote): Remove macro.
35437         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
35438
35439 2003-03-14  Jim Meyering  <jim@meyering.net>
35440
35441         Merge changes from Coreutils.
35442         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
35443         to be const, in order to avoid warnings.
35444         (obstack_room): Likewise.
35445         (obstack_empty_p): Likewise.
35446
35447 2003-03-14  Bruno Haible  <bruno@clisp.org>
35448
35449         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
35450         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
35451
35452 2003-03-13  Paul Eggert  <eggert@twinsun.com>
35453
35454         Merge changes from Bison.
35455         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
35456         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
35457         when compiling Bison 1.875's `bitset bset = obstack_alloc
35458         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
35459         * lib/hash.c: Include <stdbool.h> unconditionally.
35460
35461 2003-03-13  Paul Eggert  <eggert@twinsun.com>
35462
35463         * m4/onceonly.m4 (m4_quote): New macro.
35464         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
35465         Quote AC_FOREACH variable-expansions properly.
35466
35467 2003-03-13  Paul Eggert  <eggert@twinsun.com>
35468
35469         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
35470
35471 2003-03-09  Paul Eggert  <eggert@twinsun.com>
35472
35473         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
35474         Reported by Bruce Becker; see:
35475         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
35476
35477 2003-03-03  Paul Eggert  <eggert@twinsun.com>
35478             Bruno Haible  <bruno@clisp.org>
35479
35480         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
35481         Reported by John Hughes, see
35482         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
35483
35484 2003-02-20  Bruno Haible  <bruno@clisp.org>
35485
35486         * MODULES.html.sh (func_all_modules): Add poll.
35487
35488 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35489
35490         * modules/poll: New file.
35491
35492 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35493
35494         * lib/poll_.h: New file.
35495         * lib/poll.c: New file.
35496
35497 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35498
35499         * m4/poll.m4: New file.
35500
35501 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35502
35503         * modules/mathl: New file.
35504
35505 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35506
35507         * lib/mathl.h: New file.
35508         * lib/acosl.c: New file.
35509         * lib/asinl.c: New file.
35510         * lib/atanl.c: New file.
35511         * lib/ceill.c: New file.
35512         * lib/cosl.c: New file.
35513         * lib/expl.c: New file.
35514         * lib/floorl.c: New file.
35515         * lib/frexpl.c: New file.
35516         * lib/ldexpl.c: New file.
35517         * lib/logl.c: New file.
35518         * lib/sincosl.c: New file.
35519         * lib/sinl.c: New file.
35520         * lib/sqrtl.c: New file.
35521         * lib/tanl.c: New file.
35522         * lib/trigl.c: New file.
35523         * lib/trigl.h: New file.
35524
35525 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35526
35527         * m4/mathl.m4: New file.
35528
35529 2003-02-18  Bruno Haible  <bruno@clisp.org>
35530
35531         * MODULES.html.sh (func_all_modules): Add mathl.
35532
35533 2003-02-17  Bruno Haible  <bruno@clisp.org>
35534
35535         * modules/mkdtemp: New module.
35536         * MODULES.html.sh (func_all_modules): Add it.
35537
35538 2003-02-17  Bruno Haible  <bruno@clisp.org>
35539
35540         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
35541
35542 2003-02-17  Bruno Haible  <bruno@clisp.org>
35543
35544         * lib/mkdtemp.h: New file, from GNU gettext.
35545         * lib/mkdtemp.c: New file, from GNU gettext.
35546
35547 2003-02-02  Jim Meyering  <jim@meyering.net>
35548
35549         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
35550         e.g. glibc-2.2.93.
35551
35552 2003-01-31  Bruno Haible  <bruno@clisp.org>
35553
35554         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
35555         'rpl_rename'.
35556         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
35557         'rpl_strnlen'.
35558         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
35559         'rpl_strtod'.
35560         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
35561         'rpl_utime'.
35562
35563 2003-01-31  Bruno Haible  <bruno@clisp.org>
35564
35565         * lib/rename.c: #undef rename before defining rpl_rename.
35566         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
35567
35568 2003-01-30  Bruno Haible  <bruno@clisp.org>
35569
35570         * modules/vasnprintf, modules/vasprintf: New modules.
35571         * MODULES.html.sh (func_all_modules): Add them.
35572
35573 2003-01-30  Bruno Haible  <bruno@clisp.org>
35574
35575         * m4/signed.m4: New file, from GNU gettext.
35576         * m4/longdouble.m4: New file, from GNU gettext.
35577         * m4/wchar_t.m4: New file, from GNU gettext.
35578         * m4/wint_t.m4: New file, from GNU gettext.
35579         * m4/vasnprintf.m4: New file.
35580         * m4/vasprintf.m4: New file.
35581
35582 2003-01-30  Bruno Haible  <bruno@clisp.org>
35583
35584         * lib/printf-args.h: New file, from GNU gettext.
35585         * lib/printf-args.c: New file, from GNU gettext.
35586         * lib/printf-parse.h: New file, from GNU gettext.
35587         * lib/printf-parse.c: New file, from GNU gettext.
35588         * lib/vasnprintf.h: New file, from GNU gettext.
35589         * lib/vasnprintf.c: New file, from GNU gettext.
35590         * lib/asnprintf.c: New file, from GNU gettext.
35591         * lib/vasprintf.h: New file, from GNU gettext with modifications.
35592         * lib/vasprintf.c: New file, from GNU gettext.
35593         * lib/asprintf.c: New file, from GNU gettext.
35594
35595 2003-01-29  Bruno Haible  <bruno@clisp.org>
35596
35597         * modules/stpncpy: New module.
35598         * MODULES.html.sh (func_all_modules): Add it.
35599
35600 2003-01-29  Bruno Haible  <bruno@clisp.org>
35601
35602         * m4/stpncpy.m4: New file.
35603
35604 2003-01-29  Bruno Haible  <bruno@clisp.org>
35605
35606         * lib/stpncpy.h: New file, from GNU gettext with modifications.
35607         * lib/stpncpy.c: New file, from GNU gettext with modifications.
35608
35609 2003-01-28  Bruno Haible  <bruno@clisp.org>
35610
35611         * modules/c-ctype: New module.
35612         * MODULES.html.sh (func_all_modules): Add it.
35613
35614 2003-01-28  Bruno Haible  <bruno@clisp.org>
35615
35616         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
35617         Paul Eggert.
35618         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
35619         Paul Eggert.
35620
35621 2003-01-27  Bruno Haible  <bruno@clisp.org>
35622
35623         * modules/xsetenv: New module.
35624         * MODULES.html.sh (func_all_modules): Add it.
35625
35626 2003-01-27  Bruno Haible  <bruno@clisp.org>
35627
35628         * lib/xsetenv.h: New file, from GNU gettext.
35629         * lib/xsetenv.c: New file, from GNU gettext.
35630
35631 2003-01-23  Jim Meyering  <jim@meyering.net>
35632
35633         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
35634         from working on systems without dirfd (at least Irix and OSF1/Tru64).
35635
35636 2003-01-23  Bruno Haible  <bruno@clisp.org>
35637
35638         * modules/minmax: New module.
35639         * MODULES.html.sh (func_all_modules): Add it.
35640
35641 2003-01-23  Bruno Haible  <bruno@clisp.org>
35642
35643         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
35644         Eggert.
35645
35646 2003-01-22  Bruno Haible  <bruno@clisp.org>
35647
35648         * modules/exit: New module.
35649         * MODULES.html.sh (func_all_modules): Add it.
35650
35651 2003-01-22  Bruno Haible  <bruno@clisp.org>
35652
35653         * lib/exit.h: New file, from GNU gettext.
35654
35655 2003-01-19  Bruno Haible  <bruno@clisp.org>
35656
35657         * gnulib-tool: Recognize option --extract-maintainer.
35658         (func_get_maintainer): New function.
35659         * modules/*: Add Maintainer entry.
35660
35661 2003-01-16  Jim Meyering  <jim@meyering.net>
35662
35663         * m4/regex.m4: The `regex' struct is both input and output.
35664         Initialize it before each use.  Patch by Tim Waugh.
35665
35666 2003-01-16  Bruno Haible  <bruno@clisp.org>
35667
35668         * MODULES.html.sh: Add a table of contents. Add the module name as
35669         leftmost column. Add hyperlinks.
35670
35671 2003-01-15  Bruno Haible  <bruno@clisp.org>
35672
35673         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
35674
35675 2003-01-15  Bruno Haible  <bruno@clisp.org>
35676
35677         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
35678         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
35679         suffix.
35680
35681 2003-01-15  Bruno Haible  <bruno@clisp.org>
35682
35683         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
35684
35685 2003-01-15  Bruno Haible  <bruno@clisp.org>
35686
35687         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
35688         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
35689
35690 2003-01-14  Jim Meyering  <jim@meyering.net>
35691
35692         * lib/same.c (same_name): Tweak a comment.
35693
35694 2003-01-14  Bruno Haible  <bruno@clisp.org>
35695
35696         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
35697         when a string comparison is sufficient.
35698
35699 2003-01-14  Bruno Haible  <bruno@clisp.org>
35700
35701         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
35702         'unsigned int'.
35703
35704 2003-01-14  Bruno Haible  <bruno@clisp.org>
35705
35706         * lib/hash-pjw.c: Add comment about low quality of this function.
35707
35708 2003-01-13  Bruno Haible  <bruno@clisp.org>
35709
35710         * modules/stpcpy: Distribute lib/stpcpy.h.
35711         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
35712
35713 2003-01-13  Bruno Haible  <bruno@clisp.org>
35714
35715         * modules/*: Add a description.
35716         * modules/strpbrk: Fix Makefile.am snippet.
35717         * modules/strtoimax: Fix dependencies.
35718         * modules/strtoumax: Likewise.
35719
35720 2003-01-13  Bruno Haible  <bruno@clisp.org>
35721
35722         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
35723         * modules/alloca (Makefile.am): All object files depend on alloca.h.
35724         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
35725
35726 2003-01-13  Bruno Haible  <bruno@clisp.org>
35727
35728         * gnulib-tool (func_create_testdir): Store config/* files in the main
35729         directory.
35730         * config.rpath: Move to ...
35731         * config/config.rpath: ... here.
35732         * modules/gettext: Contains config/config.rpath, not config.rpath.
35733         * modules/iconv: Likewise.
35734
35735 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35736
35737         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35738         to avoid collisions with libcurses and libreadline.
35739
35740         * m4/getstr.m4: Remove.
35741         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
35742
35743 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35744
35745         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35746         to avoid collisions with libcurses and libreadline.
35747
35748         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
35749         * lib/getstr.h, getstr.c: Remove.
35750         * lib/getline.c: Include "getline.h", to check interface.
35751         Move body of old getstr.c here: this defines MIN_CHUNK and
35752         declares getdelim2, which is renamed from getstr.
35753         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
35754
35755         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
35756         All uses changed.
35757         * lib/linebuffer.h: Likewise.
35758         (readline): Remove backward-compatibility macro.
35759
35760 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35761
35762         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35763         to avoid collisions with libcurses and libreadline.
35764         * getstr: Remove.
35765         * MODULES.html.sh: Remove getstr.
35766         * modules/getline: Depend on unlocked-io, not getstr.
35767
35768 2003-01-12  Jim Meyering  <jim@meyering.net>
35769
35770         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
35771
35772 2003-01-10  Bruno Haible  <bruno@clisp.org>
35773
35774         * modules/alloca: Change Makefile.am requirements. Simplify Include
35775         requirements. Add lib/alloca_.h to file list.
35776
35777 2003-01-10  Bruno Haible  <bruno@clisp.org>
35778
35779         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
35780
35781 2003-01-10  Bruno Haible  <bruno@clisp.org>
35782
35783         * lib/alloca_.h: New file.
35784         * lib/getdate.y: Unconditionally include alloca.h.
35785         * lib/makepath.c: Likewise.
35786         * lib/setenv.c: Likewise.
35787         * lib/userspec.c: Likewise.
35788
35789 2003-01-09  Karl Berry  <karl@gnu.org>
35790
35791         * MODULES.html.sh: include `dirname $0` in PATH, to find
35792         gnulib-tool.
35793
35794 2003-01-09  Bruno Haible  <bruno@clisp.org>
35795
35796         * modules/stdbool: Change configure.ac, Makefile.am requirements.
35797         Simplify Include requirements. Add lib/stdbool.h.in to file list.
35798
35799 2003-01-09  Bruno Haible  <bruno@clisp.org>
35800
35801         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
35802
35803 2003-01-09  Bruno Haible  <bruno@clisp.org>
35804
35805         * lib/stdbool.h.in: New file.
35806
35807 2003-01-09  Bruno Haible  <bruno@clisp.org>
35808
35809         * gnulib-tool (func_all_modules): Ignore files ending in ~.
35810         * MODULES.html.sh: Likewise.
35811
35812 2003-01-08  Jim Meyering  <jim@meyering.net>
35813
35814         * lib/full-write.c: Undefine and define-away `const' after inclusion
35815         of errno.h, not before.  Suggestion from Bruno Haible.
35816
35817 2003-01-08  Bruno Haible  <bruno@clisp.org>
35818
35819         * modules/full-read: Depend on full-write.
35820
35821 2003-01-08  Bruno Haible  <bruno@clisp.org>
35822
35823         * lib/safe-read.c: Include specification header first, to ensure its
35824         selfcontainedness.
35825         * lib/full-write.c: Likewise.
35826
35827 2003-01-07  Jim Meyering  <jim@meyering.net>
35828
35829         * lib/full-write.c: Rework so that it may serve to define full_read,
35830         too.
35831         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
35832
35833 2003-01-07  Bruno Haible  <bruno@clisp.org>
35834
35835         * lib/strtoimax.c: Include <stdint.h> as an alternative to
35836         <inttypes.h>.
35837         * lib/xstrtol.h: Likewise.
35838         * lib/xstrtoimax.c: Likewise.
35839         * lib/xstrtoumax.c: Likewise.
35840         * lib/human.h: Likewise.
35841
35842         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
35843         on systems that have <inttypes.h> but not <stdint.h>.
35844
35845 2003-01-07  Bruno Haible  <bruno@clisp.org>
35846
35847         * MODULES.html.sh: Add copyright notice.
35848         (missed_files): Omit CVS directory entries.
35849         (func_module): Make it work with sed-3.02.
35850         * MODULES.txt: Remove file.
35851
35852 2003-01-06  Jim Meyering  <jim@meyering.net>
35853
35854         * lib/version-etc.c: Update year in translatable copyright string.
35855
35856 2003-01-03  Karl Berry  <karl@gnu.org>
35857
35858         * config/config.{guess,sub}: update from prep.
35859
35860 2003-01-02  Karl Berry  <karl@gnu.org>
35861
35862         * doc/COPYING.DOC: belatedly updated to 1.2.
35863
35864 2003-01-01  Karl Berry  <karl@gnu.org>
35865
35866         * gnulib-tool (func_verify_module): report module name $module in
35867         error message, not $1.
35868         * gnulib-tool (create-testdir): don't complain if destdir couldn't
35869         be created, only if it doesn't exist.
35870         * gnulib-tool (last_checkin_date): don't expand the $Date here.
35871
35872 2002-12-31  Paul Eggert  <eggert@twinsun.com>
35873
35874         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
35875
35876 2002-12-31  Paul Eggert  <eggert@twinsun.com>
35877
35878         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
35879         memcmp if strcoll doesn't work.
35880
35881 2002-12-31  Bruno Haible  <bruno@clisp.org>
35882
35883         * lib/utime.c (utime_null): No need to call ftruncate if the file was
35884         nonempty.
35885
35886 2002-12-31  Bruno Haible  <bruno@clisp.org>
35887
35888         * lib/memcoll.c (STRCOLL): New macro.
35889         (memcoll): Use it.
35890
35891 2002-12-31  Bruno Haible  <bruno@clisp.org>
35892
35893         * lib/localcharset.h: New file.
35894         * lib/localcharset.c: Include it.
35895         * lib/unicodeio.c: Likewise.
35896
35897 2002-12-31  Bruno Haible  <bruno@clisp.org>
35898
35899         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
35900         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
35901
35902 2002-12-31  Bruno Haible  <bruno@clisp.org>
35903
35904         * lib/getline.h: Include <stddef.h>, for size_t.
35905
35906         * lib/unicodeio.h: Include <stddef.h>, for size_t.
35907         * lib/unicodeio.c: Don't include <stddef.h>.
35908
35909 2002-12-31  Bruno Haible  <bruno@clisp.org>
35910
35911         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
35912         HAVE_TM_ZONE.
35913
35914 2002-12-24  Karl Berry  <karl@gnu.org>
35915
35916         * config/config.guess: update from prep.
35917
35918 2002-12-24  Bruno Haible  <bruno@clisp.org>
35919
35920         General infrasructure.
35921         * m4/README: Rewritten.
35922         * m4/onceonly.m4: New file.
35923         * m4/onceonly_2_57.m4: New file.
35924
35925         Module atexit.
35926         * m4/atexit.m4: New file.
35927
35928         Module strtod.
35929         * m4/strtod.m4: New file.
35930
35931         Module strtol.
35932         * m4/strtol.m4: New file.
35933
35934         Module strtoul.
35935         * m4/strtoul.m4: New file.
35936
35937         Module memchr.
35938         * m4/memchr.m4: New file.
35939
35940         Module memcmp.
35941         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
35942         (jm_FUNC_MEMCMP): Invoke it.
35943
35944         Module memcpy.
35945         * m4/memcpy.m4: New file.
35946
35947         Module memmove.
35948         * m4/memmove.m4: New file.
35949
35950         Module memset.
35951         * m4/memset.m4: New file.
35952
35953         Module strcspn.
35954         * m4/strcspn.m4: New file.
35955
35956         Module strpbrk.
35957         * m4/strpbrk.m4: New file.
35958
35959         Module strstr.
35960         * m4/strstr.m4: New file.
35961
35962         Module strerror.
35963         * m4/strerror.m4: New file.
35964
35965         Module mktime.
35966         * m4/mktime.m4: Renamed from jm-mktime.m4.
35967         (gl_PREREQ_MKTIME): New macro.
35968         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
35969
35970         Module malloc.
35971         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
35972         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
35973         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
35974
35975         Module realloc.
35976         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
35977         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
35978         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
35979
35980         Module strftime.
35981         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
35982         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
35983         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
35984         gl_TM_GMTOFF.
35985         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
35986
35987         Module xalloc.
35988         * m4/xalloc.m4: New file.
35989
35990         Module alloca.
35991         * m4/alloca.m4: New file.
35992
35993         Module putenv.
35994         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
35995         (jm_FUNC_PUTENV): Invoke it.
35996
35997         Module setenv.
35998         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
35999         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
36000         when invoked twice.
36001         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
36002         gt_FUNC_SETENV.
36003
36004         Module memrchr.
36005         * m4/memrchr.m4: New file.
36006
36007         Module stpcpy.
36008         * m4/stpcpy.m4: New file.
36009
36010         Module strcase.
36011         * m4/strcase.m4: New file.
36012
36013         Module strdup.
36014         * m4/strdup.m4: New file.
36015
36016         Module strnlen.
36017         * m4/strnlen.m4: New file.
36018
36019         Module strndup.
36020         * m4/strndup.m4: New file.
36021
36022         Module xstrtod.
36023         * m4/xstrtod.m4: New file.
36024
36025         Module xstrtol.
36026         * m4/xstrtol.m4: New file.
36027
36028         Module getdate.
36029         * m4/getdate.m4: New file.
36030
36031         Module unlocked-io.
36032         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
36033         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
36034         * m4/jm-glibc-io.m4n: Remove file.
36035
36036         Module long-options.
36037         * m4/long-options.m4: New file.
36038
36039         Module md5.
36040         * m4/md5.m4: New file.
36041
36042         Module sha.
36043         * m4/sha.m4: New file.
36044
36045         Module getstr.
36046         * m4/getstr.m4: New file.
36047
36048         Module getline.
36049         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
36050         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
36051         <sys/types.h>, for size_t. Use the function name gnu_getline, not
36052         simply getline. Infoke gl_PREREQ_GETLINE.
36053
36054         Module obstack.
36055         * m4/obstack.m4: New file.
36056
36057         Module hash.
36058         * m4/hash.m4: New file.
36059
36060         Module readtokens.
36061         * m4/readtokens.m4: New file.
36062
36063         Module strverscmp.
36064         * m4/strverscmp.m4: New file.
36065
36066         Module stdbool.
36067         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
36068         OSF/1.
36069
36070         Module strtoll.
36071         * m4/strtoll.m4: New file.
36072
36073         Module strtoull.
36074         * m4/strtoull.m4: New file.
36075
36076         Module strtoimax.
36077         * m4/strtoimax.m4: New file.
36078
36079         Module strtoumax.
36080         * m4/strtoumax.m4: New file.
36081
36082         Module xstrtoimax.
36083         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
36084         jm_AC_PREREQ_XSTRTOIMAX.
36085         Moved the strtol prerequisites to strtol.m4.
36086         Moved the strtoll prerequisites to strtoll.m4.
36087         Moved the strtoimax prerequisites to strtoimax.m4.
36088
36089         Module xstrtoumax.
36090         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
36091         jm_AC_PREREQ_XSTRTOUMAX.
36092         Moved the strtoul prerequisites to strtoul.m4.
36093         Moved the strtoull prerequisites to strtoull.m4.
36094         Moved the strtoumax prerequisites to strtoumax.m4.
36095
36096         Module chown.
36097         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
36098         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
36099
36100         Module dup2.
36101         * m4/dup2.m4: New file.
36102
36103         Module ftruncate.
36104         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
36105         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
36106
36107         Module getgroups.
36108         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
36109         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
36110
36111         Module gettimeofday.
36112         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
36113         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
36114         gl_PREREQ_GETTIMEOFDAY.
36115
36116         Module mkdir.
36117         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
36118         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
36119
36120         Module mkstemp.
36121         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
36122         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
36123         jm_AC_TYPE_UINTMAX_T.
36124         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
36125
36126         Module stat.
36127         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
36128         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
36129
36130         Module lstat.
36131         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
36132         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
36133
36134         Module timespec.
36135         * m4/timespec.m4 (gl_TIMESPEC): New macro.
36136         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
36137         * m4/st_mtim.m4: Indentation.
36138
36139         Module nanosleep.
36140         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
36141         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
36142         gl_PREREQ_NANOSLEEP.
36143
36144         Module regex.
36145         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
36146         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
36147         (gl_REGEX): New macro.
36148
36149         Module rename.
36150         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
36151         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
36152
36153         Module rmdir.
36154         * m4/rmdir.m4: New file.
36155
36156         Module utime.
36157         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
36158         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
36159         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
36160
36161         Module dirname.
36162         * m4/dirname.m4: New file.
36163
36164         Module getopt.
36165         * m4/getopt.m4: New file.
36166
36167         Module unistd-safer.
36168         * m4/unistd-safer.m4: New file.
36169
36170         Module fnmatch.
36171         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
36172         declaration.
36173         (gl_PREREQ_FNMATCH_EXTRA): New macro.
36174         (gl_FUNC_FNMATCH_POSIX): New macro.
36175         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
36176         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
36177         simply fnmatch.
36178
36179         Module exclude.
36180         * m4/exclude.m4: New file.
36181
36182         Module human.
36183         * m4/human.m4: New file.
36184
36185         Module acl.
36186         * m4/acl.m4: Nop.
36187
36188         Module backupfile.
36189         * m4/backupfile.m4: New file.
36190         * m4/d-ino.m4: Indentation.
36191
36192         Module fsusage.
36193         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
36194         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
36195         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
36196
36197         Module dirfd.
36198         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
36199         requirements.
36200
36201         Module euidaccess.
36202         * m4/euidaccess.m4: New file.
36203
36204         Module file-type.
36205         * m4/file-type.m4: New file.
36206
36207         Module fileblocks.
36208         * m4/fileblocks.m4: New file.
36209
36210         Module filemode.
36211         * m4/filemode.m4: New file.
36212
36213         Module isdir.
36214         * m4/isdir.m4: New file.
36215
36216         Module lchown.
36217         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
36218         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
36219
36220         Module makepath.
36221         * m4/makepath.m4: New file.
36222
36223         Module modechange.
36224         * m4/modechange.m4: New file.
36225
36226         Module mountlist.
36227         * m4/mountlist.m4: New file.
36228         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
36229         Indentation.
36230
36231         Module path-concat.
36232         * m4/path-concat.m4: New file.
36233
36234         Module pathmax.
36235         * m4/pathmax.m4: New file.
36236
36237         Module same.
36238         * m4/same.m4: New file.
36239
36240         Module save-cwd.
36241         * m4/save-cwd.m4: New file.
36242
36243         Module savedir.
36244         * m4/savedir.m4: New file.
36245
36246         Module xgetcwd.
36247         * m4/xgetcwd.m4: New file.
36248         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
36249
36250         Module xreadlink.
36251         * m4/xreadlink.m4: New file.
36252
36253         Module safe-read.
36254         * m4/safe-read.m4: New file.
36255
36256         Module safe-write.
36257         * m4/safe-write.m4: New file.
36258
36259         Module closeout.
36260         * m4/closeout.m4: New file.
36261
36262         Module stdio-safer.
36263         * m4/stdio-safer.m4: New file.
36264
36265         Module getpass.
36266         * m4/getpass.m4: New file.
36267
36268         Module getugroups.
36269         * m4/getugroups.m4: New file.
36270
36271         Module group-member.
36272         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
36273         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
36274
36275         Module idcache.
36276         * m4/idcache.m4: New file.
36277
36278         Module userspec.
36279         * m4/userspec.m4: New file.
36280
36281         Module gettime.
36282         * m4/clock_time.m4: New file.
36283         * m4/gettime.m4: New file.
36284
36285         Module settime.
36286         * m4/settime.m4: New file.
36287
36288         Module posixtm.
36289         * m4/posixtm.m4: New file.
36290
36291         Module gethostname.
36292         * m4/gethostname.m4: New file.
36293
36294         Module canon-host.
36295         * m4/canon-host.m4: New file.
36296
36297         Module gettext.
36298         * m4/codeset.m4: New file, from gettext-0.11.5.
36299         * m4/gettext.m4: New file, from gettext-0.11.5.
36300         * m4/glibc21.m4: New file, from gettext-0.11.5.
36301         * m4/iconv.m4: New file, from gettext-0.11.5.
36302         * m4/intdiv0.m4: New file, from gettext-0.11.5.
36303         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
36304         * m4/inttypes.m4: New file, from gettext-0.11.5.
36305         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
36306         * m4/isc-posix.m4: New file, from gettext-0.11.5.
36307         * m4/lcmessage.m4: New file, from gettext-0.11.5.
36308         * m4/lib-ld.m4: New file, from gettext-0.11.5.
36309         * m4/lib-link.m4: New file, from gettext-0.11.5.
36310         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
36311         * m4/progtest.m4: New file, from gettext-0.11.5.
36312         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
36313         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
36314         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
36315
36316         Module localcharset.
36317         * m4/localcharset.m4: New file.
36318
36319         Module hard-locale.
36320         * m4/hard-locale.m4: New file.
36321
36322         Module mbswidth.
36323         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
36324         onceonly macros.
36325         * m4/mbrtowc.m4: Add comment.
36326
36327         Module memcasecmp.
36328         * m4/memcasecmp.m4: New file.
36329
36330         Module memcoll.
36331         * m4/memcoll.m4: New file.
36332
36333         Module unicodeio.
36334         * m4/unicodeio.m4: New file.
36335
36336         Module rpmatch.
36337         * m4/rpmatch.m4: New file.
36338
36339         Module yesno.
36340         * m4/yesno.m4: New file.
36341
36342         Module exitfail.
36343         * m4/exitfail.m4: New file.
36344
36345         Module c-stack.
36346         * m4/c-stack.m4 (gl_C_STACK): New macro.
36347         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
36348
36349         Module error.
36350         * m4/error.m4 (gl_ERROR): New macro.
36351         (jm_PREREQ_ERROR): Use onceonly macros.
36352
36353         Module fatal.
36354         * m4/fatal.m4: New file.
36355
36356         Module getloadavg.
36357         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
36358         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
36359
36360         Module getpagesize.
36361         * m4/getpagesize.m4: New file.
36362
36363         Module getusershell.
36364         * m4/getusershell.m4: New file.
36365
36366         Module physmem.
36367         * m4/physmem.m4: New file.
36368
36369         Module posixver.
36370         * m4/posixver.m4: New file.
36371
36372         Module quotearg.
36373         * m4/quotearg.m4: New file.
36374
36375         Module quote.
36376         * m4/quote.m4: New file.
36377
36378         Module readutmp.
36379         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
36380
36381         Module sig2str.
36382         * m4/sig2str.m4: New file.
36383
36384         Other.
36385         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
36386         ulonglong.m4.
36387         * m4/intmax_t.m4: New file.
36388         * m4/d-type.m4: Indentation.
36389         * m4/jm-macros.m4: Update.
36390         * m4/prereq.m4 (jm_PREREQ): Update.
36391         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
36392         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
36393         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
36394         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
36395         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
36396         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
36397         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
36398         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
36399         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
36400         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
36401         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
36402         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
36403         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
36404         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
36405         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
36406         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
36407         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
36408         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
36409         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
36410
36411 2002-12-24  Bruno Haible  <bruno@clisp.org>
36412
36413         * MODULES.txt: Update according to m4/ changes.
36414
36415         Module gettext.
36416         * config.rpath: New file, from gettext-0.11.5.
36417
36418         * modules/*: New module descriptions.
36419         * gnulib-tool: New file.
36420         * MODULES.html.sh: New file.
36421
36422 2002-12-21  Karl Berry  <karl@gnu.org>
36423
36424         * doc/fdl.texi: update to version 1.2.
36425
36426 2002-12-19  Karl Berry  <karl@gnu.org>
36427
36428         * config/config.guess: update from prep.
36429
36430 2002-12-18  Bruno Haible  <bruno@clisp.org>
36431
36432         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
36433         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
36434
36435 2002-12-17  Bruno Haible  <bruno@clisp.org>
36436
36437         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
36438         stdlib.h, string.h.
36439
36440 2002-12-17  Bruno Haible  <bruno@clisp.org>
36441
36442         * lib/canon-host.c (strdup): Remove unused declaration.
36443
36444         * lib/fsusage.c: Include full_read.h.
36445         (get_fs_usage): Use full_read instead of safe_read.
36446
36447         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
36448
36449 2002-12-12  Karl Berry  <karl@gnu.org>
36450
36451         * config/config.guess: update from prep.
36452
36453 2002-12-11  Bruno Haible  <bruno@clisp.org>
36454
36455         * m4/setenv.m4: New file, from gettext-0.11.5.
36456
36457 2002-12-11  Bruno Haible  <bruno@clisp.org>
36458
36459         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
36460         not unsetenv().
36461         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
36462         modifications:
36463
36464         2002-12-11  Bruno Haible  <bruno@clisp.org>
36465
36466                 * setenv.c (alloca): Fall back to malloc.
36467                 (freea): New macro.
36468                 (setenv): Use freea() to free memory allocated with alloca().
36469
36470         2002-11-13  Bruno Haible  <bruno@clisp.org>
36471
36472                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
36473                 function declarations.
36474                 * unsetenv.c (unsetenv): Likewise.
36475
36476         2002-03-04  Bruno Haible  <bruno@clisp.org>
36477
36478                 Portability to AIX 4.3.3.
36479                 * unsetenv.c: New file, extracted from setenv.c.
36480                 * setenv.c: Move the unsetenv() function to unsetenv.c.
36481
36482         2001-12-20  Bruno Haible  <bruno@clisp.org>
36483
36484                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
36485                 use malloc instead. For SunOS 4.
36486
36487         2001-12-11  Bruno Haible  <bruno@clisp.org>
36488
36489                 * setenv.c: Declare alloca.
36490                 (compar_fn_t): New typedef.
36491                 (KNOWN_VALUE, STORE_VALUE): Use it.
36492
36493         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
36494         setenv.h.
36495
36496 2002-12-10  Paul Eggert  <eggert@twinsun.com>
36497
36498         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
36499         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
36500         Choose values that are less likely to collide with system fnmatch
36501         options.
36502         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
36503         defined (e.g., a pure POSIX system).
36504         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
36505         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
36506
36507 2002-12-06  Paul Eggert  <eggert@twinsun.com>
36508
36509         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
36510         a pain in practice to deal with generated m4 files.  This change
36511         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
36512
36513         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
36514         and jm-glibc-io.m4, as they are no longer a special case.
36515         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
36516         kludge and the auto-generation stuff.  Check only whether the
36517         functions are declared, not whether they exist, since older hosts
36518         that don't declare the functions can't use the optimization anyway.
36519
36520 2002-12-06  Jim Meyering  <jim@meyering.net>
36521
36522         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
36523
36524         Merge in changes from libc's misc/error.c, in preparation
36525         for the merge of gnulib's changes back into libc.
36526
36527         * lib/error.c (_): Define only if not already defined.
36528         Move definition to follow all #include directives.
36529         Include unlocked-io.h only if !_LIBC.
36530         [_LIBC]: Include <libio/libioP.h>.
36531         [USE_IN_LIBIO]: Include <libio/iolibio.h>
36532         (fflush): Tweak definition to use INTUSE.
36533         (putc): Define.
36534
36535 2002-12-05  Paul Eggert  <eggert@twinsun.com>
36536
36537         * lib/alloca.c [defined emacs]: Include "lisp.h".
36538         (xalloc_die) [defined emacs]: New macro.
36539         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
36540         [! defined emacs]: Include <xalloc.h>.
36541         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
36542         (pointer): Typedef to POINTER_TYPE *.
36543         (malloc): Remove decl; we now always use xmalloc.
36544         (alloca): Use old-style definition, since Emacs needs this.
36545         Check for arithmetic overflow when computing combined size.
36546
36547 2002-12-04  Paul Eggert  <eggert@twinsun.com>
36548
36549         Do not generate unlocked-io.h automatically, since it's easier to
36550         maintain it by hand.
36551
36552         * lib/unlocked-io.h: New file, from GNU diffutils,
36553         but with proper copyright notice and attribution.
36554         * lib/gen-uio: Remove.
36555         * lib/Makefile.am: Add copyright notice.
36556         (libfetish_a_SOURCES): Add unlocked-io.h.
36557         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
36558         (DISTCLEANFILES, io_functions): Remove macros.
36559         (EXTRA_DIST): Remove gen_uio.
36560         (unlocked-io.h): Remove rule.
36561
36562 2002-12-04  Jim Meyering  <jim@meyering.net>
36563
36564         Reflect the fact that stat.c and lstat.c are no longer generated.
36565         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
36566         (DISTCLEANFILES): Likewise.
36567         (EXTRA_DIST): Likewise.
36568         (all_local): Don't depend on stat.c or lstat.c.
36569         (stat.c, lstat.c): Remove rules.
36570         (EXTRA_DIST): Remove xstat.in.
36571
36572         * lib/xstat.in: Remove file.  Contents moved into stat.c.
36573         * lib/stat.c: New file.  Contents mostly from xstat.in.
36574         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
36575         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
36576
36577         * lib/safe-read.c: Rework so that it may serve to define safe_write,
36578         too.
36579         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
36580
36581 2002-12-03  Jim Meyering  <jim@meyering.net>
36582
36583         * lib/safe-read.c, safe-write.c: Change variable names and comments,
36584         but not semantics, to minimize the differences between these two files.
36585         (safe_read): Change comment to mention SAFE_READ_ERROR.
36586
36587         * lib/safe-read.c (IS_EINTR): Define.
36588         (safe_read): Use IS_EINTR in place of in-function cpp directives.
36589
36590 2002-12-02  Jim Meyering  <jim@meyering.net>
36591
36592         * lib/safe-read.c (EINTR): Define.
36593         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
36594         (INT_MAX): Provide fallback.
36595         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
36596
36597         * lib/safe-read.h (SAFE_READ_ERROR): Define.
36598
36599 2002-12-02  Bruno Haible  <bruno@clisp.org>
36600
36601         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
36602         Define, taken from safe-read.c.
36603         (INT_MAX): Provide fallback.
36604         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
36605         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
36606
36607         * lib/safe-read.c (EINTR): Remove definition.
36608         (safe_read): Don't use EINTR if it is absent.
36609
36610 2002-12-01  Jim Meyering  <jim@meyering.net>
36611
36612         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
36613         zero.
36614         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
36615
36616 2002-11-27  Paul Eggert  <eggert@twinsun.com>
36617
36618         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
36619         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
36620         with `if (! (value < limit)) abort ();', for readability.
36621
36622 2002-11-26  Karl Berry  <karl@gnu.org>
36623
36624         * lib/strdup.c: copy from libc again, with jim's ok.
36625         * lib/.cppi-disable: re-add strdup.c
36626
36627 2002-11-25  Karl Berry  <karl@gnu.org>
36628
36629         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
36630         instead of "strtol.c".
36631
36632 2002-11-25  Karl Berry  <karl@gnu.org>
36633
36634         * config/install-sh: update from automake for variable quoting, $0 in
36635         error msgs, etc.
36636
36637         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
36638         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
36639         entry.
36640
36641 2002-11-25  Jim Meyering  <jim@meyering.net>
36642
36643         * lib/mktime.c: Sync from libc, now that it has the latest fix.
36644
36645 2002-11-24  Karl Berry  <karl@gnu.org>
36646
36647         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
36648         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
36649
36650 2002-11-24  Jim Meyering  <jim@meyering.net>
36651
36652         Update from coreutils:
36653
36654         * lib/mktime.c: Merge in changes from libc.
36655
36656         Avoid a link-time failure on some Linux systems.
36657         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
36658         (otherwise).
36659         (__mon_yday): Declare with the STATIC attribute.
36660         (__mktime_internal): Likewise.
36661         Based on a report from Greg Schafer.
36662
36663 2002-11-23  Jim Meyering  <jim@meyering.net>
36664
36665         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
36666         Use `unsigned', not `int', as type of index.
36667
36668         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
36669
36670         * lib/fsusage.c: Remove unneeded parentheses around operands of
36671         `defined'.
36672
36673 2002-11-22  Paul Eggert  <eggert@twinsun.com>
36674
36675         * lib/quotearg.h: Allow multiple inclusion by surrounding with
36676         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
36677         so that we can be included first.
36678         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
36679         * lib/quotearg.c: Include quotearg.h immediately after config.h.
36680         No need to include stddef.h or sys/types.h any more.
36681         Surround local include files with "", not "<>".
36682         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
36683         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
36684         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
36685         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
36686         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
36687         (ISPRINT): Remove; no longer needed now that we assume C89.
36688
36689         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
36690         Preserve errno.
36691
36692         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
36693         quotearg_char): Use SIZE_MAX rather than
36694         (size_t) -1 when we are talking about "infinity".
36695
36696         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
36697
36698 2002-11-22  Paul Eggert  <eggert@twinsun.com>
36699
36700         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
36701         hint that one should use `if (! x) abort ();' rather than `assert
36702         (x);', and anyway it's one less thing to worry about configuring.
36703         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
36704         hash_rehash, hash_insert): Use abort rather than assert.
36705
36706 2002-11-22  Bruno Haible  <bruno@clisp.org>
36707
36708         * lib/safe-read.h: Assume C89. Add comments.
36709         (safe_read): Change return type to size_t.
36710         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
36711         byte counts > SSIZE_MAX correctly.
36712         * lib/safe-write.h: New file.
36713         * lib/safe-write.c: New file.
36714         * lib/full-read.h: New file.
36715         * lib/full-read.c: New file.
36716         * lib/full-write.h: Assume C89. Add comments.
36717         * lib/full-write.c: Include safe-write.h.
36718         (full_write): Rewritten to use safe_write.
36719         Suggested by Jim Meyering and Paul Eggert.
36720
36721 2002-11-21  Jim Meyering  <jim@meyering.net>
36722
36723         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
36724
36725         Merge in changes from the coreutils.
36726
36727         2002-09-25  Paul Eggert  <eggert@twinsun.com>
36728         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
36729         <stdint.h>.
36730         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
36731         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
36732         int.  Work more efficiently if X is the same width as uintmax_t.
36733         Do not compare X to -1, to avoid bogus compiler warning.
36734         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
36735         Don't assume that f_frsize and f_bsize are the same type.
36736
36737         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
36738         warning on FreeBSD.
36739
36740         * lib/makepath.c (make_path): Restore umask *before* creating the final
36741         component.
36742         (make_path): Minor reformatting.
36743
36744         * lib/xmalloc.c: Adjust to work with new autoconf macros,
36745         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
36746         HAVE_MALLOC/HAVE_REALLOC.
36747
36748         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
36749         dummy ones.  At least on GNU/Linux systems, `auto' means something
36750         else.
36751         From Michael Stone.
36752
36753 2002-11-21  Bruno Haible  <bruno@clisp.org>
36754
36755         Remove case insensitive option matching.
36756         * lib/argmatch.h (argcasematch): Remove declaration.
36757         (ARGCASEMATCH): Remove macro.
36758         (__xargmatch_internal): Remove case_sensitive argument.
36759         (XARGMATCH): Update.
36760         (XARGCASEMATCH): Remove macro.
36761         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
36762         case_sensitive argument.
36763         (argcasematch): Remove function.
36764         (__xargmatch_internal): Remove case_sensitive argument.
36765         (main): Use XARGMATCH instead of XARGCASEMATCH.
36766
36767         * lib/xmalloc.c: Change compile-time error message. Add comment about
36768         required autoconf version.
36769
36770 2002-11-20  Paul Eggert  <eggert@twinsun.com>
36771
36772         Merge argmatch cleanups from Bison.  Assume C89.
36773
36774         * lib/argmatch.c: Include config.h here, not in argmatch.h.
36775         Include stdlib.h, for EXIT_FAILURE.
36776         Always include <string.h>, since we assume C89.
36777         (EXIT_FAILURE): Remove pre-C89 bug workaround.
36778         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
36779         Include <stddef.h> instead, since it's all we need for size_t.
36780         (PARAMS): Remove.  All uses removed.
36781         (ARRAY_CARDINALITY): Do not bother to #undef.
36782         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
36783         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36784         Remove unnecessary parentheses.
36785         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36786         Insert necessary parentheses.
36787         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
36788         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
36789
36790 2002-11-19  Bruno Haible  <bruno@clisp.org>
36791
36792         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
36793         * lib/mbswidth.h: Include <stddef.h>, for size_t.
36794
36795         * lib/mbswidth.h (PARAMS): Remove macro.
36796         (mbswidth, mbsnwidth): Use ANSI C function declarations.
36797         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
36798
36799         * lib/gcd.h (PARAMS): Remove macro.
36800         (gcd): Use ANSI C function declarations.
36801         * lib/gcd.c (gcd): Likewise.
36802
36803 2002-11-15  Bruno Haible  <bruno@clisp.org>
36804
36805         * lib/strcspn.c: Include <stddef.h>.
36806         (strcspn): Use ANSI C function declaration. Change return type to
36807         size_t. Use NULL.
36808         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
36809         (strpbrk): Use NULL.
36810         * lib/strpbrk.h (PARAMS): Remove macro.
36811         (strpbrk): Use ANSI C function declaration.
36812         * lib/strstr.c: Don't include <sys/types.h>.
36813         * lib/strstr.h (PARAMS): Remove macro.
36814         (strstr): Use ANSI C function declarations.
36815
36816 2002-11-14  Karl Berry  <karl@gnu.org>
36817
36818         * config/mkinstalldirs: `do' on separate line, instead of
36819         `for var; do'.
36820
36821 2002-11-06  Bruno Haible  <bruno@clisp.org>
36822
36823         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
36824         * lib/gcd.c (gcd): Likewise.
36825
36826 2002-11-05  Bruno Haible  <bruno@clisp.org>
36827
36828         * lib/gcd.h: New file, from gettext-0.11.5.
36829         * lib/gcd.c: New file, from gettext-0.11.5.
36830
36831 2002-11-05  Bruno Haible  <bruno@clisp.org>
36832
36833         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36834         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36835         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36836         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36837
36838         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
36839         <libintl.h>.
36840         * lib/makepath.c: Include gettext.h instead of <locale.h> and
36841         <libintl.h>.
36842
36843         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
36844         * lib/human.c: Include gettext.h instead of <libintl.h>.
36845         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
36846         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
36847         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
36848         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
36849         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
36850         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
36851         (textdomain): Remove definition.
36852         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
36853
36854         * lib/long-options.c: Remove include of <libintl.h> and definition of
36855         _.
36856         * lib/same.c: Remove include of <libintl.h> and definition of _.
36857
36858 2002-11-04  Owen Taylor  <otaylor@redhat.com>
36859
36860         * lib/config.charset: A few additions for Solaris.
36861
36862 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
36863
36864         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
36865         * lib/localcharset.c (locale_charset): Declare as extern "C".
36866
36867 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
36868
36869         * lib/config.charset: msdos in uk_UA uses CP1125.
36870
36871 2002-11-04  Bruno Haible  <bruno@clisp.org>
36872
36873         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
36874         * lib/strcase.h: New file, from GNU gettext-0.11.5.
36875         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
36876         * lib/strstr.h: New file, from GNU gettext-0.11.5.
36877         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
36878
36879 2002-11-04  Bruno Haible  <bruno@clisp.org>
36880
36881         * lib/localcharset.c (locale_charset): Don't return an empty string.
36882
36883 2002-11-04  Bruno Haible  <bruno@clisp.org>
36884
36885         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
36886         aliases.
36887
36888 2002-11-04  Bruno Haible  <bruno@clisp.org>
36889
36890         * lib/config.charset: Update for newest glibc. Add canonical names
36891         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
36892
36893 2002-11-04  Bruno Haible  <bruno@clisp.org>
36894
36895         * lib/config.charset: Add support for NetBSD.
36896
36897 2002-11-04  Bruno Haible  <bruno@clisp.org>
36898
36899         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
36900
36901 2002-11-01  Bruno Haible  <bruno@clisp.org>
36902
36903         * configure.in: Add AC_CONFIG_AUX_DIR call.
36904         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
36905         test/Makefile.
36906         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
36907
36908 2002-09-28  Karl Berry  <karl@gnu.org>
36909
36910         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
36911         installed automake until the next release, since changes have been
36912         made.
36913
36914 2002-09-25  Karl Berry  <karl@gnu.org>
36915
36916         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
36917         * lib/getopt*: copy from libc/posix.
36918         * lib/gettext.h: copy from gettext.
36919         * lib/.cppi-disable: add strdup.c, gettext.h.
36920
36921 2002-09-25  Karl Berry  <karl@gnu.org>
36922
36923         * config/srclist.txt: enable gettext.h check.
36924         * config/config.{guess,sub}: update from prep.
36925         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
36926                 from automake 1.6.3.
36927         See srclist*.
36928
36929 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
36930
36931         * regex.c (PATFETCH): Remove the translating fetch.
36932         (PATFETCH_RAW): Rename to PATFETCH.
36933         (set_image_of_range): New fun.
36934         (SET_RANGE_TABLE_WORK_AREA): Use it.
36935         (regex_compile): Don't translate the pattern chars so eagerly.
36936         Only do it when inserting an `exactn' bytecode or when handling
36937         a char-range.
36938         (mutually_exclusive_p): Avoid empty statement.
36939
36940 2002-07-06  Jim Meyering  <meyering@lucent.com>
36941
36942         * m4/README: Don't mention Makefile.am.in.
36943         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
36944
36945 2002-07-01  Jim Meyering  <meyering@lucent.com>
36946
36947         * lib/c-stack.c: Include sys/time.h.
36948         From Volker Borchert.
36949
36950 2002-06-26  Paul Eggert  <eggert@twinsun.com>
36951
36952         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
36953
36954 2002-06-26  Paul Eggert  <eggert@twinsun.com>
36955
36956         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
36957         New macro.  Use it uniformly instead of
36958         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
36959         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
36960         reported by Vin Shelton.
36961
36962 2002-06-22  Paul Eggert  <eggert@twinsun.com>
36963
36964         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
36965         Do not assume SA_SIGINFO behavior.
36966         Bug reported by Jim Meyering on NetBSD 1.5.2.
36967
36968 2002-06-22  Jim Meyering  <meyering@lucent.com>
36969
36970         * m4/c-stack.m4: New file, from diffutils-2.8.2.
36971         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
36972
36973         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
36974         now that configure.ac uses AC_GNU_SOURCE.
36975         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
36976         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
36977
36978         Update to latest tools.  Suggestions from Paul Eggert.
36979         * m4/stdbool.m4: New file, from diffutils-2.8.2.
36980         * m4/gnu-source.m4: Update from diffutils-2.8.2.
36981         * m4/fnmatch.m4: Likewise.
36982         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
36983         to AC_HEADER_STDBOOL
36984
36985 2002-06-22  Jim Meyering  <meyering@lucent.com>
36986
36987         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
36988         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
36989
36990 2002-06-22  Jim Meyering  <meyering@lucent.com>
36991
36992         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
36993
36994         * lib/exitfail.c, exitfail.h: Likewise.
36995         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
36996
36997         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
36998         of fnmatch.h.
36999         (EXTRA_DIST): Add fnmatch_loop.c.
37000         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
37001
37002         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
37003         * lib/fnmatch.c: Update from diffutils-2.8.2.
37004         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
37005         * lib/fnmatch.h: Remove file.
37006
37007 2002-06-21  Jim Meyering  <meyering@lucent.com>
37008
37009         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
37010         * m4/mbrtowc.m4: Likewise.
37011
37012         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
37013         * m4/mbswidth.m4: Reflect name change:
37014         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
37015         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
37016
37017         * m4/lib-link.m4: Update from gettext-0.11.2.
37018         * m4/gettext.m4: Likewise.
37019
37020         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
37021         From Alfred M. Szmidt.
37022
37023 2002-06-18  Paul Eggert  <eggert@twinsun.com>
37024
37025         * lib/file-type.h: Report an error if neither S_ISREG nor
37026         S_IFREG is defined, instead of using a test specific to glibc
37027         2.2.  This should be safe, since POSIX requires S_ISREG and
37028         Unix Version 7 had S_IFREG.  We don't need to check for
37029         <sys/types.h> since we don't use any symbols that it defines.
37030
37031 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
37032
37033         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
37034         $@-t, so that each temporary file name is unique and valid in the first
37035         8 characters, for operation under DOS.
37036
37037 2002-06-15  Paul Eggert  <eggert@twinsun.com>
37038
37039         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
37040
37041 2002-06-15  Jim Meyering  <meyering@lucent.com>
37042
37043         Work even with DJGPP 2.03, which lacks support for symlinks.
37044         From Richard Dawe.
37045         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
37046         is defined.
37047         * lib/lchown.c (S_ISLNK): Likewise.
37048
37049 2002-06-15  Jim Meyering  <meyering@lucent.com>
37050
37051         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
37052         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
37053         have been included before this file.
37054
37055 2002-06-14  Jim Meyering  <meyering@lucent.com>
37056
37057         * lib/file-type.h: Use the version from diffutils-2.8.2.
37058         * lib/file-type.c: Likewise.
37059
37060 2002-06-07  Jim Meyering  <meyering@lucent.com>
37061
37062         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
37063         They're needed at least for NetBSD 1.5.2.
37064         ($statxfs_includes): Include those same headers.
37065         ($statxfs_includes): Include sys/vfs.h if available.
37066         ($statxfs_includes): Likewise for sys/statvfs.h.
37067         Check for the following members in both structs statfs and statvfs:
37068         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
37069
37070 2002-06-01  Jim Meyering  <meyering@lucent.com>
37071
37072         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
37073         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
37074
37075 2002-05-28  Jim Meyering  <meyering@lucent.com>
37076
37077         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
37078         Reported by Volker Borchert.
37079
37080 2002-05-27  Jim Meyering  <meyering@lucent.com>
37081
37082         Fix a problem seen only on nonconforming systems whereby ls.c's
37083         use of localtime, and then of gettimeofday would cause trouble:
37084         the localtime call used to initialize rpl_gettimeofday's save
37085         mechanism would clobber ls's current local time information so
37086         that in any long listing the first file would always be listed
37087         with date 1970-01-01.  Analysis by Volker Borchert.
37088
37089         * lib/gettimeofday.c (localtime): Undefine.
37090         (rpl_localtime): New function.
37091
37092 2002-05-27  Jim Meyering  <meyering@lucent.com>
37093
37094         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
37095         localtime.
37096
37097         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
37098         use the replacement function; it wouldn't resolve at link time.
37099         Reported by Volker Borchert.
37100
37101 2002-05-22  Jim Meyering  <meyering@lucent.com>
37102
37103         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
37104         file-type.h.
37105         * lib/file-type.h: New file.
37106         * lib/file-type.c (file_type): New file/function.  Extracted from
37107         diffutils.
37108
37109 2002-04-30  Jim Meyering  <meyering@lucent.com>
37110
37111         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
37112
37113 2002-04-29  Paul Eggert  <eggert@twinsun.com>
37114
37115         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
37116
37117 2002-04-29  Paul Eggert  <eggert@twinsun.com>
37118
37119         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
37120         Do not check for alloca.h (no longer used) or stdbool.h (was never
37121         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
37122
37123 2002-04-29  Paul Eggert  <eggert@twinsun.com>
37124
37125         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
37126
37127 2002-04-29  Jim Meyering  <meyering@lucent.com>
37128
37129         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
37130         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
37131         Use AC_FUNC_STRNLEN here instead.
37132
37133         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
37134         With autoconf-2.53a, it's part of AC_PROG_CC.
37135
37136 2002-04-28  Paul Eggert  <eggert@twinsun.com>
37137
37138         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
37139         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
37140
37141 2002-04-28  Paul Eggert  <eggert@twinsun.com>
37142
37143         * lib/sig2str.h, lib/sig2str.c: New files.
37144         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
37145
37146 2002-04-28  Paul Eggert  <eggert@twinsun.com>
37147
37148         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
37149         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
37150         of 127, since 64 is the largest conceivable number for ancient
37151         nonstandard hosts.
37152         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
37153
37154 2002-04-28  Jim Meyering  <meyering@lucent.com>
37155
37156         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
37157
37158 2002-04-24  Jim Meyering  <meyering@lucent.com>
37159
37160         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
37161         (jm_PREREQ): Use it.
37162
37163         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
37164         mach/mach.h fcntl.h.
37165         Check for this function: setlocale.
37166
37167 2002-04-24  Jim Meyering  <meyering@lucent.com>
37168
37169         * lib/gettext.h: New file, from Gettext.
37170         * lib/Makefile.am (INCLUDES): Remove -I../intl.
37171         (libfetish_a_SOURCES): Add gettext.h.
37172
37173 2002-04-16  Jim Meyering  <meyering@lucent.com>
37174
37175         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
37176         ut_pid, ut_id, ut_exit.
37177
37178 2002-04-16  Jim Meyering  <meyering@lucent.com>
37179
37180         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
37181         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
37182         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
37183
37184 2002-04-12  Jim Meyering  <meyering@lucent.com>
37185
37186         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
37187         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
37188         existence of the getmntinfo function.  Needed for Darwin 5.3.
37189
37190         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
37191         This is necessary at least on Darwin 5.3.
37192
37193         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
37194         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
37195         strnlen.o in the library, and that makes some versions of ranlib
37196         object.
37197
37198 2002-04-12  Jim Meyering  <meyering@lucent.com>
37199
37200         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
37201
37202 2002-04-09  Jim Meyering  <meyering@lucent.com>
37203
37204         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
37205         to be more precise.  Rather than saying we're checking whether the
37206         function `works', say what we're testing.
37207         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
37208         Reported by Bruno Haible.
37209
37210 2002-03-10  Jim Meyering  <meyering@lucent.com>
37211
37212         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
37213         Suggestion from Santiago Vila.
37214
37215 2002-03-08  Jim Meyering  <meyering@lucent.com>
37216
37217         * lib/rename.c: Mention that this wrapper is needed also on
37218         mips-dec-ultrix4.4 systems.
37219
37220 2002-03-02  Jim Meyering  <meyering@lucent.com>
37221
37222         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
37223         not HAVE_CLOCK_SETTIME.
37224
37225 2002-02-27  Paul Eggert  <eggert@twinsun.com>
37226
37227         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
37228         Check for clock_settime.
37229
37230 2002-02-27  Paul Eggert  <eggert@twinsun.com>
37231
37232         * lib/nanosleep.h: Rename to....
37233         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
37234
37235         * lib/gettime.c: New file.
37236         * lib/settime.c: New file.
37237         * lib/stime.c: Remove.
37238
37239         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
37240         timespec.h.  Remove nanosleep.h.
37241
37242 2002-02-25  Paul Eggert  <eggert@twinsun.com>
37243
37244         * m4/acl.m4: New file.
37245         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
37246         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
37247
37248 2002-02-25  Paul Eggert  <eggert@twinsun.com>
37249
37250         * lib/acl.c, lib/acl.h: New files.
37251         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
37252
37253 2002-02-24  Jim Meyering  <meyering@lucent.com>
37254
37255         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
37256         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
37257         cause trouble.  Reported by Nelson Beebe.
37258
37259 2002-02-23  Paul Eggert  <eggert@twinsun.com>
37260
37261         * lib/path-concat.c (xpath_concat): Reorder code to pacify
37262         compilers that don't know that xalloc_die never returns.
37263
37264 2002-02-20  Jim Meyering  <meyering@lucent.com>
37265
37266         * lib/getdate.c: Regenerate using bison-1.33.
37267
37268 2002-02-17  Jim Meyering  <meyering@lucent.com>
37269
37270         * config/config.guess (main): Don't use `head -1'; it's no longer
37271         portable. Use `sed 1q' instead.
37272
37273 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
37274
37275         * m4/codeset.m4: Upgrade to gettext-0.11.
37276         * m4/gettext.m4: Upgrade to gettext-0.11.
37277         * m4/glibc21.m4: Upgrade to gettext-0.11.
37278         * m4/iconv.m4: Upgrade to gettext-0.11.
37279         * m4/isc-posix.m4: Upgrade to gettext-0.11.
37280         * m4/lcmessage.m4: Upgrade to gettext-0.11.
37281         * m4/lib-ld.m4: New file, from gettext-0.11.
37282         * m4/lib-link.m4: New file, from gettext-0.11.
37283         * m4/lib-prefix.m4: New file, from gettext-0.11.
37284         * m4/progtest.m4: Upgrade to gettext-0.11.
37285
37286 2002-02-15  Paul Eggert  <eggert@twinsun.com>
37287
37288         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
37289         (jm_PREREQ): Use it.
37290
37291 2002-02-15  Paul Eggert  <eggert@twinsun.com>
37292
37293         * lib/posixver.c, lib/posixver.h: New files.
37294         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
37295
37296 2002-02-02  Paul Eggert  <eggert@twinsun.com>
37297             Bruno Haible  <bruno@clisp.org>
37298
37299         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
37300         (fwrite_success_callback): New declaration.
37301         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
37302         print_unicode_char. Call failure callback instead of error.
37303         (fwrite_success_callback): New function.
37304         (exit_failure_callback): New function.
37305         (fallback_failure_callback): New function.
37306         (print_unicode_char): Call unicode_to_mb.
37307
37308 2002-01-26  Jim Meyering  <meyering@lucent.com>
37309
37310         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
37311         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
37312
37313 2002-01-26  Jim Meyering  <meyering@lucent.com>
37314
37315         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
37316
37317 2002-01-22  Paul Eggert  <eggert@twinsun.com>
37318
37319         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
37320
37321 2002-01-22  Jim Meyering  <meyering@lucent.com>
37322
37323         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
37324         Otherwise, some versions of automake would omit the rule that makes
37325         Makefile from Makefile.in.
37326
37327 2002-01-21  Paul Eggert  <eggert@twinsun.com>
37328
37329         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
37330         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
37331         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
37332         (memcoll): Set errno to zero if there is no error.
37333
37334         * lib/quotearg.c (quotearg_buffer_restyled):
37335         Fix bug with quoting buffers containing NUL when backslashing escapes.
37336         This bug was exposed by the other changes in this patch.
37337         (quotearg_n_options): New arg ARGSIZE.
37338         All callers changed.
37339         (quoting_options_from_style): New function.
37340         (quotearg_n_style): Use it.
37341         (quotearg_n_style_mem): New function.
37342
37343         * lib/quotearg.h (quotearg_n_style_mem): New function.
37344
37345 2002-01-19  Jim Meyering  <meyering@lucent.com>
37346
37347         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
37348         Remove useless quotes: DF_PROG="df".
37349         * m4/strnlen.m4: New file.
37350
37351 2002-01-16  Paul Eggert  <eggert@twinsun.com>
37352
37353         * lib/backupfile.c (ISDIGIT): Comment fix.
37354         * lib/getdate.y (ISDIGIT): Likewise.
37355         * lib/posixtm.c (ISDIGIT, year): Likewise.
37356         * lib/strverscmp.c (ISDIGIT): Likewise.
37357         * lib/userspec.c (ISDIGIT): Likewise.
37358
37359 2002-01-16  Jim Meyering  <meyering@lucent.com>
37360
37361         * lib/getdate.y: Add three semicolons, each just before a closing
37362         brace. Bison (as of version 1.31) no longer papers over that mistake.
37363
37364 2002-01-05  Jim Meyering  <meyering@lucent.com>
37365
37366         * lib/version-etc.c (version_etc_copyright): Update copyright year.
37367
37368 2001-12-19  Paul Eggert  <eggert@twinsun.com>
37369
37370         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
37371         not silently exit merely because the output buffer happens to
37372         have nothing pending.
37373
37374 2001-12-18  Paul Eggert  <eggert@twinsun.com>
37375
37376         See the big note in ../ChangeLog.
37377         * lib/human.c (suffixes): Prefer K to k for 1024.
37378         (generate_suffix_backwards): New function.
37379         (human_readable_inexact): Use it.
37380         * lib/xstrtol.c (__xstrtol): If there is no number but there
37381         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
37382         Accept 'K' as well as 'k'.
37383
37384 2001-12-15  Jim Meyering  <meyering@lucent.com>
37385
37386         * lib/regex.h (__restrict_arr): Update from libc.
37387
37388         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
37389         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
37390         (STREQ): Define.
37391
37392 2001-12-14  Jim Meyering  <meyering@lucent.com>
37393
37394         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
37395         Suggestion from Bruno Haible.
37396
37397 2001-12-10  Jim Meyering  <meyering@lucent.com>
37398
37399         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
37400         xrealloc, Instead, include "xalloc.h".
37401         (initbuffer): Don't cast xmalloc return value to char*.
37402         (readline): Reword comment.
37403         Don't cast xrealloc return value to char*
37404         Return NULL, not 0.
37405
37406 2001-12-09  Jim Meyering  <meyering@lucent.com>
37407
37408         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
37409         about `signed and unsigned type in conditional expression'.
37410         * lib/posixtm.c (posix_time_parse): Likewise.
37411
37412         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
37413
37414         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
37415         to avoid a pedantic warning.
37416
37417         * lib/getstr.c: Don't include assert.h.
37418         (getstr): Remove warning-evoking assertions.
37419         Return -1 if offset parameter is out of bounds.
37420         Change the type of a local from int to size_t.
37421
37422         * lib/strftime.c (my_strftime_localtime_r): Include this function
37423         definition in the `#if ! HAVE_TM_GMTOFF' block.
37424
37425         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
37426         Include xalloc.h instead.
37427
37428 2001-12-02  Jim Meyering  <meyering@lucent.com>
37429
37430         * lib/tempname.c: Don't declare getenv, thus reverting the change of
37431         2001-11-18.  It's no longer necessary, now that stdlib.h is always
37432         included.
37433
37434         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
37435         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
37436
37437 2001-11-30  Akim Demaille  <akim@epita.fr>
37438
37439         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
37440         before being defined.
37441
37442 2001-11-27  Paul Eggert  <eggert@twinsun.com>
37443
37444         * lib/quotearg.h (quotearg_n, quotearg_n_style):
37445         First arg is int, not unsigned.
37446         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
37447         (SIZE_MAX, UINT_MAX): New macros.
37448         (quotearg_n_options): Abort if N is negative.
37449         Avoid overflow check on hosts where size_t is 64 bits and int
37450         is 32 bits, as overflow is impossible there.
37451         Fix off-by-one typo that caused unnecessary reallocation.
37452
37453 2001-11-27  Jim Meyering  <meyering@lucent.com>
37454
37455         * lib/tempname.c: Merge with version from libc.
37456         * lib/regex.c: Likewise.
37457
37458         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
37459         systems for which STDC_HEADERS is 0, it was not included, resulting in
37460         a warning about an integer-to-pointer conversion problem with getenv.
37461         Reported by Volker Borchert.
37462
37463 2001-11-26  Jim Meyering  <meyering@lucent.com>
37464
37465         * lib/gtod.h: Remove file.
37466         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
37467         * lib/gettimeofday.c: Don't include gtod.h.
37468         (GTOD_init): Remove function.
37469         (rpl_gettimeofday): Do its job here instead, rather than aborting.
37470         Suggestion from Volker Borchert.
37471
37472 2001-11-23  Jim Meyering  <meyering@lucent.com>
37473
37474         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
37475         it.
37476         * lib/hash.c (struct hash_table): Define it here instead.
37477
37478 2001-11-22  Jim Meyering  <meyering@lucent.com>
37479
37480         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
37481
37482 2001-11-20  Jim Meyering  <meyering@lucent.com>
37483
37484         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
37485         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
37486
37487 2001-11-19  Jim Meyering  <meyering@lucent.com>
37488
37489         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
37490         directory.  Use "conftestXXXXXX" as the template.
37491         Suggestion from Paul Eggert.
37492
37493         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
37494         immediately, so the test doesn't mistakenly hit the max-open-files
37495         limit.
37496
37497 2001-11-18  Paul Eggert  <eggert@twinsun.com>
37498
37499         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
37500         (TEMPORARIES): New macro.
37501         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
37502         removes an artificial limitation (e.g. HP-UX 10.20, where
37503         TMP_MAX is 17576).
37504
37505 2001-11-18  Jim Meyering  <meyering@lucent.com>
37506
37507         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
37508
37509 2001-11-18  Jim Meyering  <meyering@lucent.com>
37510
37511         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
37512         on SunOS 4.
37513
37514         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
37515         files will be created before anything else.
37516
37517 2001-11-17  Paul Eggert  <eggert@twinsun.com>
37518
37519         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
37520         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
37521
37522 2001-11-17  Jim Meyering  <meyering@lucent.com>
37523
37524         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
37525         Prompted by a report from Bob Proulx.
37526
37527         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
37528         Instead, require UTILS_FUNC_MKSTEMP.
37529
37530 2001-11-17  Jim Meyering  <meyering@lucent.com>
37531
37532         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
37533         Now, that's done as part of AC_FUNC_STRTOD.
37534
37535 2001-11-17  Jim Meyering  <meyering@lucent.com>
37536
37537         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
37538         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
37539         rather than group writable.  Patch by Juan F. Codagnone.
37540
37541         * lib/readtokens.c: Remove explicit declarations of xmalloc and
37542         xrealloc, Instead, include "xalloc.h".
37543
37544         * lib/mountlist.c: Include unlocked-io.h after all system headers.
37545         Remove explicit declarations of xmalloc, xrealloc,
37546         and xstrdup.  Instead, include "xalloc.h".
37547
37548         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
37549         unlocked-io.h.
37550         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
37551         Likewise.
37552         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
37553
37554         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
37555         Reported by Padraig Brady.
37556
37557         * lib/mkstemp.c: #undef mkstemp.
37558         Include config.h.
37559         (rpl_mkstemp): Rename from mkstemp.
37560         Protoize.
37561
37562 2001-11-16  Jim Meyering  <meyering@lucent.com>
37563
37564         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
37565         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
37566         determine the amount of total physical memory, use pstat_getstatic.
37567         HPUX-11 doesn't define _SC_PHYS_PAGES.
37568         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
37569         If sysconf couldn't be used to determine the amount of available
37570         physical memory, use both pstat_getstatic and pstat_getdynamic.
37571         Based on a patch from Bob Proulx.
37572
37573 2001-11-10  Jim Meyering  <meyering@lucent.com>
37574
37575         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
37576         (jm_PREREQ): Use it.
37577
37578 2001-11-09  Jim Meyering  <meyering@lucent.com>
37579
37580         * m4/jm-macros.m4: Require autoconf-2.52f.
37581         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
37582         Use these AC_-prefixed names, not the AM_-prefixed ones.
37583
37584         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
37585
37586 2001-11-05  Jim Meyering  <meyering@lucent.com>
37587
37588         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
37589
37590 2001-11-04  Jim Meyering  <meyering@lucent.com>
37591
37592         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
37593         $DEFS.
37594
37595 2001-11-03  Jim Meyering  <meyering@lucent.com>
37596
37597         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
37598         of AC_DEFUN.
37599
37600         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
37601         know the name of the variable in the macro definition.
37602
37603 2001-11-03  Jim Meyering  <meyering@lucent.com>
37604
37605         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
37606         in argmatch_to_argument call.
37607
37608         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
37609         argument.
37610
37611         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
37612         e.g., a fault due to an attempt to free a NULL pointer.
37613
37614 2001-11-01  Jim Meyering  <meyering@lucent.com>
37615
37616         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
37617         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
37618
37619 2001-11-01  Jim Meyering  <meyering@lucent.com>
37620
37621         * lib/dirfd.c, lib/dirfd.h: New files.
37622         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
37623
37624         * lib/hash.c (hash_print) [TESTING]: Clean up.
37625
37626 2001-10-22  Paul Eggert  <eggert@twinsun.com>
37627
37628         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
37629         to avoid a warning if -Wall.
37630
37631 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
37632
37633         * README: New file
37634         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
37635         (per RMS's instructions, this is now the canonical source)
37636         * lgpl/, gpl/: New directories.
37637
37638 2001-10-21  Paul Eggert  <eggert@twinsun.com>
37639
37640         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
37641
37642 2001-10-21  Jim Meyering  <meyering@lucent.com>
37643
37644         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
37645         this code would end up calling gettext even in packages built
37646         with --disable-nls.
37647         * lib/getopt.c (_): Likewise.
37648         * lib/regex.c (_): Likewise.
37649
37650 2001-10-20  Paul Eggert  <eggert@twinsun.com>
37651
37652         * m4/error.m4 (jm_PREREQ_ERROR):
37653         Do not invoke AC_CHECK_FUNCS with strerror_r, as
37654         AC_FUNC_STRERROR_R does that.
37655         Check for strerror declaration.
37656
37657         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
37658         are supposed to have them these days.
37659         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
37660         Merge changes from latest Autoconf CVS.
37661         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
37662         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
37663         POSIX decided to standardize on the int flavor of strerror_r.
37664
37665 2001-10-20  Paul Eggert  <eggert@twinsun.com>
37666
37667         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
37668         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
37669         Use strerror_r that is only a macro, even if it is not a function.
37670         (strerror): Check for HAVE_DECL_STRERROR before declaring.
37671         (private_strerror): Use prototypes, not old-style function definition.
37672         (print_errno_message): New function.
37673         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
37674         char*-flavored one.
37675         (error_tail, error, error_at_line): Use it.
37676
37677 2001-10-11  Jim Meyering  <meyering@lucent.com>
37678
37679         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
37680         and quote_n (1, ... to avoid clobbering a buffer.
37681
37682 2001-10-05  Jim Meyering  <meyering@lucent.com>
37683
37684         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
37685         hash-pjw.h.
37686         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
37687         * lib/hash-pjw.h: New file.
37688
37689 2001-09-30  Jim Meyering  <meyering@lucent.com>
37690
37691         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
37692         `struct fsstat' has the `f_fstypename' member.
37693         Use that to define FS_TYPE, which is now used to make
37694         the getfsstat link test tighter.
37695
37696 2001-09-30  Jim Meyering  <meyering@lucent.com>
37697
37698         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
37699         Include <sys/ucred.h>, for Apple Darwin.
37700         Include sys/mount.h and sys/fs_types.h only if available.
37701         (FS_TYPE): Define.
37702         (read_filesystem_list): Use FS_TYPE.
37703
37704 2001-09-29  Paul Eggert  <eggert@twinsun.com>
37705
37706         * lib/exclude.c (excluded_filename): 0 -> false, since it's
37707         a boolean context.
37708
37709 2001-09-29  Jim Meyering  <meyering@lucent.com>
37710
37711         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37712         [one-argument getmntent function]): Include stdio.h before mntent.h.
37713         SunOS 4.1.x needs it for the declaration of `FILE'.
37714         Patch by Volker Borchert.
37715
37716         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37717         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
37718         sys/fs_types.h, and make the link-test for getfsstat guard #include
37719         directives with appropriate #if HAVE_*_H tests so that we can
37720         detect getfsstat on Apple Darwin1.3.7 systems.
37721         Reported by Nelson Beebe.
37722         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
37723
37724 2001-09-28  Paul Eggert  <eggert@twinsun.com>
37725
37726         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37727         #defines strtoimax.  Also treat the other strto* functions
37728         like strtoimax.
37729
37730         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
37731         Check for strtoul and strtoumax,
37732         as those declarations are made even in the signed case.
37733         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
37734         Likewise, for strtol and strtoimax.
37735
37736 2001-09-28  Paul Eggert  <eggert@twinsun.com>
37737
37738         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37739         #defines strtoimax.  Also treat the other strto* functions
37740         like strtoimax.
37741
37742         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
37743         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
37744         (strtoimax, strtoumax): Do not declare if already defined as a macro.
37745
37746 2001-09-26  Jim Meyering  <meyering@lucent.com>
37747
37748         Most macros in unlocked-io.h had the wrong number of arguments.
37749         * lib/gen-uio: New script.
37750         (USE_UNLOCKED_IO): Define to 1 if not already defined.
37751         * lib/unlocked-io.hin: Remove file.
37752         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
37753         rather than trying to embed it here.
37754         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
37755         Reported by Padraig Brady.
37756
37757 2001-09-25  Volker Borchert  <bt@teknon.de>
37758
37759         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
37760         `result'.
37761
37762 2001-09-24  Jim Meyering  <meyering@lucent.com>
37763
37764         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
37765
37766 2001-09-23  Jim Meyering  <meyering@lucent.com>
37767
37768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
37769         instead of the mere test for existence of mntent.h.  The latter
37770         would get a false-positive on AIX 3.4 systems.
37771         In the outer getmntent if-block, don't die if neither of the getmntent
37772         tests succeeds.  Instead, just fall through and continue with the
37773         remaining tests.
37774
37775 2001-09-23  Jim Meyering  <meyering@lucent.com>
37776
37777         * lib/mountlist.c: Remove useless parentheses in #if directives.
37778         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
37779         the deprecated MOUNTED symbol is no longer defined in mntent.h.
37780
37781 2001-09-22  Jim Meyering  <meyering@lucent.com>
37782
37783         * m4/gettext.m4: New file.  From gettext.
37784         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
37785         * m4/progtest.m4: Likewise
37786         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
37787         * m4/glibc21.m4: Likewise.
37788
37789         * m4/libintl.m4: Remove.  No longer used.
37790
37791 2001-09-22  Jim Meyering  <meyering@lucent.com>
37792
37793         * lib/localcharset.c: Update from latest gettext.
37794         * lib/config.charset: Likewise.
37795
37796 2001-09-20  Jim Meyering  <meyering@lucent.com>
37797
37798         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
37799         strtoimax.
37800         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
37801         strtoumax.
37802
37803 2001-09-20  Jim Meyering  <meyering@lucent.com>
37804
37805         * lib/xstrtol.c (strtoimax): Guard declaration with
37806         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
37807         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
37808         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
37809         (strtoumax): Likewise, for completeness (it wasn't necessary).
37810
37811 2001-09-17  Paul Eggert  <eggert@twinsun.com>
37812
37813         * lib/strtoimax.c (HAVE_LONG_LONG):
37814         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
37815         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
37816         to work around bug in IBM C compiler.
37817
37818 2001-09-17  Jim Meyering  <meyering@lucent.com>
37819
37820         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
37821         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
37822         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
37823         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
37824         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
37825         whenever the right hand side need not be expanded by the shell.
37826
37827 2001-09-16  Paul Eggert  <eggert@twinsun.com>
37828
37829         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
37830         library.  It's not correct, as some older glibcs are buggy.
37831         fnmatch wasn't fixed until glibc 2.2.
37832
37833         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
37834         special shell magic here.
37835
37836 2001-09-16  Jim Meyering  <meyering@lucent.com>
37837
37838         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
37839         * m4/jm-macros.m4: Require it.
37840
37841 2001-09-16  Jim Meyering  <meyering@lucent.com>
37842
37843         * lib/mkdir.c: New file.
37844
37845 2001-09-15  Jim Meyering  <meyering@lucent.com>
37846
37847         * m4/jm-macros.m4: Check for help2man.
37848
37849 2001-09-11  Jim Meyering  <meyering@lucent.com>
37850
37851         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
37852         The body, by Paul Eggert, was moved here from configure.in.
37853         * m4/jm-macros.m4: Require UTILS_HOST_OS.
37854
37855 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37856
37857         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
37858         (jm_PREREQ): Use it.
37859
37860 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37861
37862         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
37863         Use ssize_t, not int, to store result of readlink.
37864         Check for ssize_t overflow as well as size_t overflow,
37865         as POSIX says the result of readlink is implementation-defined
37866         when ssize_t overflows.
37867         Remove unnecessary cast to char*.
37868         Use free+malloc instead of realloc, as the storage doesn't need
37869         to be preserved and it's clearer and can be more efficient that way.
37870         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
37871         * lib/xreadlink.h (xreadlink): Update prototype.
37872
37873 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37874
37875         * lib/xgetcwd.c: Revert some of the previous change; intead,
37876         fix the HAVE_GETCWD_NULL code to behave more like the
37877         !HAVE_GETCWD_NULL code used to.
37878
37879         Include "xalloc.h".
37880         (xgetcwd): Do not return NULL when memory is exhausted; instead,
37881         invoke xalloc_die.
37882
37883 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37884
37885         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
37886         sys/param.h, as pathmax.h includes them.
37887
37888 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37889
37890         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
37891         (jm_PREREQ_XGETCWD): New macro.
37892
37893         * m4/getcwd.m4: New file.
37894
37895 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37896
37897         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
37898         like the HAVE_GETCWD_NULL code.
37899         Include pathmax.h if not HAVE_GETCWD.
37900         Do not include xalloc.h.
37901         (INITIAL_BUFFER_SIZE): New symbol.
37902         Do not use xmalloc / xrealloc, since the caller is responsible for
37903         handling errors.  Preserve errno around `free' during failure.
37904         Do not overrun buffer when using getwd.
37905
37906 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37907
37908         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
37909         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
37910         getcwd (NULL, 0).
37911
37912 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37913
37914         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
37915         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
37916         spotted by Jim Meyering.
37917
37918 2001-09-03  Jim Meyering  <meyering@lucent.com>
37919
37920         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
37921         failure.
37922
37923 2001-09-02  Jim Meyering  <meyering@lucent.com>
37924
37925         * lib/error.c: Update from GNU libc.
37926
37927 2001-09-01  Jim Meyering  <meyering@lucent.com>
37928
37929         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
37930         Used by df.
37931
37932 2001-09-01  Jim Meyering  <meyering@lucent.com>
37933
37934         * lib/xreadlink.c: New file.
37935         * lib/xreadlink.h: New file.
37936         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
37937         xreadlink.h.
37938
37939         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
37940         doesn't conflict with sparc Solaris 7's definition in
37941         /usr/include/sys/int_types.h.
37942
37943         * lib/exclude.c: Use `""', not `<>' to #include non-system header
37944         files.
37945         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
37946         and strncasecmp as r-values.  Unixware didn't have declarations.
37947
37948 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37949
37950         * lib/xstrtol.h: Add copyright notice.
37951         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
37952         LONGINT_INVALID_SUFFIX_CHAR.
37953
37954 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37955
37956         * lib/xstrtol.c (strtoimax): New decl.
37957
37958 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37959
37960         * lib/xgetcwd.c: Don't include pathmax.h.
37961         Include stdlib.h and unistd.h if available.
37962         Include xalloc.h.
37963         (xmalloc, xstrdup, free): Remove decls.
37964         (xgetcwd): Don't assume sizes fit in unsigned.
37965         Check for overflow when computing sizes.
37966         Simplify reallocation code.
37967
37968 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37969
37970         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
37971         a directory's st_size can have an arbitrary value, so the old
37972         usage could waste an arbitrary amount of memory.  All uses
37973         changed.
37974         * lib/savedir.h: Update prototype.
37975
37976 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37977
37978         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
37979
37980         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
37981         old strtoimax.c.
37982
37983         Also, make the following further changes to make this file's
37984         configuration more similar to that of strtol.c:
37985         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
37986         (strtoumax, uintmax_t, strtoull, strtol): Remove.
37987         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
37988         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
37989         changed to signed values.
37990
37991         And make the following changes as well:
37992         Fix copyright notice, as 1999 was missing.
37993         (verify): New macro.
37994         (strtoimax): Check sizes at compile-time, not run-time.
37995         Prefer strtol to strtoll if both work.
37996         (main): Remove; it was not that useful and was a pain to maintain.
37997
37998         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
37999
38000 2001-08-31  Jim Meyering  <meyering@lucent.com>
38001
38002         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
38003         Use an initial, malloc'd, buffer of length 128 rather than
38004         a statically allocated one of length 1024.
38005
38006 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38007
38008         Simplify code, partly by assuming autoconf 2.52 semantics.
38009
38010         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
38011
38012         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
38013         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
38014         All uses removed.
38015         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
38016         Move AC_REQUIRE to next-to-top level, to avoid confusion.
38017         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
38018         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
38019         jm_AC_HEADER_INTTYPES_H.
38020         * m4/jm-macros.m4 (jm_MACROS): Likewise.
38021
38022         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
38023
38024         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
38025         Quote first arg of AC_DEFUN.
38026         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
38027         since they are needed to parse the include file even if we need
38028         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
38029         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
38030         but with opposite signedness.
38031
38032 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38033
38034         Merge 'exclude' changes from tar 1.13.22.
38035         This fixes one or two unlikely storage allocation overflow bugs,
38036         but doesn't change user-visible behavior otherwise.
38037
38038 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38039
38040         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
38041         (jm_PREREQ_EXCLUDE): New macro.
38042
38043 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38044
38045         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
38046         tm to be declared.
38047
38048 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38049
38050         * lib/hash.c: Remove '2001' from copyright notice.
38051
38052 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38053
38054         * lib/full-write.h: New file.
38055         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
38056         * lib/full-write.c: Correct credits, as cccp.c no longer
38057         exists and anyway it was so heavily changed from the old cccp
38058         code as to be unrecognizable.  Include full-write.h.
38059         (full_write) Return size_t, with short writes meaning failure.
38060         All callers changed.  This fixes a bug with large buffers
38061         on 64-bit hosts.
38062         * lib/utime.c: Include full-write.h.
38063
38064 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38065
38066         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
38067         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
38068         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
38069         Include if available.
38070         (<xalloc.h>): Include
38071         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
38072         (verify): New macro.  Use it to verify that EXCLUDE macros do not
38073         collide with FNM macros.
38074         (struct patopts): New struct.
38075         (struct exclude): Use it, as exclude patterns now come with options.
38076         (new_exclude): Support above changes.
38077         (new_exclude, add_exclude_file):
38078         Initial size must now be a power of two to simplify overflow checking.
38079         (free_exclude, fnmatch_no_wildcards): New function.
38080         (excluded_filename): No longer requires options arg, as the options
38081         are determined by add_exclude.  Now returns bool, not int.
38082         (excluded_filename, add_exclude):
38083         Add support for the fancy new exclusion options.
38084         (add_exclude, add_exclude_file): Now takes int options arg.
38085         Check for arithmetic overflow when computing sizes.
38086         (add_exclude_file): xrealloc might modify errno, so don't
38087         realloc until after errno might be used.
38088
38089         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
38090         New macros.
38091         (free_exclude): New decl.
38092         (add_exclude, add_exclude_file): Now takes int options arg.
38093         (excluded_filename): No longer requires options arg, as the options
38094         are determined by add_exclude.  Now returns bool, not int.
38095
38096 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38097
38098         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
38099
38100 2001-08-27  Jim Meyering  <meyering@lucent.com>
38101
38102         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
38103
38104         * lib/version-etc.c (N_): Remove definition.
38105         Revert most of last change.
38106         Instead, simply don't mark the `Copyright...' string for translation.
38107         Based on advice from Paul Eggert.
38108
38109         * lib/strtoxmax.c: Tweak comment.
38110
38111 2001-08-26  Jim Meyering  <meyering@lucent.com>
38112
38113         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
38114
38115         * m4/xstrtoimax.m4: New file.
38116         * m4/xstrtoumax.m4: Add comments explaining why we
38117         AC_REPLACE_FUNCS(strtol).
38118
38119 2001-08-26  Jim Meyering  <meyering@lucent.com>
38120
38121         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
38122         of copyright with `%s' so translators don't get an untranslated
38123         message in 2002.
38124         (COPYRIGHT_YEAR): Define.
38125         (version_etc): Use fprintf rather than fputs.
38126         Suggestion from Ulrich Drepper.
38127
38128         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
38129
38130         * lib/strtoll.c: New file, from GNU libc.
38131         * lib/xstrtoimax.c: New file.
38132
38133         * lib/xstrtol.h: Add xstrtoimax.
38134         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
38135         * lib/strtoimax.c: New file.  Likewise, but first define
38136         STRTOUXMAX_SIGNED.
38137
38138         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
38139         ...
38140         * lib/strtoxmax.c: ... then renamed to this.
38141
38142 2001-08-18  Paul Eggert  <eggert@twinsun.com>
38143
38144         * m4/inttypes.m4: Add AC_PREREQ(2.13).
38145         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
38146         (jm_AC_TYPE_INTMAX_T): New macro.
38147         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
38148
38149         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
38150
38151         * m4/longlong.m4: Renamed from ulonglong.m4.
38152         * m4/inttypes.m4: Renamed from inttypes_h.m4.
38153         * m4/uintmax_t.m4: Removed.
38154
38155 2001-08-13  Paul Eggert  <eggert@twinsun.com>
38156
38157         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
38158         Port to Solaris 8, where 'sed' requires a space after the 'r'
38159         command, and where sh dislikes "$/".  Clean up the spacing a bit.
38160         Redirect output to $tmp just once.
38161
38162 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
38163
38164         * lib/addext.c (<errno.h>): Include.
38165         (errno): Declare if not defined.
38166         (addext): Work correctly when pathconf returns -1 and leaves
38167         errno alone because there is no limit.  Also, work even if
38168         pathconf returns a value greater than SIZE_MAX.
38169
38170 2001-08-12  Jim Meyering  <meyering@lucent.com>
38171
38172         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
38173         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
38174         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
38175         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
38176         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
38177         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
38178         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
38179         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
38180         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
38181         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
38182         utime.m4, utimes.m4, xstrtoumax.m4:
38183         Quote the first argument in each use of AC_DEFUN.
38184
38185 2001-08-12  Jim Meyering  <meyering@lucent.com>
38186
38187         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
38188         Simply `return getcwd (NULL, 0);'.
38189         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
38190         Use 1300 as initial value for length, not PATH_MAX.
38191
38192         * lib/pathmax.h: Clean up cpp syntax.
38193
38194 2001-08-12  Jim Meyering  <meyering@lucent.com>
38195
38196         * lib/gettimeofday.c: New file.
38197         * lib/gtod.h: New file.
38198         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
38199
38200 2001-08-05  Jim Meyering  <meyering@lucent.com>
38201
38202         * m4/jm-macros.m4: Require autoconf-2.52.
38203
38204 2001-08-04  Jim Meyering  <meyering@lucent.com>
38205
38206         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
38207         stmt, to get in sync with glibc.
38208
38209 2001-08-03  Paul Eggert  <eggert@twinsun.com>
38210
38211         The following changes are from gettext 0.10.39 as maintained by
38212         Bruno Haible.
38213
38214         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
38215         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
38216         with inverted sense.  All uses changed.
38217
38218         * lib/mbswidth.c: Don't include <limits.h>.
38219         Include <stdlib.h> and <string.h> unconditionally.
38220         (iswcntrl, mbsinit, ISCNTRL): New macros.
38221         (mbsnwidth): Use K&R style function declarations.
38222         Don't bother checking for MB_LEN_MAX == 1, since the compiler
38223         can optimize it when MB_CUR_MAX == 1.
38224         The width of control characters is zero, not 1.
38225
38226 2001-08-03  Paul Eggert  <eggert@twinsun.com>
38227
38228         The following changes are from gettext 0.10.39 as maintained by
38229         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
38230
38231         * m4/codeset.m4: Upgrade to serial AM1.
38232         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
38233         all uses changed.  Quote first arg of AC_DEFUN.
38234         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
38235
38236         * m4/iconv.m4: Upgrade to serial AM2.
38237         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
38238         Add --with-libconv-prefix.
38239         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
38240         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
38241         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
38242         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
38243         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
38244
38245         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
38246         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
38247         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
38248         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
38249         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
38250         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
38251         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38252         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
38253         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
38254
38255         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
38256         string.h any more.
38257
38258         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
38259         not the default value.
38260
38261         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
38262         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
38263         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
38264         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
38265         Also check for iswcntrl, used for wcwidth fallback.
38266         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
38267         to Autoconf 2.13.
38268
38269 2001-08-03  Jim Meyering  <meyering@lucent.com>
38270
38271         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
38272         as it was in the original.  Reported by Paul Eggert.
38273
38274 2001-07-16  Jim Meyering  <meyering@lucent.com>
38275
38276         * m4/gettimeofday.m4: New file.
38277         Prompted by a report from Bernhard Baehr.
38278
38279 2001-07-15  Jim Meyering  <meyering@lucent.com>
38280
38281         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
38282         stuff. Now it's in ../Makefile.cfg.
38283
38284 2001-07-15  Jim Meyering  <meyering@lucent.com>
38285
38286         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
38287         (BUILT_SOURCES): Add unlocked-io.h.
38288         (io_functions): Define.
38289         (unlocked-io.h): New rule.
38290         (DISTCLEANFILES): Add unlocked-io.h.
38291         (all-local): Depend on unlocked-io.h, to ensure it is created.
38292
38293         * lib/unlocked-io.hin: New file
38294
38295         * lib/regex.c: Update from glibc.
38296
38297 2001-07-05  Jim Meyering  <meyering@lucent.com>
38298
38299         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
38300         recommendation.
38301         (libfetish_a_SOURCES): Put all .h files here instead.
38302         Remove a thus-exposed (better checks in automake) duplicate and
38303         two unnecessary .h files.
38304
38305 2001-07-04  Jim Meyering  <meyering@lucent.com>
38306
38307         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
38308         that generates jm-glibc-io.m4 so that it doesn't trigger any make
38309         distcheck failure.
38310
38311 2001-07-02  Jim Meyering  <meyering@lucent.com>
38312
38313         The following changes were prompted by suggestions from Bruno Haible.
38314
38315         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
38316         is now generated.
38317         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
38318         definition of EXTRA_DIST.
38319         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
38320         ensure that the generated file is created/updated whenever the list
38321         of $(unlocked_functions) is changed.
38322         (jm-glibc-io.m4): New rule.
38323         (unlocked-io.h): New rule -- currently unused.
38324
38325 2001-06-24  Jim Meyering  <meyering@lucent.com>
38326
38327         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
38328         unmatched right bracket, rather than kludging it with an extra,
38329         falsely-matching quote in a comment.  Patch by Akim Demaille.
38330
38331 2001-06-11  Jim Meyering  <meyering@lucent.com>
38332
38333         * lib/regex.c: Update from GNU libc.
38334
38335 2001-05-27  Jim Meyering  <meyering@lucent.com>
38336
38337         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
38338         Check for ut_type in struct utmp.
38339
38340 2001-05-27  Jim Meyering  <meyering@lucent.com>
38341
38342         * lib/readutmp.h (UT_TYPE): Define.
38343
38344 2001-05-24  Jim Meyering  <meyering@lucent.com>
38345
38346         * lib/argmatch.c: Include "quote.h".
38347         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
38348         quote function.  Reported by Göran Uddeborg.
38349
38350 2001-05-22  Jim Meyering  <meyering@lucent.com>
38351
38352         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
38353         now that we use the package-supplied version unconditionally.
38354         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
38355
38356 2001-05-21  Jim Meyering  <meyering@lucent.com>
38357
38358         * m4/regex.m4: Change a couple backticks to single quotes to avoid
38359         shell syntax errors.
38360
38361 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
38362
38363         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
38364
38365 2001-05-20  Paul Eggert  <eggert@twinsun.com>
38366
38367         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
38368         Don't bother to check library strftime, since
38369         we'll be using our own my_strftime function anyway.
38370         Define my_strftime instead of strftime.
38371
38372 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
38373
38374         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
38375         which is not yet declared.
38376
38377 2001-05-15  Jim Meyering  <meyering@lucent.com>
38378
38379         * m4/regex.m4: Use proper quoting so brackets appear in the test
38380         program.
38381         Reported by, and with help from, Bruno Haible.
38382
38383 2001-05-13  Jim Meyering  <meyering@lucent.com>
38384
38385         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
38386         undefined.
38387
38388 2001-05-11  Paul Eggert  <eggert@twinsun.com>
38389
38390         dirname code cleanup.  base_name now behaves more compatibly
38391         with POSIX basename when given file names that have trailing
38392         slashes, and similarly for dir_name.  Add new primitives
38393         base_len and dir_len.  Put the directory-name-related decls
38394         into dirname.h.
38395
38396         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
38397         * lib/backupfile.c (base_name): Likewise.
38398         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
38399         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
38400         * lib/makepath.c (strip_trailing_slashes): Likewise.
38401         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
38402         ISSLASH): Likewise.
38403         * lib/rename.c (strip_trailing_slashes): Likewise.
38404         * lib/same.c (base_name): Likewise.
38405         * lib/stripslash.c (ISSLASH): Likewise.
38406
38407         * lib/addext.c: Include <dirname.h> after size_t is defined.
38408         * lib/backupfile.c: Likewise.
38409
38410         * lib/addext.c (addext): Use base_len to trim redundant
38411         trailing slashes instead of doing it ourselves.
38412         But do not trim the last slash if it is not redundant.
38413
38414         * lib/backupfile.c (find_backup_file_name,
38415         max_backup_version): Use base_len instead of rolling it ourselves.
38416         Handle the case of "" and (on DOS) "C:" correctly.
38417
38418         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
38419         needed. Include <string.h>, <dirname.h>.
38420         (base_name): Allow file names ending in slashes, other than names
38421         that are all slashes.  In this case, return the basename followed
38422         by the slashes.  This is more general, and can be used in places
38423         where the original base_name purposely had an assertion failure.
38424         (base_len): New function.
38425
38426         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
38427         Do not include <assert.h>; no longer needed.
38428         Include xalloc.h.
38429         (memrchr): Remove decl.
38430         (dir_name_r): Remove.
38431         (dir_len): Renamed from dirlen.  All callers changed.
38432         Rewrite in terms of base_name, for simplicity and consistency.
38433         (dir_name): Never return NULL.  All callers changed.
38434         Do not include <stdlib.h> in test program; no longer needed.
38435         return 0; is fine for test program.
38436
38437         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
38438         New macros.
38439         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
38440
38441         * lib/path-concat.c (path_concat): Use base_len to compute
38442         base length, not strlen; this means we cannot rely on memcpy
38443         to null-terminate.
38444
38445         * lib/same.c (STREQ): Remove.
38446         (same_name): Handle the case where the basename ends in trailing '/'.
38447
38448         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
38449         a slash was stripped.  Do not strip the last slash after a
38450         file system prefix.
38451
38452 2001-05-11  Paul Eggert  <eggert@twinsun.com>
38453
38454         * lib/Makefile.am (libfetish_a_SOURCES):
38455         Add strftime.c, since we now compile it on all hosts.
38456
38457         * lib/strftime.c (my_strftime):
38458         Define to nstrftime if emacs, but only if my_strftime is not defined.
38459         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
38460         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
38461         Add one more extra argument: a nanoseconds value.
38462         All uses changed.
38463         (ns): New macro.
38464         (my_strftime function): Add %N format.
38465         (emacs_strftimeu): Renamed from emacs_strftime,
38466         with extra ut argument.
38467
38468 2001-05-09  Paul Eggert  <eggert@twinsun.com>
38469
38470         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
38471
38472 2001-04-21  Jim Meyering  <meyering@lucent.com>
38473
38474         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
38475         doesn't interfere.
38476
38477 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
38478
38479         * m4/ftruncate.m4: Check for chsize.
38480         Link with ftruncate.o unconditionally if ftruncate is missing.
38481         This was required when cross-compiling to i586-mingw32msvc.
38482
38483 2001-04-08  Jim Meyering  <meyering@lucent.com>
38484
38485         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
38486         recomputed; that's necessary when the offset spans a DST transition.
38487         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
38488
38489 2001-04-02  Jim Meyering  <meyering@lucent.com>
38490
38491         * lib/regex.h, regex.c: Update from GNU libc.
38492
38493 2001-03-24  Jim Meyering  <meyering@lucent.com>
38494
38495         * m4/jm-macros.m4: Require autoconf-2.49d.
38496
38497 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
38498
38499         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
38500
38501 2001-03-19  Paul Eggert  <eggert@twinsun.com>
38502
38503         * lib/version-etc.c (version_etc_copyright): Update to 2001.
38504
38505 2001-03-17  Jim Meyering  <meyering@lucent.com>
38506
38507         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
38508         now that the version in autoconf is equivalent.
38509         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
38510
38511         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
38512         Suggestion from Akim Demaille.
38513
38514         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
38515         (jm_PREREQ_TEMPNAME): New function.
38516
38517 2001-03-16  Paul Eggert  <eggert@twinsun.com>
38518
38519         * lib/tempname.c (uint64_t): Define to uintmax_t if
38520         not defined, and if UINT64_MAX is not defined.
38521         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
38522         Reported by John David Anglin.
38523
38524 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
38525
38526         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
38527         resolve alias if codeset is empty.
38528         * lib/config.charset (BeOS): Use wildcard syntax.
38529
38530 2001-03-13  Jim Meyering  <meyering@lucent.com>
38531
38532         * lib/path-concat.c (path_concat)
38533         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
38534         concatenating e.g., `C:' and `foo'.
38535         From Bruno Haible.
38536
38537 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
38538
38539         * lib/localcharset.c (locale_charset): Don't use
38540         setlocale(LC_CTYPE,NULL). Don't return NULL.
38541         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
38542
38543 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
38544
38545         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
38546         support for DOS/DJGPP.
38547
38548 2001-03-01  Paul Eggert  <eggert@twinsun.com>
38549
38550         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
38551         lacks mkstemp.  Compile our own tempname.c if we compile our own
38552         mkstemp.c, as mkstemp relies on tempname.
38553
38554 2001-03-01  Jim Meyering  <meyering@lucent.com>
38555
38556         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
38557         AH_VERBATIM really does output its argument verbatim.
38558
38559 2001-02-28  Paul Eggert  <eggert@twinsun.com>
38560
38561         * lib/Makefile.am (libfetish_a_SOURCES):
38562         Add dup-safer.c, fopen-safer.c.
38563         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
38564
38565         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
38566         * lib/unistd-safer.h: New files.
38567
38568 2001-02-25  Paul Eggert  <eggert@twinsun.com>
38569
38570         The mkstemp replacement is taken from glibc 2.2.2, with some
38571         portability fixes for use outside glibc, as follows:
38572
38573         * lib/tempname.c (struct_stat64): New macro.
38574         (direxists, __gen_tempname): Use it.
38575         This avoids a portability problem with Solaris 8.
38576
38577         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
38578         (<stddef.h>, <stdint.h>, <string.h>):
38579         Include only if STDC_HEADERS || _LIBC.
38580         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
38581         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
38582         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
38583         (__set_errno): Define this macro if <errno.h> doesn't.
38584         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
38585         Define these macros if <stdio.h> doesn't.
38586         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
38587         Define these macros if <sys/stat.h>
38588         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
38589         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
38590         __xstat64): Define if not _LIBC.
38591         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
38592         (__gen_tempname): Invoke gettimeofday only if
38593         HAVE_GETTIMEOFDAY || _LIBC;
38594         otherwise, fall back on plain "time".
38595         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
38596
38597         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
38598
38599         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
38600
38601 2001-02-18  Paul Eggert  <eggert@twinsun.com>
38602
38603         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
38604
38605 2001-02-17  Paul Eggert  <eggert@twinsun.com>
38606
38607         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
38608         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
38609         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
38610         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38611
38612 2001-02-17  Paul Eggert  <eggert@twinsun.com>
38613
38614         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
38615         Remove workaround macros for hosts that have mbrtowc but not
38616         mbstate_t, as we now insist on proper declarations for both
38617         before using mbrtowc.
38618
38619 2001-02-17  Jim Meyering  <meyering@lucent.com>
38620
38621         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
38622         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
38623         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
38624         UnixWare 7.1.1.
38625
38626         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
38627         rather than AC_CACHE_VAL.
38628
38629 2001-02-17  Jim Meyering  <meyering@lucent.com>
38630
38631         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
38632         around included file name.
38633
38634         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
38635
38636         * lib/strftime.c: Update from GNU libc (the only changes were to
38637         comments).
38638
38639 2001-02-17  Jim Meyering  <meyering@lucent.com>
38640
38641         * lib/regex.c: Update from libc.
38642
38643 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
38644
38645         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
38646         clash.
38647
38648 2001-02-16  Paul Eggert  <eggert@twinsun.com>
38649
38650         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
38651         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
38652         Reported by Mark Hounschell via Paul Eggert.
38653
38654 2001-02-07  Jim Meyering  <meyering@lucent.com>
38655
38656         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
38657
38658 2001-02-05  Jim Meyering  <meyering@lucent.com>
38659
38660         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
38661         it includes the patch required for `large file' support with at least
38662         HP-UX's 10.20 /bin/cc.
38663
38664 2001-02-03  Jim Meyering  <meyering@lucent.com>
38665
38666         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
38667         AS_IF, now that it works once again (mysteriously).
38668         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38669
38670 2001-01-30  Jim Meyering  <meyering@lucent.com>
38671
38672         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
38673         * m4/chown.m4: Rename conftestchown to conftest.chown.
38674         * m4/rename.m4: s/conftestdir/conftest.d1/ and
38675         s/conftestdir2/conftest.d2/.
38676         * m4/utimes.m4: s/conftestdata/conftest.data/
38677         Inspired by Pavel Roskin's change in autoconf.
38678
38679 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
38680
38681         * lib/config.charset: Update for FreeBSD 4.2.
38682
38683 2001-01-27  Jim Meyering  <meyering@lucent.com>
38684
38685         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
38686         a use of AS_IF.
38687         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38688
38689 2001-01-26  Jim Meyering  <meyering@lucent.com>
38690
38691         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
38692         quotearg.c includes it.
38693
38694 2001-01-26  Jim Meyering  <meyering@lucent.com>
38695
38696         * lib/quotearg.c: Include stddef.h.
38697         * lib/quote.c: Include stddef.h.
38698         Reported by Axel Kittenberger.
38699
38700         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
38701         line in double quotes so that it evokes a better diagnostic.
38702         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
38703         Reported by Axel Kittenberger.
38704
38705 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
38706
38707         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
38708         as if it was a `charset'.
38709
38710 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
38711
38712         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
38713         has const.
38714
38715 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
38716
38717         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
38718         to avoid a warning.  Add back 'const' to inptr.
38719
38720 2001-01-20  Jim Meyering  <meyering@lucent.com>
38721
38722         Be sure that headers are checked before used in code compiled
38723         for the type checks.
38724         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
38725         In place of that, invoke jm_CHECK_ALL_TYPES.
38726         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
38727         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
38728         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
38729         The check for ssize_t was mistakenly run before the test for unistd.h.
38730
38731         The configure-time check for stdbool.h was missing.
38732         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
38733         (jm_PREREQ_HASH): New function.
38734
38735 2001-01-17  Jim Meyering  <meyering@lucent.com>
38736
38737         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
38738         for autoconf-2.49c.
38739         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
38740
38741 2001-01-16  Jim Meyering  <meyering@lucent.com>
38742
38743         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
38744         From Bruno Haible.
38745
38746 2001-01-14  Jim Meyering  <meyering@lucent.com>
38747
38748         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
38749         foo and bar.  Create conftestdir/ in the script, not in the C code.
38750         Remove directories in the script, not in the C code.
38751         Remove conftestdir{,2} before trying to create the directory.
38752         Make the entire configure script fail if the mkdir fails.
38753
38754 2001-01-14  Jim Meyering  <meyering@lucent.com>
38755
38756         * lib/rename.c: New file.  From Volker Borchert.
38757         Include stdlib.h, string.h or strings.h, and xalloc.h.
38758         Use strip_trailing_slashes rather than open-coding it.
38759
38760 2001-01-03  Paul Eggert  <eggert@twinsun.com>
38761
38762         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
38763
38764 2001-01-03  Jim Meyering  <meyering@lucent.com>
38765
38766         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
38767         of local `inptr' to avoid warning with some system declarations of
38768         iconv.
38769
38770 2001-01-02  Volker Borchert  <bt@teknon.de>
38771
38772         * m4/rename.m4: New file.
38773         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
38774
38775 2001-01-01  Jim Meyering  <meyering@lucent.com>
38776
38777         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
38778         even on systems with utmpx.h.  It's necessary for the declaration of
38779         utmp's ut_user member.  Reported by Andreas Jaeger.
38780
38781         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
38782         available. They are required for the declarations of getgrgid and
38783         getpwuid resp.
38784         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
38785         Reported by Andreas Jaeger.
38786
38787 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
38788
38789         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
38790         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
38791         so `make install' also works in VPATH builds.
38792
38793 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
38794
38795         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
38796         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
38797         can be used in subdirectories.
38798
38799 2000-12-29  Paul Eggert  <eggert@twinsun.com>
38800
38801         * lib/modechange.c: Do not assume that mode_t uses the
38802         traditional octal encoding.  E.g. "chmod 1 FOO" should set
38803         the other-execute bit of FOO even if S_IXOTH != 1.
38804
38805         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
38806         WOTH, XOTH, ALLM): New macros.
38807         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
38808          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
38809         Use them.
38810         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
38811         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
38812         (mode_compile):
38813         No need to use uintmax_t; unsigned long is long enough.
38814         Don't bother to get suffix since we don't use it.
38815
38816 2000-12-26  Jim Meyering  <meyering@lucent.com>
38817
38818         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
38819         better with autoheader.
38820
38821 2000-12-24  Jim Meyering  <meyering@lucent.com>
38822
38823         * lib/hash.c (is_prime): Return explicit boolean values.
38824         (hash_get_first): Return NULL to appease Irix5.6's 89.
38825         Reported by Nelson Beebe.
38826
38827 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
38828
38829         * lib/localcharset.c (locale_charset): Add support for Win32.
38830
38831 2000-12-18  Paul Eggert  <eggert@twinsun.com>
38832
38833         * lib/physmem.h, lib/physmem.c: New files.
38834
38835         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
38836         (noinst_HEADERS): Add physmem.h.
38837
38838         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
38839         't' for compatibility with Solaris 8 sort.
38840
38841 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
38842
38843         * lib/config.charset: Add support for BeOS.
38844
38845 2000-12-17  Jim Meyering  <meyering@lucent.com>
38846
38847         * m4/dos.m4 (jm_AC_DOS): New file and macro.
38848         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
38849
38850 2000-12-16  Jim Meyering  <meyering@lucent.com>
38851
38852         This bug had a serious impact on chown: `chown N:M FILE' (for integer
38853         N and M) would have treated it like `chown N:N FILE'.
38854
38855         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
38856
38857 2000-12-16  Jim Meyering  <meyering@lucent.com>
38858
38859         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
38860         SHELLS_FILE to a file name that's useful on djgpp systems.
38861         Include stdlib.h.
38862         (ADDITIONAL_DEFAULT_SHELLS): Define.
38863         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
38864         Based mostly on a patch from Prashant TR.
38865
38866 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
38867
38868         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
38869         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
38870         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
38871
38872 2000-12-08  Andreas Schwab  <schwab@suse.de>
38873
38874         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
38875         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
38876
38877 2000-12-07  Jim Meyering  <meyering@lucent.com>
38878
38879         * lib/stripslash.c (ISSLASH): Define.
38880         (strip_trailing_slashes): Use ISSLASH rather than comparing against
38881         `/'.
38882         From Prashant TR.
38883
38884         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
38885         (dir_name_r): Declare this function as static.
38886         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
38887         manifest itself on a name containing a mix of slashes and
38888         backslashes.
38889         Make this function work with names starting with a DOS-style
38890         drive letter and colon prefix.
38891         (dir_name): Append `.' if necessary.
38892         Based mostly on patches from Prashant TR and Eli Zaretskii.
38893
38894         * lib/dirname.h (dir_name_r): Remove prototype.
38895
38896 2000-12-06  Paul Eggert  <eggert@twinsun.com>
38897
38898         * m4/off_t-format.m4: Remove this file.
38899         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
38900
38901 2000-12-06  Jim Meyering  <meyering@lucent.com>
38902
38903         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
38904         replacement strtoull, we may well need the replacement strtoul, too.
38905         Check for declarations of strtoul and strtoull.
38906         Check for strtol.  Mainly as a cue to cause automake to include
38907         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
38908         Check for limits.h -- strtol.c needs it.
38909
38910 2000-12-05  Jim Meyering  <meyering@lucent.com>
38911
38912         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
38913
38914 2000-12-04  Jim Meyering  <meyering@lucent.com>
38915
38916         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
38917         Also include memory.h, stdlib.h, unistd.h if appropriate.
38918         Reported by Andreas Jaeger (conflicting declaration of malloc).
38919
38920 2000-12-02  Jim Meyering  <meyering@lucent.com>
38921
38922         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
38923         * m4/jm-macros.m4 (jm_MACROS): require it.
38924
38925 2000-12-02  Jim Meyering  <meyering@lucent.com>
38926
38927         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
38928
38929 2000-12-01  Paul Eggert  <eggert@twinsun.com>
38930
38931         * lib/memrchr.c: Include <config.h> before any system include file.
38932
38933 2000-11-30  Jim Meyering  <meyering@lucent.com>
38934
38935         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
38936
38937 2000-11-30  Jim Meyering  <meyering@lucent.com>
38938
38939         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
38940
38941 2000-11-29  Paul Eggert  <eggert@twinsun.com>
38942
38943         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
38944
38945 2000-11-26  Jim Meyering  <meyering@lucent.com>
38946
38947         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
38948
38949 2000-11-22  Paul Eggert  <eggert@twinsun.com>
38950
38951         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
38952         size of (size_t) -1; it's not portable.
38953
38954 2000-11-17  Jim Meyering  <meyering@lucent.com>
38955
38956         * lib/strstr.c: Update from GNU libc.
38957
38958 2000-11-17  Akim Demaille  <akim@epita.fr>
38959
38960         * lib/obstack.h: Formatting changes.
38961         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
38962         prevent type checking.
38963         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
38964         cast the value to (void *): assigning a `foo *' to a `void *'
38965         variable is valid.
38966         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
38967
38968 2000-11-16  Jim Meyering  <meyering@lucent.com>
38969
38970         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
38971
38972 2000-11-11  Jim Meyering  <meyering@lucent.com>
38973
38974         * lib/error.c: Add a couple #includes, merging from GNU libc version.
38975
38976 2000-11-10  Jim Meyering  <meyering@lucent.com>
38977
38978         * lib/obstack.h: Update from GNU libc.
38979         * lib/obstack.c: Likewise.
38980
38981 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
38982
38983         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
38984
38985 2000-11-06  Paul Eggert  <eggert@twinsun.com>
38986
38987         * lib/getusershell.c (setusershell): Use rewind rather than
38988         fseek/fseeko, to avoid configuration hassles with fseeko.
38989         Don't bother opening SHELLS_FILE if shellstream is NULL;
38990         it's not necessary.
38991
38992 2000-11-05  Jim Meyering  <meyering@lucent.com>
38993
38994         * lib/makepath.h (make_dir): Declare.
38995         * lib/makepath.c (make_dir): Remove `static' attribute.
38996         Tweak a comment.
38997
38998 2000-11-04  Jim Meyering  <meyering@lucent.com>
38999
39000         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
39001
39002 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
39003
39004         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
39005         last one in a bucket, advance to the next bucket.
39006
39007 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
39008
39009         * lib/fnmatch.c: Do not comment out all the code if we are using
39010         the GNU C library, because in some cases we are replacing buggy
39011         code in the GNU C library itself.
39012
39013 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
39014
39015         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
39016         (regex_compile): Catch bogus \(\1\).
39017
39018 2000-10-30  Paul Eggert  <eggert@twinsun.com>
39019
39020         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
39021         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
39022         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
39023
39024 2000-10-30  Paul Eggert  <eggert@twinsun.com>
39025
39026         * lib/error.h, getline.h, modechange.h:
39027         Remove "2000" from Copyright line, as the file hasn't been
39028         changed this year other than in the copyright notice.
39029
39030         * lib/xalloc.h: Add "2000" to Copyright line, as this file
39031         was changed this year.
39032
39033 2000-10-29  Jim Meyering  <meyering@lucent.com>
39034
39035         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
39036         renaming.
39037         * m4/ls-mntd-fs.m4: Likewise
39038
39039 2000-10-29  Jim Meyering  <meyering@lucent.com>
39040
39041         * lib/xstat.in: Fix grammar in comment.
39042
39043 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
39044
39045         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
39046         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
39047         doesn't define __restrict_arr.
39048
39049 2000-10-28  Jim Meyering  <meyering@lucent.com>
39050
39051         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
39052         (jm_PREREQ_MEMCHR): New function.
39053
39054 2000-10-28  Jim Meyering  <meyering@lucent.com>
39055
39056         * lib/memchr.c: Update from libc.
39057         Adjust for portability:
39058         [HAVE_STDLIB_H]: Include stdlib.h.
39059         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
39060         Undef __memchr, too.
39061         [!weak_alias]: Define __memchr to memchr.
39062
39063         * lib/regex.c: Update from libc.
39064         * lib/regex.h: Likewise.
39065         * lib/getopt1.c: Likewise.
39066         * lib/memcmp.c: Likewise.
39067
39068         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
39069         Avoid using fseek, when possible -- it's broken by design.
39070         Patch by Ulrich Drepper.
39071
39072 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
39073
39074         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
39075         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
39076         Giving in to popular pressure to shut up the compiler with casts.
39077
39078 2000-10-26  Jim Meyering  <meyering@lucent.com>
39079
39080         * lib/strftime.c: Update from libc.
39081
39082 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
39083
39084         * regex.c: More `unsigned char' -> `re_char' changes.
39085         Also change several `int' into `re_wchar_t'.
39086         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
39087         (PUSH_FAILURE_POINTER): Don't cast any more.
39088         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
39089         We want GCC to complain, since this piece of code makes
39090         re_match non-reentrant, which *should* be fixed.
39091         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
39092         (EXTEND_BUFFER): Use RETALLOC.
39093         (SET_LIST_BIT): Don't cast.
39094         (re_wchar_t): New type.
39095         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
39096         that those two functions will always properly return.
39097         (IMMEDIATE_QUIT_CHECK): Cast to void.
39098         (analyse_first): Use recursion rather than an explicit stack.
39099         (re_compile_fastmap): Can't fail anymore.
39100         (re_search_2): Don't check re_compile_fastmap for failure.
39101         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
39102         Now also sets the new value (passed in a new argument).
39103         (re_match_2_internal): Use it.
39104         Also, use a new var `reg' of type size_t when looping through regs
39105         rather than reuse the inappropriate `mcnt'.
39106
39107 2000-10-25  Jim Meyering  <meyering@lucent.com>
39108
39109         * lib/obstack.c: Update from libc.
39110
39111 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
39112
39113         * regex.c (regex_compile): Change the way of handling a range from
39114         a char less than 256 to a char not less than 256.
39115
39116 2000-10-24  Andrew Innes  <andrewi@gnu.org>
39117
39118         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
39119         NT-Emacs only.
39120         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
39121         so that re_search functions only quit when callers expect them to.
39122
39123 2000-10-23  Jim Meyering  <meyering@lucent.com>
39124
39125         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
39126         wrong.  That set_locale call must not have any side effects.
39127         From Paul Eggert.
39128
39129 2000-10-22  Jim Meyering  <meyering@lucent.com>
39130
39131         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
39132         [CYCLIC]: Remove now-unused definition.
39133
39134         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
39135         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
39136         Suggestion from Ulrich Drepper.
39137
39138 2000-10-21  Jim Meyering  <meyering@lucent.com>
39139
39140         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
39141         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
39142         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
39143
39144 2000-10-21  Jim Meyering  <meyering@lucent.com>
39145
39146         * lib/dirname.c (memrchr): Declare if necessary.
39147         (dir_name): Remove the restriction that there be no
39148         trailing slashes.  Now, this code skips past them, effectively
39149         ignoring them.
39150         [TEST_DIRNAME] (main): New unit tests.
39151
39152         * lib/memrchr.c: New file from GNU libc.
39153         Undef __memrchr, too.
39154         [!weak_alias]: Define __memrchr to memrchr.
39155         Guard weak_alias use with `#ifdef weak_alias'.
39156
39157 2000-10-21  Jim Meyering  <meyering@lucent.com>
39158
39159         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
39160         (dir_name): Use dir_name_r.
39161         * lib/dirname.h (dir_name_r): Declare it.
39162
39163 2000-10-17  Jim Meyering  <meyering@lucent.com>
39164
39165         * lib/quote.h (PARAMS): Define and use.
39166         Reported by Akim Demaille.
39167
39168         * lib/getopt.c: Update from libc.
39169
39170 2000-10-16  Jim Meyering  <meyering@lucent.com>
39171
39172         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
39173         setlocale.
39174         From Jan Fedak.
39175
39176 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
39177
39178         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
39179
39180 2000-09-25  Jim Meyering  <meyering@lucent.com>
39181
39182         * lib/md5.h (rol): Define (from GnuPG).
39183
39184         * lib/sha.c: Give credit (GnuPG) where due.
39185         (M): Use rol rather than open-coding it.
39186         Add a FIXME comment.
39187
39188 2000-09-21  Jim Meyering  <meyering@lucent.com>
39189
39190         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
39191         Reported by Michael Stone.
39192
39193 2000-09-20  Jim Meyering  <meyering@lucent.com>
39194
39195         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
39196         (noinst_HEADERS): Add sha.h.
39197         Based on code from Scott G. Miller and from GnuPG.
39198
39199 2000-09-18  Jim Meyering  <meyering@lucent.com>
39200
39201         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
39202         LIBS. Otherwise, everyone ends up linking with -lelf for some
39203         configurations.
39204         Reported by Mike Stone.
39205
39206 2000-09-15  Jim Meyering  <meyering@lucent.com>
39207
39208         * lib/regex.c: Update from libc.
39209
39210 2000-09-10  Jim Meyering  <meyering@lucent.com>
39211
39212         * lib/getopt.c (_getopt_internal): Update from glibc.
39213
39214 2000-09-09  Jim Meyering  <meyering@lucent.com>
39215
39216         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
39217         think it should be used as a general replacement for isascii.
39218         * lib/fnmatch.c: Likewise.
39219         * lib/mbswidth.c: Likewise
39220         * lib/regex.c: Likewise.
39221
39222         Don't use atoi.
39223         * lib/userspec.c: Include sys/param.h and limits.h.
39224         Include xstrtol.h.
39225         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
39226         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
39227         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
39228         UID, GID.  Check range.
39229
39230 2000-09-06  Jim Meyering  <meyering@lucent.com>
39231
39232         * lib/getopt.c (_getopt_internal): Update from glibc.
39233
39234 2000-08-30  Jim Meyering  <meyering@lucent.com>
39235
39236         * lib/strftime.c: Merge in changes from GNU libc.
39237
39238 2000-08-26  Jim Meyering  <meyering@lucent.com>
39239
39240         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
39241         * m4/fpending.m4: New file.
39242
39243 2000-08-26  Jim Meyering  <meyering@lucent.com>
39244
39245         * lib/closeout.c: Include "__fpending.h".
39246         (close_stdout_status): Return right away if there's nothing to flush.
39247
39248         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
39249         * lib/__fpending.c: New file.
39250         * lib/__fpending.h: New file.
39251
39252 2000-08-20  Jim Meyering  <meyering@lucent.com>
39253
39254         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
39255         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
39256         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
39257
39258 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
39259
39260         Improve fileutils installation on systems where running
39261         programs (like install) can't be unlinked.
39262         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
39263         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
39264
39265 2000-08-07  Paul Eggert  <eggert@twinsun.com>
39266
39267         Standardize on "memory exhausted" instead of "Memory exhausted"
39268         or "virtual memory exhausted".
39269         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
39270         "virtual memory exhausted".
39271         * lib/same.c (same_name): Invoke xalloc_die instead of printing
39272         our own message.
39273         * lib/userspec.c (parse_user_spec): Likewise.
39274         * lib/bumpalloc.h: comment fix
39275         * lib/same.c, userspec.c: Include xalloc.h.
39276
39277         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
39278         not char *const and pointing to a constant array.
39279         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
39280         (xrealloc): Comment fix.
39281
39282         * lib/userspec.c (parse_user_spec):
39283         Don't translate a message until just before returning,
39284         to avoid unnecessary translation.
39285
39286 2000-08-07  Jim Meyering  <meyering@lucent.com>
39287
39288         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
39289         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
39290         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
39291         getgroups.c, gethostname.c, getopt.h, group-member.c,
39292         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
39293         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
39294         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
39295         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
39296         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
39297         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
39298         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
39299         yesno.c: Back out Copyright date changes for each file with no change
39300         this year.  This eases coordination with other programs using the same
39301         source code modules.  From Paul Eggert.
39302
39303 2000-08-06  Paul Eggert  <eggert@twinsun.com>
39304
39305         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
39306         not char, for compatibility with glibc 2.1.3 strftime.c.
39307
39308 2000-08-03  Greg McGary  <greg@mcgary.org>
39309
39310         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
39311         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
39312         (EXTEND_BUFFER): Use them.
39313
39314 2000-08-01  Jim Meyering  <meyering@lucent.com>
39315
39316         * lib/dirname.c (ISSLASH): Define.
39317         (BACKSLASH_IS_PATH_SEPARATOR): Define.
39318         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
39319         both `\' and `/' may be use as path separators.
39320         Based on a patch from Prashant TR.
39321
39322 2000-07-31  Paul Eggert  <eggert@twinsun.com>
39323
39324         * lib/quotearg.c (quotearg_n_options): Don't make the initial
39325         slot vector a constant, since it might get modified.
39326
39327 2000-07-31  Jim Meyering  <meyering@lucent.com>
39328
39329         * lib/xmalloc.c: Use `virtual memory exhausted', not
39330         `Memory exhausted'.
39331         * lib/obstack.c (print_and_abort): Likewise.
39332
39333 2000-07-30  Paul Eggert  <eggert@twinsun.com>
39334
39335         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
39336         buffer, so that the caller can always quote one small
39337         component of a "memory exhausted" message in slot 0.
39338         From a suggestion by Jim Meyering.
39339
39340 2000-07-30  Jim Meyering  <meyering@lucent.com>
39341
39342         * lib/makepath.c (make_path): Quote the other instance, too.
39343
39344         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
39345         (STATIC_BUF_SIZE): Define.
39346         (quotearg_n_options): Use only statically allocated storage when
39347         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
39348         than STATIC_BUF_SIZE.
39349
39350 2000-07-29  Jim Meyering  <meyering@lucent.com>
39351
39352         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
39353         * lib/dirname.c (dir_name): Likewise.
39354
39355         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
39356         `/'.
39357
39358         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
39359         (dir_name): Assert that there are no trailing slashes.
39360
39361 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
39362
39363         * lib/mbswidth.h (mbswidth): Add a flags argument.
39364         (mbswidth): New declaration.
39365         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
39366         * lib/mbswidth.c (mbswidth): Add a flags argument.
39367         (mbsnwidth): New function.
39368
39369 2000-07-24  Jim Meyering  <meyering@lucent.com>
39370
39371         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
39372
39373 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39374
39375         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
39376
39377 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39378
39379         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
39380         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
39381         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
39382         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
39383         invoke multibyte primitives.
39384
39385 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39386
39387         * lib/quotearg.c:
39388         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
39389         so that mbstate_t is always defined.
39390
39391         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
39392         be 1 in at least one GCC installation, and this configuration
39393         error is likely to be common.  Ignoring MB_LEN_MAX hurts
39394         performance on hosts that have mbrtowc but have only unibyte
39395         locales, but I assume these hosts are rare.
39396
39397 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39398
39399         * lib/mbswidth.c (_XOPEN_SOURCE):
39400         Don't define; this causes problems on Solaris 7.
39401         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
39402
39403 2000-07-23  Jim Meyering  <meyering@lucent.com>
39404
39405         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
39406         too: getgrgid, getpwuid, getuid.
39407
39408 2000-07-23  Jim Meyering  <meyering@lucent.com>
39409
39410         * lib/basename.c (base_name): Add an assertion.
39411
39412 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
39413
39414         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
39415         shadow its mbsinit function.
39416
39417 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
39418
39419         * lib/mbswidth.h: New file.
39420         * lib/mbswidth.c: New file.
39421         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
39422         (noinst_HEADERS): Add mbswidth.h.
39423
39424 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
39425
39426         * lib/config.charset: Add support for FreeBSD. Improve support for
39427         HP-UX and IRIX 6.
39428
39429 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
39430
39431         * m4/mbswidth.m4: New file.
39432         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
39433
39434 2000-07-15  Jim Meyering  <meyering@lucent.com>
39435
39436         * lib/makepath.c: Include quote.h.
39437         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
39438         corresponding argument in a `quote (...)' call.
39439         Give better diagnostics.
39440
39441         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
39442         (noinst_HEADERS): Add quote.h.
39443
39444         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
39445         from tar's src/misc.c.
39446         * lib/quote.h: New file.  Prototypes for same.
39447
39448 2000-07-14  Paul Eggert  <eggert@twinsun.com>
39449
39450         From a suggestion by Bruno Haible.
39451         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
39452         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
39453         to decide whether to define the BeOS workaround macro;
39454         this adjusts to the change to AC_MBSTATE_T.
39455
39456 2000-07-14  Jim Meyering  <meyering@lucent.com>
39457
39458         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
39459         jm_AC_TYPE_UINTMAX_T.
39460
39461 2000-07-13  Paul Eggert  <eggert@twinsun.com>
39462
39463         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
39464
39465         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
39466         quotearg_buffer_restyled): Add support for
39467         clocale_quoting_style.  Undo previous change to
39468         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
39469         and "{RIGHT QUOTATION MARK}" msgids.
39470
39471 2000-07-10  Paul Eggert  <eggert@twinsun.com>
39472
39473         From a suggestion by Bruno Haible.
39474         * m4/mbstate_t.m4 (AC_MBSTATE_T):
39475         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
39476         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
39477         and mbstate_t, to a single-part test that simply defines mbstate_t.
39478         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
39479         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
39480
39481 2000-07-10  Jim Meyering  <meyering@lucent.com>
39482
39483         * m4/strerror_r.m4: Mirror the correction made in autoconf.
39484
39485         * m4/gnu-source.m4: Output to confdefs.h directly.
39486         Suggestion from Akim Demaille.
39487
39488 2000-07-09  Paul Eggert  <eggert@twinsun.com>
39489
39490         The old behavior of quoting `like this' doesn't look good with
39491         newer, ISO-style fonts.  See:
39492         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
39493
39494         Instead, quote "like this" by default.  Let the translator
39495         tailor the locale-specific quoting behavior by providing
39496         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
39497
39498         * lib/quotearg.c (N_): New macro.
39499         (gettext_default): New function.
39500         (quotearg_buffer_restyled): Use
39501         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
39502         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
39503
39504 2000-07-09  Jim Meyering  <meyering@lucent.com>
39505
39506         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
39507         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
39508
39509         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
39510         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
39511
39512 2000-07-09  Jim Meyering  <meyering@lucent.com>
39513
39514         * lib/Most files: Update copyright dates to include 2000.
39515
39516 2000-07-08  Jim Meyering  <meyering@lucent.com>
39517
39518         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
39519         if not defined.
39520         (xgethostname): Remove now-unnecessary #ifdef.
39521         Move declaration of `err' into loop where it's used.
39522
39523 2000-07-05  Paul Eggert  <eggert@twinsun.com>
39524         and Bruno Haible  <haible@clisp.cons.org>
39525
39526         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
39527         only if the test for an object-type mbstate_t fails.  This
39528         prevents us from mistakenly reporting that mbstate_t is a
39529         system object type after we "#define mbstate_t int" to work
39530         around its lack.
39531
39532 2000-07-05  Paul Eggert  <eggert@twinsun.com>
39533         and Bruno Haible  <haible@clisp.cons.org>
39534
39535         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
39536
39537 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39538
39539         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
39540         to strerror_r.
39541         Include <ctype.h> for use of isalpha.
39542
39543 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39544
39545         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
39546         by allocating a larger buffer. Test the gethostname return value for
39547         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
39548         returns an error and ENAMETOOLONG isn't defined.
39549
39550 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39551
39552         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
39553         dimension.
39554
39555 2000-07-04  Jim Meyering  <meyering@lucent.com>
39556
39557         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
39558         of the deprecated AC_CHECKING.
39559
39560 2000-07-04  Jim Meyering  <meyering@lucent.com>
39561
39562         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
39563         Reported by Bruno Haible.
39564
39565 2000-07-04  Jim Meyering  <meyering@lucent.com>
39566
39567         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
39568         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
39569         lacks mbrtowc.
39570
39571 2000-07-03  Paul Eggert  <eggert@twinsun.com>
39572
39573         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
39574         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
39575
39576 2000-07-03  Paul Eggert  <eggert@twinsun.com>
39577         and Bruno Haible  <haible@clisp.cons.org>
39578
39579         * lib/quotearg.c (mbrtowc):
39580         Assign to *pwc, and return 1 only if result is nonzero.
39581         (iswprint): Use ISPRINT when substituting our own mbrtowc.
39582
39583 2000-07-03  Jim Meyering  <meyering@lucent.com>
39584
39585         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
39586
39587 2000-07-03  Jim Meyering  <meyering@lucent.com>
39588
39589         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
39590         This is necessary to get a definition of e.g., UTMP_FILE on
39591         HP-UX 10.20.
39592         From Bob Proulx.
39593
39594 2000-07-02  Jim Meyering  <meyering@lucent.com>
39595
39596         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
39597
39598         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
39599         AC_LIBOBJ(function_name).
39600         * m4/chown.m4: Likewise.
39601         * m4/fnmatch.m4: Likewise.
39602         * m4/ftruncate.m4: Likewise.
39603         * m4/getgroups.m4: Likewise.
39604         * m4/getline.m4: Likewise.
39605         * m4/group-member.m4: Likewise.
39606         * m4/jm-macros.m4: Likewise.
39607         * m4/lstat.m4: Likewise.
39608         * m4/malloc.m4: Likewise.
39609         * m4/memcmp.m4: Likewise.
39610         * m4/nanosleep.m4: Likewise.
39611         * m4/putenv.m4: Likewise.
39612         * m4/realloc.m4: Likewise.
39613         * m4/regex.m4: Likewise.
39614         * m4/stat.m4: Likewise.
39615         * m4/strftime.m4: Likewise.
39616
39617 2000-07-02  Jim Meyering  <meyering@lucent.com>
39618
39619         * lib/quotearg.c (mbstate_t): Don't define here.
39620
39621 2000-07-02  Jim Meyering  <meyering@lucent.com>
39622
39623         * lib/nanosleep.c (SIGCONT): Define if not already defined.
39624
39625 2000-07-01  Jim Meyering  <meyering@lucent.com>
39626
39627         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
39628
39629 2000-07-01  Jim Meyering  <meyering@lucent.com>
39630
39631         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
39632         problem.
39633
39634 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
39635
39636         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
39637         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
39638
39639 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
39640
39641         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
39642         per change in ../m4/ls-mntd-fs.m4.
39643         (read_filesystem_list): Ignore symbolic links.
39644
39645 2000-06-29  Jim Meyering  <meyering@lucent.com>
39646
39647         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
39648         for declaration of strcmp.
39649
39650         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
39651
39652         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
39653         Avoid warning by casting result to `char *' to remove `const'.
39654
39655 2000-06-28  Jim Meyering  <meyering@lucent.com>
39656
39657         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
39658         included by quotearg.c, for which we perform this test.  From
39659         Bruno Haible.
39660
39661 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
39662
39663         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
39664         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
39665         <utmpx.h> exists, put readutmp.o into LIBOBJS.
39666
39667 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
39668
39669         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
39670
39671 2000-06-26  Paul Eggert  <eggert@twinsun.com>
39672
39673         savedir now sets errno on failure and invokes xmalloc to get memory.
39674         Fix a couple of other minor bugs while we're at it.
39675
39676         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
39677         (NAMLEN): Remove macro.
39678         (malloc, realloc): Remove decls.
39679         (stpcpy): Likewise.
39680         ("xalloc.h"): Include.
39681         (NAME_SIZE_DEFAULT): New macro.
39682         (savedir): Use xmalloc / xrealloc to allocate memory.
39683         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
39684         Skip "" directory entries.
39685         Use strlen to calculate directory entry length, since the old method
39686         is rarely used these days and isn't worth supporting.
39687         Don't use a pointer after freeing it.
39688         Check for integer overflow when calculating allocation size.
39689         Use memcpy to copy entries, instead of stpcpy.
39690         Set errno properly when returning NULL.
39691         Check for readdir error.
39692
39693 2000-06-26  Jim Meyering  <meyering@lucent.com>
39694
39695         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
39696
39697 2000-06-25  Jim Meyering  <meyering@lucent.com>
39698
39699         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
39700         Linux header bug when _XOPEN_SOURCE is defined to 500.
39701
39702 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
39703
39704         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
39705         deficiency.
39706
39707 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
39708
39709         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
39710         Include xalloc.h.
39711         Don't include <stdlib.h>.  Don't declare malloc, realloc.
39712
39713 2000-06-24  Jim Meyering  <meyering@lucent.com>
39714
39715         * m4/strerror_r.m4: Revive this file -- to try out an experimental
39716         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
39717         for which strerror does return char*, but which lacks a conveniently
39718         accessible declaration of the function.  If the compile-test says
39719         strerror_r doesn't work, then resort to a `run'-test that works on
39720         BeOS and segfaults on DEC Unix.
39721
39722 2000-06-24  Jim Meyering  <meyering@lucent.com>
39723
39724         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
39725
39726 2000-06-23  Paul Eggert  <eggert@twinsun.com>
39727
39728         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
39729         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
39730
39731 2000-06-23  Paul Eggert  <eggert@twinsun.com>
39732
39733         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
39734         (mbrtowc, mbstate_t): Define substitutes if
39735         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
39736         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
39737         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
39738
39739 2000-06-23  Jim Meyering  <meyering@lucent.com>
39740
39741         * m4/afs.m4: Add missing AC_MSG_RESULT.
39742         Reported by Bruno Haible.
39743
39744         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
39745         Suggestion from Bruno Haible.
39746
39747 2000-06-23  Jim Meyering  <meyering@lucent.com>
39748
39749         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
39750
39751 2000-06-21  Jim Meyering  <meyering@lucent.com>
39752
39753         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
39754
39755 2000-06-21  Jim Meyering  <meyering@lucent.com>
39756
39757         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
39758         (noinst_HEADERS): Add getstr.h.
39759
39760         * lib/getline.c (getstr): Move into a separate file.
39761         * lib/getstr.c (getstr): New file, extracted from getline.c, with
39762         the following changes: new parameter, delim2; both delim[12]
39763         parameters have type `int', not `char'.  The latter would lose
39764         with 8-bit delimiters.
39765         * lib/getstr.h: New file.
39766
39767 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39768
39769         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
39770         than 1024, return a memory chunk of least possible size, instead
39771         of size PATH_MAX + 2. In the loop, increment the size proportionally.
39772         Use free/xmalloc instead of xrealloc to avoid copying for very long
39773         paths.
39774
39775 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39776
39777         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
39778         the empty string.
39779
39780 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39781
39782         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
39783         address, not strdup.  Include <stdlib.h> and don't declare free().
39784
39785 2000-06-19  Jim Meyering  <meyering@lucent.com>
39786
39787         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
39788
39789 2000-06-18  Jim Meyering  <meyering@lucent.com>
39790
39791         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
39792
39793         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
39794         `checking whether...' message to be consistent with that of the
39795         lstat test.
39796
39797 2000-06-18  Jim Meyering  <meyering@lucent.com>
39798
39799         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
39800         Besides, these days every porting target provides a mkdir function.
39801
39802         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
39803         needed. (this snippet comes from src/system.h).
39804
39805 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
39806
39807         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
39808
39809 2000-06-15  Paul Eggert  <eggert@twinsun.com>
39810
39811         * lib/human.c (adjust_value): New function.
39812         (human_readable_inexact): Apply rounding style even when
39813         printing approximate values.
39814
39815 2000-06-14  Paul Eggert  <eggert@twinsun.com>
39816
39817         * lib/human.c (human_readable_inexact): Allow an input block
39818         size that is not a multiple of the output block size, and vice versa.
39819         Reported by Piergiorgio Sartor.
39820
39821 2000-06-14  Paul Eggert  <eggert@twinsun.com>
39822
39823         * lib/getdate.y (get_date): Apply relative times after time
39824         zone indicator, not before.  Reported by Todd A. Jacobs.
39825
39826 2000-06-13  Jim Meyering  <meyering@lucent.com>
39827
39828         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
39829
39830         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
39831
39832 2000-06-12  Paul Eggert  <eggert@twinsun.com>
39833
39834         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
39835
39836 2000-06-12  Jim Meyering  <meyering@lucent.com>
39837
39838         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
39839         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
39840         optional argument.
39841         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
39842         the optional argument, `lib'.
39843
39844 2000-06-08  Jim Meyering  <meyering@lucent.com>
39845
39846         * m4/largefile.m4: Remove file (now that it's part of autoconf).
39847
39848 2000-06-04  Paul Eggert  <eggert@twinsun.com>
39849
39850         Rewrite largefile configuration so that we don't need to run
39851         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
39852         AC_CANONICAL_HOST in configure.in -- jmm]
39853
39854         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
39855         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
39856         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
39857         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
39858         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
39859         All uses changed.
39860         Instead of inspecting the output of getconf, try to compile the
39861         test program without and with the macro definition.
39862         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
39863         for getconf.  Instead, check for the needed flags by compiling
39864         test programs.
39865
39866 2000-06-04  Paul Eggert  <eggert@twinsun.com>
39867
39868         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
39869
39870 2000-06-04  Jim Meyering  <meyering@lucent.com>
39871
39872         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
39873         SunOS 4.1.4 for which gid_t is an unsigned type.
39874
39875 2000-06-03  Jim Meyering  <meyering@lucent.com>
39876
39877         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
39878         now that autoconf requires that.
39879
39880         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
39881         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
39882         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
39883
39884 2000-06-03  Jim Meyering  <meyering@lucent.com>
39885
39886         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
39887
39888 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
39889
39890         * m4/glibc21.m4: New file.
39891         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
39892
39893 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
39894
39895         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
39896         newer, don't install charset.alias.
39897         * lib/config.charset: Change the Linux/glibc rules so they become empty
39898         on glibc-2.1 or newer.
39899
39900 2000-06-02  Jim Meyering  <meyering@lucent.com>
39901
39902         * lib/mountlist.c: Back out last change.  Instead, do this...
39903         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
39904         me_dummy member using the same `ignore'-testing code.
39905         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
39906         fs_type strings.
39907         From Mark D. Roth.
39908
39909 2000-05-29  Jim Meyering  <meyering@lucent.com>
39910
39911         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
39912         mounts with the `ignore' attribute.  Based on a patch from
39913         Mark D. Roth.
39914
39915 2000-05-28  Jim Meyering  <meyering@lucent.com>
39916
39917         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
39918         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39919         * m4/stat.m4: Likewise.
39920         * m4/lstat.m4: Likewise.
39921         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
39922
39923         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
39924         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
39925
39926 2000-05-26  Jim Meyering  <meyering@lucent.com>
39927
39928         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
39929
39930 2000-05-24  Jim Meyering  <meyering@lucent.com>
39931
39932         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
39933         autoconf requires that.
39934         * m4/lib-check.m4: Likewise.
39935         * m4/jm-macros.m4: Likewise.
39936         * m4/strftime.m4: Likewise.
39937
39938         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
39939         AC_CHECK_DECLS, now that autoconf requires that.
39940
39941 2000-05-22  Jim Meyering  <meyering@lucent.com>
39942
39943         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39944         * m4/lstat.m4: Likewise.
39945
39946 2000-05-22  Jim Meyering  <meyering@lucent.com>
39947
39948         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
39949
39950 2000-05-20  Jim Meyering  <meyering@lucent.com>
39951
39952         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
39953         (jm_PREREQ): Use it.
39954
39955 2000-05-18  Jim Meyering  <meyering@lucent.com>
39956
39957         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
39958         back, too, since it may have been modified by allocate_entry.
39959         (hash_delete): Rewrite to use neither the assignment operator
39960         nor the comma operator in an if-expression.
39961
39962 2000-05-15  Paul Eggert  <eggert@twinsun.com>
39963
39964         * lib/closeout.c:
39965         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
39966         Remove; no longer needed.
39967         "quotearg.h": Add include.
39968         (file_name): Do not bother to explicitly initialize to NULL; it's less
39969         efficient on some hosts.
39970         (close_stdout_status): Remove test as to whether stdout was already
39971         closed; it breaks for the case "echo x | sort >&-".
39972         Quote file name colons.
39973         Do not assume that _("write error") lacks format strings.
39974
39975 2000-05-15  Jim Meyering  <meyering@lucent.com>
39976
39977         * lib/version-etc.c (version_etc_copyright): Update the copyright
39978         string used in all --version output.
39979
39980 2000-05-14  Jim Meyering  <meyering@lucent.com>
39981
39982         * lib/closeout.c (close_stdout_set_file_name): New function.
39983         (close_stdout_status): Use new file-scoped global.
39984         Return right away if fstat says the stdout file descriptor is invalid.
39985         * lib/closeout.h (close_stdout_set_file_name): Declare.
39986
39987 2000-05-10  Jim Meyering  <meyering@lucent.com>
39988
39989         * lib/closeout.c [default_exit_status]: New file-scoped variable.
39990         (close_stdout_set_status): New function.
39991         * lib/closeout.h (close_stdout_set_status): Declare.
39992
39993 2000-05-09  Jim Meyering  <meyering@lucent.com>
39994
39995         * m4/gettext.m4: Rename this...
39996         * m4/libintl.m4: ...to this.
39997
39998 2000-05-08  Jim Meyering  <meyering@lucent.com>
39999
40000         * lib/long-options.c: Don't include closeout.h.
40001         (parse_long_options): Don't call close_stdout for --version.
40002
40003 2000-05-06  Paul Eggert  <eggert@twinsun.com>
40004
40005         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
40006         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
40007         2.1.3 bug.  This avoids a clash when files like regex.c define
40008         _GNU_SOURCE.
40009
40010 2000-05-06  Jim Meyering  <meyering@lucent.com>
40011
40012         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
40013         (AC_REPLACE_FUNCS): Add strnlen.
40014
40015         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
40016         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
40017
40018         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
40019         AC_SEARCH_LIBS call for nanosleep.
40020         (LIB_NANOSLEEP): Set and AC_SUBST.
40021
40022 2000-05-06  Jim Meyering  <meyering@lucent.com>
40023
40024         * lib/strnlen.c: Undefine __strnlen and strnlen.
40025         [!weak_alias]: Define __strnlen to strnlen.
40026
40027         * lib/atexit.c: New file, from libiberty.
40028
40029 2000-05-06  Jim Meyering  <meyering@lucent.com>
40030
40031         * lib/closeout.c (close_stdout_status): Also check for errors on the
40032         stderr stream.
40033
40034 2000-05-05  Jim Meyering  <meyering@lucent.com>
40035
40036         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
40037         AC_SEARCH_LIBS call for clock_gettime.
40038         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
40039
40040         * m4/search-libs.m4: Update from autoconf.
40041
40042         su doesn't work on Solaris 2.6.
40043         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
40044         <shadow.h>.  Reported by Dragos Harabor.
40045
40046 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
40047
40048         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
40049         memcpy instead of xmalloc, xrealloc, path_concat.
40050         (locale_charset): Treat empty environment variables as absent.
40051         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
40052
40053 2000-05-04  Jim Meyering  <meyering@lucent.com>
40054
40055         * lib/getopt.c: Update from glibc.
40056         * lib/obstack.c: Likewise.
40057         * lib/obstack.h: Likewise.
40058         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
40059         file
40060
40061         * lib/regex.h: Likewise.
40062         * lib/strndup.c: Likewise.
40063         * lib/strnlen.c: New file, from glibc.
40064
40065 2000-05-03  Jim Meyering  <meyering@lucent.com>
40066
40067         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
40068
40069 2000-05-02  Paul Eggert  <eggert@twinsun.com>
40070
40071         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
40072         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
40073         compile-time test, rather than inspecting host and OS, to
40074         decide whether to define _LARGEFILE_SOURCE.
40075
40076 2000-05-01  Jim Meyering  <meyering@lucent.com>
40077
40078         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
40079
40080         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
40081         Based on a patch from Bruno Haible.
40082
40083 2000-05-01  Jim Meyering  <meyering@lucent.com>
40084
40085         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
40086
40087 2000-04-29  Jim Meyering  <meyering@lucent.com>
40088
40089         * lib/path-concat.c: Declare strdup only if it's not defined.
40090         * lib/canon-host.c: Likewise.
40091
40092 2000-04-28  Jim Meyering  <meyering@lucent.com>
40093
40094         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
40095         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
40096         is included first, then limits.h is included by locale.h by libintl.h.
40097         From John David Anglin.
40098
40099 2000-04-25  Jim Meyering  <meyering@lucent.com>
40100
40101         * lib/makepath.c (S_IRWXUGO): Define.
40102         (make_path): Always perform explicit chmod if MODE specifies any
40103         of the `special' permission bits.  Prompted by a bug report against
40104         install from Mate Wierdl and Joost van Baal.
40105
40106 2000-04-18  Jim Meyering  <meyering@lucent.com>
40107
40108         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
40109         (jm_PREREQ): Use it.
40110
40111 2000-04-18  Jim Meyering  <meyering@lucent.com>
40112
40113         * lib/README: New file.
40114
40115         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
40116         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
40117
40118 2000-04-17  Jim Meyering  <meyering@lucent.com>
40119
40120         Get it right :-)
40121         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
40122         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
40123         Suggestion from Akim Demaille.
40124
40125 2000-04-17  Jim Meyering  <meyering@lucent.com>
40126
40127         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
40128         the definition of it to rpl_strftime also defined-away the system's
40129         declaration.
40130
40131 2000-04-15  Jim Meyering  <meyering@lucent.com>
40132
40133         Use `C' to denote so-called `contiguous' files, the same way
40134         that tar does.
40135         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
40136         (ftypelet): Use S_ISCTG.
40137         From Michael Deutschmann.
40138
40139 2000-04-14  Jim Meyering  <meyering@lucent.com>
40140
40141         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
40142         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
40143         clobbered.
40144
40145 2000-04-14  Jim Meyering  <meyering@lucent.com>
40146
40147         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
40148
40149 2000-04-13  Jim Meyering  <meyering@lucent.com>
40150
40151         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
40152         AH_VERBATIM to insert required #ifndef into config.h.in.
40153         Suggestion from Akim Demaille.
40154
40155 2000-04-12  Jim Meyering  <meyering@lucent.com>
40156
40157         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
40158         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
40159         Christian Krackowizer.
40160
40161         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
40162         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
40163         (AC_SYS_LARGEFILE): Require.
40164         (AM_C_PROTOTYPES): Require.
40165
40166 2000-04-08  Jim Meyering  <meyering@lucent.com>
40167
40168         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
40169         names don't conflict.  Reported by Eli Zaretskii.
40170
40171 2000-04-07  Jim Meyering  <meyering@lucent.com>
40172
40173         * lib/putenv.c: Move inclusion of errno.h so it follows that of
40174         sys/types.h, to work around system header problems on AIX 3.2.5.
40175         From Bruno Haible.
40176
40177 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
40178
40179         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
40180         bug.  Deal with the different error behavior of Irix iconv.
40181
40182 2000-04-05  Paul Eggert  <eggert@twinsun.com>
40183
40184         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
40185         IRIX if the installer said otherwise.
40186
40187 2000-04-05  Jim Meyering  <meyering@lucent.com>
40188
40189         Portability tweaks required for ultrix4.3.
40190         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
40191         (jm_CHECK_DECLS): Add getutent to the list of functions.
40192         (_jm_DECL_HEADERS): Add utmpx.h.
40193         From John David Anglin.
40194
40195         * m4/strftime.m4: Back out the 2000-04-02 change.
40196         Instead of that change, simply undefine putenv in the test program.
40197
40198 2000-04-05  Jim Meyering  <meyering@lucent.com>
40199
40200         Portability tweaks required for ultrix4.3.
40201         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
40202         getutent.
40203         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
40204         * lib/canon-host.c: Declare strdup.
40205         * lib/path-concat.c: Likewise.
40206         From John David Anglin.
40207
40208 2000-04-04  Jim Meyering  <meyering@lucent.com>
40209
40210         Be more DOS 8.3-friendly.
40211         * lib/ref-add.sin: Renamed from ref-add.sed.in.
40212         * lib/ref-del.sin: Renamed from ref-del.sed.in.
40213         * lib/Makefile.am: Reflect renaming.
40214         Reported by Eli Zaretskii.
40215
40216         Use a temporary file name that won't clash with `charset.alias'
40217         in the DOS 8.3 name space.
40218         * lib/Makefile.am (charset_tmp): Define.
40219         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
40220         (uninstall-local): Likewise.
40221         Reported by Eli Zaretskii.
40222
40223 2000-04-03  Jim Meyering  <meyering@lucent.com>
40224
40225         * m4/gettext.m4: Fix typo in comment.
40226
40227         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
40228         textutils/configure.in).  Suggestion from Paul Eggert.
40229         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
40230
40231 2000-04-02  Paul Eggert  <eggert@twinsun.com>
40232
40233         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
40234         variable in the shell rather than using putenv, which isn't
40235         portable.  This avoids the configure-time inter-test dependency
40236         on the potentially-renamed putenv function.
40237
40238 2000-03-30  Paul Eggert  <eggert@twinsun.com>
40239
40240         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
40241         before checking struct stat.st_blksize, so that
40242         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
40243
40244 2000-03-29  Paul Eggert  <eggert@twinsun.com>
40245
40246         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
40247         since strftime.c uses HAVE_STRFTIME to decide whether to use
40248         the underlying strftime.
40249
40250 2000-03-29  Paul Eggert  <eggert@twinsun.com>
40251
40252         * lib/time/strftime.c (my_strftime): Make sure we call the system
40253         strftime, not ourselves, when invoking the underlying strftime.
40254
40255 2000-03-24  Jim Meyering  <meyering@lucent.com>
40256
40257         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
40258         (charset_alias): Define.
40259         (install-exec-local): Factor out common code.
40260         (uninstall-local): Split lines longer than 80.
40261         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
40262         (SUFFIXES): Define.
40263         (.sed.in.sed): New rule.  Don't redirect directly to $@.
40264         (CLEANFILES): Add ref-add.sed and ref-del.sed.
40265
40266 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
40267
40268         * lib/config.charset: Output a line containing "Packages using this
40269         file".
40270         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
40271         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
40272         ref-del.sed): New rules.
40273
40274 2000-03-17  Jim Meyering  <meyering@lucent.com>
40275
40276         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
40277         Otherwise, include <strings.h>
40278
40279 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
40280
40281         * lib/unicodeio.c (utf8_wctomb): New function.
40282         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
40283         format instead of in UCS-4 with platform dependent endianness.
40284
40285 2000-03-10  Jim Meyering  <meyering@lucent.com>
40286
40287         * m4/lib-check.m4: Look for getspnam in -lgen, too.
40288         From Marco Franzen.
40289
40290 2000-03-07  Paul Eggert  <eggert@twinsun.com>
40291
40292         * lib/savedir.c (savedir): Work even if directory size is
40293         negative; this can happen with some screwy NFS configurations.
40294
40295 2000-03-06  Jim Meyering  <meyering@lucent.com>
40296
40297         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
40298         if it's NULL (because we ran out of memory).  From Bruno Haible.
40299
40300 2000-03-05  Jim Meyering  <meyering@lucent.com>
40301
40302         * lib/localcharset.c ("path-concat.h"): Include.
40303         (get_charset_aliases): Use path_concat instead of ANSI string
40304         concatenation.
40305
40306         * lib/unicodeio.h (PARAMS): Define.
40307         Use it to guard prototype.
40308
40309 2000-03-04  Jim Meyering  <meyering@lucent.com>
40310
40311         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
40312         for lib/localcharset.c.
40313
40314 2000-03-04  Jim Meyering  <meyering@lucent.com>
40315
40316         * lib/Makefile.am (install-exec-local): Create $(libdir) before
40317         installing into it.
40318         (uninstall-local): Uncomment this rule so `make distcheck' works
40319         once again.
40320
40321         * lib/unicodeio.c (<errno.h>): Include it.
40322         (errno): Declare if not defined.
40323
40324         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
40325
40326         * lib/config.charset: New version, incorporating remarks from a linux
40327         i18n mailing list.  From Bruno Haible.
40328
40329 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
40330
40331         * m4/codeset.m4: New file.
40332         * m4/iconv.m4: New file.
40333         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
40334
40335 2000-03-03  Jim Meyering  <meyering@lucent.com>
40336
40337         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
40338
40339 2000-03-02  Jim Meyering  <meyering@lucent.com>
40340
40341         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
40342         the messages come out on separate lines.
40343
40344         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
40345         rather than jm_CHECK_DECLARATIONS.
40346         * m4/decl.m4: Remove now-unused file.
40347
40348         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
40349         geteuid.
40350
40351 2000-03-02  Jim Meyering  <meyering@lucent.com>
40352
40353         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
40354
40355 2000-03-01  Jim Meyering  <meyering@lucent.com>
40356
40357         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
40358         * lib/unicodeio.c: Likewise.
40359
40360 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
40361
40362         * lib/config.charset: New file.
40363         * lib/localcharset.c: New file.
40364         * lib/unicodeio.h, lib/unicodeio.c: New files.
40365         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
40366         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
40367         (noinst_HEADERS): Add unicodeio.h.
40368         (all-local, install-exec-local, charset.alias): New targets.
40369
40370 2000-02-28  Paul Eggert  <eggert@twinsun.com>
40371
40372         * lib/quotearg.c (ALERT_CHAR): New macro.
40373         (quotearg_buffer_restyled): Use it.
40374
40375 2000-02-27  Jim Meyering  <meyering@lucent.com>
40376
40377         * m4/check-decl.m4: Add getenv to the list.
40378
40379 2000-02-27  Jim Meyering  <meyering@lucent.com>
40380
40381         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
40382         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
40383
40384         * lib/backupfile.c: Guard inclusion of stdlib.h with
40385         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
40386         Declare malloc if needed.
40387
40388         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
40389         `#ifndef HAVE_DECL..'
40390         now that autoconf always defines the HAVE_DECL_ symbols.
40391         * lib/human.c: Likewise.
40392         * lib/same.c: Likewise.
40393         * lib/strtoumax.c: Likewise.
40394
40395         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
40396         declaration check was not run.
40397         * lib/hash.c: Likewise.
40398         * lib/human.c: Likewise.
40399         * lib/same.c: Likewise.
40400         * lib/strtoumax.c: Likewise.
40401
40402         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
40403         `.', then first look up the entire `.'-containing string as a login
40404         name.
40405
40406 2000-02-23  Jim Meyering  <meyering@lucent.com>
40407
40408         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
40409         in place of my hack.
40410
40411 2000-02-18  Paul Eggert  <eggert@twinsun.com>
40412
40413         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
40414         (textint): New typedef.
40415         (parser_control): Member year changed from int to textint.
40416         All uses changed.
40417         (YYSTYPE): Removed; replaced by %union with int and textint members.
40418         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
40419         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
40420         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
40421         (tSNUMBER, tUNUMBER): Now of type <textintval>.
40422         (date, number, to_year): Use width of number in digits, not its value,
40423         to determine whether it's a 2-digit year, or a 2-digit time.
40424         (yylex): Store number of digits of numeric tokens.
40425         Reported by John Kendall.
40426
40427         (parser_control): Changed from struct parser_control to typedef (for
40428         consistency).  All uses changed.
40429
40430         (tID): Removed; not used.
40431         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
40432
40433 2000-02-14  Paul Eggert  <eggert@twinsun.com>
40434
40435         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
40436         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
40437
40438 2000-02-12  Jim Meyering  <meyering@lucent.com>
40439
40440         * lib/userspec.c (ISDIGIT): Define it.
40441         (isdigit): Remove definition.
40442         (is_number): Use ISDIGIT, not isdigit.
40443         <libintl.h>: Include.
40444         (_ and N_): Define.
40445         (parse_user_spec): Mark translatable strings.
40446
40447 2000-02-10  Jim Meyering  <meyering@lucent.com>
40448
40449         With these changes, nanosleep.[ch] are finally enough like the other
40450         lib/* replacement files to compile on a few more losing systems.
40451
40452         * lib/nanosleep.h: Don't include config.h.
40453         Remove prototype from declaration of nanosleep.
40454         (PARAMS): Remove now-unneeded definition.
40455         * lib/nanosleep.c: #undef nanosleep.
40456         (rpl_nanosleep): Rename from nanosleep.
40457
40458 2000-02-10  Jim Meyering  <meyering@lucent.com>
40459
40460         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
40461         gnu_nanosleep to rpl_nanosleep.
40462
40463 2000-02-09  Jim Meyering  <meyering@lucent.com>
40464
40465         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
40466         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
40467
40468 2000-02-08  Akim Demaille  <akim@epita.fr>
40469
40470         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
40471         `[' and `]' and remove uses of `changequote'.
40472         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
40473         (AC_SYS_LARGEFILE): Likewise.
40474         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40475         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
40476         of changequote.
40477         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
40478         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
40479         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
40480         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
40481
40482 2000-02-05  Jim Meyering  <meyering@lucent.com>
40483
40484         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
40485         Remove explicit use of AC_HEADER_TIME.  It is required by
40486         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
40487         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
40488         in autoconf whereby the expansion of the latter ended up preceding
40489         the expansion of its prerequisite, AC_HEADER_TIME.
40490         Reported by Volker Borchert.
40491
40492 2000-02-03  Jim Meyering  <meyering@lucent.com>
40493
40494         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
40495
40496 2000-02-03  Jim Meyering  <meyering@lucent.com>
40497
40498         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
40499         rather than with `#if HAVE_UTMPNAME'.
40500
40501 2000-02-02  Jim Meyering  <meyering@lucent.com>
40502
40503         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
40504         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
40505         Reported by Eli Zaretskii.
40506
40507 2000-02-01  Jim Meyering  <meyering@lucent.com>
40508
40509         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
40510
40511 2000-01-31  Jim Meyering  <meyering@lucent.com>
40512
40513         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
40514         functions.  Add the time.h and sys/time.h headers along with the
40515         AC_REQUIRE'ment of AC_HEADER_TIME.
40516
40517 2000-01-31  Jim Meyering  <meyering@lucent.com>
40518
40519         * lib/nanosleep.h (nanosleep): Guard declaration with
40520         `#if ! HAVE_DECL_NANOSLEEP'.
40521         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
40522         the declaration in that vendor's sys/timers.h.
40523         Reported by Christian Krackowizer.
40524
40525         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
40526         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
40527         (ISPRINT): Likewise.
40528         Reported by Tom Tromey.
40529
40530 2000-01-30  Jim Meyering  <meyering@lucent.com>
40531
40532         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
40533
40534         * m4/prereq.m4 (utmp_includes): Define.
40535         Check for ut_user and ut_name members in both struct utmpx
40536         and struct utmp.
40537
40538 2000-01-30  Jim Meyering  <meyering@lucent.com>
40539
40540         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
40541         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
40542         header files where only utmpx.ut_user is declared.
40543
40544         * lib/readutmp.h (UT_USER): Define.
40545
40546 2000-01-29  Jim Meyering  <meyering@lucent.com>
40547
40548         * m4/lib-check.m4: New file containing library-related checks from
40549         fileutils and sh-utils (textutils had none).
40550
40551 2000-01-28  Jim Meyering  <meyering@lucent.com>
40552
40553         * m4/perl.m4: Change format of warning message to look more like that
40554         from the missing script.  Suggestion from François Pinard.
40555
40556 2000-01-25  Jim Meyering  <meyering@lucent.com>
40557
40558         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
40559         well as time.h in the compile check.
40560         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
40561         Fix typo in cross-compiling case: s/yes/no/.
40562
40563 2000-01-23  Jim Meyering  <meyering@lucent.com>
40564
40565         * m4/jm-macros.m4: Move df-related tests here from
40566         fileutils/configure.in
40567
40568         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
40569         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
40570
40571         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
40572         s/space/ac_fsusage_space/.
40573         (jm_FILE_SYSTEM_USAGE): Take two parameters.
40574
40575         * m4/ftruncate.m4: New file (derived from part of
40576         fileutils/configure.in).
40577         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
40578         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
40579
40580         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
40581         AC_SUBST these here, rather than just in sh-util/configure.in, so
40582         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
40583         all the same.
40584         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
40585         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
40586         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
40587         (AC_SUBST(POW_LIBM)): Likewise.
40588         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
40589
40590 2000-01-23  Jim Meyering  <meyering@lucent.com>
40591
40592         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
40593         obstack.c.
40594
40595 2000-01-22  Jim Meyering  <meyering@lucent.com>
40596
40597         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
40598
40599         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
40600
40601         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
40602         configure.in
40603         (AC_CHECK_HEADERS): Likewise for sh-utils.
40604         (AC_CHECK_HEADERS): Likewise for textutils.
40605         Merge the three lists of headers.
40606
40607         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
40608         from fileutils' configure.in.
40609
40610         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
40611         code. Moved tests into their own function (_jm_DECL_HEADERS) in
40612         check-decl.m4.
40613
40614         * m4/check-decl.m4: Use #if rather than #ifdef.
40615         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
40616         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
40617         (_jm_DECL_HEADERS): Define new function.
40618         (jm_CHECK_DECLARATIONS): Require it.
40619
40620 2000-01-22  Jim Meyering  <meyering@lucent.com>
40621
40622         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
40623         [! HAVE_DECL_STRTOULL]: Declare strtoull.
40624         Required for some AIX systems.  Reported by Christian Krackowizer.
40625         [TESTING] (main): New function.
40626
40627         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
40628         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
40629         letters.
40630
40631         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
40632         iswprint.
40633
40634         * lib/strverscmp.c (ISDIGIT): Define.
40635         (strverscmp): Use ISDIGIT, not isdigit.
40636
40637 2000-01-19  Jim Meyering  <meyering@lucent.com>
40638
40639         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
40640         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
40641         defines `struct timespec' in <sys/time.h>
40642
40643         * m4/c-bs-a.m4: Remove uses of changequote altogether.
40644         Thanks to Akim for explaining.
40645
40646 2000-01-17  Paul Eggert  <eggert@twinsun.com>
40647
40648         * lib/nanosleep.c (nanosleep):
40649         Don't use SA_INTERRUPT to decide whether to call sigaction, as
40650         POSIX.1 doesn't require SA_INTERRUPT and some systems
40651         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
40652         it's been part of POSIX.1 since day 1 (in 1988).
40653
40654 2000-01-17  Jim Meyering  <meyering@lucent.com>
40655
40656         * lib/interlock: Remove unused file.  Reported by François Pinard.
40657
40658 2000-01-16  Paul Eggert  <eggert@twinsun.com>
40659
40660         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
40661         alert, backslash, formfeed, and vertical tab unnecessarily in
40662         shell quoting style.
40663
40664 2000-01-16  Jim Meyering  <meyering@lucent.com>
40665
40666         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
40667         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
40668         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
40669         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
40670
40671 2000-01-16  Jim Meyering  <meyering@lucent.com>
40672
40673         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
40674         because the latter didn't work.
40675
40676 2000-01-15  Jim Meyering  <meyering@lucent.com>
40677
40678         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
40679         (AC_REPLACE_FUNCS): Add memcpy and memset.
40680         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
40681         Add strpbrk.
40682         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
40683
40684 2000-01-12  Jim Meyering  <meyering@lucent.com>
40685
40686         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
40687         (jm_PREREQ): Use it.
40688         (jm_PREREQ_READUTMP): New macro.
40689         (jm_PREREQ): Use it.
40690
40691 2000-01-11  Paul Eggert  <eggert@twinsun.com>
40692
40693         Quote multibyte characters correctly.
40694         * m4/c-bs-a.m4: New file.
40695         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
40696         (jm_PREREQ): Use it.
40697
40698 2000-01-11  Paul Eggert  <eggert@twinsun.com>
40699
40700         * m4/uintmax_t.m4: Port to autoconf 2.13.
40701
40702 2000-01-08  Jim Meyering  <meyering@ascend.com>
40703
40704         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
40705         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
40706
40707 2000-01-04  Jim Meyering  <meyering@ascend.com>
40708
40709         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
40710         jm_STRUCT_DIRENT_D_TYPE.
40711         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
40712         jm_STRUCT_DIRENT_D_INO.
40713         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
40714         jm_STRUCT_UTIMBUF.
40715         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
40716         renamings.
40717         * m4/utime.m4: Likewise.
40718
40719         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
40720         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
40721
40722 2000-01-03  Paul Eggert  <eggert@twinsun.com>
40723
40724         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
40725         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
40726
40727 2000-01-02  Jim Meyering  <meyering@ascend.com>
40728
40729         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
40730         remember if this is necessary.
40731
40732 1999-12-26  Jim Meyering  <meyering@ascend.com>
40733
40734         * m4/jm-macros.m4: Use it here.
40735         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
40736
40737 1999-12-23  Jim Meyering  <meyering@ascend.com>
40738
40739         * m4/jm-macros.m4: Check for clock_gettime (moved from
40740         fileutils/configure.in)
40741         Check for gettimeofday.
40742
40743 1999-12-20  Jim Meyering  <meyering@ascend.com>
40744
40745         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
40746         autoconf-2.14a-1999-12-20.
40747
40748 1999-12-19  Jim Meyering  <meyering@ascend.com>
40749
40750         * m4/lstat-slash.m4: New file.
40751         * m4/jm-macros.m4: Use the new macro:
40752         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40753
40754 1999-12-07  Jim Meyering  <meyering@ascend.com>
40755
40756         * m4/perl.m4: Require that File::Compare be available, too.
40757         Too many systems seem to lack it.
40758
40759         * m4/strftime.m4: Add checks for most of the cpp macros tested in
40760         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
40761
40762 1999-11-18  Paul Eggert  <eggert@twinsun.com>
40763
40764         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
40765         problem with the QNX 4.25 shell, which doesn't propagate exit
40766         status of failed commands inside shell assignments.
40767
40768 1999-11-17  Jim Meyering  <meyering@ascend.com>
40769
40770         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
40771
40772 1999-11-07  Jim Meyering  <meyering@ascend.com>
40773
40774         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
40775
40776 1999-11-06  Jim Meyering  <meyering@ascend.com>
40777
40778         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
40779         * m4/jm-macros.m4 (jm_MACROS): Use it here.
40780
40781 1999-11-05  Jim Meyering  <meyering@ascend.com>
40782
40783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
40784         configure.in of textutils, fileutils, and sh-utils into this one
40785         (shared between those packages) file.
40786         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
40787         AC_STRUCT_ST_BLKSIZE.
40788
40789 1999-11-03  Jim Meyering  <meyering@ascend.com>
40790
40791         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
40792         of AC_CHECK_TYPE checks includes unistd.h.
40793         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
40794         Suggestion from Akim Demaille.
40795
40796 1999-10-30  Jim Meyering  <meyering@ascend.com>
40797
40798         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
40799         m4-quoted string.
40800         * m4/ls-mntd-fs.m4: Likewise.
40801         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
40802         * m4/jm-winsz1.m4: Likewise.
40803
40804         * m4/const.m4: Remove file, since the fix made it into the experimental
40805         version of autoconf.
40806         * m4/mktime.m4: Likewise.
40807
40808         * m4/check-type.m4: Remove file, now that the latest version of
40809         AC_CHECK_TYPE takes a third arg to specify additional #includes.
40810
40811         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
40812         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
40813         AC_CHECK_TYPE.
40814
40815 1999-10-04  Jim Meyering  <meyering@ascend.com>
40816
40817         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
40818
40819 1999-09-22  Paul Eggert  <eggert@twinsun.com>
40820
40821         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
40822         2.95.1 bug with HP-UX 10.20.
40823
40824 1999-09-17  Jim Meyering  <meyering@ascend.com>
40825
40826         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
40827         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
40828         due to missing strdup (against sh-utils-2.0).
40829
40830 1999-08-29  Jim Meyering  <meyering@ascend.com>
40831
40832         * m4/jm-macros.m4: Require jm_BISON.
40833         * m4/bison.m4: New file.
40834
40835 1999-08-17  Paul Eggert  <eggert@twinsun.com>
40836
40837         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
40838         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
40839
40840 1999-08-05  Jim Meyering  <meyering@ascend.com>
40841
40842         * m4/getline.m4: Rename test file from conftestdata to conftest.data
40843         to avoid conflicts with `conftest' on 8+3 filesystems.
40844         Suggestion from Eli Zaretskii.
40845
40846 1999-08-04  Jim Meyering  <meyering@ascend.com>
40847
40848         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
40849         fileutils and sh-utils (textutils's getline test was inadequate).
40850         (AM_FUNC_GETLINE): Run this test.
40851         (AC_CHECK_FUNCS): Check for getdelim.
40852         Reported by Bob Proulx.
40853
40854 1999-08-02  Jim Meyering  <meyering@ascend.com>
40855
40856         * m4/jm-macros.m4: Add a comment.
40857
40858 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40859
40860         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
40861         <inttypes.h> defines strtoumax as a macro (and not as a
40862         function).
40863
40864 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40865
40866         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
40867         that we can shift, multiply and divide unsigned long long
40868         values; Ultrix cc can't do it.
40869
40870 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40871
40872         * m4/mktime.m4: New file, which is a preview of what should appear
40873         in the next public autoconf release.
40874
40875 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40876
40877         * m4/lfs.m4: Remove this file.
40878         * m4/largefile.m4: New file.  It contains the old contents of
40879         lfs.m4, except that all names with prefix AC_LFS have been
40880         changed to use the prefix AC_SYS_LARGEFILE instead, to be
40881         compatible with future autoconf versions.  Also, some minor m4
40882         quoting problems have been fixed.
40883
40884 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40885
40886         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
40887         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
40888         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
40889         and simplify the shell code.
40890
40891 1999-08-01  Jim Meyering  <meyering@ascend.com>
40892
40893         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
40894         m4.
40895
40896 1999-07-20  Jim Meyering  <meyering@ascend.com>
40897
40898         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
40899
40900 1999-07-15  Jim Meyering  <meyering@ascend.com>
40901
40902         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
40903
40904 1999-05-22  Jim Meyering  <meyering@ascend.com>
40905
40906         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
40907
40908 1999-05-20  Jim Meyering  <meyering@ascend.com>
40909
40910         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
40911         Add a colon after each `then' in case $4 is empty.
40912
40913 1999-05-16  Jim Meyering  <meyering@ascend.com>
40914
40915         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
40916
40917 1999-05-10  Jim Meyering  <meyering@ascend.com>
40918
40919         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
40920
40921         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
40922         AC_FUNC_MKTIME.
40923
40924 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
40925
40926         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
40927
40928 1999-05-04  Paul Eggert  <eggert@twinsun.com>
40929
40930         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
40931         not CPPFLAGS, so that linking works correctly in IRIX.
40932
40933 1999-04-30  Paul Eggert  <eggert@twinsun.com>
40934
40935         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
40936
40937 1999-04-20  Paul Eggert  <eggert@twinsun.com>
40938
40939         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
40940         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
40941         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
40942         jm_AC_TYPE_UNSIGNED_LONG_LONG.
40943         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
40944
40945         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
40946
40947 1999-04-20  Jim Meyering  <meyering@ascend.com>
40948
40949         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
40950         AC_REPLACE xstroull if necessary.  From Paul Eggert.
40951         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
40952
40953 1999-04-18  Jim Meyering  <meyering@ascend.com>
40954
40955         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
40956         * m4/jm-macros.m4: Use it.
40957
40958 1999-04-06  Jim Meyering  <meyering@ascend.com>
40959
40960         * m4/strftime.m4: Remove test for %f.
40961
40962 1999-03-29  Jim Meyering  <meyering@ascend.com>
40963
40964         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
40965         superset of the AC_TYPE_* checks in the textutils, fileutils,
40966         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
40967         AC_TYPE_PID_T.
40968
40969 1999-03-28  Jim Meyering  <meyering@ascend.com>
40970
40971         * m4/jm-macros.m4: Define GNU_PACKAGE here.
40972         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
40973         replaced e.g., in the *.sh files of the sh-utils.
40974
40975 1999-03-20  Jim Meyering  <meyering@ascend.com>
40976
40977         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
40978         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
40979         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
40980
40981 1999-03-19  Jim Meyering  <meyering@ascend.com>
40982
40983         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
40984
40985 1999-03-12  Jim Meyering  <meyering@ascend.com>
40986
40987         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
40988
40989 1999-03-07  Jim Meyering  <meyering@ascend.com>
40990
40991         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
40992         declared.
40993
40994 1999-02-17  Jim Meyering  <meyering@ascend.com>
40995
40996         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
40997         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
40998
40999 1999-02-07  Jim Meyering  <meyering@ascend.com>
41000
41001         * m4/group-member.m4: New file -- extracted from sh-utils'
41002         configure.in.
41003
41004         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
41005         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
41006
41007 1999-02-06  Jim Meyering  <meyering@ascend.com>
41008
41009         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
41010         * m4/fnmatch.m4: Likewise.
41011         * m4/getgroups.m4: Likewise.
41012         * m4/lstat.m4: Likewise.
41013         * m4/malloc.m4: Likewise.
41014         * m4/putenv.m4: Likewise.
41015         * m4/realloc.m4: Likewise.
41016         * m4/regex.m4: Likewise.
41017         * m4/stat.m4: Likewise.
41018         * m4/strftime.m4: Likewise.
41019         Suggestion from Alain Magloire.
41020
41021         * m4/chown.m4: Use `.$ac_objext', not `.o'.
41022         * m4/fnmatch.m4: Likewise.
41023         * m4/getgroups.m4: Likewise.
41024         * m4/getline.m4: Likewise.
41025         * m4/lstat.m4: Likewise.
41026         * m4/malloc.m4: Likewise.
41027         * m4/memcmp.m4: Likewise.
41028         * m4/putenv.m4: Likewise.
41029         * m4/realloc.m4: Likewise.
41030         * m4/regex.m4: Likewise.
41031         * m4/stat.m4: Likewise.
41032         * m4/strftime.m4: Likewise.
41033         Suggestion from Alain Magloire.
41034
41035         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
41036         an argument.
41037
41038         * m4/regex.m4: Add a run-time Test for proper operation of
41039         re_compile_pattern.
41040
41041 1999-01-31  Jim Meyering  <meyering@ascend.com>
41042
41043         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
41044
41045 1999-01-30  Jim Meyering  <meyering@ascend.com>
41046
41047         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
41048
41049         * m4/jm-mktime.m4: Make this a wrapper around the official
41050         AM_FUNC_MKTIME rather than my private copy, now that the official one
41051         is up to date.
41052         * m4/mktime.m4: Remove file.
41053
41054         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
41055         * m4/uptime.m4: Likewise.
41056         * m4/uintmax_t.m4: Likewise.
41057
41058 1999-01-28  Jim Meyering  <meyering@ascend.com>
41059
41060         * m4/jm-macros.m4: Use jm_AFS.
41061         * m4/afs.m4: New file (from fileutils' configure.in).
41062
41063         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
41064         * m4/chown.m4: Likewise.
41065         * m4/d-ino.m4: Likewise.
41066         * m4/d-type.m4: Likewise.
41067         * m4/fnmatch.m4: Likewise.
41068         * m4/getgroups.m4: Likewise.
41069         * m4/gettext.m4: Likewise.
41070         * m4/jm-mktime.m4: Likewise.
41071         * m4/jm-winsz2.m4: Likewise.
41072         * m4/lcmessage.m4: Likewise.
41073         * m4/ls-mntd-fs.m4: Likewise.
41074         * m4/malloc.m4: Likewise.
41075         * m4/memcmp.m4: Likewise.
41076         * m4/putenv.m4: Likewise.
41077         * m4/realloc.m4: Likewise.
41078         * m4/st_mtim.m4: Likewise.
41079         * m4/strftime.m4: Likewise.
41080
41081 1999-01-16  Jim Meyering  <meyering@ascend.com>
41082
41083         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
41084         (ARGMATCH_DIE_DECL): Define.
41085
41086 1999-01-12  Jim Meyering  <meyering@ascend.com>
41087
41088         * m4/Makefile.am.in: Rewrite to avoid using fmt.
41089         Reported by Lars Hecking.
41090
41091 1999-01-10  Jim Meyering  <meyering@ascend.com>
41092
41093         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
41094         gross kludge.
41095         * m4/inttypes_h.m4: Likewise.
41096         * m4/lstat.m4: Likewise.
41097         * m4/malloc.m4: Likewise.
41098         * m4/readdir.m4: Likewise.
41099         * m4/realloc.m4: Likewise.
41100         * m4/st_dm_mode.m4: Likewise.
41101         * m4/stat.m4: Likewise.
41102         * m4/utimbuf.m4: Likewise.
41103         * m4/utimes.m4: Likewise.
41104
41105         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
41106         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
41107         comments in config.h.in are meaningful.
41108
41109         * m4/jm-macros.m4: Require autoconf-2.13 here.
41110
41111         * m4/regex.m4: By default, don't use the included regex.c on systems
41112         with glibc 2.  Suggestion from Uli Drepper.
41113
41114 1999-01-02  Jim Meyering  <meyering@ascend.com>
41115
41116         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
41117
41118 1998-12-18  Jim Meyering  <meyering@ascend.com>
41119
41120         * m4/Makefile.am.in (Makefile.am): Simplify rule.
41121         Based on a suggestion from Lars Hecking.
41122
41123 1998-11-16  Paul Eggert  <eggert@twinsun.com>
41124
41125         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
41126
41127 1998-11-16  Jim Meyering  <meyering@ascend.com>
41128
41129         * m4/lfs.m4: Double-quote the `uname...` expression.
41130
41131 1998-11-14  Jim Meyering  <meyering@ascend.com>
41132
41133         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
41134         * m4/stat.m4: Likewise.
41135
41136 1998-11-03  Jim Meyering  <meyering@ascend.com>
41137
41138         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
41139         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
41140
41141 1998-10-18  Jim Meyering  <meyering@ascend.com>
41142
41143         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
41144
41145 1998-10-17  Jim Meyering  <meyering@ascend.com>
41146
41147         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
41148         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
41149         calls for those previously hard-coded headers.  Instead, take a new
41150         parameter.
41151         (jm_CHECK_DECLARATIONS): Reflect interface change.
41152         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
41153         (jm_CHECK_DECL_LOCALTIME_R): New macro.
41154
41155         * m4/mktime.m4: Test for spring-forward gap before long-running test.
41156
41157 1998-10-14  Jim Meyering  <meyering@ascend.com>
41158
41159         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
41160         instead of "TZ=America/Vancouver".  From Paul Eggert.
41161
41162 1998-10-11  Jim Meyering  <meyering@ascend.com>
41163
41164         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
41165         This adds a test for a recently added compatibility fix for mktime.c.
41166         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
41167
41168 1998-09-27  Jim Meyering  <meyering@ascend.com>
41169
41170         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
41171
41172         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
41173         ../configure.in, including a change from Gordon Matzigkeit to allow
41174         cross-compiling for the Hurd.
41175
41176         * m4/glibc.m4: New file/macro to test for the GNU C Library
41177         versions 1 and 2.  From Gordon Matzigkeit.
41178         Indent.
41179
41180 1998-09-21  Jim Meyering  <meyering@ascend.com>
41181
41182         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
41183
41184 1998-08-18  Paul Eggert  <eggert@twinsun.com>
41185
41186         Port nanosecond-resolution times to UnixWare 2.1.2 and
41187         pedantic Solaris 2.6.
41188
41189         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
41190         AC_STRUCT_ST_MTIM.
41191         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
41192         Generate name of ns member, instead of just 1 or undef.
41193         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
41194
41195 1998-08-15  Jim Meyering  <meyering@ascend.com>
41196
41197         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
41198         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
41199         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
41200         instead of jm_TYPE_SSIZE_T.
41201
41202 1998-08-12  Jim Meyering  <meyering@ascend.com>
41203
41204         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
41205
41206 1998-08-02  Jim Meyering  <meyering@ascend.com>
41207
41208         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
41209         in acconfig.h manually.
41210
41211 1998-07-31  Paul Eggert  <eggert@twinsun.com>
41212
41213         * m4/st_mtim.m4: New file.
41214
41215 1998-07-28  Jim Meyering  <meyering@ascend.com>
41216
41217         * m4/utimes.m4: Undef stat.
41218
41219 1998-07-25  Jim Meyering  <meyering@ascend.com>
41220
41221         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
41222         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
41223
41224 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
41225
41226         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
41227         uid and gid actually remain unchanged.
41228
41229 1998-07-07  Jim Meyering  <meyering@ascend.com>
41230
41231         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
41232
41233 1998-07-04  Jim Meyering  <meyering@ascend.com>
41234
41235         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
41236         to prove that this macro can be used in packages without regex.c.
41237
41238 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
41239
41240         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
41241         is to be used.
41242
41243 1998-07-03  Jim Meyering  <meyering@ascend.com>
41244
41245         * m4/gettext.m4: Add -lintl if it's found to be necessary.
41246
41247         * m4/gettext.m4: New file -- from gettext-0.10.35.
41248         * m4/lcmessage.m4: Likewise.
41249         * m4/progtest.m4: Likewise.
41250
41251         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
41252         * m4/jm-macros.m4: Require the new macro.
41253
41254 1998-06-29  Jim Meyering  <meyering@ascend.com>
41255
41256         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
41257         for the definition of NGROUPS (used in a system header included
41258         by sys/mount.h).
41259
41260 1998-06-28  Jim Meyering  <meyering@ascend.com>
41261
41262         * m4/ls-mntd-fs.m4: New file.
41263         * m4/fstypename.m4: New file.
41264
41265         * m4/jm-macros.m4: Require the new macro.
41266         * m4/jm-glibc-io.m4: New file.
41267
41268 1998-05-19  Jim Meyering  <meyering@ascend.com>
41269
41270         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
41271         * m4/lchown.m4: New file.
41272
41273         * m4/Makefile.am.in: New file.
41274         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
41275
41276 1998-05-14  Jim Meyering  <meyering@ascend.com>
41277
41278         * m4/Makefile.am (EXTRA_DIST): Add them.
41279         * m4/jm-macros.m4: New file.
41280         * m4/utimbuf.m4: New file.
41281
41282 1998-05-12  Jim Meyering  <meyering@ascend.com>
41283
41284         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
41285
41286 1998-05-11  Jim Meyering  <meyering@ascend.com>
41287
41288         * m4/isc-posix.m4: New file.
41289
41290 1998-05-10  Jim Meyering  <meyering@ascend.com>
41291
41292         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
41293
41294 1998-05-09  Jim Meyering  <meyering@ascend.com>
41295
41296         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
41297         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
41298         with automake.
41299
41300         * m4/ssize_t.m4: New file.
41301         * m4/mktime.m4: Remove file -- the new automake has this now.
41302
41303 1998-04-26  Jim Meyering  <meyering@ascend.com>
41304
41305         * m4/assert.m4: New file.
41306         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
41307
41308 1998-04-05  Jim Meyering  <meyering@ascend.com>
41309
41310         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
41311         (jm_PREREQ): Use it here.
41312
41313 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
41314
41315         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
41316         in acconfig.h.
41317
41318 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
41319
41320         * m4/prereq.m4: New file.
41321         * m4/error.m4: New file.
41322         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
41323
41324 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
41325
41326         * m4/getline.m4: Don't set am_cv_func_working_getline before the
41327         cache-check for the same variable -- that defeated the purpose of
41328         the test; the test program was never run.  This was a problem only
41329         on systems with losing getline functions -- HP-UX 10.20 is one.
41330         Reported by Bjorn Helgaas.
41331
41332 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
41333
41334         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
41335
41336 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
41337
41338         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
41339
41340         * m4/const.m4: New file.  Use an initializer in this declaration
41341         typedef int charset[2]; const charset x;
41342         Reported by Bob Glickstein.
41343
41344 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
41345
41346         * m4/chown.m4: Fix reversed types on -1 args to chown.
41347         From Kaveh Ghazi.
41348
41349 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
41350
41351         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
41352         Add lseek and memchr.
41353
41354         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
41355         T.E.Dickey <dickey@clark.net> said that some older preprocessors
41356         have a 20-character limit on names.
41357
41358 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
41359
41360         * m4/inttypes_h.m4: New file.
41361         * m4/uintmax_t.m4: New file.
41362         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
41363
41364
41365         -----
41366
41367         Local Variables:
41368         coding: utf-8
41369         End:
41370
41371         Copyright (C) 1997-2008 Free Software Foundation, Inc.
41372
41373         Copying and distribution of this file, with or without
41374         modification, are permitted provided the copyright notice
41375         and this notice are preserved.