autoupdate
[pspp] / ChangeLog
1 2008-06-11  Bruno Haible  <bruno@clisp.org>
2
3         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
4         * lib/open.c: Include errno.h.
5         (open): Fail when attempting to write to a file that has a trailing
6         slash.
7         * tests/test-open.c (main): Test against trailing slash bug.
8         * doc/posix-functions/open.texi: Mention the trailing slash bug.
9
10 2008-06-10  Bruno Haible  <bruno@clisp.org>
11
12         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
13         for $? to work inside the trap command, with various /bin/sh-s.
14         * tests/test-vc-list-files-cvs.sh: Likewise.
15
16 2008-06-10  Bruno Haible  <bruno@clisp.org>
17
18         * lib/acl-internal.h: Don't include gettext.h here.
19         * lib/set-mode-acl.c: Include gettext.h here.
20         * lib/copy-acl.c: Likewise.
21
22 2008-06-10  Bruno Haible  <bruno@clisp.org>
23
24         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
25         * lib/wait-process.c (wait_subprocess): Likewise.
26         * lib/execute.h (execute): Add termsigp argument.
27         * lib/execute.c (execute): Likewise.
28         * lib/csharpcomp.c (compile_csharp_using_pnet,
29         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
30         * lib/csharpexec.c (execute_csharp_using_pnet,
31         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
32         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
33         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
34         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
35         is_jikes_present): Update.
36         * lib/javaexec.c (execute_java_class): Update.
37         * lib/javaversion.c (execute_and_read_line): Update.
38         * NEWS: Document the changes.
39         Reported by Eric Blake.
40
41 2008-06-10  Eric Blake  <ebb9@byu.net>
42
43         Add missing include.
44         * tests/test-strstr.c (includes): Add <signal.h>.
45         * tests/test-strcasestr.c (includes): Likewise.
46         * tests/test-memmem.c (includes): Likewise.
47
48 2008-06-10  Bruno Haible  <bruno@clisp.org>
49
50         * lib/wait-process.c (wait_subprocess): Add an assertion.
51
52 2008-06-10  Bruno Haible  <bruno@clisp.org>
53
54         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55
56 2008-06-10  Bruno Haible  <bruno@clisp.org>
57
58         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59         using alarm().
60         * tests/test-strcasestr.c (main): Likewise.
61         * tests/test-strstr.c (main): Likewise.
62
63 2008-06-09  Bruno Haible  <bruno@clisp.org>
64
65         Work around the Solaris 10 ACE ACLs ABI change.
66         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
67         declare if ACL_NO_TRIVIAL is present.
68         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
69         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
70         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
71         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
72         define if ACL_NO_TRIVIAL is present.
73         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
74         and use the current ABI.
75         (file_has_acl): Use same #if condition as elsewhere.
76         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
77         in use, and use the current ABI.
78         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
79         Reported by Jim Meyering.
80
81 2008-06-09  Eric Blake  <ebb9@byu.net>
82
83         Work around environments that (stupidly) ignore SIGALRM.
84         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
85         before using alarm().
86         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
87         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
88         Reported by Ian Beckwith <ianb@erislabs.net>.
89
90         Produce autobuild blurb earlier in log.
91         * modules/autobuild (configure.ac-early): Move AB_INIT here.
92
93 2008-06-09  Jim Meyering  <meyering@redhat.com>
94         and Ondřej Vašík  <ovasik@redhat.com>
95
96         utimens.c: correct kernel bug work-around
97         Ondřej Vašík found that the invalid return value of 280 indicates
98         failure, not success, and the kernel bug we're trying to work
99         around affects not just the utimensat call, but also the fallback
100         futimens call.
101         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
102         not success.
103         [HAVE_FUTIMENS]: Use the same work-around, here.
104
105 2008-06-09  Jim Meyering  <meyering@redhat.com>
106
107         add more guards around definition of ACE_-related code
108         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
109         ALLOW and ACE_OWNER are also defined.
110
111 2008-06-08  Bruno Haible  <bruno@clisp.org>
112
113         * lib/acl-internal.h: Add me as co-author.
114         * lib/file-has-acl.c: Likewise.
115         * lib/set-mode-acl.c: Likewise.
116         * lib/copy-acl.c: Likewise.
117
118 2008-06-08  Bruno Haible  <bruno@clisp.org>
119
120         Add support for AIX ACLs.
121         * lib/acl-internal.h (acl_nontrivial): New declaration.
122         * lib/file-has-acl.c (acl_nontrivial): New function.
123         (file_has_acl): Add implementation using AIX 4 ACL API.
124         * lib/set-mode-acl.c (qset_acl): Likewise.
125         * lib/copy-acl.c (qcopy_acl): Likewise.
126
127 2008-06-08  Bruno Haible  <bruno@clisp.org>
128
129         Add support for HP-UX ACLs.
130         * lib/acl-internal.h (acl_nontrivial): New declaration.
131         * lib/file-has-acl.c (acl_nontrivial): New function.
132         (file_has_acl): Add implementation using HP-UX 11 ACL API.
133         * lib/set-mode-acl.c (qset_acl): Likewise.
134         * lib/copy-acl.c (qcopy_acl): Likewise.
135
136 2008-06-08  Bruno Haible  <bruno@clisp.org>
137
138         Add support for Cygwin ACLs.
139         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
140         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
141         the chmod_or_fchmod call.
142         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
143
144 2008-06-08  Bruno Haible  <bruno@clisp.org>
145
146         Fix bug with setuid modes in Solaris 10+ code.
147         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
148         succeeded, when the mode contains some special bits.
149
150 2008-06-08  Bruno Haible  <bruno@clisp.org>
151
152         Add support for Solaris 7..10 ACLs.
153         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
154         declarations.
155         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
156         functions.
157         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
158         * lib/set-mode-acl.c (qset_acl): Likewise.
159         * lib/copy-acl.c (qcopy_acl): Likewise.
160
161 2008-06-08  Bruno Haible  <bruno@clisp.org>
162
163         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
164         declaration.
165         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
166         (acl_access_nontrivial): Remove MacOS X case.
167         (file_has_acl): Use acl_extended_nontrivial.
168         * lib/copy-acl.c (qcopy_acl): Likewise.
169
170 2008-06-08  Bruno Haible  <bruno@clisp.org>
171
172         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
173
174 2008-06-08  Jim Meyering  <meyering@redhat.com>
175
176         * modules/acl (Maintainer): Add Bruno Haible.
177
178 2008-06-07  Bruno Haible  <bruno@clisp.org>
179
180         Improve support for Tru64 ACLs.
181         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
182         ACL on OSF/1.
183
184 2008-06-07  Bruno Haible  <bruno@clisp.org>
185
186         Add support for MacOS X ACLs.
187         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
188         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
189         * lib/set-mode-acl.c (qset_acl): Likewise.
190         * lib/copy-acl.c (qcopy_acl): Likewise.
191
192 2008-06-07  Bruno Haible  <bruno@clisp.org>
193
194         Fix memory leak introduced on 2008-05-22.
195         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
196         use.
197
198 2008-06-07  Bruno Haible  <bruno@clisp.org>
199
200         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
201         to construct an empty ACL.
202
203 2008-06-07  Bruno Haible  <bruno@clisp.org>
204
205         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
206         precisely.
207         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
208
209 2008-06-07  Bruno Haible  <bruno@clisp.org>
210
211         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
212         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
213
214 2008-06-07  Bruno Haible  <bruno@clisp.org>
215
216         * doc/posix-functions/_setjmp.texi: Explain the use of this function
217         regardless of POSIX.
218         * doc/posix-functions/_longjmp.texi: Likewise.
219         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
220         SystemV platform in this case.
221
222 2008-06-06  Eric Blake  <ebb9@byu.net>
223
224         Document abort() bugs.
225         * doc/posix-functions/abort.texi (abort): Mention anomalies.
226
227         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
228         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
229         sigsetjmp.
230         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
231         siglongjmp, but only as a macro.
232         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
233         is obsolete.
234         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
235
236         Tweak documentation to cover cygwin argz bugs.
237         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
238         argz bug fix; no code change needed since no cygwin releases
239         occurred between the last fix and the bug being tested.
240         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
241         module and recently fixed cygwin bugs.
242         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
243         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
244         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
245         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
246         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
247         Likewise.
248         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
249         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
250         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
251         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
252         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
253         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
254         Likewise.
255
256         Avoid gcc warning on cygwin.
257         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
258         !ACL_NO_TRIVIAL]: Avoid unused variable.
259
260 2008-06-05  Eric Blake  <ebb9@byu.net>
261
262         Be tolerant of UNKNOWN version in gnulib-tool test dir.
263         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
264         git-version-gen fails to come up with a version.
265         Reported by Simon Josefsson.
266
267 2008-06-05  Jim Meyering  <meyering@redhat.com>
268             Paul Eggert  <eggert@cs.ucla.edu>
269
270         utimens.c: work around a probable Linux kernel bug
271         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
272         appears to be a kernel bug that causes utimensat to return 280
273         instead of 0, indicating success.
274
275 2008-06-04  Bruno Haible  <bruno@clisp.org>
276
277         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
278         2008-06-01 commit.
279
280 2008-06-04  Bruno Haible  <bruno@clisp.org>
281
282         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
283         * lib/file-has-acl.c (acl_access_nontrivial): New function.
284         (file_has_acl): Use it. Save errno afterwards.
285         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
286
287 2008-06-03  Bruno Haible  <bruno@clisp.org>
288
289         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
290         draft code. Simplify #ifs.
291         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
292         Put Solaris code after POSIX-draft code. Fix comments regarding
293         Solaris 10, HP-UX. Mention Cygwin.
294         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
295
296 2008-06-03  Eric Blake  <ebb9@byu.net>
297
298         Provide fallback for older kernels.
299         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
300         Provide runtime fallback if kernel lacks support.
301         Reported by Mike Frysinger.
302
303 2008-06-02  Bruno Haible  <bruno@clisp.org>
304
305         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
306         it exists.
307
308 2008-06-02  Bruno Haible  <bruno@clisp.org>
309
310         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
311         * lib/copy-acl.c (qcopy_acl): Update comment.
312
313 2008-06-02  Bruno Haible  <bruno@clisp.org>
314
315         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
316         like ACL APIs.
317
318 2008-06-02  Bruno Haible  <bruno@clisp.org>
319
320         * tests/test-file-has-acl.sh: Use different code for Cygwin.
321         * tests/test-set-mode-acl.sh: Likewise.
322         * tests/test-copy-acl.sh: Likewise.
323         * tests/test-copy-file.sh: Likewise.
324
325 2008-06-02  Bruno Haible  <bruno@clisp.org>
326
327         * tests/test-file-has-acl.sh: Remove unused code.
328
329 2008-06-01  Bruno Haible  <bruno@clisp.org>
330
331         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
332         (copy_acl): Just a wrapper around qcopy_acl that emits the error
333         messages.
334         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
335
336 2008-06-01  Bruno Haible  <bruno@clisp.org>
337
338         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
339         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
340         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
341         APIs.
342         * modules/acl-tests (configure.ac): Remove tests now contained in
343         m4/acl.m4.
344
345 2008-06-02  Jim Meyering  <meyering@redhat.com>
346
347         announce-gen: use a better key-server host name
348         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
349         it may be more consistently reliable.  Suggested by Werner Koch
350         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
351
352 2008-06-01  Bruno Haible  <bruno@clisp.org>
353
354         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
355         Reported by Voroskoi Andras <voroskoi@gmail.com>.
356
357 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
358
359         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
360
361 2008-06-01  Bruno Haible  <bruno@clisp.org>
362
363         New ACL tests.
364         * tests/test-file-has-acl.sh: New file.
365         * tests/test-file-has-acl.c: New file.
366         * tests/test-set-mode-acl.sh: New file.
367         * tests/test-set-mode-acl.c: New file.
368         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
369         * tests/test-copy-acl.c: New file.
370         * modules/acl-tests: New file, based on modules/copy-file-tests.
371         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
372         (Depends-on): Add acl-tests.
373         (configure.ac): Remove checks.
374         (Makefile.am): Don't create test-sameacls program here any more.
375
376 2008-06-01  Bruno Haible  <bruno@clisp.org>
377
378         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
379         * tests/test-sameacls.c: Include progname.h.
380         (main): Invoke set_program_name. Portability fixes for MacOS X,
381         Solaris, HP-UX.
382
383 2008-06-01  Bruno Haible  <bruno@clisp.org>
384
385         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
386         function.
387         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
388
389 2008-06-01  Bruno Haible  <bruno@clisp.org>
390
391         * modules/rpmatch (Depends-on): Add strdup.
392
393 2008-06-01  Bruno Haible  <bruno@clisp.org>
394
395         * lib/pipe.c: Include unistd-safer.h.
396         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
397         * modules/pipe (Depends-on): Add unistd-safer.
398
399 2008-05-30  Simon Josefsson  <simon@josefsson.org>
400
401         * modules/autobuild (configure.ac): Call AB_INIT.
402
403 2008-05-30  Simon Josefsson  <simon@josefsson.org>
404
405         * tests/test-getaddrinfo.c: Don't print debug messages by default.
406         Suggested by Bruno Haible <bruno@clisp.org>.
407
408 2008-05-30  Simon Josefsson  <simon@josefsson.org>
409
410         * tests/test-base64.c: Cast size_t to unsigned long when invoking
411         printf.  Use %lu instead of %d.  Reported by Bruno Haible
412         <bruno@clisp.org>.
413
414 2008-05-29  Eric Blake  <ebb9@byu.net>
415
416         Prefer new POSIX 200x interfaces over futimesat.
417         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
418         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
419         when available.
420         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
421
422 2008-05-28  Bruno Haible  <bruno@clisp.org>
423
424         * modules/stpcpy (License): Change to LGPLv2+.
425         Requested by David Lutterkort <dlutter@redhat.com>.
426
427 2008-05-27  Bruno Haible  <bruno@clisp.org>
428
429         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
430         current mingw.
431         Reported by Jose E. Marchesi <jemarch@gnu.org>.
432
433 2008-05-27  Bruno Haible  <bruno@clisp.org>
434
435         * modules/iconv_open (Link): New section, from module 'iconv'.
436         * modules/striconv (Link): Likewise.
437         * modules/striconveh (Link): Likewise.
438         * modules/xstriconv (Link): Likewise.
439         * modules/unicodeio (Link): Likewise.
440         * modules/propername (Link): Likewise.
441         Reported by Jim Meyering.
442
443 2008-05-26  Jim Meyering  <meyering@redhat.com>
444
445         sha256: do not artificially restrict buffer length to be < 2^32
446         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
447         uint32_t to size_t.
448         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
449         to match.
450
451         avoid unaligned access errors, e.g., on sparc
452         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
453         direct access through a possibly-unaligned uint64* pointer.
454         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
455         direct access through a possibly-unaligned uint32* pointer.
456         Prompted by this patch from Tom "spot" Callaway:
457         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
458
459         sha512.c: fix typo in comment
460         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
461
462 2008-05-25  Bruno Haible  <bruno@clisp.org>
463
464         * lib/set-mode-acl.c: Renamed from lib/acl.c.
465         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
466         (Makefile.am): Update lib_SOURCES.
467
468 2008-05-25  Bruno Haible  <bruno@clisp.org>
469
470         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
471
472 2008-05-25  Jim Meyering  <meyering@redhat.com>
473
474         useless-if-before-free: freed expr may have white-space differences
475         * build-aux/useless-if-before-free: Recognize cases in which the
476         freed expression differs from the tested one in embedded white
477         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
478         $1 was used, so we can't make any regexp shy.  Improved tests now
479         detect this.
480
481         useless-if-before-free: accept white space in the expression.
482         * build-aux/useless-if-before-free: For now, any white space
483         in the expression must be identical in the free argument.
484
485         useless-if-before-free: efficiency tweak
486         * build-aux/useless-if-before-free: Make the expression-matching
487         regexp "shy".
488         Make the *outer* regexp shy, not the expr-matching one.
489
490         update code-in-comment to accept cast of free arg
491         * build-aux/useless-if-before-free: Update regexp.
492
493 2008-05-25  Bruno Haible  <bruno@clisp.org>
494
495         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
496         * modules/copy-file-tests (Files, Makefile.am): Update.
497         * tests/test-copy-file.c (func_test_copy): Update.
498
499 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
500
501         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
502
503 2008-05-23  Bruno Haible  <bruno@clisp.org>
504
505         Improve support for ACLs on OSF/1.
506         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
507         Remove fallback for unknown flavors of ACLs.
508
509 2008-05-22  Bruno Haible  <bruno@clisp.org>
510
511         Add support for ACLs on OSF/1.
512         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
513         replacements.
514         (acl_free_text): New macro fallback.
515         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
516         acl_free.
517         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
518         acl_free_text function. Require AC_C_INLINE.
519
520 2008-05-22  Bruno Haible  <bruno@clisp.org>
521
522         Make copy_acl work on MacOS X 10.5.
523         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
524         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
525         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
526         If MODE_INSIDE_ACL, don't assume that every system has the same text
527         representation for ACLs as FreeBSD.
528         * lib/copy-acl.c (copy_acl): Add support for platforms with
529         !MODE_INSIDE_ACL.
530         * lib/file-has-acl.c (file_has_acl): Likewise.
531         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
532         FreeBSD, MacOS X, or IRIX, respectively.
533
534 2008-05-22  Bruno Haible  <bruno@clisp.org>
535
536         * lib/acl.h: Don't include <sys/acl.h>.
537         (GETACLCNT): Move fallback to lib/acl-internal.h.
538         * lib/acl-internal.h: Include <sys/acl.h> here.
539         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
540
541 2008-05-22  Bruno Haible  <bruno@clisp.org>
542
543         Split off copy_acl function to separate file.
544         * lib/copy-acl.c: New file, extracted from lib/acl.c.
545         * lib/acl.c (copy_acl): Moved function to separate file.
546         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
547         * modules/acl (Files): Add lib/copy-acl.c.
548         (Makefiles.am): Augment lib_SOURCES.
549
550 2008-05-22  Bruno Haible  <bruno@clisp.org>
551
552         * modules/copy-file-tests: New file.
553         * tests/test-copy-file.sh: New file.
554         * tests/test-copy-file.c: New file.
555         * tests/test-copy-file-sameacls.c: New file.
556
557 2008-05-22  Eric Blake  <ebb9@byu.net>
558
559         Avoid gcc warning.
560         * tests/test-memcmp.c (main): Pass NULL indirectly.
561
562 2008-05-21  Bruno Haible  <bruno@clisp.org>
563
564         Add reference doc about ACLs.
565         * doc/acl-resources.txt: New file.
566         * doc/acl-cygwin.txt: New file.
567
568 2008-05-21  Bruno Haible  <bruno@clisp.org>
569
570         Avoid one more warning from gcc.
571         * lib/vasnprintf.c (IF_LINT): Update comments.
572         (VASNPRINTF): Use it also for the 'prefix' array initializer.
573
574 2008-05-21  Jim Meyering  <meyering@redhat.com>
575
576         avoid a warning from gcc
577         * lib/vasnprintf.c (IF_LINT): Define.
578         (scale10_round_decimal_long_double):
579         Use it to avoid a "may be used uninitialized" warning.
580         (scale10_round_decimal_double): Likewise.
581
582 2008-05-21  Simon Josefsson  <simon@josefsson.org>
583
584         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
585         declared.
586
587 2008-05-20  Bruno Haible  <bruno@clisp.org>
588
589         * tests/test-memcmp.c (main): Test also the sign of the result. Test
590         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
591
592 2008-05-20  Simon Josefsson  <simon@josefsson.org>
593
594         * modules/memcmp-tests: New file.
595         * tests/test-memcmp.c: New file.
596
597 2008-05-19  Bruno Haible  <bruno@clisp.org>
598
599         * modules/propername (Notice, configure.ac): Put quoted "..." into
600         --keyword option.
601         * lib/propername.h: Update comments accordingly.
602         Reported by Eric Blake.
603
604 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
605
606         * modules/getpass-gnu (Depends-on): Add fseeko.
607
608 2008-05-19  Simon Josefsson  <simon@josefsson.org>
609
610         * modules/base64-tests: New file.
611
612 2008-05-19  Bo Borgerson <gigabo@gmail.com>
613
614         * lib/base64.c (base64_decode_ctx): If a decode context structure
615         was passed in use it to ignore newlines.  If a context structure
616         was _not_ passed in, continue to treat newlines as garbage (this
617         is the historical behavior).  Formerly base64_decode.
618         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
619         takes a decode context structure.
620         * lib/base64.h (base64_decode): Macro for four-argument calls.
621         (base64_decode_alloc): Likewise.
622         * lib/base64.c (base64_decode_ctx): If a decode context structure
623         was passed in use it to ignore newlines.  If a context structure
624         was _not_ passed in, continue to treat newlines as garbage (this
625         is the historical behavior).  Formerly base64_decode.
626         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
627         takes a decode context structure.
628         * lib/base64.h (base64_decode): Macro for four-argument calls.
629         (base64_decode_alloc): Likewise.
630
631 2008-05-19  Jim Meyering  <meyering@redhat.com>
632
633         avoid a warning from gcc
634         * lib/trim.c (IF_LINT): Define.
635         (trim2): Use it to avoid a "may be used uninitialized" warning.
636
637         Fix doc typo.
638         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
639
640 2008-05-19  Bruno Haible  <bruno@clisp.org>
641
642         * doc/glibc-functions/getpass.texi: Document limits of other
643         implementations.
644
645 2008-05-19  Simon Josefsson  <simon@josefsson.org>
646             Bruno Haible <bruno@clisp.org>
647
648         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
649
650 2008-05-18  Bruno Haible  <bruno@clisp.org>
651
652         * modules/propername: New file, from GNU gettext.
653         * lib/propername.h: New file, from GNU gettext.
654         * lib/propername.c: New file, from GNU gettext.
655         * MODULES.html.sh (Internationalization functions): Add propername.
656
657 2008-05-16  Jim Meyering  <meyering@redhat.com>
658             Bruno Haible  <bruno@clisp.org>
659
660         Avoid some warnings from "gcc -Wshadow".
661         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
662
663 2008-05-15  Eric Blake  <ebb9@byu.net>
664
665         Extend previous patch to cygwin 1.7.0.
666         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
667         fast implementation in cygwin >= 1.7.0.
668         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
670
671 2008-05-15  Bruno Haible  <bruno@clisp.org>
672
673         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
674         implementation in glibc >= 2.9.
675         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
676         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
677
678 2008-05-15  Bruno Haible  <bruno@clisp.org>
679
680         * MODULES.html.sh (Internationalization functions): Remove linebreak.
681         (Unicode string functions): Add unilbrk/*.
682         Reported by Karl Berry.
683
684 2008-05-15  Eric Blake  <ebb9@byu.net>
685
686         Fix violation of <stdbool.h> replacement in regex.
687         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
688         * lib/regexec.c (re_search_internal): Likewise.
689         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
690
691 2008-05-15  Jim Meyering  <meyering@redhat.com>
692
693         avoid distracting test output when git or cvs is not found
694         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
695         * tests/test-vc-list-files-git.sh: Likewise.
696
697 2008-05-15  Eric Blake  <ebb9@byu.net>
698
699         Glibc finally accepted the memmem speedup code, bugzilla #5514.
700         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
701         glibc version.
702         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
703         * doc/posix-functions/strstr.texi (strstr): Likewise.
704         * lib/str-two-way.h (MAX): Sychronize with glibc.
705
706 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
707
708         * lib/regcomp.c (optimize_utf8): Add a note on why we test
709         opr.ctx_type.
710         (calc_first): Initialize constraint field.
711         (duplicate_node_closure): Use it instead of special casing ANCHORS.
712         Fix grammar.
713         (duplicate_node): Merge constraint field for all node types.
714         (calc_eclosure_iter): Look at constraint field for all node types.
715         * lib/regex_internal.c (create_cd_newstate): Don't look at
716         opr.ctx_type.
717
718 2008-05-14  Bruno Haible  <bruno@clisp.org>
719
720         Help GCC to do better code generation.
721         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
722         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
723         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
724         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
725         Declare with attribute 'malloc' if supported.
726
727 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
728
729         use "echo STR|wc -c" rather than unportable "expr length STR"
730         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
731         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
732
733 2008-05-14  Jim Meyering  <meyering@redhat.com>
734
735         use dd ibs=$n count=1 ... rather than less-portable head -c$n
736         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
737         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
738         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
739         via Collin Lasse.
740
741 2008-05-14  Eric Blake  <ebb9@byu.net>
742
743         Avoid quadratic growth in gl_LIBSOURCES.
744         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
745         Suggested by Bruno Haible.
746
747         Test xmemdup0.
748         * modules/xmemdup0-tests: New file.
749         * tests/test-xmemdup0.c: Likewise.
750
751 2008-05-13  Eric Blake  <ebb9@byu.net>
752
753         Split xmemdup0 into its own module.
754         * modules/xmemdup0: New file.
755         * lib/xmemdup0.h: Likewise.
756         * lib/xmemdup0.c: Likewise.
757         * MODULES.html.sh (Memory management functions): Add xmemdup0.
758         * lib/xalloc.h (xmemdup0): Remove.
759         * lib/xmalloc.c (xmemdup0): Likewise.
760
761 2008-05-13  Eric Blake  <ebb9@byu.net>
762             Bruno Haible  <bruno@clisp.org>
763
764         Reduce number of forks required during autoconf.
765         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
766         and gl_LIBSOURCES_DIR.
767         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
768         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
769         m4_syscmd per file.
770         <m4_foreach_w>: Move...
771         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
772
773 2008-05-13  Eric Blake  <ebb9@byu.net>
774
775         * gnulib-tool: Fix various comment typos.
776
777 2008-05-12  Bruno Haible  <bruno@clisp.org>
778
779         Tailor the linebreaking algorithm.
780         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
781
782 2008-05-12  Bruno Haible  <bruno@clisp.org>
783
784         Update to Unicode 5.0.0.
785         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
786         LBP_JV, LBP_JT. Redistribute values.
787         (unilbrk_table): Change size.
788         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
789         Unicode TR#14 rev. 22.
790         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
791         LBP_JV, LBP_JT. Redistribute values.
792         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
793         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
794         Update.
795         * lib/unilbrk/lbrkprop1.h: Regenerated.
796         * lib/unilbrk/lbrkprop2.h: Regenerated.
797         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
798         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
799         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
800         Likewise.
801         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
802         Likewise.
803         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
804         result.
805         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
806         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
807         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
808         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
809         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
810         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
811
812 2008-05-11  Bruno Haible  <bruno@clisp.org>
813
814         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
815
816 2008-05-11  Bruno Haible  <bruno@clisp.org>
817
818         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
819         * modules/unilbrk/gen-lbrk: New file.
820
821 2008-05-11  Bruno Haible  <bruno@clisp.org>
822
823         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
824         * m4/sha512.m4 (gl_SHA512): Likewise.
825
826 2008-05-11  Jim Meyering  <meyering@redhat.com>
827
828         New modules: crypto/sha256, crypto/sha512 (from coreutils)
829         * modules/crypto/sha256: New file.
830         * modules/crypto/sha512: Likewise.
831         * lib/sha256.c: Likewise.
832         * lib/sha256.h: Likewise.
833         * lib/sha512.c: Likewise.
834         * lib/sha512.h: Likewise.
835         * lib/u64.h: Likewise.
836         * m4/sha256.m4: Likewise.
837         * m4/sha512.m4: Likewise.
838         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
839
840 2008-05-10  Bruno Haible  <bruno@clisp.org>
841
842         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
843         (Input/Output <stdio.h>): Add xprintf.
844         (Signal handling <signal.h>): Add strsignal.
845         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
846         (Core language properties): Add func.
847         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
848         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
849         strings.
850         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
851         (Input/output): New section.
852         (File system functions): Add openat-die, stat-macros.
853         (Networking functions): Add sockets.
854         (Unicode string functions): Add unictype/*.
855         (Support for building libraries and executables): Add gperf.
856         (Support for building documentation): Add agpl-3.0.
857         (Misc): Add nocrash.
858
859 2008-05-10  Bruno Haible  <bruno@clisp.org>
860
861         * modules/unictype/gen-ctype: New file.
862
863 2008-05-10  Jim Meyering  <meyering@redhat.com>
864
865         Make chdir-safer.c more efficient on a system with no symlinks.
866         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
867         also if ELOOP is zero.  Suggested by Bruno Haible.
868
869         Make chdir-safer.c slightly safer.
870         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
871         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
872
873         Avoid compile failure on systems without ELOOP (like mingw).
874         * lib/chdir-safer.c (ELOOP): Define if not already defined.
875         Reported by Bruno Haible.
876
877 2008-05-10  Bruno Haible  <bruno@clisp.org>
878
879         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
880         (is_utf8_encoding): Use a case-insensitive comparison.
881         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
882         streq.
883
884 2008-05-10  Bruno Haible  <bruno@clisp.org>
885
886         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
887         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
888         * lib/unilbrk/ulc-common.h (iconv_string_length,
889         iconv_string_keeping_offsets): Remove declarations.
890         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
891         Don't include <iconv.h>, streq.h, xsize.h.
892         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
893         conversion.
894         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
895         <iconv.h>, streq.h, xsize.h.
896         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
897         conversion.
898         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
899         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
900         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
901         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
902
903 2008-05-10  Bruno Haible  <bruno@clisp.org>
904
905         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
906         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
907
908         * modules/unilbrk/u32-width-linebreaks-tests: New file.
909         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
910
911         * modules/unilbrk/u16-width-linebreaks-tests: New file.
912         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
913
914         * modules/unilbrk/u8-width-linebreaks-tests: New file.
915         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
916
917         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
918         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
919
920         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
921         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
922
923         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
924         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
925
926         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
927         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
928
929 2008-05-10  Bruno Haible  <bruno@clisp.org>
930
931         Split up 'linebreak' module.
932         * lib/unilbrk.h: New file, based on lib/linebreak.h.
933         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
934         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
935         modifications.
936         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
937         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
938         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
939         lib/linebreak.c.
940         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
941         lib/linebreak.c.
942         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
943         lib/linebreak.c.
944         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
945         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
946         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
947         lib/linebreak.c.
948         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
949         lib/linebreak.c.
950         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
951         lib/linebreak.c.
952         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
953         lib/linebreak.c.
954         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
955         lib/linebreak.c.
956         * modules/unilbrk/base: New file.
957         * modules/unilbrk/tables: New file.
958         * modules/unilbrk/u8-possible-linebreaks: New file.
959         * modules/unilbrk/u16-possible-linebreaks: New file.
960         * modules/unilbrk/u32-possible-linebreaks: New file.
961         * modules/unilbrk/ulc-common: New file.
962         * modules/unilbrk/ulc-possible-linebreaks: New file.
963         * modules/unilbrk/u8-width-linebreaks: New file.
964         * modules/unilbrk/u16-width-linebreaks: New file.
965         * modules/unilbrk/u32-width-linebreaks: New file.
966         * modules/unilbrk/ulc-width-linebreaks: New file.
967         * lib/linebreak.h: Remove file.
968         * lib/linebreak.c: Remove file.
969         * m4/linebreak.m4: Remove file.
970         * modules/linebreak: Remove file.
971         * NEWS: Mention the changes.
972
973 2008-05-09  Eric Blake  <ebb9@byu.net>
974
975         Add xmemdup0.
976         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
977         implementation.
978         * lib/xmalloc.c (xmemdup0): New C implementation.
979
980 2008-05-08  Bruno Haible  <bruno@clisp.org>
981
982         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
983
984 2008-05-07  Eric Blake  <ebb9@byu.net>
985
986         Support cross-compilation of <wctype.h>.
987         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
988         AC_CACHE_CHECK.
989
990 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
991
992         * build-aux/vc-list-files: Add support for bzr.
993
994 2008-05-03  Jim Meyering  <meyering@redhat.com>
995
996         avoid failed assertion with tight malloc
997         * tests/test-getndelim2.c: Correct an off-by-one assertion.
998
999 2008-05-03  Simon Josefsson  <simon@josefsson.org>
1000
1001         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
1002         are needed from arpa/inet.h.
1003         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
1004         Reported by Bruno Haible.
1005
1006 2008-05-02  Jim Meyering  <meyering@redhat.com>
1007
1008         avoid compilation error on FreeBSD 6
1009         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
1010
1011 2008-05-01  Jim Meyering  <meyering@redhat.com>
1012
1013         useless-if-before-free: correct --help's exit status description
1014         * build-aux/useless-if-before-free (usage): Like grep, exit 0
1015         for one or more matches, etc.  Reported by Bruno Haible.
1016
1017         vc-list-files: make the stand-alone gnulib test work
1018         * modules/vc-list-files-tests (configure.ac):
1019         Define and AC_SUBST abs_aux_dir.
1020         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
1021         $(abs_top_srcdir) to each script and having each of them
1022         duplicate the work of setting PATH, set PATH here, using
1023         the new variable, abs_aux_dir instead.
1024         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
1025         * tests/test-vc-list-files-git.sh: Likewise.
1026         Reported by Bruno Haible.
1027
1028 2008-05-01  Bruno Haible  <bruno@clisp.org>
1029
1030         * lib/getndelim2.c (getndelim2): Fix newsize computation during
1031         reallocation. Rename 'done' to 'found_delimiter'.
1032
1033 2008-05-01  Jim Meyering  <meyering@redhat.com>
1034
1035         vc-list-files: accommodate /bin/sh like the one from Solaris 10
1036         * build-aux/vc-list-files: Use `...`, not $(...).
1037
1038 2008-04-30  Jim Meyering  <meyering@redhat.com>
1039
1040         add tests for vc-list-files
1041         * modules/vc-list-files-tests: New module.
1042         * tests/test-vc-list-files-cvs.sh: New file.
1043         * tests/test-vc-list-files-git.sh: New file.
1044
1045         avoid a warning from gcc
1046         * lib/getndelim2.c (IF_LINT): Define.
1047         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
1048
1049         vc-list-files: work properly with build-aux/cvsu, too
1050         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
1051         to all cvs-based clauses.
1052
1053         vc-list-files: work properly in the CVS+awk case, too
1054         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
1055
1056         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
1057         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
1058         take more than one file argument, so .  Add quotes, just in case $dir
1059         ever contains a shell meta-character.  Prompted by Soren Hansen in
1060         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
1061
1062 2008-04-29  Eric Blake  <ebb9@byu.net>
1063
1064         Optimize getndelim2 to use block operations when possible.
1065         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
1066         freadseek, and memchr2.
1067         * lib/getndelim2.c (getndelim2): Use them for block reads.
1068
1069 2008-04-29  Bruno Haible  <bruno@clisp.org>
1070
1071         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
1072         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1073         * modules/inet_ntop (Depends-on): Add extensions.
1074         * modules/inet_pton (Depends-on): Likewise.
1075         Reported by Simon Josefsson.
1076
1077 2008-04-29  Jim Meyering  <meyering@redhat.com>
1078
1079         When the is more than one match in a block, match all of them.
1080         * build-aux/useless-if-before-free: Iterate through each block
1081         until there are no more matches.
1082
1083         Fix broken useless-if-before-free script.
1084         * build-aux/useless-if-before-free: Fix typo: missing "?" after
1085         the expression to match cast of argument to free-like function.
1086
1087 2008-04-29  Eric Blake  <ebb9@byu.net>
1088
1089         Use new header.
1090         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
1091
1092 2008-04-29  Jim Meyering  <meyering@redhat.com>
1093
1094         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
1095         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
1096         by gnulib to exist and to declare e.g., inet_ntop.
1097         Don't include "inet_ntop.h", now removed.
1098
1099         * m4/arpa_inet_h.m4: Remove trailing blanks.
1100
1101 2008-04-29  Eric Blake  <ebb9@byu.net>
1102
1103         Silence valgrind on safe reads beyond potential array bounds.
1104         * lib/rawmemchr.valgrind: New file.
1105         * lib/strchrnul.valgrind: Likewise.
1106         * modules/rawmemchr (Files): Distribute new file.
1107         * modules/strchrnul (Files): Likewise.
1108         Suggested by Bruno Haible.
1109
1110 2008-04-29  Bruno Haible  <bruno@clisp.org>
1111
1112         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
1113         (inet_ntop, inet_pton): Change portability warning's wording.
1114         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
1115         Invoke gl_CHECK_NEXT_HEADERS.
1116         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
1117         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
1118         set ARPA_INET_H.
1119         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1120         * modules/arpa_inet (Description): No longer only for systems that
1121         lack it.
1122         (Depends-on): Add include_next.
1123         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
1124         HAVE_ARPA_INET_H.
1125
1126 2008-04-29  Jim Meyering  <meyering@redhat.com>
1127
1128         * modules/mkdir (License): Re-license as LGPLv2+.
1129
1130 2008-04-29  Bruno Haible  <bruno@clisp.org>
1131
1132         * modules/rawmemchr (Maintainer): Set to Eric.
1133         * modules/strchrnul (Maintainer): Likewise.
1134
1135 2008-04-29  Simon Josefsson  <simon@josefsson.org>
1136
1137         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
1138         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
1139
1140         * modules/arpa_inet (arpa/inet.h): Use them.
1141
1142 2008-04-28  Eric Blake  <ebb9@byu.net>
1143
1144         Test getndelim2.
1145         * modules/getndelim2-tests: New file.
1146         * tests/test-getndelim2.c: Likewise.
1147         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
1148         stream.
1149         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
1150
1151         * MODULES.html.sh: Document new module.
1152
1153 2008-04-20  Bruno Haible  <bruno@clisp.org>
1154
1155         * lib/c-stack.c (die): Use raise.
1156         * modules/c-stack (Depends-on): Add raise.
1157
1158 2008-04-28  Bruno Haible  <bruno@clisp.org>
1159
1160         Expect rpmatch to be declared.
1161         * lib/yesno.c (rpmatch): Remove declaration.
1162
1163         Declare rpmatch.
1164         * lib/stdlib.in.h (rpmatch): New declaration.
1165         * lib/rpmatch.c: Include <stdlib.h> first.
1166         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
1167         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
1168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
1169         HAVE_RPMATCH.
1170         * modules/rpmatch (Depends-on): Add stdlib, extensions.
1171         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1172         (Include): Set to <stdlib.h>.
1173         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
1174         HAVE_RPMATCH.
1175         * NEWS: Document the change.
1176
1177 2008-04-28  Bruno Haible  <bruno@clisp.org>
1178
1179         Change rpmatch to use nl_langinfo when appropriate.
1180         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
1181         (N_): New macro.
1182         (localized_pattern): New function/macro.
1183         (try): Remove match, nomatch arguments. Copy the pattern into safe
1184         memory before caching it.
1185         (rpmatch): Use localized_pattern. Add translator comments.
1186         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
1187         Suggested by Eric Blake.
1188         * modules/rpmatch (Depends-on): Add stdbool.
1189
1190 2008-04-28  Eric Blake  <ebb9@byu.net>
1191
1192         Add rawmemchr module, matching glibc.
1193         * modules/string (Makefile.am): New indicator.
1194         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
1195         * lib/string.in.h (rawmemchr): Declare when appropriate.
1196         * modules/rawmemchr: New file.
1197         * m4/rawmemchr.m4: Likewise.
1198         * lib/rawmemchr.c: Likewise.
1199         * modules/rawmemchr-tests: Likewise.
1200         * tests/test-rawmemchr.c: Likewise.
1201         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
1202         module.
1203         * modules/strchrnul (Depends-on): Add rawmemchr.
1204         * lib/strchrnul.c (strchrnul): Optimize a corner case.
1205
1206         Whitespace cleanup.
1207         * tests/test-strchrnul.c: Reindent.
1208         * lib/strchrnul.c: Likewise.
1209
1210         Optimize and test strchrnul.
1211         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
1212         * modules/strchrnul-tests: New file.
1213         * tests/test-strchrnul.c: Likewise.
1214
1215         Remove intprops dependency.
1216         * modules/memchr (Depends-on): Remove intprops.
1217         * modules/memrchr (Depends-on): Likewise.
1218         * modules/memchr2 (Depends-on): Likewise.
1219         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
1220         * lib/memrchr.c (__memrchr): Likewise.
1221         * lib/memrchr2.c (memchr2): Likewise.
1222         Reported by Simon Josefsson.
1223
1224 2008-04-28  Simon Josefsson  <simon@josefsson.org>
1225
1226         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
1227         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1228
1229 2008-04-28  Simon Josefsson  <simon@josefsson.org>
1230
1231         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
1232
1233         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
1234
1235         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
1236
1237         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
1238         declarations.
1239         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
1240
1241         * m4/inet_pton.m4: Don't check for header files.
1242
1243         * m4/inet_ntop.m4: Don't check for header files.
1244
1245 2008-04-28  Simon Josefsson  <simon@josefsson.org>
1246
1247         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
1248         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
1249         trigger for cygwin).
1250         Reported by Bruno Haible  <bruno@clisp.org>.
1251
1252 2008-04-28  Bruno Haible  <bruno@clisp.org>
1253
1254         * doc/posix-functions/strdup.texi: Mention mingw problem.
1255
1256 2008-04-27  Bruno Haible  <bruno@clisp.org>
1257
1258         * modules/stat-time-tests (Depends-on): Add sleep.
1259         * tests/test-stat-time.c (force_unlink): New function.
1260         (cleanup): Use it.
1261         (test_mtime): Remove the ctime related tests.
1262         (test_ctime): New function, containing the ctime related tests.
1263         (main): Call test_ctime, except on native Windows platforms.
1264
1265 2008-04-27  Bruno Haible  <bruno@clisp.org>
1266
1267         * lib/rpmatch.c (rpmatch): Add some comments.
1268         Reported by James Youngman <jay@gnu.org>.
1269
1270 2008-04-27  Bruno Haible  <bruno@clisp.org>
1271
1272         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
1273         quiet NaNs.
1274
1275 2008-04-27  Bruno Haible  <bruno@clisp.org>
1276
1277         Make test-yesno.sh work on mingw.
1278         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
1279         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
1280         (main): Set stdin to binary mode.
1281         * modules/yesno-tests (Depends-on): Add binary-io.
1282
1283 2008-04-27  Bruno Haible  <bruno@clisp.org>
1284
1285         Fix 'isfinite' on x86, x86_64, ia64 platforms.
1286         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
1287         argument that lie outside the IEEE 854 domain.
1288         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
1289         (gl_ISFINITE): Use it.
1290         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
1291
1292 2008-04-27  Bruno Haible  <bruno@clisp.org>
1293
1294         Allow local renaming in config.h.
1295         * lib/memrchr.c (memrchr): Don't undefine outside libc.
1296
1297 2008-04-27  Bruno Haible  <bruno@clisp.org>
1298
1299         * lib/memchr.c (__memchr): Change type of 'i'.
1300         * lib/memchr2.c (memchr2): Likewise.
1301
1302 2008-04-26  Eric Blake  <ebb9@byu.net>
1303         and Bruno Haible  <bruno@clisp.org>
1304
1305         Optimize and test memrchr.
1306         * modules/memrchr (Depends-on): Add intprops.
1307         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
1308         * modules/memrchr-tests: New file.
1309         * tests/test-memrchr.c: New file.
1310
1311 2008-04-26  Bruno Haible  <bruno@clisp.org>
1312
1313         Add tentative support for DragonFly BSD.
1314         * lib/stdio-impl.h: Add macros for DragonFly BSD.
1315         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
1316         fp.
1317         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
1318         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
1319         * lib/fpurge.c (fpurge): Likewise.
1320         * lib/freadable.c (freaadable): Likewise.
1321         * lib/freadahead.c (freadahead): Likewise.
1322         * lib/freading.c (freading): Likewise.
1323         * lib/freadptr.c (freadptr): Likewise.
1324         * lib/freadseek.c (freadptrinc): Likewise.
1325         * lib/fseeko.c (fseeko): Likewise.
1326         * lib/fseterr.c (fseterr): Likewise.
1327         * lib/fwritable.c (fwritable): Likewise.
1328         * lib/fwriting.c (fwriting): Likewise.
1329
1330 2008-04-26  Bruno Haible  <bruno@clisp.org>
1331
1332         * lib/stdio-impl.h: New file.
1333         * lib/fbufmode.c: Include stdio-impl.h.
1334         (fbufmode): Use fp_, remove redundant #defines.
1335         * lib/fflush.c: Include stdio-impl.h.
1336         (clear_ungetc_buffer): Remove redundant #defines.
1337         * lib/fpurge.c: Include stdio-impl.h.
1338         (fpurge): Remove redundant #defines.
1339         * lib/freadable.c: Include stdio-impl.h.
1340         (freadable): Remove redundant #defines.
1341         * lib/freadahead.c: Include stdio-impl.h.
1342         (freadahead): Remove redundant #defines.
1343         * lib/freading.c: Include stdio-impl.h.
1344         (freading): Remove redundant #defines.
1345         * lib/freadptr.c: Include stdio-impl.h.
1346         (freadptr): Remove redundant #defines.
1347         * lib/freadseek.c: Include stdio-impl.h.
1348         (freadptrinc): Remove redundant #defines.
1349         * lib/fseeko.c: Include stdio-impl.h.
1350         (rpl_fseeko): Remove redundant #defines.
1351         * lib/fseterr.c: Include stdio-impl.h.
1352         (fseterr): Remove redundant #defines.
1353         * lib/fwritable.c: Include stdio-impl.h.
1354         (fwritable: Remove redundant #defines.
1355         * lib/fwriting.c: Include stdio-impl.h.
1356         (fwriting): Remove redundant #defines.
1357         * modules/fbufmode (Files): Add lib/stdio-impl.h.
1358         * modules/fflush (Files): Likewise.
1359         * modules/fpurge (Files): Likewise.
1360         * modules/freadable (Files): Likewise.
1361         * modules/freadahead (Files): Likewise.
1362         * modules/freading (Files): Likewise.
1363         * modules/freadptr (Files): Likewise.
1364         * modules/freadseek (Files): Likewise.
1365         * modules/fseeko (Files): Likewise.
1366         * modules/fseterr (Files): Likewise.
1367         * modules/fwritable (Files): Likewise.
1368         * modules/fwriting (Files): Likewise.
1369
1370 2008-04-26  Bruno Haible  <bruno@clisp.org>
1371
1372         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
1373         restore_seek_optimization, update_fpos_cache): New functions, extracted
1374         from rpl_fflush.
1375         (rpl_fflush): Use them.
1376         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
1377         (gl_REPLACE_FFLUSH): Use it.
1378
1379 2008-04-26  Bruno Haible  <bruno@clisp.org>
1380
1381         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
1382         on Solaris.
1383         * tests/test-xstrtoimax.sh: Likewise.
1384         * tests/test-xstrtoumax.sh: Likewise.
1385         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1386
1387 2008-04-26  Bruno Haible  <bruno@clisp.org>
1388
1389         * modules/memchr-tests: New file.
1390         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
1391
1392 2008-04-26  Eric Blake  <ebb9@byu.net>
1393             Bruno Haible  <bruno@clisp.org>
1394
1395         * lib/memchr.c: Include intprops.h.
1396         (__memchr): Optimize parallel detection of matching bytes. Rename local
1397         variables. Add explanatory comments.
1398
1399 2008-04-26  Bruno Haible  <bruno@clisp.org>
1400
1401         Fix module 'memchr', broken since 2000-10-28.
1402         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
1403
1404 2008-04-26  Bruno Haible  <bruno@clisp.org>
1405
1406         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
1407         comments.
1408
1409 2008-04-25  Eric Blake  <ebb9@byu.net>
1410
1411         Use native fstatat on cygwin 1.7.0.
1412         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
1413         first.
1414
1415 2008-04-23  Eric Blake  <ebb9@byu.net>
1416
1417         Improve memchr2 performance.
1418         * lib/memchr2.c (memchr2): Further optimize parallel detection of
1419         NUL bytes.
1420         * modules/memchr2 (Depends-on): Use intprops.h.
1421
1422 2008-04-23  Simon Josefsson  <simon@josefsson.org>
1423
1424         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
1425         an inline function instead of a CPP macro.  Patch by Ben Pfaff
1426         <blp@cs.stanford.edu>.
1427
1428 2008-04-23  Simon Josefsson  <simon@josefsson.org>
1429
1430         * lib/arpa_inet.in.h: New file.
1431
1432         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
1433         (Makefile.am): Sed in substitute header file.
1434
1435         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
1436         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
1437
1438         * modules/inet_ntop (configure.ac): Use
1439         gl_ARPA_INET_MODULE_INDICATOR.
1440
1441         * modules/inet_pton (configure.ac): Use
1442         gl_ARPA_INET_MODULE_INDICATOR.
1443
1444 2008-04-22  Jim Meyering  <meyering@redhat.com>
1445
1446         * modules/verify (License): Re-license as LGPLv2+.
1447
1448 2008-04-22  Simon Josefsson  <simon@josefsson.org>
1449
1450         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
1451         parameter to void* as per POSIX standard (MinGW uses char*).
1452
1453 2008-04-21  Bruno Haible  <bruno@clisp.org>
1454
1455         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
1456         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
1457         Define to replacements if REPLACE_ISWCNTRL is 1.
1458         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
1459         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
1460         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
1461         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
1462         what it fixes.
1463         * doc/posix-functions/iswalpha.texi: Likewise.
1464         * doc/posix-functions/iswblank.texi: Likewise.
1465         * doc/posix-functions/iswcntrl.texi: Likewise.
1466         * doc/posix-functions/iswdigit.texi: Likewise.
1467         * doc/posix-functions/iswgraph.texi: Likewise.
1468         * doc/posix-functions/iswlower.texi: Likewise.
1469         * doc/posix-functions/iswprint.texi: Likewise.
1470         * doc/posix-functions/iswpunct.texi: Likewise.
1471         * doc/posix-functions/iswspace.texi: Likewise.
1472         * doc/posix-functions/iswupper.texi: Likewise.
1473         * doc/posix-functions/iswxdigit.texi: Likewise.
1474         Reported by Alain Guibert.
1475
1476 2008-04-21  Bruno Haible  <bruno@clisp.org>
1477
1478         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
1479         Patch by Alain Guibert.
1480
1481 2008-04-21  Bruno Haible  <bruno@clisp.org>
1482
1483         Fix test failures on mingw.
1484         * tests/test-xstrtol.c (print_no_progname): New function.
1485         (main): Install it in error_print_progname hook.
1486         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
1487         * tests/test-xstrtoimax.sh: Likewise.
1488         * tests/test-xstrtoumax.sh: Likewise.
1489
1490 2008-04-21  Bruno Haible  <bruno@clisp.org>
1491
1492         Fix test failure on mingw.
1493         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
1494
1495 2008-04-21  Bruno Haible  <bruno@clisp.org>
1496
1497         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
1498         Actually assign a value.
1499
1500 2008-04-20  Bruno Haible  <bruno@clisp.org>
1501
1502         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
1503         take 2.
1504         * lib/canonicalize.c (canonicalize_file_name): Elide if the
1505         'canonicalize-lgpl' module is also used.
1506         * lib/canonicalize-lgpl.c: Undo last change.
1507         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
1508
1509 2008-04-20  Bruno Haible  <bruno@clisp.org>
1510
1511         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
1512         config.h. Provide _mkdir based fallback for mingw.
1513         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
1514         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
1515         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
1516         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
1517         rather than defining mkdir in config.h.
1518         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
1519         (gl_SYS_STAT_H_DEFAULTS): New macro.
1520         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
1521         HAVE_IO_H any more.
1522         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
1523         HAVE_DECL_MKDIR and HAVE_IO_H.
1524
1525 2008-04-20  Bruno Haible  <bruno@clisp.org>
1526
1527         * lib/isapipe.c: Port to native Windows platforms.
1528
1529 2008-04-20  Bruno Haible  <bruno@clisp.org>
1530
1531         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
1532
1533 2008-04-21  Eric Blake  <ebb9@byu.net>
1534
1535         Work around preprocessors that don't handle UINTMAX_MAX.
1536         * lib/memchr2.c (memchr2): Avoid embedded #if.
1537         Reported by Alain Guibert, fix suggested by Bruno Haible.
1538
1539 2008-04-21  Simon Josefsson  <simon@josefsson.org>
1540
1541         * doc/posix-functions/strftime.texi (strftime): Explain better
1542         Windows incompatibility.  Suggested by Micah Cowan
1543         <micah@cowan.name>.
1544
1545 2008-04-20  Bruno Haible  <bruno@clisp.org>
1546
1547         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
1548         unistr/u8-mblen.
1549
1550 2008-04-20  Bruno Haible  <bruno@clisp.org>
1551
1552         Fix test failure on platforms with non-GNU iconv.
1553         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
1554         (U_TO_U8): Use it, rather than u16_to_u8.
1555         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
1556         units at the end of the input string.
1557         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
1558
1559 2008-04-20  Bruno Haible  <bruno@clisp.org>
1560
1561         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
1562         when the resulting length is 0.
1563         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
1564
1565 2008-04-20  Bruno Haible  <bruno@clisp.org>
1566
1567         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
1568         works.
1569         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
1570
1571 2008-04-20  Bruno Haible  <bruno@clisp.org>
1572
1573         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
1574         * modules/tsearch-tests (configure.ac): Test for initstate function.
1575
1576 2008-04-20  Bruno Haible  <bruno@clisp.org>
1577
1578         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
1579         for nlink_t if missing.
1580         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
1581
1582 2008-04-19  Bruno Haible  <bruno@clisp.org>
1583
1584         Work around snprintf bug on Linux libc5.
1585         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
1586         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1587         gl_SNPRINTF_SIZE1.
1588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1589         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
1590         that test failed.
1591         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1592         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
1593         * modules/snprintf (Files): Add m4/printf.m4.
1594         * modules/vsnprintf (Files): Likewise.
1595         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
1596         * doc/posix-functions/vsnprintf.texi: Likewise.
1597
1598 2008-04-19  Bruno Haible  <bruno@clisp.org>
1599
1600         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
1601         from 0.0058 to less than 10^-7.
1602
1603 2008-04-19  Bruno Haible  <bruno@clisp.org>
1604
1605         Fix rounding when a precision is given.
1606         * lib/vasnprintf.c (is_borderline): New function.
1607         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
1608         9...9x.
1609         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
1610         %e, %g.
1611         * tests/test-vasprintf-posix.c (test_function): Likewise.
1612         * tests/test-snprintf-posix.h (test_function): Likewise.
1613         * tests/test-sprintf-posix.h (test_function): Likewise.
1614         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
1615         * tests/test-printf-posix.h (test_function): Likewise.
1616         * tests/test-printf-posix.output: Update.
1617         Reported by John Darrington <john@darrington.wattle.id.au> via
1618         Ben Pfaff <blp@cs.stanford.edu>.
1619
1620 2008-04-18  Simon Josefsson  <simon@josefsson.org>
1621
1622         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
1623         Suggested by Bruno Haible <bruno@clisp.org>.
1624
1625 2008-04-17  Bruno Haible  <bruno@clisp.org>
1626
1627         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
1628         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
1629         implementation.
1630         Patch by Bruce Merry <bmerry@gmail.com>.
1631
1632 2008-04-17  Simon Josefsson  <simon@josefsson.org>
1633
1634         * doc/posix-functions/strftime.texi (strftime): Mention that %e
1635         doesn't work under Windows.
1636
1637 2008-04-16  Bruno Haible  <bruno@clisp.org>
1638
1639         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
1640         New macros.
1641         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
1642         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
1643         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
1644         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
1645         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
1646         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
1647         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
1648         macros.
1649         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
1650         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
1651         Northern Sotho, Uighur.
1652
1653 2008-04-16  Bruno Haible  <bruno@clisp.org>
1654
1655         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
1656         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
1657         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
1658         Reported by Daniel Bergström <daniel@octocode.com>.
1659
1660 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
1661             Bruno Haible  <bruno@clisp.org>
1662
1663         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
1664         function.
1665         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
1666         New functions, mostly extracted from gl_locale_name_default.
1667         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
1668
1669 2008-04-16  Eric Blake  <ebb9@byu.net>
1670
1671         Adjust strtod detection to catch glibc 2.7 bug.
1672         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
1673         Reported by John Gatewood Ham.
1674
1675 2008-04-16  Bruno Haible  <bruno@clisp.org>
1676
1677         Add tentative support for Linux libc5.
1678         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
1679         * lib/fpurge.c (fpurge): Likewise.
1680         * lib/freadable.c (freadable): Likewise.
1681         * lib/freadahead.c (freadahead): Likewise.
1682         * lib/freading.c (freading): Likewise.
1683         * lib/freadptr.c (freadptr): Likewise.
1684         * lib/freadseek.c (freadptrinc): Likewise.
1685         * lib/fseeko.c (rpl_fseeko): Likewise.
1686         * lib/fseterr.c (fseterr): Likewise.
1687         * lib/fwritable.c (fwritable): Likewise.
1688         * lib/fwriting.c (fwriting): Likewise.
1689         Reported by Alain Guibert <alguibert+bts@free.fr>.
1690
1691 2008-04-15  Bruno Haible  <bruno@clisp.org>
1692
1693         * modules/mathl (configure.ac): Define module indicator.
1694
1695 2008-04-15  Bruno Haible  <bruno@clisp.org>
1696
1697         * lib/logl.c (logl): Remove unused variables.
1698
1699 2008-04-15  Bruno Haible  <bruno@clisp.org>
1700
1701         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
1702         fails.
1703
1704 2008-04-15  Bruno Haible  <bruno@clisp.org>
1705
1706         * lib/trim.c (trim2): Fix argument of isspace() macro.
1707
1708 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
1709
1710         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
1711         to 0.
1712         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
1713
1714 2008-04-14  Bruno Haible  <bruno@clisp.org>
1715
1716         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
1717         AC_LANG_PROGRAM argument.
1718         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
1719         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
1720         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1721         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1722         * m4/math_h.m4 (gl_MATH_H): Likewise.
1723         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1724         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1725         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1726         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
1727         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1728         * m4/regex.m4 (gl_REGEX): Likewise.
1729         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
1730         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
1731         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1732         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
1733         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
1734         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1735         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1736         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1737
1738 2008-04-14  Jim Meyering  <meyering@redhat.com>
1739
1740         test-strtod: fix typos: s/abs/fabs/
1741         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
1742
1743 2008-04-13  Bruno Haible  <bruno@clisp.org>
1744
1745         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
1746         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
1747         module is also used and while not building the reloc-wrapper.
1748
1749 2008-04-13  Bruno Haible  <bruno@clisp.org>
1750
1751         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
1752
1753 2008-04-13  Bruno Haible  <bruno@clisp.org>
1754
1755         Fix AIX compilation failure introduced on 2008-04-02.
1756         * tests/test-frexp.c (exp): Undefine before redefining.
1757         * tests/test-frexpl.c (exp): Likewise.
1758
1759 2008-04-13  Bruno Haible  <bruno@clisp.org>
1760
1761         Work around a HP-UX stdio bug.
1762         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
1763         * tests/test-ftello.c (main): Likewise.
1764         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
1765         * doc/posix-functions/ftello.texi: Likewise.
1766
1767 2008-04-13  Bruno Haible  <bruno@clisp.org>
1768
1769         Make test-signbit pass on HP-UX/hppa.
1770         * tests/test-signbit.c (minus_zerol): New variable.
1771         (test_signbitl): Use it.
1772
1773 2008-04-13  Bruno Haible  <bruno@clisp.org>
1774
1775         Make truncl work on OSF/1 4.0.
1776         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
1777         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1778         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
1780         HAVE_DECL_TRUNCL.
1781         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
1782         HAVE_DECL_TRUNCL.
1783         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
1784
1785 2008-04-13  Bruno Haible  <bruno@clisp.org>
1786
1787         * lib/unictype.h: Remove trailing comma from enumeration definitions.
1788
1789 2008-04-13  Bruno Haible  <bruno@clisp.org>
1790
1791         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
1792         expression, so as to avoid HP-UX 11 cc compiler bug.
1793
1794 2008-04-13  Bruno Haible  <bruno@clisp.org>
1795
1796         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
1797
1798 2008-04-13  Bruno Haible  <bruno@clisp.org>
1799
1800         * lib/git-merge-changelog.c: Remove empty declaration outside of
1801         functions.
1802
1803 2008-04-13  Bruno Haible  <bruno@clisp.org>
1804
1805         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
1806
1807 2008-04-13  Bruno Haible  <bruno@clisp.org>
1808
1809         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
1810         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
1811         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
1812         also if it exists but lacks definitions of the SHUT_* macros.
1813         * modules/sys_socket (Description): Update.
1814         Reported by Elbert Pol <e.pol@chello.nl>.
1815
1816 2008-04-13  Bruno Haible  <bruno@clisp.org>
1817
1818         * lib/localcharset.c (OS2): Don't redefine if already defined.
1819         Reported by Elbert Pol <e.pol@chello.nl>.
1820
1821 2008-04-13  Bruno Haible  <bruno@clisp.org>
1822
1823         * lib/binary-io.h [__EMX__]: Include <io.h>.
1824         Reported by Elbert Pol <e.pol@chello.nl>.
1825
1826 2008-04-12  Bruno Haible  <bruno@clisp.org>
1827
1828         * lib/fpucw.h: Enable the definitions also for x86_64.
1829         Needed for NetBSD/x86_64.
1830         Reported by Thomas Klausner <tk@giga.or.at>.
1831
1832 2008-04-12  Bruno Haible  <bruno@clisp.org>
1833
1834         * tests/test-strtod.c: Include isnand.h.
1835         (main): Use isnand instead of isnan.
1836         Reported by Jim Meyering.
1837
1838 2008-04-12  Bruno Haible  <bruno@clisp.org>
1839
1840         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
1841         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1842
1843 2008-04-12  Jim Meyering  <meyering@redhat.com>
1844
1845         * m4/math_h.m4 (gl_MATH_H): Fix typos.
1846
1847 2008-04-12  Bruno Haible  <bruno@clisp.org>
1848
1849         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
1850         Reported by Elbert Pol <e.pol@chello.nl>.
1851
1852 2008-04-12  Eric Blake  <ebb9@byu.net>
1853
1854         Work around Solaris 10 math.h bug.
1855         * m4/math_h.m4 (gl_MATH_H): Check for bug.
1856         (gl_MATH_H_DEFAULTS): Set up default.
1857         * modules/math (Makefile.am): Replace new indicators.
1858         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
1859         * tests/test-math.c (main): Test this.
1860         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
1861         * doc/posix-headers/math.texi (math.h): Mention bug.
1862         Reported by Nelson H. F. Beebe and Jim Meyering.
1863
1864 2008-04-11  Bruno Haible  <bruno@clisp.org>
1865
1866         Adapt to future versions of Apple GCC.
1867         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
1868         Reported by Peter O'Gorman <peter@pogma.com>.
1869
1870 2008-04-11  Bruno Haible  <bruno@clisp.org>
1871
1872         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
1873
1874 2008-04-11  Bruno Haible  <bruno@clisp.org>
1875
1876         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
1877
1878         * modules/getaddrinfo-tests (Makefile.am): Define
1879         test_getaddrinfo_LDADD.
1880
1881 2008-04-11  Bruno Haible  <bruno@clisp.org>
1882
1883         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
1884         (init): Fix syntax error.
1885         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
1886         is declared.
1887
1888 2008-04-11  Bruno Haible  <bruno@clisp.org>
1889
1890         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
1891         * modules/glob (Depends-on): Add stdbool.
1892
1893 2008-04-11  Bruno Haible  <bruno@clisp.org>
1894
1895         * lib/trim.c: Include <string.h>.
1896
1897 2008-04-11  Eric Blake  <ebb9@byu.net>
1898
1899         Avoid compile failure on OS/2.
1900         * lib/regex_internal.h (internal_function): Disable optimization
1901         on OS/2 (__EMX__), where it caused compiler error.
1902         Reported by Elbert Pol.
1903
1904 2008-04-11  Bruno Haible  <bruno@clisp.org>
1905
1906         Flush the standard error stream before aborting. Needed on mingw.
1907         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
1908         * tests/test-array_list.c (ASSERT): Likewise.
1909         * tests/test-array_oset.c (ASSERT): Likewise.
1910         * tests/test-avltree_list.c (ASSERT): Likewise.
1911         * tests/test-avltree_oset.c (ASSERT): Likewise.
1912         * tests/test-avltreehash_list.c (ASSERT): Likewise.
1913         * tests/test-binary-io.c (ASSERT): Likewise.
1914         * tests/test-byteswap.c (ASSERT): Likewise.
1915         * tests/test-c-ctype.c (ASSERT): Likewise.
1916         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
1917         * tests/test-c-strcasestr.c (ASSERT): Likewise.
1918         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
1919         * tests/test-c-strstr.c (ASSERT): Likewise.
1920         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
1921         * tests/test-canonicalize.c (ASSERT): Likewise.
1922         * tests/test-carray_list.c (ASSERT): Likewise.
1923         * tests/test-ceilf1.c (ASSERT): Likewise.
1924         * tests/test-ceilf2.c (ASSERT): Likewise.
1925         * tests/test-ceill.c (ASSERT): Likewise.
1926         * tests/test-count-one-bits.c (ASSERT): Likewise.
1927         * tests/test-fbufmode.c (ASSERT): Likewise.
1928         * tests/test-fflush2.c (ASSERT): Likewise.
1929         * tests/test-floorf1.c (ASSERT): Likewise.
1930         * tests/test-floorf2.c (ASSERT): Likewise.
1931         * tests/test-floorl.c (ASSERT): Likewise.
1932         * tests/test-fopen.c (ASSERT): Likewise.
1933         * tests/test-fpending.c (ASSERT): Likewise.
1934         * tests/test-fprintf-posix.c (ASSERT): Likewise.
1935         * tests/test-fpurge.c (ASSERT): Likewise.
1936         * tests/test-freadable.c (ASSERT): Likewise.
1937         * tests/test-freadahead.c (ASSERT): Likewise.
1938         * tests/test-freading.c (ASSERT): Likewise.
1939         * tests/test-freadptr.c (ASSERT): Likewise.
1940         * tests/test-freadptr2.c (ASSERT): Likewise.
1941         * tests/test-freadseek.c (ASSERT): Likewise.
1942         * tests/test-freopen.c (ASSERT): Likewise.
1943         * tests/test-frexp.c (ASSERT): Likewise.
1944         * tests/test-frexpl.c (ASSERT): Likewise.
1945         * tests/test-fseek.c (ASSERT): Likewise.
1946         * tests/test-fseeko.c (ASSERT): Likewise.
1947         * tests/test-fstrcmp.c (ASSERT): Likewise.
1948         * tests/test-ftell.c (ASSERT): Likewise.
1949         * tests/test-ftello.c (ASSERT): Likewise.
1950         * tests/test-func.c (ASSERT): Likewise.
1951         * tests/test-fwritable.c (ASSERT): Likewise.
1952         * tests/test-fwriting.c (ASSERT): Likewise.
1953         * tests/test-getdelim.c (ASSERT): Likewise.
1954         * tests/test-getline.c (ASSERT): Likewise.
1955         * tests/test-i-ring.c (ASSERT): Likewise.
1956         * tests/test-iconv-utf.c (ASSERT): Likewise.
1957         * tests/test-iconv.c (ASSERT): Likewise.
1958         * tests/test-isfinite.c (ASSERT): Likewise.
1959         * tests/test-isnand.c (ASSERT): Likewise.
1960         * tests/test-isnanf.c (ASSERT): Likewise.
1961         * tests/test-isnanl.h (ASSERT): Likewise.
1962         * tests/test-ldexpl.c (ASSERT): Likewise.
1963         * tests/test-linked_list.c (ASSERT): Likewise.
1964         * tests/test-linkedhash_list.c (ASSERT): Likewise.
1965         * tests/test-localename.c (ASSERT): Likewise.
1966         * tests/test-lseek.c (ASSERT): Likewise.
1967         * tests/test-mbscasecmp.c (ASSERT): Likewise.
1968         * tests/test-mbscasestr1.c (ASSERT): Likewise.
1969         * tests/test-mbscasestr2.c (ASSERT): Likewise.
1970         * tests/test-mbscasestr3.c (ASSERT): Likewise.
1971         * tests/test-mbscasestr4.c (ASSERT): Likewise.
1972         * tests/test-mbschr.c (ASSERT): Likewise.
1973         * tests/test-mbscspn.c (ASSERT): Likewise.
1974         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
1975         * tests/test-mbspbrk.c (ASSERT): Likewise.
1976         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
1977         * tests/test-mbsrchr.c (ASSERT): Likewise.
1978         * tests/test-mbsspn.c (ASSERT): Likewise.
1979         * tests/test-mbsstr1.c (ASSERT): Likewise.
1980         * tests/test-mbsstr2.c (ASSERT): Likewise.
1981         * tests/test-mbsstr3.c (ASSERT): Likewise.
1982         * tests/test-memchr2.c (ASSERT): Likewise.
1983         * tests/test-memmem.c (ASSERT): Likewise.
1984         * tests/test-open.c (ASSERT): Likewise.
1985         * tests/test-printf-frexp.c (ASSERT): Likewise.
1986         * tests/test-printf-frexpl.c (ASSERT): Likewise.
1987         * tests/test-printf-posix.c (ASSERT): Likewise.
1988         * tests/test-quotearg.c (ASSERT): Likewise.
1989         * tests/test-rbtree_list.c (ASSERT): Likewise.
1990         * tests/test-rbtree_oset.c (ASSERT): Likewise.
1991         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
1992         * tests/test-round1.c (ASSERT): Likewise.
1993         * tests/test-roundf1.c (ASSERT): Likewise.
1994         * tests/test-roundl.c (ASSERT): Likewise.
1995         * tests/test-signbit.c (ASSERT): Likewise.
1996         * tests/test-sleep.c (ASSERT): Likewise.
1997         * tests/test-snprintf-posix.c (ASSERT): Likewise.
1998         * tests/test-snprintf.c (ASSERT): Likewise.
1999         * tests/test-sprintf-posix.c (ASSERT): Likewise.
2000         * tests/test-stat-time.c (ASSERT): Likewise.
2001         * tests/test-strcasestr.c (ASSERT): Likewise.
2002         * tests/test-strerror.c (ASSERT): Likewise.
2003         * tests/test-striconv.c (ASSERT): Likewise.
2004         * tests/test-striconveh.c (ASSERT): Likewise.
2005         * tests/test-striconveha.c (ASSERT): Likewise.
2006         * tests/test-strsignal.c (ASSERT): Likewise.
2007         * tests/test-strstr.c (ASSERT): Likewise.
2008         * tests/test-strtod.c (ASSERT): Likewise.
2009         * tests/test-trunc1.c (ASSERT): Likewise.
2010         * tests/test-trunc2.c (ASSERT): Likewise.
2011         * tests/test-truncf1.c (ASSERT): Likewise.
2012         * tests/test-truncf2.c (ASSERT): Likewise.
2013         * tests/test-truncl.c (ASSERT): Likewise.
2014         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
2015         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
2016         * tests/test-vasnprintf.c (ASSERT): Likewise.
2017         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
2018         * tests/test-vasprintf.c (ASSERT): Likewise.
2019         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
2020         * tests/test-vprintf-posix.c (ASSERT): Likewise.
2021         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
2022         * tests/test-vsnprintf.c (ASSERT): Likewise.
2023         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
2024         * tests/test-wcwidth.c (ASSERT): Likewise.
2025         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
2026         * tests/test-xprintf-posix.c (ASSERT): Likewise.
2027         * tests/test-xvasprintf.c (ASSERT): Likewise.
2028         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
2029         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
2030         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
2031         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
2032         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
2033         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
2034         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
2035         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
2036         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
2037         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
2038         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
2039         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
2040         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
2041         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
2042         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
2043         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
2044         * tests/unictype/test-block_list.c (ASSERT): Likewise.
2045         * tests/unictype/test-block_of.c (ASSERT): Likewise.
2046         * tests/unictype/test-block_test.c (ASSERT): Likewise.
2047         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
2048         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
2049         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
2050         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
2051         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
2052         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
2053         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
2054         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
2055         * tests/unictype/test-combining.c (ASSERT): Likewise.
2056         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
2057         * tests/unictype/test-digit.c (ASSERT): Likewise.
2058         * tests/unictype/test-mirror.c (ASSERT): Likewise.
2059         * tests/unictype/test-numeric.c (ASSERT): Likewise.
2060         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
2061         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
2062         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
2063         * tests/unictype/test-scripts.c (ASSERT): Likewise.
2064         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
2065         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
2066         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
2067         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
2068         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
2069         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
2070         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
2071         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
2072         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
2073         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
2074         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
2075         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
2076         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
2077         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
2078         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
2079         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
2080         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
2081         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
2082         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
2083         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
2084         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
2085         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
2086         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
2087         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
2088         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
2089         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
2090         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
2091         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
2092         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
2093         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
2094         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
2095         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
2096         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
2097         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
2098         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
2099         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
2100         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
2101         Reported by Eric Blake.
2102
2103 2008-04-11  Bruno Haible  <bruno@clisp.org>
2104
2105         * lib/wchar.in.h: Tweak comment.
2106
2107 2008-04-11  Bruno Haible  <bruno@clisp.org>
2108
2109         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
2110         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
2111         gl_COMMON.
2112         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
2113
2114 2008-04-11  Bruno Haible  <bruno@clisp.org>
2115
2116         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
2117
2118 2008-04-11  Simon Josefsson  <simon@josefsson.org>
2119
2120         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
2121         of attempting to use non-existing /dev/*random.  Based on patch
2122         from Adam Strzelecki <ono@java.pl> in
2123         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
2124
2125 2008-04-08  Bruno Haible  <bruno@clisp.org>
2126
2127         Add tentative support for emx+gcc.
2128         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
2129         * lib/fpurge.c (fpurge): Likewise.
2130         * lib/freadable.c (freadable): Likewise.
2131         * lib/freadahead.c (freadahead): Likewise.
2132         * lib/freading.c (freading): Likewise.
2133         * lib/freadptr.c (freadptr): Likewise.
2134         * lib/freadseek.c (freadptrinc): Likewise.
2135         * lib/fseeko.c (rpl_fseeko): Likewise.
2136         * lib/fseterr.c (fseterr): Likewise.
2137         * lib/fwritable.c (fwritable): Likewise.
2138         * lib/fwriting.c (fwriting): Likewise.
2139         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
2140
2141 2008-04-09  Eric Blake  <ebb9@byu.net>
2142
2143         Avoid some autoconf warnings.
2144         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
2145         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
2146         * m4/afs.m4 (gl_AFS): Likewise.
2147         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
2148         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
2149         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2150         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
2151         (gl_INTEGER_TYPE_SUFFIX): Likewise.
2152         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
2153         (AC_CHECK_DECLS_ONCE): Likewise.
2154         Rename file...
2155         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
2156         gnulib-tool requires autoconf 2.59 or better.
2157         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
2158
2159 2008-04-08  Eric Blake  <ebb9@byu.net>
2160
2161         Use 'git describe --match' if present (added in git 1.5.5).
2162         * build-aux/git-version-gen: Limit result to tags that match 'v*'
2163         if possible.
2164
2165 2008-04-08  Bruno Haible  <bruno@clisp.org>
2166
2167         Add tentative support for OpenServer.
2168         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
2169         _ptr, _cnt.
2170         * lib/fpurge.c (fpurge): Likewise.
2171         * lib/freadable.c (freadable): Likewise.
2172         * lib/freadahead.c (freadahead): Likewise.
2173         * lib/freading.c (freading): Likewise.
2174         * lib/freadptr.c (freadptr): Likewise.
2175         * lib/freadseek.c (freadptrinc): Likewise.
2176         * lib/fseeko.c (rpl_fseeko): Likewise.
2177         * lib/fseterr.c (fseterr): Likewise.
2178         * lib/fwritable.c (fwritable): Likewise.
2179         * lib/fwriting.c (fwriting): Likewise.
2180         Reported by Roger Cornelius <rac@tenzing.org> and
2181         Brian K. White <brian@aljex.com>.
2182
2183 2008-04-06  Jim Meyering  <meyering@redhat.com>
2184
2185         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
2186
2187 2008-04-06  Bruno Haible  <bruno@clisp.org>
2188
2189         Avoid possible error with non-ASCII bytes in UTF-8 locales.
2190         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
2191         * tests/test-printf-posix.sh: Likewise.
2192         * tests/test-vfprintf-posix.sh: Likewise.
2193         * tests/test-vprintf-posix.sh: Likewise.
2194         * tests/test-xprintf-posix.sh: Likewise.
2195
2196 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2197
2198         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
2199         hide error from 'ls', needed on OS/2.
2200         Report by Elbert Pol <elbert.pol@gmail.com>.
2201
2202 2008-04-04  Eric Blake  <ebb9@byu.net>
2203
2204         Make test-fseeko.c failures meaningful.
2205         * tests/test-fseeko.c: Print line number on failure.
2206         * tests/test-fseek.c: Likewise.
2207         Reported by Nelson H. F. Beebe.
2208
2209         Improve strtod bug detection check.
2210         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
2211         required for Solaris 10.
2212         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
2213
2214 2008-04-04  Bruno Haible  <bruno@clisp.org>
2215
2216         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
2217         by m4/setenv.m4.
2218
2219 2008-04-03  Eric Blake  <ebb9@byu.net>
2220
2221         Ensure sane .version contents.
2222         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
2223         version string.
2224         * build-aux/git-version-gen: Improve documentation.
2225
2226         Make GNU make output nicer.
2227         * top/GNUmakefile [!_have-Makefile]: Add dependency on
2228         MAKECMDGOALS to enforce message for all command line targets.  Set
2229         srcdir for use in maint.mk.
2230
2231         Another maintainer tweak.
2232         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
2233         a target that regenerates version.
2234
2235 2008-04-03  Jim Meyering  <meyering@redhat.com>
2236
2237         vc-list-files: don't cause coreutils "make po-check" failure
2238         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
2239
2240 2008-04-03  Eric Blake  <ebb9@byu.net>
2241
2242         Allow VPATH usage of vc-list-files.
2243         * build-aux/vc-list-files (scriptversion): Add timestamp.
2244         (options): Add --help, --version, -C.
2245         (CVS): Support installed cvsu.
2246
2247 2008-04-02  Bruno Haible  <bruno@clisp.org>
2248
2249         Avoid some "statement with no effect" warnings from gcc.
2250         * tests/test-wctype.c (main): Explicitly ignore unused values.
2251         Reported by Jim Meyering.
2252
2253 2008-04-02  Jim Meyering  <meyering@redhat.com>
2254
2255         Avoid some warnings from "gcc -Wshadow".
2256         * tests/test-frexp.c (exp): Define to a different identifier.
2257         * tests/test-frexpl.c (exp): Likewise.
2258
2259 2008-04-03  Jim Meyering  <meyering@redhat.com>
2260
2261         bootstrap: remove dangling *.[ch] symlinks from lib
2262         * build-aux/bootstrap [dangling symlink removal]: Move find's
2263         -depth option to precede all others, to avoid a warning.
2264         Remove *.[ch] files too, and from "$source_base" (usually lib/).
2265
2266 2008-04-02  Bruno Haible  <bruno@clisp.org>
2267
2268         Avoid some warnings from "gcc -Wshadow".
2269         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
2270         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
2271         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
2272         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
2273         Reported by Jim Meyering.
2274
2275 2008-04-01  Bruno Haible  <bruno@clisp.org>
2276
2277         Fix test to work on IRIX 6.5 with cc.
2278         * tests/test-math.c (numeric_equal): New function.
2279         (main): Use it.
2280
2281 2008-04-01  Bruno Haible  <bruno@clisp.org>
2282
2283         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
2284
2285 2008-04-01  Bruno Haible  <bruno@clisp.org>
2286
2287         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
2288         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2289         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
2290         (Depends-on): Remove math.
2291
2292         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
2293         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2294         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
2295         (Depends-on): Remove math.
2296
2297         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
2298         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2299         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
2300         (Depends-on): Remove math.
2301         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
2302         (Depends-on): Remove math.
2303
2304         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
2305         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2306         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
2307         (Depends-on): Remove math.
2308         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
2309         (Depends-on): Remove math.
2310
2311         * tests/test-round1.c: Include nan.h.
2312         (main): Use NaNd instead of NAN.
2313         * modules/round-tests (Files): Add tests/nan.h.
2314
2315         * tests/test-trunc1.c: Include nan.h.
2316         (main): Use NaNd instead of NAN.
2317         * modules/trunc-tests (Files): Add tests/nan.h.
2318
2319         * tests/test-roundf1.c: Include nan.h.
2320         (main): Use NaNf instead of NAN.
2321         * modules/roundf-tests (Files): Add tests/nan.h.
2322
2323         * tests/test-truncf1.c: Include nan.h.
2324         (main): Use NaNf instead of NAN.
2325         * modules/truncf-tests (Files): Add tests/nan.h.
2326
2327         * tests/test-ceilf1.c: Include nan.h.
2328         (main): Use NaNf instead of NAN.
2329         * modules/ceilf-tests (Files): Add tests/nan.h.
2330
2331         * tests/test-floorf1.c: Include nan.h.
2332         (main): Use NaNf instead of NAN.
2333         * modules/floorf-tests (Files): Add tests/nan.h.
2334
2335         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
2336         (main): Use NaNf instead of NAN.
2337         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
2338
2339         * tests/test-isnand.c: Include nan.h instead of <math.h>.
2340         (main): Use NaNd instead of NAN.
2341         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
2342
2343         * tests/test-frexp.c: Include nan.h.
2344         (main): Use NaNd instead of NAN.
2345         * modules/frexp-tests (Files): Add tests/nan.h.
2346
2347         * lib/isnan.c: Don't include <math.h>.
2348         (FUNC): Don't use NAN macro.
2349         * modules/isnand-nolibm (Depends-on): Remove math.
2350         * modules/isnanf-nolibm (Depends-on): Remove math.
2351         * modules/isnanl (Depends-on): Remove math.
2352         * modules/isnanl-nolibm (Depends-on): Remove math.
2353
2354         * tests/nan.h: New file.
2355
2356 2008-04-01  Eric Blake  <ebb9@byu.net>
2357
2358         Fix typos.
2359         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
2360         values to be the right type.
2361
2362         For now, cater to gnulib strtod inaccuracies.
2363         * tests/test-strtod.c (main): Allow 1-ulp error on expected
2364         fractional results.  While not as nice from a QoI perspective, it
2365         is a quicker patch than correctly implementing decimal to binary
2366         rounding.
2367
2368 2008-03-31  Eric Blake  <ebb9@byu.net>
2369
2370         Guarantee a definition of NAN.
2371         * lib/math.in.h (NAN): Define if missing.
2372         * tests/test-math.c (main): Test it.
2373         * doc/posix-headers/math.texi (math.h): Document this.
2374         * lib/isnan.c (rpl_isnand): Use it.
2375         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
2376         * tests/test-floorf1.c (NaN): Likewise.
2377         * tests/test-frexp.c (NaN): Likewise.
2378         * tests/test-isnand.c (NaN): Likewise.
2379         * tests/test-isnanf.c (NaN): Likewise.
2380         * tests/test-round1.c (NaN): Likewise.
2381         * tests/test-roundf1.c (NaN): Likewise.
2382         * tests/test-snprintf-posix.h (NaN): Likewise.
2383         * tests/test-sprintf-posix.h (NaN): Likewise.
2384         * tests/test-trunc1.c (NaN): Likewise.
2385         * tests/test-truncf1.c (NaN): Likewise.
2386         * tests/test-vasnprintf-posix.c (NaN): Likewise.
2387         * tests/test-vasprintf-posix.c (NaN): Likewise.
2388         * modules/isnand-nolibm (Depends-on): Add math.
2389         * modules/isnanf-nolibm (Depends-on): Likewise.
2390         * modules/isnanl (Depends-on): Likewise.
2391         * modules/isnanl-nolibm (Depends-on): Likewise.
2392         * modules/snprintf-posix-tests (Depends-on): Likewise.
2393         * modules/sprintf-posix-tests (Depends-on): Likewise.
2394         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
2395         * modules/vsprintf-posix-tests (Depends-on): Likewise.
2396         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
2397         * modules/vasprintf-posix-tests (Depends-on): Likewise.
2398
2399 2008-03-31  Bruno Haible  <bruno@clisp.org>
2400
2401         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
2402         * doc/posix-functions/strtod.texi: Likewise.
2403
2404 2008-03-31  Bruno Haible  <bruno@clisp.org>
2405
2406         * tests/test-strtod.c (main): Don't use C99 syntax.
2407
2408 2008-03-31  Bruno Haible  <bruno@clisp.org>
2409
2410         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
2411         Reported by Eric Blake.
2412
2413 2008-03-31  Jim Meyering  <meyering@redhat.com>
2414
2415         Don't compare actual signbit return values.
2416         * tests/test-strtod.c (main): Rather, compare only their
2417         zero/non-zero nature.
2418
2419 2008-03-31  Eric Blake  <ebb9@byu.net>
2420
2421         More strtod documentation.
2422         * doc/posix-functions/strtod.texi (strtod): Interpret more test
2423         failures as distinct bugs.
2424
2425 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2426
2427         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
2428         Problem reported by Erik Benada in
2429         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
2430
2431 2008-03-30  Bruno Haible  <bruno@clisp.org>
2432
2433         * tests/test-strtod.c: Add comments about which assertion fails on which
2434         platform.
2435         * doc/posix-functions/strtod.texi: Add info about many more platforms.
2436
2437 2008-03-30  Eric Blake  <ebb9@byu.net>
2438
2439         Test signbit behavior on zeros.
2440         * tests/test-signbit.c (test_signbitf): Add tests for zero.
2441         (test_signbitd, test_signbitl): Likewise.
2442
2443         More strtod touchups.
2444         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
2445         sign of negative underflow, for now.  Use .5, not .1.
2446         * doc/posix-functions/strtod.texi (strtod): Mention these
2447         limitations.
2448         Reported by Jim Meyering.
2449
2450 2008-03-30  Bruno Haible  <bruno@clisp.org>
2451
2452         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
2453         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
2454
2455 2008-03-30  Bruno Haible  <bruno@clisp.org>
2456
2457         Avoid failure when attempting to return empty iconv results on some
2458         platforms.
2459         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
2460         allocation, don't report ENOMEM when the resulting string is empty.
2461
2462 2008-03-30  Bruno Haible  <bruno@clisp.org>
2463
2464         Fix buffer overrun.
2465         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
2466         Don't consider the width for tmp_length. Check count against tmp_length
2467         before doing the padding. Ensure enough allocation during padding.
2468
2469 2008-03-30  Eric Blake  <ebb9@byu.net>
2470
2471         strtod touchups.
2472         * lib/strtod.c (strtod): Avoid compiler warnings.
2473         Reported by Jim Meyering.
2474
2475 2008-03-30  Bruno Haible  <bruno@clisp.org>
2476
2477         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
2478         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
2479         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
2480         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
2481         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
2482         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
2483         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
2484         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
2485
2486         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
2487         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
2488         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
2489         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
2490         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
2491         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
2492         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
2493         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
2494
2495         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
2496         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
2497         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
2498         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
2499         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
2500         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
2501         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
2502         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
2503
2504         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
2505         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
2506
2507         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
2508         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
2509
2510         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
2511         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
2512
2513         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
2514         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
2515         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
2516
2517         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
2518         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
2519         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
2520
2521         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
2522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
2523         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
2524
2525         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
2526         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
2527         * modules/vasprintf (Depends-on): Add EOVERFLOW.
2528
2529         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
2530         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
2531         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
2532         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
2533         (Depends-on): Add EOVERFLOW.
2534         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
2535         (Depends-on): Add EOVERFLOW.
2536         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2537         (Depends-on): Add EOVERFLOW.
2538         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2539         (Depends-on): Add EOVERFLOW.
2540         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2541         (Depends-on): Add EOVERFLOW.
2542         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2543         (Depends-on): Add EOVERFLOW.
2544         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2545         (Depends-on): Add EOVERFLOW.
2546         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2547         (Depends-on): Add EOVERFLOW.
2548
2549         * lib/sprintf.c (EOVERFLOW): Remove fallback.
2550         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
2551         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
2552
2553         * lib/snprintf.c (EOVERFLOW): Remove fallback.
2554         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
2555         * modules/snprintf (Depends-on): Add EOVERFLOW.
2556
2557         * lib/poll.c (EOVERFLOW): Remove fallback.
2558         * modules/poll (Depends-on): Add EOVERFLOW.
2559
2560         * lib/getugroups.c (EOVERFLOW): Remove fallback.
2561         * modules/getugroups (Depends-on): Add EOVERFLOW.
2562
2563         * lib/getdelim.c (EOVERFLOW): Remove fallback.
2564         * modules/getdelim (Depends-on): Add EOVERFLOW.
2565
2566         * lib/ftell.c (EOVERFLOW): Remove fallback.
2567         * modules/ftell (Depends-on): Add EOVERFLOW.
2568
2569         * lib/fprintf.c (EOVERFLOW): Remove fallback.
2570         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
2571         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
2572
2573         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
2574
2575         * modules/EOVERFLOW-tests: New file.
2576         * tests/test-EOVERFLOW.c: New file.
2577
2578         * modules/EOVERFLOW: New file.
2579         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
2580
2581 2008-03-30  Bruno Haible  <bruno@clisp.org>
2582
2583         Fix bug introduced on 2007-06-10.
2584         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
2585         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
2586
2587 2008-03-30  Bruno Haible  <bruno@clisp.org>
2588
2589         Improve freadseek's efficiency after ungetc.
2590         * lib/freadseek.c: Include freadahead.h.
2591         (freadptrinc): New function, extracted from freadseek.
2592         (freadseek): Use it in a loop. Use freadahead to determine the number
2593         of loop iterations.
2594         * modules/freadseek (Depends-on): Add freadahead.
2595         (configure.ac): Require AC_C_INLINE.
2596
2597 2008-03-30  Bruno Haible  <bruno@clisp.org>
2598
2599         * lib/freadseek.c (freadseek): Don't ignore the return value of
2600         freadptr.
2601
2602 2008-03-29  Eric Blake  <ebb9@byu.net>
2603
2604         Add hex float support.
2605         * modules/strtod (Depends-on): Add c-ctype.
2606         (Link): Mention POW_LIB.
2607         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
2608         whitespace between 'e' and exponent.
2609         * tests/test-strtod.c (main): Enable hex float tests.
2610         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
2611         now provides.
2612
2613         Document various strtod bugs, with some fixes.
2614         * doc/posix-functions/strtod.texi (strtod): Document bugs with
2615         "-0x", "inf", "nan", and hex constants.
2616         * doc/posix-functions/atof.texi (atof): Likewise.
2617         * modules/stdlib (Makefile.am): Support strtod.
2618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
2619         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
2620         detect additional strtod bugs.
2621         * lib/stdlib.in.h (rpl_strtod): Add declarations.
2622         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
2623         bool where appropriate.  Parse 'inf' and 'nan'.
2624         * tests/test-strtod.c: New file.
2625         * modules/strtod (Depends-on): Add stdbool, stdlib.
2626         (configure.ac): Turn on module indicator.
2627         * modules/strtod-tests: New module.
2628
2629 2008-03-29  Eric Blake  <ebb9@byu.net>
2630
2631         Fix ftell on mingw.
2632         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
2633         * modules/ftell-tests (Depends-on): Add binary-io.
2634         * modules/ftello-tests (Depends-on): Likewise.
2635         * tests/test-ftell.c (main): Enhance test to cover behavior after
2636         ungetc.  Enforce binary mode.
2637         * tests/test-ftello.c (main): Likewise.
2638
2639         Pass test-freadseek on cygwin.
2640         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
2641         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
2642         ungetc buffer.
2643
2644         * tests/test-fflush2.c (main): Fix typo.
2645
2646 2008-03-29  Bruno Haible  <bruno@clisp.org>
2647
2648         * tests/test-fflush2.c (main): Temporarily disable the contents of
2649         this test.
2650         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
2651         Reported by Eric Blake.
2652
2653 2008-03-28  Simon Josefsson  <simon@josefsson.org>
2654
2655         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
2656         (GC_SHA224_DIGEST_SIZE): Add.
2657
2658         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
2659         (gc_hash_digest_length): Likewise.
2660         (gc_hash_buffer): Likewise.
2661
2662 2008-03-25  Bruno Haible  <bruno@clisp.org>
2663
2664         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
2665         detail which gettext release to use.
2666         Reported by Simon Josefsson.
2667
2668 2008-03-26  Jim Meyering  <meyering@redhat.com>
2669
2670         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
2671         * modules/gnumakefile (clean-GNUmakefile): Also, use
2672         test ... && ... || : syntax rather than if-then ... fi.
2673
2674         gnumakefile: Don't double-quote-expand $(VPATH) value.
2675         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
2676
2677 2008-03-24  Eric Blake  <ebb9@byu.net>
2678
2679         Alter GNUmakefile to install into top directory.
2680         * modules/maintainer-makefile: Split, and add dependency...
2681         * modules/gnumakefile: to this new module.
2682         * build-aux/GNUmakefile: Move...
2683         * top/GNUmakefile: ...here.
2684         * build-aux/maint.mk: Move...
2685         * top/maint.mk: ...here.
2686         * MODULES.html.sh (Support for maintaining...): Document new
2687         module.
2688
2689 2008-03-23  Bruno Haible  <bruno@clisp.org>
2690
2691         * gnulib-tool: New options --vc-files, --no-vc-files.
2692         (func_usage): Document them.
2693         (vc_files): New variable.
2694         (func_import): Consider vc_files.
2695         (func_create_testdir): Set vc_files to empty.
2696         Suggested by Jim Meyering and Karl Berry.
2697
2698 2008-03-23  Bruno Haible  <bruno@clisp.org>
2699
2700         Fix regex compilation error on HP-UX 11.
2701         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
2702         * modules/regex (Files): Add m4/mbstate_t.m4.
2703         Reported by Ton Voon <ton.voon@altinity.com>.
2704
2705 2008-03-23  Bruno Haible  <bruno@clisp.org>
2706
2707         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
2708
2709 2008-03-23  Eric Blake  <ebb9@byu.net>
2710             Bruno Haible  <bruno@clisp.org>
2711
2712         Install files from top/ in the destination directory.
2713         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
2714         augmentation also for the files from top/.
2715         (func_import, func_create_testdir): Rewrite file names:
2716         top/filename -> filename.
2717
2718 2008-03-23  Bruno Haible  <bruno@clisp.org>
2719
2720         Tweak "gnulib --version" output.
2721         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
2722
2723 2008-03-23  Bruno Haible  <bruno@clisp.org>
2724
2725         Tweak "gnulib --version" output.
2726         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
2727         rather than contents of ChangeLog, when possible.
2728
2729 2008-03-21  Eric Blake  <ebb9@byu.net>
2730
2731         More --version tweaks.
2732         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
2733         date of last ChangeLog entry.
2734
2735 2008-03-21  Jim Meyering  <meyering@redhat.com>
2736
2737         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
2738
2739 2008-03-20  Eric Blake  <ebb9@byu.net>
2740
2741         VPATH fix.
2742         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
2743
2744 2008-03-20  Simon Josefsson  <simon@josefsson.org>
2745
2746         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
2747         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
2748
2749 2008-03-20  Eric Blake  <ebb9@byu.net>
2750
2751         Sync GNUmakefile with coreutils.
2752         * build-aux/GNUmakefile (have-Makefile): Rename...
2753         (_have-Makefile): ...to this, for namespace consideration.
2754         (GNUmakefile.cfg): Include, if present.
2755         (_autoreconf): Define a default.
2756         (_is-dist-target): New rule for rebuilds to pick up intra-release
2757         version.
2758         (maint-cfg.mk): Rename...
2759         (cfg.mk): ...to this.
2760
2761 2008-03-18  Jim Meyering  <meyering@redhat.com>
2762
2763         New script and module: mktempd
2764         * MODULES.html.sh (maint+release support): Add mktempd.
2765         * build-aux/mktempd: New file.
2766         * modules/mktempd: New file.
2767
2768 2008-03-15  Jim Meyering  <meyering@redhat.com>
2769
2770         Undo last change.
2771         * lib/sha1.c, lib/md5.c: 63 != ~63.
2772         Reported by Andreas Schwab.
2773
2774         sha1.c, md5.c: Hoist a redundant expression.
2775         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
2776         "ctx->buflen" only once, before calling *_process_block.
2777         * lib/md5.c (md5_process_bytes): Likewise.
2778
2779 2008-03-14  Eric Blake  <ebb9@byu.net>
2780
2781         Bump copyright year in files generated by gnulib-tool.
2782         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
2783         gnulib-tool, rather than hard-coding it.
2784
2785         Fix 'gnulib-tool --version' output to work with git.
2786         * gnulib-tool (func_gnulib_dir): New function, extracted from...
2787         (startup): ...here.
2788         (func_version): Use it to invoke git-version-gen, rather than
2789         relying on CVS keyword expansion.  Modernize wording.
2790         (cvsdatestamp, last_checkin_date, version): Kill unused
2791         variables.
2792
2793 2008-03-12  Jim Meyering  <meyering@redhat.com>
2794
2795         Recognize optional cast of the argument to free.
2796         * build-aux/useless-if-before-free: Update regexps.
2797
2798         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
2799
2800 2008-03-11  Bruno Haible  <bruno@clisp.org>
2801
2802         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
2803         by a single package.
2804         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
2805         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
2806         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
2807         Reported by Sam Steingold <sds@gnu.org>.
2808
2809 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
2810
2811         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
2812         repositories.
2813
2814 2008-03-11  Bruno Haible  <bruno@clisp.org>
2815
2816         Avoid conflicts between local macro definitions.
2817         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2818         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
2819
2820 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
2821             Bruno Haible  <bruno@clisp.org>
2822
2823         Make va_copy work with some version of xlc on AIX 5.1.
2824         * lib/stdarg.in.h: New file.
2825         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
2826         On AIX, use a <stdarg.h> file substitute.
2827         * modules/stdarg (Files): Add lib/stdarg.in.h.
2828         (Depends-on): Add include_next.
2829         (Makefile.am): Build a stdarg.h substitute if requested.
2830         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
2831
2832 2008-03-10  Bruno Haible  <bruno@clisp.org>
2833
2834         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
2835         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2836         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
2837
2838 2008-03-10  Bruno Haible  <bruno@clisp.org>
2839
2840         * modules/stdlib (Depends-on): Add include_next, remove
2841         absolute-header.
2842
2843 2008-03-09  Bruno Haible  <bruno@clisp.org>
2844
2845         * lib/freadahead.h (freadahead): Document more precisely.
2846         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
2847         the sum of both buffer sizes.
2848         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
2849         * NEWS: Document the change.
2850
2851 2008-03-09  Bruno Haible  <bruno@clisp.org>
2852
2853         Extend freadptr to return also the buffer size.
2854         * lib/freadptr.h (freadptr): Add sizep argument.
2855         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
2856         (freadptr): Add sizep argument. Determine buffer size like freadahead
2857         does.
2858         * tests/test-freadptr.c: Don't include freadahead.h.
2859         (main): Adapt for new calling convention of freadptr.
2860         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
2861         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
2862         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
2863         tests/test-freadptr2.sh.
2864         (Depends): Remove freadahead.
2865         (TESTS): Add test-freadptr2.sh.
2866         (check_PROGRAMS): Add test-freadptr2.
2867
2868 2008-03-09  Bruno Haible  <bruno@clisp.org>
2869
2870         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
2871         Report and solution by Simon Josefsson.
2872
2873 2008-03-06  Bruno Haible  <bruno@clisp.org>
2874
2875         Make fflush after ungetc work on BSD platforms.
2876         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
2877         * tests/test-fflush2.c: New file.
2878         * tests/test-fflush2.sh: New file.
2879         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
2880         tests/test-fflush2.c.
2881         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
2882         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
2883
2884 2008-03-06  Eric Blake  <ebb9@byu.net>
2885
2886         Likewise for ftello.
2887         * modules/ftello (Dependencies): Add extensions.
2888         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
2889
2890 2008-03-06  Bruno Haible  <bruno@clisp.org>
2891
2892         * modules/fseeko (Dependencies): Add extensions.
2893         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
2894         Needed on glibc systems.
2895
2896 2008-03-06  Bruno Haible  <bruno@clisp.org>
2897
2898         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
2899         email address.
2900         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2901
2902 2008-03-06  Bruno Haible  <bruno@clisp.org>
2903
2904         * users.txt: Add libgnupdf.
2905
2906 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2907
2908         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
2909         (Header File Substitutes, Function Substitutes,
2910         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
2911         (Build robot for gnulib): Fix typo.
2912
2913 2008-03-06  Bruno Haible  <bruno@clisp.org>
2914
2915         * doc/gnulib-tool.texi (VCS Issues): Small updates.
2916         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2917
2918 2008-03-06  Bruno Haible  <bruno@clisp.org>
2919
2920         * doc/func.texi: New file, extracted from doc/gnulib.texi.
2921         * doc/gnulib.texi: Include it.
2922
2923 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2924
2925         * modules/func (License): Change license to unlimited; there was
2926         no LGPL parts in the module anyway.
2927
2928 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2929
2930         * modules/__func__: Renamed to modules/func.
2931         * modules/__func__-tests: Renamed to modules/func-tests.
2932         * tests/test-__func__.c: Renamed to tests/test-func.c.
2933         * m4/__func__.m4: Renamed to m4/func.m4.
2934         * doc/gnulib.texi (__func__): Section renamed to func.
2935         Suggested by Eric Blake <ebb9@byu.net>.
2936
2937 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2938
2939         * doc/gnulib.texi (__func__): Use C99 terminology when talking
2940         about __func__.  Make example self-contained.  Suggested by Eric
2941         Blake <ebb9@byu.net>.
2942
2943         * tests/test-__func__.c (main): Avoid extraneous () around __func.
2944         Suggested by Eric Blake <ebb9@byu.net>.
2945
2946 2008-03-06  Simon Josefsson  <simon@josefsson.org>
2947
2948         * modules/__func__: New file.
2949         * modules/__func__-tests: New file.
2950         * tests/test-__func__.c: New file.
2951         * m4/__func__.m4: New file.
2952         * doc/gnulib.texi (__func__): Document __func__ module.
2953
2954 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2955
2956         * modules/byteswap (License): Re-license as LGPLv2+.
2957
2958 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2959
2960         * doc/Makefile: Add pdf target.
2961
2962 2008-03-05  Simon Josefsson  <simon@josefsson.org>
2963
2964         * modules/inline (License): Use 'unlimited', since there are only
2965         *.m4 files in this module.
2966
2967 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
2968             Bruno Haible  <bruno@clisp.org>
2969
2970         Add support for HP C 7.1 on OpenVMS 8.3.
2971         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
2972
2973 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
2974
2975         Update VMS specifics.
2976         * lib/getopt.c [VMS]: Remove include of unixlib.h.
2977
2978 2008-03-02  Jim Meyering  <meyering@redhat.com>
2979
2980         Remove the last dependency on the "free" module.
2981         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
2982         Reported by Bob Proulx.
2983
2984         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
2985
2986         Remove useless "if" tests before free.  Deprecate "free" module.
2987         * doc/posix-functions/free.texi: Mention that this
2988         module is no longer useful.
2989         * modules/free (Notice): Say this module is obsolete.
2990         * modules/readutmp (Depends-on): Remove free.
2991         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
2992         * lib/putenv.c (putenv): Likewise.
2993         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
2994         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
2995         * tests/test-c-strcasestr.c (main): Likewise.
2996         * tests/test-c-strstr.c (main): Likewise.
2997         * tests/test-mbscasestr1.c (main): Likewise.
2998         * tests/test-mbscasestr2.c (main): Likewise.
2999         * tests/test-mbsstr1.c (main): Likewise.
3000         * tests/test-mbsstr2.c (main): Likewise.
3001         * tests/test-memmem.c (main): Likewise.
3002         * tests/test-strcasestr.c (main): Likewise.
3003         * tests/test-striconv.c (main): Likewise.
3004         * tests/test-striconveh.c (main): Likewise.
3005         * tests/test-striconveha.c (main): Likewise.
3006         * tests/test-strstr.c (main): Likewise.
3007
3008         * build-aux/git-version-gen: Adjust a comment and the Usage string.
3009
3010         bootstrap: sync from coreutils again
3011         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
3012
3013 2008-03-01  Jim Meyering  <meyering@redhat.com>
3014
3015         bootstrap: sync from coreutils
3016         * build-aux/bootstrap (update_po_files): Copy a .po file into place
3017         also when the target doesn't exist.
3018
3019 2008-03-01  Eric Blake  <ebb9@byu.net>
3020
3021         Fix bugs in last patch.
3022         * lib/memchr2.c (memchr2): Fix typo.
3023         * tests/test-memchr2.c: Test previous bug, and don't use GNU
3024         extension.
3025         Reported by Bruce Korb.
3026
3027         New module 'memchr2'.
3028         * modules/memchr2: New file.
3029         * modules/memchr2-tests: Likewise.
3030         * lib/memchr2.h: Likewise.
3031         * lib/memchr2.c: Likewise, based on memchr.c.
3032         * tests/test-memchr2.c: New test.
3033         * MODULES.html.sh (String handling): Add memchr2.
3034
3035 2008-02-29  Bruno Haible  <bruno@clisp.org>
3036
3037         * modules/freadseek-tests: New file.
3038         * tests/test-freadseek.sh: New file.
3039         * tests/test-freadseek.c: New file.
3040
3041         New module 'freadseek'.
3042         * modules/freadseek: New file.
3043         * lib/freadseek.h: New file.
3044         * lib/freadseek.c: New file.
3045         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
3046
3047 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
3048
3049         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
3050         wydawca.
3051
3052         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
3053         program_invocation_name and program_invocation_short_name are
3054         present.
3055
3056 2008-02-28  Bruno Haible  <bruno@clisp.org>
3057
3058         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
3059         * tests/test-freadptr.sh: Also test non-seekable stdin.
3060
3061 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
3062
3063         * build-aux/bootstrap (source_base, m4_base)
3064         (doc_base, tests_base): New variables.
3065         (gnulib_tool_options): Do not hardcode base directories, use
3066         the above variables instead.
3067
3068 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
3069
3070         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
3071
3072 2008-02-28  Bruno Haible  <bruno@clisp.org>
3073
3074         * modules/freadptr-tests: New file.
3075         * tests/test-freadptr.sh: New file.
3076         * tests/test-freadptr.c: New file.
3077
3078         New module 'freadptr'.
3079         * modules/freadptr: New file.
3080         * lib/freadptr.h: New file.
3081         * lib/freadptr.c: New file.
3082         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
3083
3084 2008-02-26  Karl Berry  <karl@freefriends.org>
3085
3086         Sync from Libtool:
3087         * libltdl/argz.c (argz_add, argz_count): New functions.
3088         * libltdl/argz.in.h: Declare them.
3089         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
3090
3091 2008-02-22  Bruno Haible  <bruno@clisp.org>
3092
3093         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
3094         is a pointer type.  Needed for HP-UX 10.
3095         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
3096         * doc/posix-functions/gmtime_r.texi: Likewise.
3097         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
3098
3099 2008-02-24  Bruno Haible  <bruno@clisp.org>
3100
3101         * modules/environ-tests: New file.
3102         * tests/test-environ.c: New file.
3103
3104         New module 'environ'.
3105         * modules/environ: New file.
3106         * lib/unistd.in.h (environ): New declaration.
3107         * m4/environ.m4: New file.
3108         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
3109         after use.
3110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
3111         HAVE_DECL_ENVIRON.
3112         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
3113         HAVE_DECL_ENVIRON.
3114         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
3115         wrong claim that 'environ' is missing on some systems.
3116         * modules/execute (Depends-on): Add environ.
3117         * lib/execute.c (environ): Remove fallback declaration.
3118         * modules/pipe (Depends-on): Add environ.
3119         * lib/pipe.c (environ): Remove fallback declaration.
3120         * modules/setenv (Depends-on): Add environ.
3121         * lib/setenv.c (environ): Remove fallback declaration.
3122         * modules/unsetenv (Depends-on): Add environ.
3123         * lib/unsetenv.c (environ): Remove fallback declaration.
3124         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
3125         m4/environ.m4.
3126         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
3127         (gl_PREREQ_UNSETENV): Likewise.
3128
3129 2008-02-24  Bruno Haible  <bruno@clisp.org>
3130
3131         * doc/posix-functions/environ.texi: Document the MacOS X problem.
3132
3133 2008-02-20  Bob Proulx  <bob@proulx.com>
3134
3135         Enable use of older two part flavor 'git describe'.
3136         * build-aux/git-version-gen: If using the older two part flavor of
3137         git version then recreate the third part now present in the
3138         newer three part flavor of git describe.
3139
3140 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
3141
3142         * lib/fts.c (fts_build): Typo correction to comment.
3143
3144 2008-02-17  Bruno Haible  <bruno@clisp.org>
3145
3146         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
3147         generating no-op conflicts.
3148
3149 2008-02-17  Bruno Haible  <bruno@clisp.org>
3150
3151         Speed up by 10%.
3152         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
3153         result_entries, rather than an index-based loop.
3154
3155 2008-02-17  Bruno Haible  <bruno@clisp.org>
3156
3157         Speed up by 25%.
3158         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
3159         'hashcode_cached'.
3160         (entry_create): New function.
3161         (entry_hashcode): Use the cached hashcode if possible.
3162         (read_changelog_file, try_split_merged_entry): Use entry_create.
3163
3164 2008-02-17  Bruno Haible  <bruno@clisp.org>
3165
3166         Speed up from O(n^2) to O(n) for long ChangeLog files.
3167         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
3168         (read_changelog_file): Change implementation of entries_reversed list
3169         to rbtreehash.
3170         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
3171
3172 2008-02-17  Bruno Haible  <bruno@clisp.org>
3173
3174         New option --split-merged-entry.
3175         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
3176         (find_paragraph_end, try_split_merged_entry): New functions.
3177         (long_options): Add option --split-merged-entry.
3178         (usage): Document option --split-merged-entry.
3179         (main): Implement option --split-merged-entry.
3180         Reported by Eric Blake.
3181
3182 2008-02-17  Bruno Haible  <bruno@clisp.org>
3183
3184         * lib/git-merge-changelog.c: Include c-strstr.h.
3185         (main): Support the "git pull --rebase" situation.
3186         * modules/git-merge-changelog (Depends-on): Add c-strstr.
3187         Reported by Eric Blake.
3188
3189 2008-02-16  Eric Blake  <ebb9@byu.net>
3190
3191         Avoid doubling \ in common case of "c-maybe" quoting style.
3192         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
3193         eliding outer quotes.
3194         * lib/quotearg.h: Document this.
3195         * tests/test-quotearg.c (result_strings, inputs, results_g)
3196         (flag_results, locale_results): Test it by adding a new string to
3197         each test group.
3198         (compare_strings): Test new string.
3199
3200 2008-02-13  Eric Blake  <ebb9@byu.net>
3201
3202         Avoid trigraph quoting in default output.
3203         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
3204         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
3205         unless explicitly requested.
3206         * tests/test-quotearg.c (flag_results, main): Add additional tests.
3207
3208 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
3209
3210         Don't rely on signed integer overflowing to negative value.
3211         * lib/getugroups.c (getugroups): Include <limits.h>.
3212         Instead, compare against INT_MAX, and increment only if the test passes.
3213
3214 2008-02-13  Jim Meyering  <meyering@redhat.com>
3215         and Eric Blake  <ebb9@byu.net>
3216
3217         Avoid shadowing warning and compile errors on Linux.
3218         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
3219         forwarding macros on Linux.
3220         (dcgettext): Define a stub, for Linux.
3221         (results_g, main): Avoid warnings.
3222
3223 2008-02-12  Eric Blake  <ebb9@byu.net>
3224
3225         Silence warning in last patch.
3226         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
3227
3228         Quotearg part 4: add tests, fix c-maybe colon quoting.
3229         * lib/quotearg.h: Improve documentation.
3230         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
3231         escapes when adding outer quotes.  When quoting trigraphs, use
3232         valid C notation.  When quoting NUL, omit extra characters if next
3233         character is not digit.  Alter prototype.
3234         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
3235         callers.
3236         * modules/quotearg-tests: New module.
3237         * tests/test-quotearg.c: New test.
3238
3239 2008-02-07  Eric Blake  <ebb9@byu.net>
3240
3241         Quotearg part 3: add flag to control outer quote elision.
3242         * lib/quotearg.h (c_maybe_quoting_style): New style.
3243         (enum quoting_flags): Better documentation of flags.
3244         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
3245         c-maybe style.
3246         (quotearg_buffer_restyled): Handle new flag to elide outer
3247         quotes.
3248
3249         Quotearg part 2: add flag that can control NUL elision.
3250         * lib/quotearg.h (set_quoting_flags): New prototype.
3251         * lib/quotearg.c (struct quoting_options): Add flag field.
3252         (set_quoting_flags): New function.
3253         (quotearg_buffer_restyled): Add flags parameter.
3254         (quotearg_alloc_mem): Set the flag if length cannot be returned.
3255         (quotearg_n_options): Set the flag, since length cannot be
3256         returned.
3257         (quoting_options_from_style): Default flags correctly.
3258
3259         Quotearg part 1: more wrappers, restore quotearg_char state.
3260         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
3261         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
3262         (quotearg_colon_mem): New wrappers.
3263         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
3264         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
3265         functions.
3266         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
3267         (quotearg_colon_mem): New functions.
3268
3269 2008-02-11  Bruno Haible  <bruno@clisp.org>
3270
3271         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
3272         library in the current directory: it does not work with parallel make.
3273         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3274
3275 2008-02-11  Bruno Haible  <bruno@clisp.org>
3276
3277         * .gitattributes: New file.
3278
3279 2008-02-11  Jim Meyering  <meyering@redhat.com>
3280
3281         useless-if-before-free: Fix reversed exit values.
3282         * build-aux/useless-if-before-free: Use correct values
3283         for EXIT_MATCH and EXIT_NO_MATCH.
3284
3285         * build-aux/useless-if-before-free: Close stdout carefully.
3286
3287 2008-02-10  Bruno Haible  <bruno@clisp.org>
3288
3289         New module 'git-merge-changelog'.
3290         * modules/git-merge-changelog: New file.
3291         * lib/git-merge-changelog.c: New file.
3292
3293 2008-02-10  Jim Meyering  <meyering@redhat.com>
3294
3295         useless-if-before-free: New option: --list (-l).
3296
3297         useless-if-before-free: Don't exit immediately upon open failure.
3298         * build-aux/useless-if-before-free: Exit 2 for errors.
3299         Upon failure to open a file, don't exit immediately.
3300         Rather, just warn and continue with any remaining files.
3301
3302 2008-02-10  Bruno Haible  <bruno@clisp.org>
3303
3304         New abstract list operation 'node_set_value'.
3305         * lib/gl_list.h (gl_list_node_set_value): New function.
3306         (struct gl_list_implementation): New field node_set_value.
3307         * lib/gl_list.c (gl_list_node_set_value): New function.
3308         * lib/gl_array_list.c (gl_array_node_set_value): New function.
3309         (gl_array_list_implementation): Update.
3310         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
3311         (gl_carray_list_implementation): Update.
3312         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
3313         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3314         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3315         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
3316         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3317         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3318         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3319         Update.
3320         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
3321         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
3322         (gl_sublist_list_implementation): Update.
3323
3324 2008-02-10  Bruno Haible  <bruno@clisp.org>
3325
3326         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
3327         Needed when ELEMENT is #defined to 'some_type *'.
3328
3329 2008-02-10  Jim Meyering  <meyering@redhat.com>
3330
3331         New script and module: useless-if-before-free
3332         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
3333         * build-aux/useless-if-before-free: New file.
3334         * modules/useless-if-before-free: New file.
3335
3336         * build-aux/gitlog-to-changelog: Use committer date, not author date.
3337
3338         xstrtol_error: Fix typo.
3339         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
3340         s/exit_failure/exit_status/.
3341
3342 2008-02-09  Jim Meyering  <meyering@redhat.com>
3343
3344         New script and module: gitlog-to-changelog
3345         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
3346         * modules/gitlog-to-changelog: New file.
3347         * build-aux/gitlog-to-changelog: New file.
3348
3349 2008-02-08  Jim Meyering  <meyering@redhat.com>
3350
3351         Avoid two "parameter unused" warnings.
3352         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
3353         Mark "st" as used.
3354
3355         Use "git COMMAND", not "git-COMMAND".
3356         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
3357         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
3358         * build-aux/git-version-gen: Use "git status", not "git-status".
3359
3360 2008-02-07  Bruno Haible  <bruno@clisp.org>
3361
3362         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
3363         Avoids a crash on Windows Vista.
3364         Reported by Adam Strzelecki <ono@java.pl> via
3365         Simon Josefsson <simon@josefsson.org>.
3366
3367 2008-02-06  Bruno Haible  <bruno@clisp.org>
3368
3369         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
3370         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
3371         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
3372         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
3373         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3374         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3375         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
3376         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
3377         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3378         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3379         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3380         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3381         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3382         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3383         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3384         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
3385         left-adjust flag.
3386         * tests/test-snprintf-posix.h (test_function): Likewise.
3387         * tests/test-sprintf-posix.h (test_function): Likewise.
3388         * tests/test-vasprintf-posix.c (test_function): Likewise.
3389         * doc/posix-functions/fprintf.texi: Update.
3390         * doc/posix-functions/printf.texi: Update.
3391         * doc/posix-functions/snprintf.texi: Update.
3392         * doc/posix-functions/sprintf.texi: Update.
3393         * doc/posix-functions/vfprintf.texi: Update.
3394         * doc/posix-functions/vprintf.texi: Update.
3395         * doc/posix-functions/vsnprintf.texi: Update.
3396         * doc/posix-functions/vsprintf.texi: Update.
3397         Reported by Peter Fales <psfales@alcatel-lucent.com>.
3398
3399 2008-02-06  Bruno Haible  <bruno@clisp.org>
3400
3401         Fix bug introduced on 2008-01-26.
3402         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
3403
3404 2008-02-06  Bruno Haible  <bruno@clisp.org>
3405
3406         Fix bug introduced on 2007-06-10.
3407         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
3408         !NEED_PRINTF_FLAG_ZERO.
3409
3410 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
3411
3412         getloadavg: use libperfstat on AIX5
3413         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
3414
3415 2008-02-03  Bruno Haible  <bruno@clisp.org>
3416
3417         * lib/diffseq.h: Add comments about required #includes.
3418         Reported by Michael Biggs <gnulib@doubleplum.net>.
3419
3420 2008-02-01  Bruno Haible  <bruno@clisp.org>
3421
3422         * users.txt: Add gnuit.
3423
3424 2008-01-31  Bruno Haible  <bruno@clisp.org>
3425
3426         * lib/md4.c (set_uint32): Mark as inline.
3427         * lib/md5.c (set_uint32): Likewise.
3428         * lib/sha1.c (set_uint32): Likewise.
3429         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
3430         * m4/md5.m4 (gl_MD5): Likewise.
3431         * m4/sha1.m4 (gl_SHA1): Likewise.
3432
3433 2008-01-31  Jim Meyering  <meyering@redhat.com>
3434
3435         Use "sizeof VAR", rather than a literal "4".
3436         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
3437         * lib/md4.c (md4_read_ctx): Likewise.
3438         * lib/sha1.c (sha1_read_ctx): Likewise.
3439
3440 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3441
3442         * tests/test-sha1.c: New file, based on test-md5.c.
3443
3444         * modules/crypto/sha1-tests: New file.
3445
3446 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3447
3448         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
3449
3450 2008-01-31  Jim Meyering  <meyering@redhat.com>
3451
3452         Prefer "sizeof v" over the equivalent "4".
3453         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
3454         * lib/md5.c (set_uint32): Likewise.
3455         * lib/sha1.c (set_uint32): Likewise.
3456
3457 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3458
3459         * lib/sha1.c (set_uint32): Mark function as static.
3460
3461 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3462
3463         md2: clarify comments to say that alignment is not required.
3464         * lib/md2.h: Remove warning about alignment in comment.
3465         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
3466         never been required.
3467
3468 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3469
3470         md4: adapt alignment constraint fix from sha1.
3471         * lib/md4.c (set_uint32): New function, from sha1.c
3472         (md4_read_ctx): Use it.
3473         (md4_finish_ctx): Doc fix.
3474         * lib/md4.h: Doc fix.
3475
3476 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3477
3478         md5: adapt alignment constraint fix from sha1.
3479         * lib/md5.c (set_uint32): New function, from sha1.c
3480         (md5_read_ctx): Use it.
3481         (md5_finish_ctx): Doc fix.
3482         * lib/md5.h: Doc fix.
3483
3484 2008-01-30  Peter Palfrader  <weasel@debian.org>
3485
3486         sha1: remove the result buffer alignment constraint
3487         * lib/sha1.c (set_uint32): New function.
3488         (sha1_read_ctx): Rewrite to remove the result buffer alignment
3489         constraint.
3490         (sha1_finish_ctx): Remove comment warning about alignment constraint.
3491         * lib/sha1.h: Likewise.
3492
3493 2008-01-30  Andreas Schwab  <schwab@suse.de>
3494             Bruno Haible  <bruno@clisp.org>
3495
3496         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
3497         correct definition of LDBL_MIN_EXP.
3498
3499 2008-01-30  Karl Berry  <karl@gnu.org>
3500
3501         * config/srclist-update: try to preserve x bit on updates.
3502         * config/srclistvars.sh: update for karl.
3503
3504 2008-01-29  Jim Meyering  <meyering@redhat.com>
3505
3506         vasnprintf.c: Avoid warning about unused label
3507         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
3508         "overflow" label definition and associated code with the
3509         same cpp condition that guards the sole use of that label.
3510
3511 2008-01-26  Bruno Haible  <bruno@clisp.org>
3512
3513         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3514         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
3515         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
3516         * lib/isnanl-nolibm.h (isnanl): Likewise.
3517         Reported by Paul Eggert <eggert@cs.ucla.edu>.
3518
3519 2008-01-26  Bruno Haible  <bruno@clisp.org>
3520
3521         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
3522         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
3523
3524 2008-01-26  Bruno Haible  <bruno@clisp.org>
3525
3526         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
3527         GCC >= 4.0 built-in.
3528         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
3529
3530 2008-01-26  Bruno Haible  <bruno@clisp.org>
3531
3532         Rename isnan, applicable to 'double' only, to isnand.
3533         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
3534         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
3535         (configure.ac): Update.
3536         (Include): Replace "isnan.h" with "isnand.h".
3537         * m4/isnand.m4: Renamed from m4/isnan.m4.
3538         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
3539         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
3540         instead of isnan.c.
3541         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
3542         instead of HAVE_ISNAN_IN_LIBC.
3543         (isnand): Renamed from isnan.
3544         * lib/isnand.c: New file.
3545         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
3546         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
3547         (Makefile.am): Update.
3548         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
3549         Include isnand.h instead of isnan.h.
3550         (main): Test isnand instead of isnan.
3551         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
3552         isnan-nolibm.
3553         * modules/frexp (Depends-on): Likewise.
3554         * modules/frexp-tests (Depends-on): Likewise.
3555         * modules/frexp-nolibm (Depends-on): Likewise.
3556         * modules/frexp-nolibm-tests (Depends-on): Likewise.
3557         * modules/isfinite (Depends-on): Likewise.
3558         * modules/round-tests (Depends-on): Likewise.
3559         * modules/signbit (Depends-on): Likewise.
3560         * modules/signbit-tests (Depends-on): Likewise.
3561         * modules/snprintf-posix (Depends-on): Likewise.
3562         * modules/sprintf-posix (Depends-on): Likewise.
3563         * modules/trunc-tests (Depends-on): Likewise.
3564         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3565         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3566         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3567         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3568         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3569         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3570         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3571         * modules/vasnprintf-posix (Depends-on): Likewise.
3572         * modules/vasprintf-posix (Depends-on): Likewise.
3573         * modules/vfprintf-posix (Depends-on): Likewise.
3574         * modules/vsnprintf-posix (Depends-on): Likewise.
3575         * modules/vsprintf-posix (Depends-on): Likewise.
3576         * lib/frexp.c: Include isnand.h instead of isnan.h.
3577         (ISNAN): Set to isnand instead of isnan.
3578         * lib/isfinite.c: Include isnand.h instead of isnan.h.
3579         (gl_isfinited): Use isnand instead of isnan.
3580         * lib/signbitd.c: Include isnand.h instead of isnan.h.
3581         (gl_signbitd): Use isnand instead of isnan.
3582         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
3583         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
3584         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
3585         (main): Use isnand instead of isnan.
3586         * tests/test-round1.c: Include isnand.h.
3587         (main): Use isnand instead of isnan.
3588         * tests/test-round2.c: Include isnand.h instead of isnan.h.
3589         (ISNAN): Set to isnand instead of isnan.
3590         * tests/test-trunc1.c: Include isnand.h.
3591         (main): Use isnand instead of isnan.
3592         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
3593         (equal): Use isnand instead of isnan.
3594         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
3595         isnand-nolibm.
3596         * NEWS: Mention the change.
3597
3598 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3599             Bruno Haible  <bruno@clisp.org>
3600
3601         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
3602         the GCC builtins for signbits are present and set
3603         REPLACE_SIGNBIT_USING_GCC if so.
3604         * lib/math.in.h (signbit): Define using GCC builtins if
3605         REPLACE_SIGNBIT_USING_GCC is set.
3606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3607         REPLACE_SIGNBIT_USING_GCC.
3608         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
3609
3610 2008-01-25  Jim Meyering  <meyering@redhat.com>
3611
3612         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
3613         * lib/poll.c: Include <config.h>, not "config.h".
3614         * tests/test-getaddrinfo.c: Likewise.
3615
3616 2008-01-25  Simon Josefsson  <simon@josefsson.org>
3617
3618         * modules/sockets-tests: New file.
3619
3620 2008-01-24  Simon Josefsson  <simon@josefsson.org>
3621
3622         * modules/sockets: New module, can be used to call WSA_Startup and
3623         WSA_Cleanup when needed.
3624
3625         * lib/sockets.h, lib/sockets.c: New files.
3626
3627         * m4/sockets.m4: New file.
3628
3629         * tests/test-sockets.c: New file.
3630
3631 2008-01-19  Bruno Haible  <bruno@clisp.org>
3632
3633         * doc/posix-headers: Renamed from doc/headers.
3634         * doc/posix-functions: Renamed from doc/functions.
3635         * doc/gnulib.texi: Update.
3636
3637 2008-01-19  Bruno Haible  <bruno@clisp.org>
3638
3639         * doc/glibc-functions/strcasestr.texi: Include contents of
3640         doc/functions/strcasestr.texi, fixing the list of platforms.
3641         * doc/functions/strcasestr.texi: Remove file.
3642
3643 2008-01-19  Bruno Haible  <bruno@clisp.org>
3644
3645         * doc/glibc-functions/memmem.texi: Include contents of
3646         doc/functions/memmem.texi.
3647         * doc/functions/memmem.texi: Remove file.
3648
3649 2008-01-18  Bruno Haible  <bruno@clisp.org>
3650
3651         * doc/glibc-functions/*.texi: New files.
3652         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
3653         to use the new files.
3654
3655 2008-01-17  Bruno Haible  <bruno@clisp.org>
3656
3657         * tests/test-gethostname.c (main): Fix printf statement.
3658
3659 2008-01-17  Simon Josefsson  <simon@josefsson.org>
3660
3661         * modules/gethostname-tests: New file.
3662
3663         * tests/test-gethostname.c: New file.
3664
3665 2008-01-17  Simon Josefsson  <simon@josefsson.org>
3666
3667         * lib/gethostname.c: Include string.h unconditionally, strncpy is
3668         used by the UNAME case.  Reported by Bruno Haible
3669         <bruno@clisp.org>.
3670
3671 2008-01-17  Eric Blake  <ebb9@byu.net>
3672
3673         Convert c-strcasestr to be more efficient.
3674         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
3675         (Depends-on): Add c-strcase, remove malloca, strnlen.
3676         * tests/test-c-strcasestr.c (main): Enhance test.
3677         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
3678
3679 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
3680
3681         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
3682         Use it in creating po/Makevars.
3683
3684 2008-01-15  Simon Josefsson  <simon@josefsson.org>
3685
3686         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
3687         Applications that requires it should initialize libgcrypt
3688         manually.
3689
3690 2008-01-16  Simon Josefsson  <simon@josefsson.org>
3691
3692         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
3693
3694 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
3695
3696         Fix problem with getdate on mingw32 reported by Simon Josefsson
3697         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
3698         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
3699         tzname", when deciding whether to declare tzname.
3700         * lib/strftime.c (tzname): Likewise.
3701
3702 2008-01-15  Bruno Haible  <bruno@clisp.org>
3703
3704         Work around a MacOS X 10.5 bug in frexpl().
3705         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
3706         * doc/functions/frexpl.texi: Document the bug.
3707         Reported by Elias Pipping <pipping@gentoo.org>.
3708
3709 2008-01-14  Eric Blake  <ebb9@byu.net>
3710
3711         Touch up previous patch.
3712         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
3713         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
3714
3715         Convert strcasestr module to use Two-Way algorithm.
3716         * modules/strcasestr-simple: New module, based on the old
3717         strcasestr, but with Two-Way rather than KMP.
3718         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
3719         * lib/string.in.h (rpl_strcasestr): Declare.
3720         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
3721         performance.
3722         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
3723         * modules/string (Makefile.am): Support strcasestr.
3724         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
3725         * modules/strcasestr-tests (Depends-on): Check for alarm.
3726         * tests/test-strcasestr.c: Augment test.
3727         * lib/str-two-way.h: Clean up stray macro.
3728         * NEWS: Document new module.
3729         * MODULES.html.sh (string handling): Likewise.
3730         * doc/functions/strcasestr.texi: New file.
3731         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
3732         here, since it is not a POSIX function.
3733
3734 2008-01-14  Colin Watson  <cjwatson@debian.org>
3735             Bruno Haible  <bruno@clisp.org>
3736
3737         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
3738         works fine; if not, set REPLACE_STRSIGNAL.
3739         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
3740         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3741         REPLACE_STRSIGNAL.
3742         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
3743         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
3744         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
3745
3746 2008-01-14  Bruno Haible  <bruno@clisp.org>
3747
3748         * modules/strsignal (Include): Change to <string.h>.
3749
3750 2008-01-14  Colin Watson  <cjwatson@debian.org>
3751
3752         * modules/argp (Notice): Add a notice recommending to change
3753         XGETTEXT_OPTIONS.
3754         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
3755
3756 2008-01-13  Colin Watson  <cjwatson@debian.org>
3757
3758         * modules/strsignal-tests: New file.
3759         * tests/test-strsignal.c: New file.
3760
3761         * lib/strsignal.c: New file, from glibc with modifications.
3762         * lib/siglist.h: New file, from glibc with modifications.
3763         * lib/string.in.h (strsignal): New declaration.
3764         * m4/strsignal.m4: New file.
3765         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3766         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
3767         * modules/strsignal: New file.
3768         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
3769         HAVE_DECL_STRSIGNAL.
3770
3771 2008-01-13  Bruno Haible  <bruno@clisp.org>
3772
3773         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
3774         locale encoding is not ASCII. Needed for OpenBSD 4.0.
3775         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3776         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3777
3778 2008-01-13  Bruno Haible  <bruno@clisp.org>
3779
3780         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
3781         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
3782         * lib/argp.h (__attribute__): Likewise.
3783         * lib/c-stack.c (__attribute__): Likewise.
3784         * lib/error.h (__attribute__): Likewise.
3785         * lib/fts.c (__attribute__): Likewise.
3786         * lib/openat.h (__attribute__): Likewise.
3787         * lib/stdio.in.h (__attribute__): Likewise.
3788         * lib/string.in.h (__attribute__): Likewise.
3789         * lib/utimens.c (__attribute__): Likewise.
3790         * lib/vasnprintf.h (__attribute__): Likewise.
3791         * lib/xalloc.h (__attribute__): Likewise.
3792         * lib/xprintf.h (__attribute__): Likewise.
3793         * lib/xstrtol.h (__attribute__): Likewise.
3794         * lib/xvasprintf.h (__attribute__): Likewise.
3795
3796 2008-01-12  Bruno Haible  <bruno@clisp.org>
3797
3798         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
3799         * doc/glibc-headers/a.out.texi: New file.
3800         * doc/glibc-headers/aliases.texi: New file.
3801         * doc/glibc-headers/alloca.texi: New file.
3802         * doc/glibc-headers/ar.texi: New file.
3803         * doc/glibc-headers/argp.texi: New file.
3804         * doc/glibc-headers/argz.texi: New file.
3805         * doc/glibc-headers/byteswap.texi: New file.
3806         * doc/glibc-headers/crypt.texi: New file.
3807         * doc/glibc-headers/endian.texi: New file.
3808         * doc/glibc-headers/envz.texi: New file.
3809         * doc/glibc-headers/err.texi: New file.
3810         * doc/glibc-headers/error.texi: New file.
3811         * doc/glibc-headers/execinfo.texi: New file.
3812         * doc/glibc-headers/fpu_control.texi: New file.
3813         * doc/glibc-headers/fstab.texi: New file.
3814         * doc/glibc-headers/fts.texi: New file.
3815         * doc/glibc-headers/getopt.texi: New file.
3816         * doc/glibc-headers/ieee754.texi: New file.
3817         * doc/glibc-headers/ifaddrs.texi: New file.
3818         * doc/glibc-headers/libintl.texi: New file.
3819         * doc/glibc-headers/mcheck.texi: New file.
3820         * doc/glibc-headers/mntent.texi: New file.
3821         * doc/glibc-headers/obstack.texi: New file.
3822         * doc/glibc-headers/paths.texi: New file.
3823         * doc/glibc-headers/printf.texi: New file.
3824         * doc/glibc-headers/pty.texi: New file.
3825         * doc/glibc-headers/resolv.texi: New file.
3826         * doc/glibc-headers/shadow.texi: New file.
3827         * doc/glibc-headers/sysexits.texi: New file.
3828         * doc/glibc-headers/ttyent.texi: New file.
3829
3830 2008-01-12  Jim Meyering  <meyering@redhat.com>
3831
3832         announce-gen: emit Gnulib's git-based version string.
3833         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
3834         New option --gnulib-version=V, where V is expected to be
3835         the output of running git describe in the gnulib directory.
3836         (get_tool_versions): Request feedback on xdelta.  I suspect it's
3837         not useful, and plan to stop publishing an xdelta file with each
3838         coreutils release.
3839
3840         * build-aux/announce-gen: Also check for lzma-compressed files.
3841
3842 2008-01-11  Bruno Haible  <bruno@clisp.org>
3843
3844         * tests/test-memmem.c (main): Increase maximum allowed time.
3845         * tests/test-strstr.c (main): Likewise.
3846
3847 2008-01-11  Bruno Haible  <bruno@clisp.org>
3848
3849         * doc/functions/memmem.texi: Add more precisions about platforms.
3850         * doc/functions/strstr.texi: Likewise.
3851
3852 2008-01-10  Eric Blake  <ebb9@byu.net>
3853
3854         * m4/strstr.m4: Delete cruft from copy-n-paste.
3855         Reported by Bruno Haible.
3856
3857 2008-01-10  Bruno Haible  <bruno@clisp.org>
3858
3859         Make c-strstr rely on strstr.
3860         * lib/c-strstr.c: Don't include str-kmp.h.
3861         (c_strstr): Define in terms of strstr.
3862         * modules/c-strstr (Files): Remove lib/str-kmp.h.
3863         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
3864
3865 2008-01-10  Bruno Haible  <bruno@clisp.org>
3866
3867         * doc/gnulib.texi (String Functions in C Locale): New section.
3868         * doc/c-ctype.texi: New file.
3869         * doc/c-strcase.texi: New file.
3870         * doc/c-strcaseeq.texi: New file.
3871         * doc/c-strcasestr.texi: New file.
3872         * doc/c-strstr.texi: New file.
3873         * doc/c-strtod.texi: New file.
3874         * doc/c-strtold.texi: New file.
3875
3876 2008-01-10  Eric Blake  <ebb9@byu.net>
3877
3878         * lib/relocatable.h: Fix a comment.
3879
3880 2008-01-10  Eric Blake  <ebb9@byu.net>
3881
3882         Share two-way algorithm.
3883         * lib/str-two-way.h: New file, merged from...
3884         * lib/memmem.c: ...here...
3885         * lib/strstr.c: ...and here.
3886         * modules/memmem (Files): Use it.
3887         * modules/strstr (Files): Likewise.
3888
3889         Avoid quadratic strstr implementations.
3890         * lib/strstr.c: New file.
3891         * m4/strstr.m4: Likewise.
3892         * modules/strstr: Likewise.
3893         * modules/strstr-tests: Likewise.
3894         * tests/test-strstr.c: Likewise.
3895         * lib/string.in.h (rpl_strstr): Declare.
3896         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
3897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
3898         * modules/string (Makefile.am): Likewise.
3899         * MODULES.html.sh (string handling): Mention new module.
3900         * doc/functions/strstr.texi (strstr): Document the bug.
3901
3902 2008-01-10  Bruno Haible  <bruno@clisp.org>
3903
3904         * lib/relocatable.h (relocate): State whether result is freshly
3905         allocated or not.
3906         * lib/relocatable.c (relocate): Return a freshly allocated string
3907         instead of a pointer to a privately held string.
3908         Reported by Sylvain Beucler <beuc@gnu.org>.
3909
3910 2008-01-10  Colin Watson  <cjwatson@debian.org>
3911
3912         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
3913         s/S_ISNLK/S_ISLNK/.
3914
3915 2008-01-09  Bruno Haible  <bruno@clisp.org>
3916
3917         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
3918         and other files.
3919         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
3920         if it's only a guess.
3921         * modules/memmem: Simplify by depending on memmem-simple.
3922
3923 2008-01-09  Bruno Haible  <bruno@clisp.org>
3924
3925         Work around OpenBSD 4.0 tdelete() bug.
3926         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
3927         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
3928         macros and don't redefine the enum values.
3929         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
3930         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
3931         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
3932
3933 2008-01-09  Bruno Haible  <bruno@clisp.org>
3934
3935         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
3936         (main): Don't perform the tests if setlocale did not install a UTF-8
3937         locale. Needed on OpenBSD 4.0.
3938         * modules/wcwidth-tests (Depends-on): Add localcharset.
3939
3940 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
3941
3942         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
3943         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
3944         * NEWS: announce this.
3945         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
3946
3947 2008-01-09  Simon Josefsson  <simon@josefsson.org>
3948         and Eric Blake  <ebb9@byu.net>
3949
3950         Add memmem-simple module.
3951         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
3952         (gl_FUNC_MEMMEM): Separate performance from presence checks.
3953         * modules/memmem-simple: New file.
3954         * modules/memmem (Description): Tweak.
3955         * MODULES.html.sh (string handling): Mention new module.
3956         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
3957         addressed by memmem-simple.
3958         * NEWS: Document the difference.
3959
3960 2008-01-09  Eric Blake  <ebb9@byu.net>
3961
3962         Give gcc some memmem optimization hints.
3963         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
3964         (strcasestr): Declare as pure.
3965         * modules/memmem (Maintainer): Claim my implementation.
3966
3967 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3968
3969         Support AIX 6.1 and higher.
3970         * build-aux/config.libpath: Likewise.
3971         * build-aux/config.rpath: Likewise.
3972
3973 2008-01-08  Jim Meyering  <meyering@redhat.com>
3974             Bruno Haible  <bruno@clisp.org>
3975
3976         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
3977         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
3978         Reported by Peter Fales in
3979         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
3980
3981 2008-01-08  Bruno Haible  <bruno@clisp.org>
3982
3983         * modules/unictype/category-of (Depends-on): Add
3984         unictype/category-none.
3985         * modules/unictype/category-and-tests (Depends-on): Add
3986         unictype/category-{L,N,Lu,Nd}.
3987         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
3988         * modules/unictype/category-or-tests (Depends-on): Add
3989         unictype/category-{L,N}.
3990         * modules/unictype/category-name-tests (Depends-on): Add
3991         unictype/category-{Z,Nl}.
3992         Reported by Simon Josefsson.
3993
3994 2008-01-08  Bruno Haible  <bruno@clisp.org>
3995
3996         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
3997         convention better.
3998         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
3999         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
4000         Reported by Peter Miller <millerp@canb.auug.org.au>.
4001
4002 2008-01-08  Eric Blake  <ebb9@byu.net>
4003
4004         Rewrite memmem to guarantee linear complexity without malloc.
4005         * lib/memmem.c (memmem): Use Two-Way rather than
4006         Knuth-Morris-Pratt, to allow O(1) space usage.
4007         (critical_factorization, two_way_short_needle)
4008         (two_way_long_needle): New functions.
4009         (knuth_morris_pratt): Delete.
4010         * modules/memmem (Depends-on): No longer need malloca or stdbool.
4011         Add stdint.
4012         * tests/test-memmem.c (main): Add tests for periodic needle and
4013         sublinear performance.
4014         * doc/functions/memmem.texi (memmem): Document other deficiencies
4015         in cygwin and older glibc.
4016
4017 2008-01-08  Bruno Haible  <bruno@clisp.org>
4018
4019         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
4020         augmentation.
4021
4022 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
4023
4024         Add a configure time option: --disable-acl.
4025         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
4026         AC_ARG_ENABLE(acl).
4027
4028 2008-01-06  Simon Josefsson  <simon@josefsson.org>
4029
4030         * tests/test-localename.c: Don't include obsolete "setenv.h".
4031
4032         * modules/localename-tests (Depends-on): Need unsetenv.
4033
4034 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4035
4036         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
4037
4038 2008-01-06  Colin Watson  <cjwatson@debian.org>
4039
4040         * users.txt: Add man-db.
4041
4042 2008-01-07  Bruno Haible  <bruno@clisp.org>
4043
4044         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
4045         previous section name.
4046
4047 2008-01-07  Bruno Haible  <bruno@clisp.org>
4048
4049         * lib/progname.c (set_program_name): Don't strip off a leading
4050         "lt-" prefix outside a .libs directory.
4051         Suggested by Paul Eggert.
4052
4053 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
4054             Bruno Haible  <bruno@clisp.org>
4055
4056         Improve memory cleanup in 'relocatable' module.
4057         * lib/relocatable.h (compute_curr_prefix): Change return type to
4058         'char *'.
4059         * lib/relocatable.c (compute_curr_prefix): Change return type to
4060         'char *'. Free curr_installdir after use.
4061         (relocate): Free curr_prefix_better after use.
4062         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
4063
4064 2008-01-01  Bruno Haible  <bruno@clisp.org>
4065
4066         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
4067         failure on older glibc systems.
4068         Reported by Peter Fales <psfales@alcatel-lucent.com>.
4069
4070 2008-01-05  Eric Blake  <ebb9@byu.net>
4071
4072         Avoid quadratic system memmem.
4073         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
4074         Reported by Ralf Wildenhues.
4075
4076         Fix memmem test for mingw.
4077         * modules/memmem-tests (configure.ac): Check for alarm.
4078         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
4079         it.
4080         * doc/functions/memmem.texi: New file.
4081         * doc/gnulib.texi (Function Substitutes): Add memmem.
4082         Reported by Bruno Haible.
4083
4084 2008-01-04  Bruno Haible  <bruno@clisp.org>
4085
4086         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
4087         Require gl_HEADER_STRINGS_H_DEFAULTS, not
4088         gl_HEADER_STRING_H_DEFAULTS.
4089
4090 2008-01-04  Eric Blake  <ebb9@byu.net>
4091
4092         Shorten duration of memmem test.
4093         * tests/test-memmem.c (main): Use alarm to declare failure if test
4094         is taking too long.
4095         Reported by Ralf Wildenhues.
4096
4097 2007-12-21  Simon Josefsson  <simon@josefsson.org>
4098
4099         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
4100         string, needed by strerror.
4101
4102 2008-01-03  Colin Watson  <cjwatson@debian.org>
4103             Bruno Haible  <bruno@clisp.org>
4104
4105         * doc/gnulib-tool.texi (Localization): New section.
4106
4107 2008-01-02  Bruno Haible  <bruno@clisp.org>
4108
4109         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
4110         variables to 'unsigned char *' type.
4111         Reported by Paul Eggert.
4112
4113 2008-01-02  Jim Meyering  <jim@meyering.net>
4114
4115         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
4116
4117 2007-12-31  Jim Meyering  <jim@meyering.net>
4118
4119         Avoid use of private FTS type name.
4120         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
4121
4122 2007-12-30  Karl Berry  <karl@gnu.org>
4123
4124         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
4125         work around defect in Texinfo and/or the standalone Info browser.
4126
4127 2007-12-30  Bruno Haible  <bruno@clisp.org>
4128
4129         Unify 5 copies of the KMP code.
4130         * lib/str-kmp.h: New file.
4131         * lib/c-strcasestr.c: Include str-kmp.h.
4132         (knuth_morris_pratt): Remove function.
4133         (c_strcasestr): Update.
4134         * lib/c-strstr.c: Include str-kmp.h.
4135         (knuth_morris_pratt): Remove function.
4136         (c_strcasestr): Update.
4137         * lib/mbscasestr.c: Include str-kmp.h.
4138         (knuth_morris_pratt_unibyte): Remove function.
4139         * lib/mbsstr.c: Include str-kmp.h.
4140         (knuth_morris_pratt_unibyte): Remove function.
4141         * lib/strcasestr.c: Include str-kmp.h.
4142         (knuth_morris_pratt): Remove function.
4143         (strcasestr): Update.
4144         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
4145         * modules/c-strstr (Files): Likewise.
4146         * modules/mbscasestr (Files): Likewise.
4147         * modules/mbsstr (Files): Likewise.
4148         * modules/strcasestr (Files): Likewise.
4149         Suggested by Paul Eggert.
4150
4151 2007-12-30  Bruno Haible  <bruno@clisp.org>
4152
4153         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
4154         defined.
4155
4156 2007-12-30  Bruno Haible  <bruno@clisp.org>
4157
4158         * lib/xmalloca.h: Include xalloc.h.
4159         (xnmalloca): New macro.
4160
4161 2007-12-30  Bruno Haible  <bruno@clisp.org>
4162
4163         * lib/malloca.h (nmalloca): New macro.
4164         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
4165         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
4166         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
4167         knuth_morris_pratt_multibyte): Likewise.
4168         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
4169         knuth_morris_pratt_multibyte): Likewise.
4170         * lib/memmem.c (knuth_morris_pratt): Likewise.
4171         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
4172
4173 2007-12-25  Bruno Haible  <bruno@clisp.org>
4174
4175         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
4176         * lib/glob.c: Don't include openat.h.
4177         (link_exists2_p): Add back the code that deals with the
4178         !GLOB_ALTDIRFUNC case.
4179         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
4180         let it do the filename concatenation.
4181         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
4182         * modules/glob (Depends-on): Remove openat.
4183
4184 2007-12-31  Bruno Haible  <bruno@clisp.org>
4185
4186         * modules/dirfd (License): Change to LGPLv2+.
4187         Approved by Jim Meyering.
4188
4189 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4190
4191         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
4192         when multiplying M by sizeof (size_t).
4193
4194 2007-12-10  Martin Lambers  <marlam@marlam.de>
4195
4196         Override getpagesize on mingw.
4197         * lib/getpagesize.c: New file.
4198         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
4199         * modules/getpagesize (Files): Add lib/getpagesize.c.
4200         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
4201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4202         REPLACE_GETPAGESIZE.
4203         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
4204
4205 2007-12-25  Bruno Haible  <bruno@clisp.org>
4206
4207         * modules/localcharset (Notice): New field.
4208         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
4209         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4210
4211 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4212             Bruno Haible  <bruno@clisp.org>
4213
4214         Avoid using the syntax symbol() in formatted documentation.
4215         * MODULES.html.sh (func_module): When replacing symbol() with a
4216         hyperlink, remove the parentheses. Show an error if some remain.
4217         Recognize and render the '...' syntax.
4218         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
4219         Rework. Add paragraph about GCC's inlining.
4220         * doc/alloca.texi: Likewise.
4221         * doc/error.texi: Remove parentheses from symbol reference.
4222         * doc/gnulib-intro.texi: Likewise.
4223         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
4224         * modules/fnmatch (Description): Reword to say "the ... function".
4225         * modules/full-read (Description): Likewise.
4226         * modules/full-write (Description): Likewise.
4227         * modules/safe-read (Description): Likewise.
4228         * modules/safe-write (Description): Likewise.
4229         * modules/strchrnul (Description): Likewise.
4230         * modules/trim (Description): Likewise.
4231         * modules/error (Description): Remove parentheses from symbol
4232         references.
4233         * modules/verror (Description): Likewise.
4234         Reported by Karl Berry.
4235
4236 2007-12-25  Bruno Haible  <bruno@clisp.org>
4237
4238         Fixup after 2007-10-16 commit.
4239         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
4240
4241 2007-12-24  Bruno Haible  <bruno@clisp.org>
4242
4243         Make --enable-relocatable work with DESTDIR.
4244         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
4245         to compute installdir from destprog.
4246         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
4247         also set the RELOC_DESTDIR variable.
4248         Reported by Левашев Иван <octagram@bluebottle.com>.
4249
4250 2007-12-24  Bruno Haible  <bruno@clisp.org>
4251
4252         Fix link error due to xalloc_die().
4253         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
4254         of xreadlink.
4255         * lib/relocwrapper.c: Update comments.
4256         * build-aux/install-reloc: Remove xreadlink.c from file list.
4257         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
4258         xreadlink.c.
4259         Reported by Левашев Иван <octagram@bluebottle.com>.
4260
4261 2007-12-24  Bruno Haible  <bruno@clisp.org>
4262
4263         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
4264         * lib/setenv.h: Remove file.
4265         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
4266         lib/setenv.h.
4267         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
4268         (Depends-on): Add stdlib.
4269         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
4270         gl_FUNC_UNSETENV.
4271         (Include): Replace setenv.h with <stdlib.h>.
4272         * modules/unsetenv: New file.
4273         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
4274         * lib/unsetenv.c: Include <stdlib.h> first.
4275         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
4276         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
4277         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
4278         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
4279         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
4280         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
4281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
4282         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
4283         * doc/functions/unsetenv.texi: Update.
4284         * modules/xsetenv (Depends-on): Add unsetenv.
4285         * modules/getdate (Depends-on): Likewise.
4286         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
4287         * lib/xsetenv.c: Don't include setenv.h.
4288         * lib/getdate.y: Likewise.
4289         * lib/relocwrapper.c: Likewise.
4290         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
4291         (Depends-on): Add stdlib.
4292         * NEWS: Mention the changes.
4293         Reported by Левашев Иван <octagram@bluebottle.com>.
4294
4295 2007-12-23  Bruno Haible  <bruno@clisp.org>
4296
4297         * lib/memmem.c (memmem): Use lowercase variable names. Tab
4298         indentation.
4299
4300 2007-12-23  Bruno Haible  <bruno@clisp.org>
4301
4302         * lib/c-strcasestr.c: Add more comments.
4303         * lib/c-strstr.c: Likewise.
4304         * lib/mbscasestr.c: Likewise.
4305         * lib/mbsstr.c: Likewise.
4306         * lib/strcasestr.c: Likewise.
4307         * lib/memmem.c: Likewise.
4308
4309 2007-12-23  Bruno Haible  <bruno@clisp.org>
4310
4311         * tests/test-memmem.c: Include <string.h> first.
4312
4313 2007-12-22  Bruno Haible  <bruno@clisp.org>
4314
4315         * gnulib-tool (func_create_testdir): Change $auxdir while generating
4316         the contents of $testsbase.
4317         Reported by Ralf Wildenhues.
4318
4319 2007-12-22  Bruno Haible  <bruno@clisp.org>
4320
4321         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
4322         two variables local_ldadd_before, local_ldadd_last.
4323
4324 2007-12-20  Eric Blake  <ebb9@byu.net>
4325
4326         Work around circular library issue when cross-compiling.
4327         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
4328         that progname.o does not need to pull in rpl_memcmp.
4329
4330 2007-12-19  Eric Blake  <ebb9@byu.net>
4331
4332         Fix memmem to avoid O(n^2) worst-case complexity.
4333         * lib/memmem.c (knuth_morris_pratt): New function.
4334         (memmem): Use it if first few naive iterations fail.
4335         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
4336         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
4337         * modules/memchr (License): Likewise.
4338         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
4339         malloca.
4340         * tests/test-memmem.c: Rewrite, borrowing ideas from
4341         test-mbsstr1.c; the old version wouldn't even compile!
4342         * modules/memmem-tests: New file.
4343         * lib/string.in.h (rpl_memmem): Add declaration.
4344         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
4345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
4346         REPLACE_MEMMEM.
4347
4348 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4349
4350         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
4351         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
4352         before any system include files, and undef after them all.  This
4353         should fix a problem on VMS reported by John E. Malmberg in
4354         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
4355
4356 2007-12-17  Eric Blake  <ebb9@byu.net>
4357
4358         Revert addition of verify, for BSD/OS.
4359         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
4360         can't handle large files, for the sake of obsolete platforms.
4361         * modules/fseeko (Depends-on): Remove verify.
4362         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
4363         * doc/functions/ftello.texi (ftello): Likewise.
4364         * doc/functions/fgetpos.texi (fgetpos): Likewise.
4365         Reported by Larry Jones.
4366
4367 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
4368
4369         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
4370         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
4371
4372 2007-12-17  Jim Meyering  <meyering@redhat.com>
4373
4374         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
4375         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
4376         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
4377         * modules/getcwd (Depends-on): Add openat.
4378         Reported by Petr Salinger.
4379
4380 2007-12-17  Bruno Haible  <bruno@clisp.org>
4381
4382         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
4383         avoid a segmentation fault of the configure test on x86_64 systems.
4384
4385 2007-12-15  Jim Meyering  <meyering@redhat.com>
4386
4387         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
4388
4389 2007-12-13  Eric Blake  <ebb9@byu.net>
4390
4391         Another fseek test.
4392         * tests/test-fseek.c (main): Also test ungetc handling.
4393         * tests/test-fseeko.c (main): Likewise.
4394         * modules/fseeko (Depends-on): Add verify.
4395         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
4396         large.
4397         Reported by Larry Jones.
4398
4399         Fix fseeko on mingw.
4400         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
4401         seek.
4402
4403         Beef up fseek tests.
4404         * tests/test-fseek.c (main): Also test eof handling.
4405         * tests/test-fseeko.c (main): Likewise.
4406         Reported by Larry Jones.
4407
4408 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
4409
4410         Fix fseeko on BSD-based platforms.
4411         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
4412         successful seek.
4413
4414 2007-12-12  Eric Blake  <ebb9@byu.net>
4415
4416         Allow circular dependency of separate libtests.a
4417         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
4418         when use_libtests.
4419
4420 2007-12-11  Eric Blake  <ebb9@byu.net>
4421
4422         Fix bug with -0.0L in previous patch.
4423         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
4424         * tests/test-isnan.c (main): Also test on zeroes.
4425         * tests/test-isnanf.c (main): Likewise.
4426         * tests/test-isnanl.h (main): Likewise.
4427
4428         Detect pseudo-denormals on x86 even when cross-compiling.
4429         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
4430         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
4431         invalid bit patterns that happen to satisfy ==.
4432
4433         Avoid link failures with separate libtests.a.
4434         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
4435         last, to satisfy circular dependencies.
4436
4437 2007-12-11  Eric Blake  <ebb9@byu.net>
4438         and Bruno Haible  <bruno@clisp.org>
4439
4440         Fix OpenBSD 4.0 <float.h> handling of long double.
4441         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
4442         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
4443         * doc/headers/float.texi (float.h): Document OpenBSD bug.
4444
4445 2007-12-11  Jim Meyering  <meyering@redhat.com>
4446
4447         * users.txt: Add libvirt.
4448
4449         Support versions of autoconf prior to 2.59c.
4450         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
4451         if it is not already defined.
4452
4453 2007-12-09  Bruno Haible  <bruno@clisp.org>
4454
4455         Let 'gnulib-tool --import' collect sources needed for the tests in
4456         tests/ rather than in lib/.
4457         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
4458         argument. If true, add rules to generate libtests.a, and put libtests.a
4459         into $(LDADD). Consider source files in subdirectories and set
4460         uses_subdirs.
4461         (func_emit_initmacro_start, func_emit_initmacro_end,
4462         func_emit_initmacro_done): Pass all arguments explicitly.
4463         (func_import): Determine two module lists main_modules,
4464         testsrelated_modules. Determine use_libtests. Determine two variables
4465         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
4466         instead of just sed_transform_lib_file. Determine two variables
4467         main_files and testsrelated_files. Compute 'files' as the union of
4468         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
4469         func_add_or_update. In the generated gnulib-comp.m4, collect the
4470         object files for tests/ in different variables than those for lib/.
4471         Substitute LIBTESTS_LIBDEPS.
4472         (func_create_testdir): Combine the uses_subdirs results from
4473         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
4474
4475 2007-12-09  Bruno Haible  <bruno@clisp.org>
4476
4477         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
4478         the build-aux directory.
4479
4480 2007-12-09  Bruno Haible  <bruno@clisp.org>
4481
4482         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
4483         introduced on 2006-09-09.
4484
4485 2007-12-07  Jim Meyering  <meyering@redhat.com>
4486
4487         Let these macros work also with autoconf-2.59.
4488         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
4489         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
4490         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4491
4492 2007-12-06  Jim Meyering  <meyering@redhat.com>
4493
4494         Avoid a configure-time syntax error in gl_FUNC_ACL.
4495         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
4496         function in each branch, before testing the cache variable.
4497
4498 2007-12-04  Eric Blake  <ebb9@byu.net>
4499
4500         Make scripts executable.
4501         * build-aux/config.guess: Add execute permissions.
4502         * build-aux/config.sub: Likewise.
4503         * build-aux/gendocs.sh: Likewise.
4504
4505         Fix frexp on mingw.
4506         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
4507         cross-compiling.
4508         * doc/functions/frexp.texi (frexp): Document the bug.
4509
4510         Make cygwin fseeko check more reliable.
4511         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
4512         version numbers, rather than unrelated feature check.
4513         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
4514         * doc/functions/ftello.texi (ftello): Likewise.
4515         Reported by Bruno Haible.
4516
4517         * m4/strerror.m4: Bump version number.
4518
4519 2007-12-03  Bruno Haible  <bruno@clisp.org>
4520
4521         * doc/functions/mprotect.texi: Mention the mingw problem.
4522
4523 2007-12-03  Eric Blake  <ebb9@byu.net>
4524
4525         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
4526         REPLACE_STRERROR is initialized before this macro.
4527
4528 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
4529
4530         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
4531         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
4532         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
4533         put -lsec in even for programs other than 'ls'.  This fixes a problem
4534         for gettext reported by Bruno Haible in
4535         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
4536         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
4537         Add support for Solaris 10.  This isn't efficient, but should get the
4538         job done for now.
4539
4540 2007-12-03  James Youngman  <jay@gnu.org>
4541
4542         * doc/regexprops-generic.texi: change "an close-group" to "a
4543         close-group" and "illegal" to "not allowed".
4544
4545 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4546
4547         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
4548         pr_byname.h. Needed for the rare case when the maintainer has done
4549         "make maintainer-clean" in the source directory and then attempts a
4550         build outside the source directory.
4551         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
4552         scripts_byname.h.
4553
4554 2007-12-02  Martin Lambers <marlam@marlam.de>
4555             Bruno Haible  <bruno@clisp.org>
4556
4557         * lib/getpagesize.h: Remove file.
4558         * lib/unistd.in.h: Include declaration of getpagesize here.
4559         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
4560         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
4561         HAVE_SYS_PARAM_H.
4562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
4563         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4564         * modules/getpagesize (Files): Remove lib/getpagesize.h.
4565         (Depends-on): Add unistd.
4566         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4567         (Include): Use <unistd.h> instead of getpagesize.h.
4568         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
4569         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4570         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
4571         gl_GETPAGESIZE invocation, already handled by module dependency.
4572         * lib/pagealign_alloc.c: Don't include getpagesize.h.
4573
4574 2007-12-02  Bruno Haible  <bruno@clisp.org>
4575
4576         * modules/strings-tests: New file.
4577         * tests/test-strings.c: New file.
4578
4579         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
4580         * lib/strings.in.h: New file.
4581         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
4582         * m4/strings_h.m4: New file.
4583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
4584         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
4585         * modules/strings: New file.
4586         * modules/string (Makefile.am): Update.
4587         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
4588         Reported by Karl Berry.
4589
4590 2007-12-01  Eric Blake  <ebb9@byu.net>
4591
4592         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
4593         accomodate fix in cygwin 1.5.25.
4594
4595 2007-12-01  Jim Meyering  <meyering@redhat.com>
4596
4597         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
4598         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4599         that would inhibit utf8-optimization of a regexp containing line-
4600         or buffer-anchors, e.g., `^', `$'.
4601
4602 2007-11-30  Bruno Haible  <bruno@clisp.org>
4603
4604         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
4605         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
4606         glthread_recursive_lock_init.
4607         * lib/lock.c (glthread_recursive_lock_init)
4608         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
4609         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4610
4611 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4612
4613         New function qset_acl, like set_acl but with syscall semantics.
4614         * lib/acl.h (qset_acl): New decl.
4615         * lib/acl.c (qset_acl): New function.
4616         (set_acl): Use new function.  Use more-consistent diagnostics.
4617
4618 2007-11-28  Jim Meyering  <meyering@redhat.com>
4619
4620         * modules/physmem (License): Change from GPL to LGPLv2+.
4621
4622 2007-11-26  Bruno Haible  <bruno@clisp.org>
4623
4624         * lib/vasnprintf.c (decode_long_double): Don't abort if the
4625         'long double' type has excess precision.
4626         Reported by Jim Meyering in
4627         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
4628
4629 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4630
4631         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
4632         Sync from <http://gnu.org/licenses>.
4633         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
4634         with license text from same location.
4635         * doc/maintain.texi, doc/standards.texi:  Sync from
4636         <http://savannah.gnu.org/projects/gnustandards>.
4637
4638 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
4639         and Jim Meyering  <meyering@redhat.com>
4640
4641         Adjust getdate' grammar to accept a slightly more regular language.
4642         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
4643         Before, the former was rejected.
4644         * lib/getdate.y (digits_to_date_time): New function, factored
4645         out of ...
4646         (number): ...here.  Just call digits_to_date_time.
4647         (hybrid): New non-terminal to handle an <unsigned number,
4648         signed relative offset> sequence consistently.
4649
4650 2007-11-18  Jim Meyering  <meyering@redhat.com>
4651
4652         Pull my changes from coreutils:
4653         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
4654         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
4655         use of $gnulib_tool_option_extras, so that it's separated from the
4656         preceding argument.
4657
4658         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
4659         * build-aux/bootstrap (cp_mark_as_generated): Create any required
4660         parent destination directories before copying a file into place.
4661
4662 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
4663
4664         bootstrap: work also with 4-argument variant of AC_INIT
4665         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
4666
4667 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
4668
4669         Port test-getaddrinfo to Solaris.
4670         Problem reported by Bruno Haible in
4671         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
4672         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
4673         explanation of setting 'hints'.
4674         Don't reject an implementation merely because it returns EAI_SERVICE.
4675         (EAI_SERVICE): Define to 0 if not defined.
4676
4677 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
4678
4679         The license of gnu-make and posix-shell is now "GPLed build tool".
4680         * modules/gnu-make (License): Likewise.
4681         * modules/posix-shell (License): Likewise.
4682
4683         New module posix-shell, for determining a POSIX shell
4684         or perhaps something that is close enough to a POSIX shell.
4685         * m4/posix-shell.m4: New file.
4686         * modules/posix-shell: New file.
4687
4688         * MODULES.html.sh: Mention new module.
4689
4690         New module gnu-make, for determining whether we're using GNU Make.
4691         * m4/gnu-make.m4: New file.
4692         * modules/gnu-make: New file.
4693         * MODULES.html.sh: Mention new module.
4694
4695 2007-11-14  Jim Meyering  <meyering@redhat.com>
4696
4697         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
4698         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
4699         use this macro to create a function _definition_.
4700         Remove useless "#undef ARGMATCH_DIE".
4701
4702 2007-11-14  Bruno Haible  <bruno@clisp.org>
4703
4704         * lib/config.charset: Update for OpenBSD 4.1.
4705         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
4706
4707 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
4708
4709         Document 64-bit #if problems in stdint.texi.
4710         * doc/headers/stdint.texi (stdint.h): Mention problems with
4711         64-bit-#if, and how to work around them.
4712
4713         Don't insist on 'long long int' support in the preprocessor.  It
4714         breaks too many things.  For example, PRIdMAX still uses a 'long
4715         long int' format with the latest Sun compiler, even though
4716         HAVE_LONG_LONG_INT isn't defined due to that compiler's
4717         preprocessor problem.  This causes the latest coreutils to dump
4718         core on Solaris 10 sparc with the Sun C compiler.
4719         Instead, fix the 2007-10-16 problem in a different way, by evaluating
4720         the troublesome expressions at configure-time, not at #if-time.
4721         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
4722         preprocessor.
4723         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
4724         compile-time C checks, done at 'configure'-time.
4725         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
4726         * modules/inttypes (Makefile): Substitute the new symbols that
4727         gl_INTTYPES_H now generates.
4728         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
4729
4730 2007-11-12  Bruno Haible  <bruno@clisp.org>
4731
4732         Tests for Unicode character classification functions.
4733
4734         * modules/unictype/bidicategory-byname-tests: New file.
4735         * modules/unictype/bidicategory-name-tests: New file.
4736         * modules/unictype/bidicategory-of-tests: New file.
4737         * modules/unictype/bidicategory-test-tests: New file.
4738         * modules/unictype/block-list-tests: New file.
4739         * modules/unictype/block-of-tests: New file.
4740         * modules/unictype/block-test-tests: New file.
4741         * modules/unictype/category-C-tests: New file.
4742         * modules/unictype/category-Cc-tests: New file.
4743         * modules/unictype/category-Cf-tests: New file.
4744         * modules/unictype/category-Cn-tests: New file.
4745         * modules/unictype/category-Co-tests: New file.
4746         * modules/unictype/category-Cs-tests: New file.
4747         * modules/unictype/category-L-tests: New file.
4748         * modules/unictype/category-Ll-tests: New file.
4749         * modules/unictype/category-Lm-tests: New file.
4750         * modules/unictype/category-Lo-tests: New file.
4751         * modules/unictype/category-Lt-tests: New file.
4752         * modules/unictype/category-Lu-tests: New file.
4753         * modules/unictype/category-M-tests: New file.
4754         * modules/unictype/category-Mc-tests: New file.
4755         * modules/unictype/category-Me-tests: New file.
4756         * modules/unictype/category-Mn-tests: New file.
4757         * modules/unictype/category-N-tests: New file.
4758         * modules/unictype/category-Nd-tests: New file.
4759         * modules/unictype/category-Nl-tests: New file.
4760         * modules/unictype/category-No-tests: New file.
4761         * modules/unictype/category-P-tests: New file.
4762         * modules/unictype/category-Pc-tests: New file.
4763         * modules/unictype/category-Pd-tests: New file.
4764         * modules/unictype/category-Pe-tests: New file.
4765         * modules/unictype/category-Pf-tests: New file.
4766         * modules/unictype/category-Pi-tests: New file.
4767         * modules/unictype/category-Po-tests: New file.
4768         * modules/unictype/category-Ps-tests: New file.
4769         * modules/unictype/category-S-tests: New file.
4770         * modules/unictype/category-Sc-tests: New file.
4771         * modules/unictype/category-Sk-tests: New file.
4772         * modules/unictype/category-Sm-tests: New file.
4773         * modules/unictype/category-So-tests: New file.
4774         * modules/unictype/category-Z-tests: New file.
4775         * modules/unictype/category-Zl-tests: New file.
4776         * modules/unictype/category-Zp-tests: New file.
4777         * modules/unictype/category-Zs-tests: New file.
4778         * modules/unictype/category-and-not-tests: New file.
4779         * modules/unictype/category-and-tests: New file.
4780         * modules/unictype/category-byname-tests: New file.
4781         * modules/unictype/category-name-tests: New file.
4782         * modules/unictype/category-none-tests: New file.
4783         * modules/unictype/category-of-tests: New file.
4784         * modules/unictype/category-or-tests: New file.
4785         * modules/unictype/category-test-withtable-tests: New file.
4786         * modules/unictype/combining-class-tests: New file.
4787         * modules/unictype/ctype-alnum-tests: New file.
4788         * modules/unictype/ctype-alpha-tests: New file.
4789         * modules/unictype/ctype-blank-tests: New file.
4790         * modules/unictype/ctype-cntrl-tests: New file.
4791         * modules/unictype/ctype-digit-tests: New file.
4792         * modules/unictype/ctype-graph-tests: New file.
4793         * modules/unictype/ctype-lower-tests: New file.
4794         * modules/unictype/ctype-print-tests: New file.
4795         * modules/unictype/ctype-punct-tests: New file.
4796         * modules/unictype/ctype-space-tests: New file.
4797         * modules/unictype/ctype-upper-tests: New file.
4798         * modules/unictype/ctype-xdigit-tests: New file.
4799         * modules/unictype/decimal-digit-tests: New file.
4800         * modules/unictype/digit-tests: New file.
4801         * modules/unictype/mirror-tests: New file.
4802         * modules/unictype/numeric-tests: New file.
4803         * modules/unictype/property-alphabetic-tests: New file.
4804         * modules/unictype/property-ascii-hex-digit-tests: New file.
4805         * modules/unictype/property-bidi-arabic-digit-tests: New file.
4806         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
4807         * modules/unictype/property-bidi-block-separator-tests: New file.
4808         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
4809         * modules/unictype/property-bidi-common-separator-tests: New file.
4810         * modules/unictype/property-bidi-control-tests: New file.
4811         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
4812         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
4813         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
4814         * modules/unictype/property-bidi-european-digit-tests: New file.
4815         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
4816         * modules/unictype/property-bidi-left-to-right-tests: New file.
4817         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
4818         * modules/unictype/property-bidi-other-neutral-tests: New file.
4819         * modules/unictype/property-bidi-pdf-tests: New file.
4820         * modules/unictype/property-bidi-segment-separator-tests: New file.
4821         * modules/unictype/property-bidi-whitespace-tests: New file.
4822         * modules/unictype/property-byname-tests: New file.
4823         * modules/unictype/property-combining-tests: New file.
4824         * modules/unictype/property-composite-tests: New file.
4825         * modules/unictype/property-currency-symbol-tests: New file.
4826         * modules/unictype/property-dash-tests: New file.
4827         * modules/unictype/property-decimal-digit-tests: New file.
4828         * modules/unictype/property-default-ignorable-code-point-tests: New file.
4829         * modules/unictype/property-deprecated-tests: New file.
4830         * modules/unictype/property-diacritic-tests: New file.
4831         * modules/unictype/property-extender-tests: New file.
4832         * modules/unictype/property-format-control-tests: New file.
4833         * modules/unictype/property-grapheme-base-tests: New file.
4834         * modules/unictype/property-grapheme-extend-tests: New file.
4835         * modules/unictype/property-grapheme-link-tests: New file.
4836         * modules/unictype/property-hex-digit-tests: New file.
4837         * modules/unictype/property-hyphen-tests: New file.
4838         * modules/unictype/property-id-continue-tests: New file.
4839         * modules/unictype/property-id-start-tests: New file.
4840         * modules/unictype/property-ideographic-tests: New file.
4841         * modules/unictype/property-ids-binary-operator-tests: New file.
4842         * modules/unictype/property-ids-trinary-operator-tests: New file.
4843         * modules/unictype/property-ignorable-control-tests: New file.
4844         * modules/unictype/property-iso-control-tests: New file.
4845         * modules/unictype/property-join-control-tests: New file.
4846         * modules/unictype/property-left-of-pair-tests: New file.
4847         * modules/unictype/property-line-separator-tests: New file.
4848         * modules/unictype/property-logical-order-exception-tests: New file.
4849         * modules/unictype/property-lowercase-tests: New file.
4850         * modules/unictype/property-math-tests: New file.
4851         * modules/unictype/property-non-break-tests: New file.
4852         * modules/unictype/property-not-a-character-tests: New file.
4853         * modules/unictype/property-numeric-tests: New file.
4854         * modules/unictype/property-other-alphabetic-tests: New file.
4855         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
4856         * modules/unictype/property-other-grapheme-extend-tests: New file.
4857         * modules/unictype/property-other-id-continue-tests: New file.
4858         * modules/unictype/property-other-id-start-tests: New file.
4859         * modules/unictype/property-other-lowercase-tests: New file.
4860         * modules/unictype/property-other-math-tests: New file.
4861         * modules/unictype/property-other-uppercase-tests: New file.
4862         * modules/unictype/property-paired-punctuation-tests: New file.
4863         * modules/unictype/property-paragraph-separator-tests: New file.
4864         * modules/unictype/property-pattern-syntax-tests: New file.
4865         * modules/unictype/property-pattern-white-space-tests: New file.
4866         * modules/unictype/property-private-use-tests: New file.
4867         * modules/unictype/property-punctuation-tests: New file.
4868         * modules/unictype/property-quotation-mark-tests: New file.
4869         * modules/unictype/property-radical-tests: New file.
4870         * modules/unictype/property-sentence-terminal-tests: New file.
4871         * modules/unictype/property-soft-dotted-tests: New file.
4872         * modules/unictype/property-space-tests: New file.
4873         * modules/unictype/property-terminal-punctuation-tests: New file.
4874         * modules/unictype/property-test-tests: New file.
4875         * modules/unictype/property-titlecase-tests: New file.
4876         * modules/unictype/property-unassigned-code-value-tests: New file.
4877         * modules/unictype/property-unified-ideograph-tests: New file.
4878         * modules/unictype/property-uppercase-tests: New file.
4879         * modules/unictype/property-variation-selector-tests: New file.
4880         * modules/unictype/property-white-space-tests: New file.
4881         * modules/unictype/property-xid-continue-tests: New file.
4882         * modules/unictype/property-xid-start-tests: New file.
4883         * modules/unictype/property-zero-width-tests: New file.
4884         * modules/unictype/scripts-tests: New file.
4885         * modules/unictype/syntax-c-ident-tests: New file.
4886         * modules/unictype/syntax-c-whitespace-tests: New file.
4887         * modules/unictype/syntax-java-ident-tests: New file.
4888         * modules/unictype/syntax-java-whitespace-tests: New file.
4889         * tests/unictype/test-bidi_byname.c: New file.
4890         * tests/unictype/test-bidi_name.c: New file.
4891         * tests/unictype/test-bidi_of.c: New file.
4892         * tests/unictype/test-bidi_test.c: New file.
4893         * tests/unictype/test-block_list.c: New file.
4894         * tests/unictype/test-block_of.c: New file.
4895         * tests/unictype/test-block_test.c: New file.
4896         * tests/unictype/test-categ_and.c: New file.
4897         * tests/unictype/test-categ_and_not.c: New file.
4898         * tests/unictype/test-categ_byname.c: New file.
4899         * tests/unictype/test-categ_name.c: New file.
4900         * tests/unictype/test-categ_none.c: New file.
4901         * tests/unictype/test-categ_of.c: New file.
4902         * tests/unictype/test-categ_or.c: New file.
4903         * tests/unictype/test-categ_test_withtable.c: New file.
4904         * tests/unictype/test-combining.c: New file.
4905         * tests/unictype/test-decdigit.c: New file.
4906         * tests/unictype/test-digit.c: New file.
4907         * tests/unictype/test-mirror.c: New file.
4908         * tests/unictype/test-numeric.c: New file.
4909         * tests/unictype/test-pr_byname.c: New file.
4910         * tests/unictype/test-pr_test.c: New file.
4911         * tests/unictype/test-predicate-part1.h: New file.
4912         * tests/unictype/test-predicate-part2.h: New file.
4913         * tests/unictype/test-scripts.c: New file.
4914         * tests/unictype/test-sy_c_ident.c: New file.
4915         * tests/unictype/test-sy_java_ident.c: New file.
4916
4917         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
4918         for Unicode 5.0.0.
4919         * tests/unictype/test-categ_Cc.c: Likewise.
4920         * tests/unictype/test-categ_Cf.c: Likewise.
4921         * tests/unictype/test-categ_Cn.c: Likewise.
4922         * tests/unictype/test-categ_Co.c: Likewise.
4923         * tests/unictype/test-categ_Cs.c: Likewise.
4924         * tests/unictype/test-categ_L.c: Likewise.
4925         * tests/unictype/test-categ_Ll.c: Likewise.
4926         * tests/unictype/test-categ_Lm.c: Likewise.
4927         * tests/unictype/test-categ_Lo.c: Likewise.
4928         * tests/unictype/test-categ_Lt.c: Likewise.
4929         * tests/unictype/test-categ_Lu.c: Likewise.
4930         * tests/unictype/test-categ_M.c: Likewise.
4931         * tests/unictype/test-categ_Mc.c: Likewise.
4932         * tests/unictype/test-categ_Me.c: Likewise.
4933         * tests/unictype/test-categ_Mn.c: Likewise.
4934         * tests/unictype/test-categ_N.c: Likewise.
4935         * tests/unictype/test-categ_Nd.c: Likewise.
4936         * tests/unictype/test-categ_Nl.c: Likewise.
4937         * tests/unictype/test-categ_No.c: Likewise.
4938         * tests/unictype/test-categ_P.c: Likewise.
4939         * tests/unictype/test-categ_Pc.c: Likewise.
4940         * tests/unictype/test-categ_Pd.c: Likewise.
4941         * tests/unictype/test-categ_Pe.c: Likewise.
4942         * tests/unictype/test-categ_Pf.c: Likewise.
4943         * tests/unictype/test-categ_Pi.c: Likewise.
4944         * tests/unictype/test-categ_Po.c: Likewise.
4945         * tests/unictype/test-categ_Ps.c: Likewise.
4946         * tests/unictype/test-categ_S.c: Likewise.
4947         * tests/unictype/test-categ_Sc.c: Likewise.
4948         * tests/unictype/test-categ_Sk.c: Likewise.
4949         * tests/unictype/test-categ_Sm.c: Likewise.
4950         * tests/unictype/test-categ_So.c: Likewise.
4951         * tests/unictype/test-categ_Z.c: Likewise.
4952         * tests/unictype/test-categ_Zl.c: Likewise.
4953         * tests/unictype/test-categ_Zp.c: Likewise.
4954         * tests/unictype/test-categ_Zs.c: Likewise.
4955         * tests/unictype/test-ctype_alnum.c: Likewise.
4956         * tests/unictype/test-ctype_alpha.c: Likewise.
4957         * tests/unictype/test-ctype_blank.c: Likewise.
4958         * tests/unictype/test-ctype_cntrl.c: Likewise.
4959         * tests/unictype/test-ctype_digit.c: Likewise.
4960         * tests/unictype/test-ctype_graph.c: Likewise.
4961         * tests/unictype/test-ctype_lower.c: Likewise.
4962         * tests/unictype/test-ctype_print.c: Likewise.
4963         * tests/unictype/test-ctype_punct.c: Likewise.
4964         * tests/unictype/test-ctype_space.c: Likewise.
4965         * tests/unictype/test-ctype_upper.c: Likewise.
4966         * tests/unictype/test-ctype_xdigit.c: Likewise.
4967         * tests/unictype/test-decdigit.h: Likewise.
4968         * tests/unictype/test-digit.h: Likewise.
4969         * tests/unictype/test-numeric.h: Likewise.
4970         * tests/unictype/test-pr_alphabetic.c: Likewise.
4971         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
4972         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4973         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4974         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
4975         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4976         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
4977         * tests/unictype/test-pr_bidi_control.c: Likewise.
4978         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
4979         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
4980         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4981         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4982         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4983         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4984         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4985         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4986         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
4987         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
4988         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
4989         * tests/unictype/test-pr_combining.c: Likewise.
4990         * tests/unictype/test-pr_composite.c: Likewise.
4991         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4992         * tests/unictype/test-pr_dash.c: Likewise.
4993         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4994         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
4995         * tests/unictype/test-pr_deprecated.c: Likewise.
4996         * tests/unictype/test-pr_diacritic.c: Likewise.
4997         * tests/unictype/test-pr_extender.c: Likewise.
4998         * tests/unictype/test-pr_format_control.c: Likewise.
4999         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5000         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5001         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5002         * tests/unictype/test-pr_hex_digit.c: Likewise.
5003         * tests/unictype/test-pr_hyphen.c: Likewise.
5004         * tests/unictype/test-pr_id_continue.c: Likewise.
5005         * tests/unictype/test-pr_id_start.c: Likewise.
5006         * tests/unictype/test-pr_ideographic.c: Likewise.
5007         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
5008         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
5009         * tests/unictype/test-pr_ignorable_control.c: Likewise.
5010         * tests/unictype/test-pr_iso_control.c: Likewise.
5011         * tests/unictype/test-pr_join_control.c: Likewise.
5012         * tests/unictype/test-pr_left_of_pair.c: Likewise.
5013         * tests/unictype/test-pr_line_separator.c: Likewise.
5014         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
5015         * tests/unictype/test-pr_lowercase.c: Likewise.
5016         * tests/unictype/test-pr_math.c: Likewise.
5017         * tests/unictype/test-pr_non_break.c: Likewise.
5018         * tests/unictype/test-pr_not_a_character.c: Likewise.
5019         * tests/unictype/test-pr_numeric.c: Likewise.
5020         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5021         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
5022         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
5023         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5024         * tests/unictype/test-pr_other_id_start.c: Likewise.
5025         * tests/unictype/test-pr_other_lowercase.c: Likewise.
5026         * tests/unictype/test-pr_other_math.c: Likewise.
5027         * tests/unictype/test-pr_other_uppercase.c: Likewise.
5028         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
5029         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
5030         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
5031         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
5032         * tests/unictype/test-pr_private_use.c: Likewise.
5033         * tests/unictype/test-pr_punctuation.c: Likewise.
5034         * tests/unictype/test-pr_quotation_mark.c: Likewise.
5035         * tests/unictype/test-pr_radical.c: Likewise.
5036         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5037         * tests/unictype/test-pr_soft_dotted.c: Likewise.
5038         * tests/unictype/test-pr_space.c: Likewise.
5039         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5040         * tests/unictype/test-pr_titlecase.c: Likewise.
5041         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5042         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5043         * tests/unictype/test-pr_uppercase.c: Likewise.
5044         * tests/unictype/test-pr_variation_selector.c: Likewise.
5045         * tests/unictype/test-pr_white_space.c: Likewise.
5046         * tests/unictype/test-pr_xid_continue.c: Likewise.
5047         * tests/unictype/test-pr_xid_start.c: Likewise.
5048         * tests/unictype/test-pr_zero_width.c: Likewise.
5049         * tests/unictype/test-sy_c_whitespace.c: Likewise.
5050         * tests/unictype/test-sy_java_whitespace.c: Likewise.
5051
5052 2007-11-12  Bruno Haible  <bruno@clisp.org>
5053
5054         Unicode character classification functions.
5055         * lib/unictype.h: New file.
5056         * modules/unictype/base: New file.
5057         * modules/unictype/category-L: New file.
5058         * modules/unictype/category-Lu: New file.
5059         * modules/unictype/category-Ll: New file.
5060         * modules/unictype/category-Lt: New file.
5061         * modules/unictype/category-Lm: New file.
5062         * modules/unictype/category-Lo: New file.
5063         * modules/unictype/category-M: New file.
5064         * modules/unictype/category-Mn: New file.
5065         * modules/unictype/category-Mc: New file.
5066         * modules/unictype/category-Me: New file.
5067         * modules/unictype/category-N: New file.
5068         * modules/unictype/category-Nd: New file.
5069         * modules/unictype/category-Nl: New file.
5070         * modules/unictype/category-No: New file.
5071         * modules/unictype/category-P: New file.
5072         * modules/unictype/category-Pc: New file.
5073         * modules/unictype/category-Pd: New file.
5074         * modules/unictype/category-Ps: New file.
5075         * modules/unictype/category-Pe: New file.
5076         * modules/unictype/category-Pi: New file.
5077         * modules/unictype/category-Pf: New file.
5078         * modules/unictype/category-Po: New file.
5079         * modules/unictype/category-S: New file.
5080         * modules/unictype/category-Sm: New file.
5081         * modules/unictype/category-Sc: New file.
5082         * modules/unictype/category-Sk: New file.
5083         * modules/unictype/category-So: New file.
5084         * modules/unictype/category-Z: New file.
5085         * modules/unictype/category-Zs: New file.
5086         * modules/unictype/category-Zl: New file.
5087         * modules/unictype/category-Zp: New file.
5088         * modules/unictype/category-C: New file.
5089         * modules/unictype/category-Cc: New file.
5090         * modules/unictype/category-Cf: New file.
5091         * modules/unictype/category-Cs: New file.
5092         * modules/unictype/category-Co: New file.
5093         * modules/unictype/category-Cn: New file.
5094         * modules/unictype/category-or: New file.
5095         * modules/unictype/category-of: New file.
5096         * modules/unictype/category-test: New file.
5097         * modules/unictype/category-test-withtable: New file.
5098         * modules/unictype/category-byname: New file.
5099         * modules/unictype/category-none: New file.
5100         * modules/unictype/category-and: New file.
5101         * modules/unictype/category-and-not: New file.
5102         * modules/unictype/category-name: New file.
5103         * modules/unictype/combining-class: New file.
5104         * modules/unictype/category-all: New file.
5105         * modules/unictype/bidicategory-all: New file.
5106         * modules/unictype/bidicategory-byname: New file.
5107         * modules/unictype/bidicategory-name: New file.
5108         * modules/unictype/bidicategory-of: New file.
5109         * modules/unictype/bidicategory-test: New file.
5110         * modules/unictype/decimal-digit: New file.
5111         * modules/unictype/digit: New file.
5112         * modules/unictype/numeric: New file.
5113         * modules/unictype/mirror: New file.
5114         * modules/unictype/property-white-space: New file.
5115         * modules/unictype/property-alphabetic: New file.
5116         * modules/unictype/property-other-alphabetic: New file.
5117         * modules/unictype/property-not-a-character: New file.
5118         * modules/unictype/property-default-ignorable-code-point: New file.
5119         * modules/unictype/property-other-default-ignorable-code-point: New
5120         file.
5121         * modules/unictype/property-deprecated: New file.
5122         * modules/unictype/property-logical-order-exception: New file.
5123         * modules/unictype/property-variation-selector: New file.
5124         * modules/unictype/property-private-use: New file.
5125         * modules/unictype/property-unassigned-code-value: New file.
5126         * modules/unictype/property-uppercase: New file.
5127         * modules/unictype/property-other-uppercase: New file.
5128         * modules/unictype/property-lowercase: New file.
5129         * modules/unictype/property-other-lowercase: New file.
5130         * modules/unictype/property-titlecase: New file.
5131         * modules/unictype/property-soft-dotted: New file.
5132         * modules/unictype/property-id-start: New file.
5133         * modules/unictype/property-other-id-start: New file.
5134         * modules/unictype/property-id-continue: New file.
5135         * modules/unictype/property-other-id-continue: New file.
5136         * modules/unictype/property-xid-start: New file.
5137         * modules/unictype/property-xid-continue: New file.
5138         * modules/unictype/property-pattern-white-space: New file.
5139         * modules/unictype/property-pattern-syntax: New file.
5140         * modules/unictype/property-join-control: New file.
5141         * modules/unictype/property-grapheme-base: New file.
5142         * modules/unictype/property-grapheme-extend: New file.
5143         * modules/unictype/property-other-grapheme-extend: New file.
5144         * modules/unictype/property-grapheme-link: New file.
5145         * modules/unictype/property-bidi-control: New file.
5146         * modules/unictype/property-bidi-left-to-right: New file.
5147         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
5148         * modules/unictype/property-bidi-arabic-right-to-left: New file.
5149         * modules/unictype/property-bidi-european-digit: New file.
5150         * modules/unictype/property-bidi-eur-num-separator: New file.
5151         * modules/unictype/property-bidi-eur-num-terminator: New file.
5152         * modules/unictype/property-bidi-arabic-digit: New file.
5153         * modules/unictype/property-bidi-common-separator: New file.
5154         * modules/unictype/property-bidi-block-separator: New file.
5155         * modules/unictype/property-bidi-segment-separator: New file.
5156         * modules/unictype/property-bidi-whitespace: New file.
5157         * modules/unictype/property-bidi-non-spacing-mark: New file.
5158         * modules/unictype/property-bidi-boundary-neutral: New file.
5159         * modules/unictype/property-bidi-pdf: New file.
5160         * modules/unictype/property-bidi-embedding-or-override: New file.
5161         * modules/unictype/property-bidi-other-neutral: New file.
5162         * modules/unictype/property-hex-digit: New file.
5163         * modules/unictype/property-ascii-hex-digit: New file.
5164         * modules/unictype/property-ideographic: New file.
5165         * modules/unictype/property-unified-ideograph: New file.
5166         * modules/unictype/property-radical: New file.
5167         * modules/unictype/property-ids-binary-operator: New file.
5168         * modules/unictype/property-ids-trinary-operator: New file.
5169         * modules/unictype/property-zero-width: New file.
5170         * modules/unictype/property-space: New file.
5171         * modules/unictype/property-non-break: New file.
5172         * modules/unictype/property-iso-control: New file.
5173         * modules/unictype/property-format-control: New file.
5174         * modules/unictype/property-dash: New file.
5175         * modules/unictype/property-hyphen: New file.
5176         * modules/unictype/property-punctuation: New file.
5177         * modules/unictype/property-line-separator: New file.
5178         * modules/unictype/property-paragraph-separator: New file.
5179         * modules/unictype/property-quotation-mark: New file.
5180         * modules/unictype/property-sentence-terminal: New file.
5181         * modules/unictype/property-terminal-punctuation: New file.
5182         * modules/unictype/property-currency-symbol: New file.
5183         * modules/unictype/property-math: New file.
5184         * modules/unictype/property-other-math: New file.
5185         * modules/unictype/property-paired-punctuation: New file.
5186         * modules/unictype/property-left-of-pair: New file.
5187         * modules/unictype/property-combining: New file.
5188         * modules/unictype/property-composite: New file.
5189         * modules/unictype/property-decimal-digit: New file.
5190         * modules/unictype/property-numeric: New file.
5191         * modules/unictype/property-diacritic: New file.
5192         * modules/unictype/property-extender: New file.
5193         * modules/unictype/property-ignorable-control: New file.
5194         * modules/unictype/property-test: New file.
5195         * modules/unictype/property-byname: New file.
5196         * modules/unictype/property-all: New file.
5197         * modules/unictype/scripts: New file.
5198         * modules/unictype/scripts-all: New file.
5199         * modules/unictype/block-of: New file.
5200         * modules/unictype/block-test: New file.
5201         * modules/unictype/block-list: New file.
5202         * modules/unictype/block-all: New file.
5203         * modules/unictype/syntax-c-whitespace: New file.
5204         * modules/unictype/syntax-java-whitespace: New file.
5205         * modules/unictype/syntax-c-ident: New file.
5206         * modules/unictype/syntax-java-ident: New file.
5207         * modules/unictype/ctype-alnum: New file.
5208         * modules/unictype/ctype-alpha: New file.
5209         * modules/unictype/ctype-cntrl: New file.
5210         * modules/unictype/ctype-digit: New file.
5211         * modules/unictype/ctype-graph: New file.
5212         * modules/unictype/ctype-lower: New file.
5213         * modules/unictype/ctype-print: New file.
5214         * modules/unictype/ctype-punct: New file.
5215         * modules/unictype/ctype-space: New file.
5216         * modules/unictype/ctype-upper: New file.
5217         * modules/unictype/ctype-xdigit: New file.
5218         * modules/unictype/ctype-blank: New file.
5219         * lib/unictype/bidi_byname.c: New file.
5220         * lib/unictype/bidi_name.c: New file.
5221         * lib/unictype/bidi_of.c: New file.
5222         * lib/unictype/bidi_test.c: New file.
5223         * lib/unictype/bitmap.h: New file.
5224         * lib/unictype/block_test.c: New file.
5225         * lib/unictype/blocks.c: New file.
5226         * lib/unictype/categ_C.c: New file.
5227         * lib/unictype/categ_Cc.c: New file.
5228         * lib/unictype/categ_Cf.c: New file.
5229         * lib/unictype/categ_Cn.c: New file.
5230         * lib/unictype/categ_Co.c: New file.
5231         * lib/unictype/categ_Cs.c: New file.
5232         * lib/unictype/categ_L.c: New file.
5233         * lib/unictype/categ_Ll.c: New file.
5234         * lib/unictype/categ_Lm.c: New file.
5235         * lib/unictype/categ_Lo.c: New file.
5236         * lib/unictype/categ_Lt.c: New file.
5237         * lib/unictype/categ_Lu.c: New file.
5238         * lib/unictype/categ_M.c: New file.
5239         * lib/unictype/categ_Mc.c: New file.
5240         * lib/unictype/categ_Me.c: New file.
5241         * lib/unictype/categ_Mn.c: New file.
5242         * lib/unictype/categ_N.c: New file.
5243         * lib/unictype/categ_Nd.c: New file.
5244         * lib/unictype/categ_Nl.c: New file.
5245         * lib/unictype/categ_No.c: New file.
5246         * lib/unictype/categ_P.c: New file.
5247         * lib/unictype/categ_Pc.c: New file.
5248         * lib/unictype/categ_Pd.c: New file.
5249         * lib/unictype/categ_Pe.c: New file.
5250         * lib/unictype/categ_Pf.c: New file.
5251         * lib/unictype/categ_Pi.c: New file.
5252         * lib/unictype/categ_Po.c: New file.
5253         * lib/unictype/categ_Ps.c: New file.
5254         * lib/unictype/categ_S.c: New file.
5255         * lib/unictype/categ_Sc.c: New file.
5256         * lib/unictype/categ_Sk.c: New file.
5257         * lib/unictype/categ_Sm.c: New file.
5258         * lib/unictype/categ_So.c: New file.
5259         * lib/unictype/categ_Z.c: New file.
5260         * lib/unictype/categ_Zl.c: New file.
5261         * lib/unictype/categ_Zp.c: New file.
5262         * lib/unictype/categ_Zs.c: New file.
5263         * lib/unictype/categ_and.c: New file.
5264         * lib/unictype/categ_and_not.c: New file.
5265         * lib/unictype/categ_byname.c: New file.
5266         * lib/unictype/categ_name.c: New file.
5267         * lib/unictype/categ_none.c: New file.
5268         * lib/unictype/categ_of.c: New file.
5269         * lib/unictype/categ_or.c: New file.
5270         * lib/unictype/categ_test.c: New file.
5271         * lib/unictype/combining.c: New file.
5272         * lib/unictype/ctype_alnum.c: New file.
5273         * lib/unictype/ctype_alpha.c: New file.
5274         * lib/unictype/ctype_blank.c: New file.
5275         * lib/unictype/ctype_cntrl.c: New file.
5276         * lib/unictype/ctype_digit.c: New file.
5277         * lib/unictype/ctype_graph.c: New file.
5278         * lib/unictype/ctype_lower.c: New file.
5279         * lib/unictype/ctype_print.c: New file.
5280         * lib/unictype/ctype_punct.c: New file.
5281         * lib/unictype/ctype_space.c: New file.
5282         * lib/unictype/ctype_upper.c: New file.
5283         * lib/unictype/ctype_xdigit.c: New file.
5284         * lib/unictype/decdigit.c: New file.
5285         * lib/unictype/digit.c: New file.
5286         * lib/unictype/identsyntaxmap.h: New file.
5287         * lib/unictype/mirror.c: New file.
5288         * lib/unictype/numeric.c: New file.
5289         * lib/unictype/pr_alphabetic.c: New file.
5290         * lib/unictype/pr_ascii_hex_digit.c: New file.
5291         * lib/unictype/pr_bidi_arabic_digit.c: New file.
5292         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
5293         * lib/unictype/pr_bidi_block_separator.c: New file.
5294         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
5295         * lib/unictype/pr_bidi_common_separator.c: New file.
5296         * lib/unictype/pr_bidi_control.c: New file.
5297         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
5298         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
5299         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
5300         * lib/unictype/pr_bidi_european_digit.c: New file.
5301         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
5302         * lib/unictype/pr_bidi_left_to_right.c: New file.
5303         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
5304         * lib/unictype/pr_bidi_other_neutral.c: New file.
5305         * lib/unictype/pr_bidi_pdf.c: New file.
5306         * lib/unictype/pr_bidi_segment_separator.c: New file.
5307         * lib/unictype/pr_bidi_whitespace.c: New file.
5308         * lib/unictype/pr_byname.c: New file.
5309         * lib/unictype/pr_byname.gperf: New file.
5310         * lib/unictype/pr_combining.c: New file.
5311         * lib/unictype/pr_composite.c: New file.
5312         * lib/unictype/pr_currency_symbol.c: New file.
5313         * lib/unictype/pr_dash.c: New file.
5314         * lib/unictype/pr_decimal_digit.c: New file.
5315         * lib/unictype/pr_default_ignorable_code_point.c: New file.
5316         * lib/unictype/pr_deprecated.c: New file.
5317         * lib/unictype/pr_diacritic.c: New file.
5318         * lib/unictype/pr_extender.c: New file.
5319         * lib/unictype/pr_format_control.c: New file.
5320         * lib/unictype/pr_grapheme_base.c: New file.
5321         * lib/unictype/pr_grapheme_extend.c: New file.
5322         * lib/unictype/pr_grapheme_link.c: New file.
5323         * lib/unictype/pr_hex_digit.c: New file.
5324         * lib/unictype/pr_hyphen.c: New file.
5325         * lib/unictype/pr_id_continue.c: New file.
5326         * lib/unictype/pr_id_start.c: New file.
5327         * lib/unictype/pr_ideographic.c: New file.
5328         * lib/unictype/pr_ids_binary_operator.c: New file.
5329         * lib/unictype/pr_ids_trinary_operator.c: New file.
5330         * lib/unictype/pr_ignorable_control.c: New file.
5331         * lib/unictype/pr_iso_control.c: New file.
5332         * lib/unictype/pr_join_control.c: New file.
5333         * lib/unictype/pr_left_of_pair.c: New file.
5334         * lib/unictype/pr_line_separator.c: New file.
5335         * lib/unictype/pr_logical_order_exception.c: New file.
5336         * lib/unictype/pr_lowercase.c: New file.
5337         * lib/unictype/pr_math.c: New file.
5338         * lib/unictype/pr_non_break.c: New file.
5339         * lib/unictype/pr_not_a_character.c: New file.
5340         * lib/unictype/pr_numeric.c: New file.
5341         * lib/unictype/pr_other_alphabetic.c: New file.
5342         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
5343         * lib/unictype/pr_other_grapheme_extend.c: New file.
5344         * lib/unictype/pr_other_id_continue.c: New file.
5345         * lib/unictype/pr_other_id_start.c: New file.
5346         * lib/unictype/pr_other_lowercase.c: New file.
5347         * lib/unictype/pr_other_math.c: New file.
5348         * lib/unictype/pr_other_uppercase.c: New file.
5349         * lib/unictype/pr_paired_punctuation.c: New file.
5350         * lib/unictype/pr_paragraph_separator.c: New file.
5351         * lib/unictype/pr_pattern_syntax.c: New file.
5352         * lib/unictype/pr_pattern_white_space.c: New file.
5353         * lib/unictype/pr_private_use.c: New file.
5354         * lib/unictype/pr_punctuation.c: New file.
5355         * lib/unictype/pr_quotation_mark.c: New file.
5356         * lib/unictype/pr_radical.c: New file.
5357         * lib/unictype/pr_sentence_terminal.c: New file.
5358         * lib/unictype/pr_soft_dotted.c: New file.
5359         * lib/unictype/pr_space.c: New file.
5360         * lib/unictype/pr_terminal_punctuation.c: New file.
5361         * lib/unictype/pr_test.c: New file.
5362         * lib/unictype/pr_titlecase.c: New file.
5363         * lib/unictype/pr_unassigned_code_value.c: New file.
5364         * lib/unictype/pr_unified_ideograph.c: New file.
5365         * lib/unictype/pr_uppercase.c: New file.
5366         * lib/unictype/pr_variation_selector.c: New file.
5367         * lib/unictype/pr_white_space.c: New file.
5368         * lib/unictype/pr_xid_continue.c: New file.
5369         * lib/unictype/pr_xid_start.c: New file.
5370         * lib/unictype/pr_zero_width.c: New file.
5371         * lib/unictype/scripts.c: New file.
5372         * lib/unictype/sy_c_ident.c: New file.
5373         * lib/unictype/sy_c_whitespace.c: New file.
5374         * lib/unictype/sy_java_ident.c: New file.
5375         * lib/unictype/sy_java_whitespace.c: New file.
5376
5377         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
5378         Unicode 5.0.0.
5379         * lib/unictype/blocks.h: Likewise.
5380         * lib/unictype/categ_C.h: Likewise.
5381         * lib/unictype/categ_Cc.h: Likewise.
5382         * lib/unictype/categ_Cf.h: Likewise.
5383         * lib/unictype/categ_Cn.h: Likewise.
5384         * lib/unictype/categ_Co.h: Likewise.
5385         * lib/unictype/categ_Cs.h: Likewise.
5386         * lib/unictype/categ_L.h: Likewise.
5387         * lib/unictype/categ_Ll.h: Likewise.
5388         * lib/unictype/categ_Lm.h: Likewise.
5389         * lib/unictype/categ_Lo.h: Likewise.
5390         * lib/unictype/categ_Lt.h: Likewise.
5391         * lib/unictype/categ_Lu.h: Likewise.
5392         * lib/unictype/categ_M.h: Likewise.
5393         * lib/unictype/categ_Mc.h: Likewise.
5394         * lib/unictype/categ_Me.h: Likewise.
5395         * lib/unictype/categ_Mn.h: Likewise.
5396         * lib/unictype/categ_N.h: Likewise.
5397         * lib/unictype/categ_Nd.h: Likewise.
5398         * lib/unictype/categ_Nl.h: Likewise.
5399         * lib/unictype/categ_No.h: Likewise.
5400         * lib/unictype/categ_P.h: Likewise.
5401         * lib/unictype/categ_Pc.h: Likewise.
5402         * lib/unictype/categ_Pd.h: Likewise.
5403         * lib/unictype/categ_Pe.h: Likewise.
5404         * lib/unictype/categ_Pf.h: Likewise.
5405         * lib/unictype/categ_Pi.h: Likewise.
5406         * lib/unictype/categ_Po.h: Likewise.
5407         * lib/unictype/categ_Ps.h: Likewise.
5408         * lib/unictype/categ_S.h: Likewise.
5409         * lib/unictype/categ_Sc.h: Likewise.
5410         * lib/unictype/categ_Sk.h: Likewise.
5411         * lib/unictype/categ_Sm.h: Likewise.
5412         * lib/unictype/categ_So.h: Likewise.
5413         * lib/unictype/categ_Z.h: Likewise.
5414         * lib/unictype/categ_Zl.h: Likewise.
5415         * lib/unictype/categ_Zp.h: Likewise.
5416         * lib/unictype/categ_Zs.h: Likewise.
5417         * lib/unictype/categ_of.h: Likewise.
5418         * lib/unictype/combining.h: Likewise.
5419         * lib/unictype/ctype_alnum.h: Likewise.
5420         * lib/unictype/ctype_alpha.h: Likewise.
5421         * lib/unictype/ctype_blank.h: Likewise.
5422         * lib/unictype/ctype_cntrl.h: Likewise.
5423         * lib/unictype/ctype_digit.h: Likewise.
5424         * lib/unictype/ctype_graph.h: Likewise.
5425         * lib/unictype/ctype_lower.h: Likewise.
5426         * lib/unictype/ctype_print.h: Likewise.
5427         * lib/unictype/ctype_punct.h: Likewise.
5428         * lib/unictype/ctype_space.h: Likewise.
5429         * lib/unictype/ctype_upper.h: Likewise.
5430         * lib/unictype/ctype_xdigit.h: Likewise.
5431         * lib/unictype/decdigit.h: Likewise.
5432         * lib/unictype/digit.h: Likewise.
5433         * lib/unictype/mirror.h: Likewise.
5434         * lib/unictype/numeric.h: Likewise.
5435         * lib/unictype/pr_alphabetic.h: Likewise.
5436         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5437         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5438         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5439         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5440         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5441         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5442         * lib/unictype/pr_bidi_control.h: Likewise.
5443         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5444         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5445         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5446         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5447         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5448         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5449         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5450         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5451         * lib/unictype/pr_bidi_pdf.h: Likewise.
5452         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5453         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5454         * lib/unictype/pr_combining.h: Likewise.
5455         * lib/unictype/pr_composite.h: Likewise.
5456         * lib/unictype/pr_currency_symbol.h: Likewise.
5457         * lib/unictype/pr_dash.h: Likewise.
5458         * lib/unictype/pr_decimal_digit.h: Likewise.
5459         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5460         * lib/unictype/pr_deprecated.h: Likewise.
5461         * lib/unictype/pr_diacritic.h: Likewise.
5462         * lib/unictype/pr_extender.h: Likewise.
5463         * lib/unictype/pr_format_control.h: Likewise.
5464         * lib/unictype/pr_grapheme_base.h: Likewise.
5465         * lib/unictype/pr_grapheme_extend.h: Likewise.
5466         * lib/unictype/pr_grapheme_link.h: Likewise.
5467         * lib/unictype/pr_hex_digit.h: Likewise.
5468         * lib/unictype/pr_hyphen.h: Likewise.
5469         * lib/unictype/pr_id_continue.h: Likewise.
5470         * lib/unictype/pr_id_start.h: Likewise.
5471         * lib/unictype/pr_ideographic.h: Likewise.
5472         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5473         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5474         * lib/unictype/pr_ignorable_control.h: Likewise.
5475         * lib/unictype/pr_iso_control.h: Likewise.
5476         * lib/unictype/pr_join_control.h: Likewise.
5477         * lib/unictype/pr_left_of_pair.h: Likewise.
5478         * lib/unictype/pr_line_separator.h: Likewise.
5479         * lib/unictype/pr_logical_order_exception.h: Likewise.
5480         * lib/unictype/pr_lowercase.h: Likewise.
5481         * lib/unictype/pr_math.h: Likewise.
5482         * lib/unictype/pr_non_break.h: Likewise.
5483         * lib/unictype/pr_not_a_character.h: Likewise.
5484         * lib/unictype/pr_numeric.h: Likewise.
5485         * lib/unictype/pr_other_alphabetic.h: Likewise.
5486         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5487         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5488         * lib/unictype/pr_other_id_continue.h: Likewise.
5489         * lib/unictype/pr_other_id_start.h: Likewise.
5490         * lib/unictype/pr_other_lowercase.h: Likewise.
5491         * lib/unictype/pr_other_math.h: Likewise.
5492         * lib/unictype/pr_other_uppercase.h: Likewise.
5493         * lib/unictype/pr_paired_punctuation.h: Likewise.
5494         * lib/unictype/pr_paragraph_separator.h: Likewise.
5495         * lib/unictype/pr_pattern_syntax.h: Likewise.
5496         * lib/unictype/pr_pattern_white_space.h: Likewise.
5497         * lib/unictype/pr_private_use.h: Likewise.
5498         * lib/unictype/pr_punctuation.h: Likewise.
5499         * lib/unictype/pr_quotation_mark.h: Likewise.
5500         * lib/unictype/pr_radical.h: Likewise.
5501         * lib/unictype/pr_sentence_terminal.h: Likewise.
5502         * lib/unictype/pr_soft_dotted.h: Likewise.
5503         * lib/unictype/pr_space.h: Likewise.
5504         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5505         * lib/unictype/pr_titlecase.h: Likewise.
5506         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5507         * lib/unictype/pr_unified_ideograph.h: Likewise.
5508         * lib/unictype/pr_uppercase.h: Likewise.
5509         * lib/unictype/pr_variation_selector.h: Likewise.
5510         * lib/unictype/pr_white_space.h: Likewise.
5511         * lib/unictype/pr_xid_continue.h: Likewise.
5512         * lib/unictype/pr_xid_start.h: Likewise.
5513         * lib/unictype/pr_zero_width.h: Likewise.
5514         * lib/unictype/scripts.h: Likewise.
5515         * lib/unictype/scripts_byname.gperf: Likewise.
5516         * lib/unictype/sy_c_ident.h: Likewise.
5517         * lib/unictype/sy_c_whitespace.h: Likewise.
5518         * lib/unictype/sy_java_ident.h: Likewise.
5519         * lib/unictype/sy_java_whitespace.h: Likewise.
5520
5521         * lib/unictype/Makefile: New file.
5522         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
5523         glibc.
5524         * lib/unictype/3level.h: New file, copied from glibc.
5525         * lib/unictype/3levelbit.h: New file.
5526
5527 2007-11-11  Bruno Haible  <bruno@clisp.org>
5528
5529         * modules/gperf: New file.
5530         * modules/iconv_open (Depends-on): Add it.
5531         (Makefile.am): Remove the GPERF definition.
5532
5533 2007-11-11  Bruno Haible  <bruno@clisp.org>
5534
5535         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
5536         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
5537
5538 2007-11-11  Bruno Haible  <bruno@clisp.org>
5539
5540         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
5541         (usage): Remove function.
5542
5543 2007-11-11  Bruno Haible  <bruno@clisp.org>
5544
5545         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
5546         gl_FUNC_CEILF_LIBS.
5547         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
5548         gl_FUNC_CEIL_LIBS.
5549         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
5550         gl_FUNC_CEILL_LIBS.
5551         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
5552         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
5553         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
5554
5555 2007-11-11  Bruno Haible  <bruno@clisp.org>
5556
5557         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
5558         roundf were declared but do not exist on functions.
5559         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
5560         roundl were declared but do not exist on functions.
5561         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
5562         HAVE_FLOORL_AND_CEILL, respectively.
5563         Needed for Sun C on Solaris 10.
5564
5565 2007-11-11  Bruno Haible  <bruno@clisp.org>
5566
5567         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
5568         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
5569         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
5570         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
5571         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
5572         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
5573         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
5574         HAVE_DECL_ROUNDF.
5575         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
5576         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
5577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
5578         of HAVE_DECL_ROUND*.
5579         * modules/math (Makefile.am): Update.
5580
5581 2007-11-10  Bruno Haible  <bruno@clisp.org>
5582
5583         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
5584         ptrdiff_t as m4/intl.m4.
5585
5586 2007-11-10  Jim Meyering  <meyering@redhat.com>
5587
5588         Avoid link failure for the argmatch test.
5589         * tests/test-argmatch.c (usage): Define function to avoid a link
5590         failure: argmatch_die requires a usage function.
5591
5592 2007-11-09  Bruno Haible  <bruno@clisp.org>
5593
5594         * doc/functions/snprintf.texi: Mention BeOS deficiency.
5595         * doc/functions/vsnprintf.texi: Likewise.
5596         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
5597         with a size argument < 2.
5598
5599 2007-11-09  Bruno Haible  <bruno@clisp.org>
5600
5601         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
5602         buffer. Fixes an inefficiency introduced on 2007-11-03.
5603
5604 2007-11-09  Bruno Haible  <bruno@clisp.org>
5605
5606         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
5607         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
5608
5609 2007-11-08  Jim Meyering  <meyering@redhat.com>
5610
5611         Change cache variable name prefix "jm_" to "gl_" everywhere.
5612         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
5613         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
5614         * m4/uptime.m4: s/gl_/jm_/
5615
5616 2007-11-07  Bruno Haible  <bruno@clisp.org>
5617
5618         Update to GNU gettext 0.17.
5619         * m4/intl.m4: Update to GNU gettext 0.17.
5620         * m4/po.m4: Likewise.
5621         * modules/gettext (Files): Remove m4/ulonglong.m4.
5622         (configure.ac): Require gettext infrastructure from version 0.17.
5623
5624 2007-11-06  Bruno Haible  <bruno@clisp.org>
5625
5626         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
5627         symbolic values are not defined in a public header.
5628         * lib/freadable.c (freadable) [QNX]: Likewise.
5629         * lib/freadahead.c (freadahead) [QNX]: Likewise.
5630         * lib/freading.c (freading) [QNX]: Likewise.
5631         * lib/fseterr.c (fseterr) [QNX]: Likewise.
5632         * lib/fwritable.c (fwritable) [QNX]: Likewise.
5633         * lib/fwriting.c (fwriting) [QNX]: Likewise.
5634         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
5635         Reported by Alain Magloire.
5636
5637         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
5638
5639 2007-11-05  Bruno Haible  <bruno@clisp.org>
5640
5641         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
5642         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
5643         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
5644         Reported by Eric Blake.
5645
5646 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5647             Bruno Haible  <bruno@clisp.org>
5648
5649         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
5650         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
5651         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
5652         (malloc): Undefine also before including <stdlib.h>.
5653         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
5654         Needed on OSF/1 4.0.
5655
5656 2007-11-05  Jim Meyering  <meyering@redhat.com>
5657
5658         git-version-gen: sync from coreutils.
5659         * build-aux/git-version-gen: Add comments.
5660         Change the first '-' to '.' in the snapshot version string,
5661         e.g., 6.9-377-08144 -> 6.9.377-08144
5662         Remove first parameter.
5663         Don't declare a version "-dirty" merely because a time
5664         stamp has changed.
5665
5666 2007-11-04  Bruno Haible  <bruno@clisp.org>
5667
5668         * lib/lock.h: Protect all macro definitions containing an 'if'
5669         statement through a "do { ... } while (0)".
5670         * lib/tls.h: Likewise.
5671
5672 2007-11-04  Bruno Haible  <bruno@clisp.org>
5673
5674         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
5675
5676 2007-11-04  Bruno Haible  <bruno@clisp.org>
5677
5678         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
5679         * modules/fprintf-posix (Depends-on): Add nocrash.
5680         * modules/snprintf-posix (Depends-on): Likewise.
5681         * modules/sprintf-posix (Depends-on): Likewise.
5682         * modules/vasnprintf-posix (Depends-on): Likewise.
5683         * modules/vasprintf-posix (Depends-on): Likewise.
5684         * modules/vfprintf-posix (Depends-on): Likewise.
5685         * modules/vsnprintf-posix (Depends-on): Likewise.
5686         * modules/vsprintf-posix (Depends-on): Likewise.
5687         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5688         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5689         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5690         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5691         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5692         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5693         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5694
5695 2007-11-04  Bruno Haible  <bruno@clisp.org>
5696
5697         * modules/nocrash: New file.
5698         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
5699         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
5700
5701 2007-11-04  Bruno Haible  <bruno@clisp.org>
5702
5703         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
5704         precision handling.
5705         * tests/test-vasprintf-posix.c (test_function): Likewise.
5706         * tests/test-snprintf-posix.h (test_function): Likewise.
5707         * tests/test-sprintf-posix.h (test_function): Likewise.
5708
5709         Fix *printf behaviour for large precisions on mingw and BeOS.
5710         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
5711         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
5712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
5713         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5714         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5715         gl_PRINTF_PRECISION and test its result. Invoke
5716         gl_PREREQ_VASNPRINTF_PRECISION.
5717         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5718         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5719         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5720         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5721         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5722         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5723         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5724         * doc/functions/fprintf.texi: Update.
5725         * doc/functions/printf.texi: Update.
5726         * doc/functions/snprintf.texi: Update.
5727         * doc/functions/sprintf.texi: Update.
5728         * doc/functions/vfprintf.texi: Update.
5729         * doc/functions/vprintf.texi: Update.
5730         * doc/functions/vsnprintf.texi: Update.
5731         * doc/functions/vsprintf.texi: Update.
5732
5733 2007-11-04  Bruno Haible  <bruno@clisp.org>
5734
5735         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
5736
5737 2007-11-04  Bruno Haible  <bruno@clisp.org>
5738
5739         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
5740         Reported by Sylvain Beucler <beuc@gnu.org>.
5741
5742 2007-11-03  Bruno Haible  <bruno@clisp.org>
5743
5744         * tests/test-fprintf-posix2.sh: New file.
5745         * tests/test-fprintf-posix2.c: New file.
5746         * modules/fprintf-posix-tests (Files): Add them.
5747         (TESTS): Add test-fprintf-posix2.sh.
5748         (configure.ac): Check for getrlimit and setrlimit.
5749         (check_PROGRAMS): Add test-fprintf-posix2.
5750
5751         * tests/test-printf-posix2.sh: New file.
5752         * tests/test-printf-posix2.c: New file.
5753         * modules/printf-posix-tests (Files): Add them.
5754         (TESTS): Add test-printf-posix2.sh.
5755         (configure.ac): Check for getrlimit and setrlimit.
5756         (check_PROGRAMS): Add test-printf-posix2.
5757
5758         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
5759         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
5760         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
5761         (decode_double): New function, copied from decode_long_double.
5762         (scale10_round_decimal_decoded): New function, extracted from
5763         scale10_round_decimal_long_double.
5764         (scale10_round_decimal_long_double): Use it.
5765         (scale10_round_decimal_double): New function.
5766         (floorlog10): New function.
5767         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
5768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
5769         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5770         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5771         gl_PRINTF_ENOMEM and test its result. Invoke
5772         gl_PREREQ_VASNPRINTF_ENOMEM.
5773         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5774         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5775         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5776         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5777         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5778         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5779         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5780         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
5781         * modules/snprintf-posix (Depends-on): Likewise.
5782         * modules/sprintf-posix (Depends-on): Likewise.
5783         * modules/vasnprintf-posix (Depends-on): Likewise.
5784         * modules/vasprintf-posix (Depends-on): Likewise.
5785         * modules/vfprintf-posix (Depends-on): Likewise.
5786         * modules/vsnprintf-posix (Depends-on): Likewise.
5787         * modules/vsprintf-posix (Depends-on): Likewise.
5788         * doc/functions/fprintf.texi: Update.
5789         * doc/functions/printf.texi: Update.
5790         * doc/functions/snprintf.texi: Update.
5791         * doc/functions/sprintf.texi: Update.
5792         * doc/functions/vfprintf.texi: Update.
5793         * doc/functions/vprintf.texi: Update.
5794         * doc/functions/vsnprintf.texi: Update.
5795         * doc/functions/vsprintf.texi: Update.
5796
5797 2007-11-03  Bruno Haible  <bruno@clisp.org>
5798
5799         * modules/frexp-nolibm-tests: New file.
5800
5801         * modules/frexp-nolibm: New file.
5802         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
5803
5804 2007-11-03  Bruno Haible  <bruno@clisp.org>
5805
5806         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
5807         value is C99 compliant.
5808         Needed for OSF/1 5.1.
5809
5810 2007-11-03  Bruno Haible  <bruno@clisp.org>
5811
5812         Fix out-of-memory handling of vasnprintf.
5813         * lib/printf-parse.c: Include <errno.h>.
5814         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
5815         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
5816         is already set.
5817
5818 2007-11-02  Eric Blake  <ebb9@byu.net>
5819
5820         Fix tests on cygwin.
5821         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
5822
5823 2007-11-01  Bruno Haible  <bruno@clisp.org>
5824
5825         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
5826         warning.
5827         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
5828         needed for POSIX compatibility.
5829
5830 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5831
5832         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
5833         for compatibility with GNU.
5834
5835 2007-11-01  Bruno Haible  <bruno@clisp.org>
5836
5837         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
5838         (putenv): Renamed from rpl_putenv. Change argument type from
5839         'const char *' to 'char *'.
5840         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
5841         of defining putenv in config.h, just set REPLACE_PUTENV.
5842         * modules/putenv (Depends-on): Add stdlib.
5843         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5844         (Include): Use <stdlib.h>.
5845         * lib/stdlib.in.h (putenv): New declaration.
5846         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
5847         REPLACE_PUTENV.
5848         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
5849         REPLACE_PUTENV.
5850         Needed for MacOS X 10.5.0.
5851         Reported by Peter O'Gorman <peter@pogma.com>.
5852
5853 2007-11-01  Jim Meyering  <meyering@redhat.com>
5854
5855         Treat an empty date string exactly like "0".
5856         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
5857         if the remaining date string (to be parsed) is empty, use "0".
5858         Reported by Mischa Molhoek and discussed in this thread:
5859         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
5860
5861 2007-10-31  Bruno Haible  <bruno@clisp.org>
5862
5863         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
5864         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
5865         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
5866         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
5867         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
5868         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
5869
5870 2007-10-31  Bruno Haible  <bruno@clisp.org>
5871
5872         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
5873         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
5874         (AC_TYPE_LONG_LONG_INT): Use it.
5875         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
5876         it as well.
5877         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
5878         to m4/longlong.m4.
5879         * modules/stdint (Files): Remove m4/ulonglong.m4.
5880         * modules/strtoull (Files): Use m4/longlong.m4 instead of
5881         m4/ulonglong.m4.
5882         * modules/strtoumax (Files): Likewise.
5883
5884 2007-10-30  Bruno Haible  <bruno@clisp.org>
5885
5886         * modules/xvasprintf-posix: New file.
5887         Suggested by Eric Blake.
5888
5889 2007-10-30  Bruno Haible  <bruno@clisp.org>
5890
5891         * modules/xprintf-posix-tests: New file.
5892         * tests/test-xprintf-posix.sh: New file.
5893         * tests/test-xprintf-posix.c: New file.
5894         * tests/test-xfprintf-posix.c: New file.
5895
5896         * modules/xprintf-posix: New file.
5897
5898 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5899
5900         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
5901         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
5902         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
5903
5904 2007-10-29  Bruno Haible  <bruno@clisp.org>
5905
5906         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
5907         contain the special marker '_cv_'.
5908         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5909         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5910         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5911         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5912         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5913         Reported by Ralf Wildenhues.
5914
5915 2007-10-29  Bruno Haible  <bruno@clisp.org>
5916
5917         * gnulib-tool (func_import): When --lgpl is not specified, set
5918         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
5919         GPLv3.
5920         Reported by Simon Josefsson.
5921
5922 2007-10-28  Bruno Haible  <bruno@clisp.org>
5923
5924         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
5925         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
5926         HAVE_DECL_ISFINITE.
5927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
5928         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
5929         HAVE_DECL_ISFINITE.
5930
5931 2007-10-28  Bruno Haible  <bruno@clisp.org>
5932
5933         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
5934         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
5935
5936 2007-10-28  Bruno Haible  <bruno@clisp.org>
5937
5938         Fix link errors with Sun C 5.0 on Solaris 10.
5939         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
5940         function is declared but not present in the compiler's libm.
5941         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5942         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5943         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
5944         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
5945         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
5946         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
5947         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
5948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
5949         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
5950         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
5951         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
5952         HAVE_DECL_FLOORL.
5953
5954 2007-10-28  Bruno Haible  <bruno@clisp.org>
5955
5956         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
5957         gl_FUNC_FLOORL. Cache the result.
5958         (gl_FUNC_FLOORL): Use it.
5959         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
5960         gl_FUNC_CEILL. Cache the result.
5961         (gl_FUNC_CEILL): Use it.
5962
5963         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
5964         gl_FUNC_FLOOR. Cache the result.
5965         (gl_FUNC_FLOOR): Use it.
5966         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
5967         gl_FUNC_CEIL. Cache the result.
5968         (gl_FUNC_CEIL): Use it.
5969
5970         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
5971         gl_FUNC_FLOORF. Cache the result.
5972         (gl_FUNC_FLOORF): Use it.
5973         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
5974         gl_FUNC_CEILF. Cache the result.
5975         (gl_FUNC_CEILF): Use it.
5976
5977 2007-10-28  Bruno Haible  <bruno@clisp.org>
5978
5979         * gnulib-tool: Allow specifying the LGPL version number through
5980         --lgpl=2 or --lgpl=3.
5981         (func_usage): Document --lgpl with argument.
5982         Handle --lgpl=... arguments.
5983         (func_import): Recognize also gl_LGPL calls with an argument. When
5984         --lgpl=2 is used and the module's license is just LGPL, report an
5985         error. Set sed_transform_lib_file according to the lgpl variable. In
5986         the generated files, use --lgpl or gl_LGPL invocations with argument,
5987         if necessary.
5988         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
5989         an LGPv2+ license.
5990         * doc/gnulib-tool.texi (Modified imports): Update explanation of
5991         gl_LGPL macro.
5992
5993 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5994             Bruno Haible  <bruno@clisp.org>
5995
5996         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
5997         (u16_uctomb_aux): Likewise.
5998         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
5999         !HAVE_INLINE.
6000         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
6001
6002 2007-10-28  Bruno Haible  <bruno@clisp.org>
6003
6004         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
6005         Invoke AM_GETTEXT_OPTION if it exists.
6006         * modules/vasprintf: Likewise.
6007         * modules/verror: Likewise.
6008         * modules/xprintf: Likewise.
6009         * modules/xvasprintf: Likewise.
6010
6011 2007-10-27  Ben Pfaff  <blp@gnu.org>
6012
6013         * lib/math.in.h: Define isfinite macro and prototypes for
6014         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
6015         implementations.
6016         * m4/math_h.m4: New substitutions for isfinite module.
6017         * lib/isfinite.c: New file.
6018         * m4/isfinite.m4: New file.
6019         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
6020         * modules/isfinite: New file.
6021         * modules/isfinite-tests: New file.
6022         * tests/tests-isfinite.c: New file.
6023         * doc/functions/isfinite.texi: Mention isfinite module.
6024         * MODULES.html.sh: Mention new module.
6025
6026 2007-10-27  Ben Pfaff  <blp@gnu.org>
6027
6028         Ralf Wildenhues reported that Tru64 4.0D declares the round
6029         functions but does not have definitions.
6030         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
6031         cannot be found in any library, set the output variable to
6032         "missing" instead of "".
6033         * m4/round.m4: Also use our substitute if we cannot find round in
6034         any library, even if it is declared.
6035         * m4/roundf.m4: Likewise for roundf.
6036         * m4/roundl.m4: Likewise for roundl.
6037         * lib/math.in.h: Undefine roundf, round, roundl before defining
6038         their replacements, to allow for hypothetical systems where these
6039         may be defined as macros but not available in libraries.
6040
6041 2007-10-27  Bruno Haible  <bruno@clisp.org>
6042
6043         * doc/gnulib.texi: Invoke @firstparagraphindent.
6044         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
6045         changes in gnulib.
6046         (Source changes): New section.
6047
6048 2007-10-26  Bruno Haible  <bruno@clisp.org>
6049
6050         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
6051         borrowed from autoconf.
6052
6053 2007-10-26  Bruno Haible  <bruno@clisp.org>
6054
6055         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
6056         strerror returned the empty string. Needed on HP-UX 11.00.
6057
6058 2007-10-24  Micah Cowan  <micah@cowan.name>
6059
6060         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
6061         * build-aux/bootstrap: Remove support for now-unnecessary option,
6062         --cvs-user, and envvars CVS_USER, CVS_RSH.
6063
6064 2007-10-24  Jim Meyering  <meyering@redhat.com>
6065
6066         Avoid diagnostics from sha1sum when there is no cached checksum.
6067         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
6068         if the po.s1 file hasn't been created yet.
6069
6070         * build-aux/bootstrap: Sync from coreutils:
6071         2007-10-24  Jim Meyering  <meyering@redhat.com>
6072         Get gnulib from the git repository, not from an obsolete cvs one.
6073         * build-aux/bootstrap: Suggestion from Micah Cowan.
6074         2007-10-04  Jim Meyering  <jim@meyering.net>
6075         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
6076         (update_po_files): Work also when there are no .po files in po/.
6077
6078 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6079
6080         * README: Append ".git" to git and cg examples.
6081         Problem reported by Benoit Sigoure.
6082
6083 2007-10-23  Micah Cowan  <micah@cowan.name>
6084
6085         * users.txt: Add wget.
6086
6087 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6088
6089         Fix linking of some unistdio tests on FreeBSD.
6090         * modules/unistdio/u16-vsnprintf-tests
6091         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
6092         * modules/unistdio/u16-vsprintf-tests
6093         (test_u16_vsnprintf1_LDADD): Likewise.
6094         * modules/unistdio/u32-vsnprintf-tests
6095         (test_u32_vsnprintf1_LDADD): Likewise.
6096         * modules/unistdio/u32-vsprintf-tests
6097         (test_u32_vsprintf1_LDADD): Likewise.
6098         * modules/unistdio/u8-vsnprintf-tests
6099         (test_u8_vsnprintf1_LDADD): Likewise.
6100         * modules/unistdio/u8-vsprintf-tests
6101         (test_u8_vsprintf1_LDADD): Likewise.
6102         * modules/unistdio/ulc-vsnprintf-tests
6103         (test_ulc_vsnprintf1_LDADD): Likewise.
6104         * modules/unistdio/ulc-vsprintf-tests
6105         (test_ulc_vsprintf1_LDADD): Likewise.
6106
6107         Fix linking of some uniconv tests on FreeBSD.
6108         * modules/uniconv/u16-conv-from-enc-tests
6109         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
6110         * modules/uniconv/u16-conv-to-enc-tests
6111         (test_u16_conv_to_enc_LDADD): Likewise.
6112         * modules/uniconv/u16-strconv-from-enc-tests
6113         (test_u16_strconv_from_enc_LDADD): Likewise.
6114         * modules/uniconv/u16-strconv-to-enc-tests
6115         (test_u16_strconv_to_enc_LDADD): Likewise.
6116         * modules/uniconv/u32-conv-from-enc-tests
6117         (test_u32_conv_from_enc_LDADD): Likewise.
6118         * modules/uniconv/u32-conv-to-enc-tests
6119         (test_u32_conv_to_enc_LDADD): Likewise.
6120         * modules/uniconv/u32-strconv-from-enc-tests
6121         (test_u32_strconv_from_enc_LDADD): Likewise.
6122         * modules/uniconv/u32-strconv-to-enc-tests
6123         (test_u32_strconv_to_enc_LDADD): Likewise.
6124         * modules/uniconv/u8-conv-from-enc-tests
6125         (test_u8_conv_from_enc_LDADD): Likewise.
6126         * modules/uniconv/u8-conv-to-enc-tests
6127         (test_u8_conv_to_enc_LDADD): Likewise.
6128         * modules/uniconv/u8-strconv-from-enc-tests
6129         (test_u8_strconv_from_enc_LDADD): Likewise.
6130         * modules/uniconv/u8-strconv-to-enc-tests
6131         (test_u8_strconv_to_enc_LDADD): Likewise.
6132
6133 2007-10-22  Bruno Haible  <bruno@clisp.org>
6134
6135         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
6136         size.
6137
6138 2007-10-22  Eric Blake  <ebb9@byu.net>
6139
6140         Tweak x*printf documentation.
6141         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
6142         variable name and comments.
6143         Suggested by Bruno Haible.
6144
6145 2007-10-22  Bruno Haible  <bruno@clisp.org>
6146
6147         * lib/acl.c (copy_acl): Fix file name in comment.
6148
6149 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
6150
6151         Fix Tru64 problem with stdbool.h.
6152         * lib/stdbool.in.h (false, true):
6153         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
6154         Don't declare as an enum in this situation; it runs afoul of Tru64.
6155         Problem reported by Steven M. Schweda in
6156         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
6157
6158 2007-10-22  Eric Blake  <ebb9@byu.net>
6159
6160         Also wrap vf?printf.
6161         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
6162         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
6163         (xvprintf, xvfprintf): New functions.
6164
6165 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6166
6167         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
6168         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
6169
6170         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
6171         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
6172
6173 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
6174
6175         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
6176         by Bruno Haible.
6177
6178 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6179
6180         * lib/getloadavg.c
6181         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
6182         Undef `sys' after including sys/table.h, for Tru64 4.0D.
6183
6184         * tests/test-i-ring.c: Work for C89.
6185
6186 2007-10-22  Bruno Haible  <bruno@clisp.org>
6187
6188         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
6189         -1u, in preprocessor expression, so that we don't test for the bug
6190         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
6191         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
6192
6193 2007-10-22  Eric Blake  <ebb9@byu.net>
6194
6195         * tests/test-yesno.sh: Silence stderr during test.
6196
6197 2007-10-22  Simon Josefsson  <simon@josefsson.org>
6198
6199         * modules/crypto/gc-camellia: New file.
6200
6201         * m4/gc-camellia.m4: New file.
6202
6203         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
6204
6205         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
6206
6207 2007-10-22  Simon Josefsson  <simon@josefsson.org>
6208
6209         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
6210         --help to stdout.  Reported by sms@antinode.org (Steven
6211         M. Schweda).
6212
6213 2007-10-22  Simon Josefsson  <simon@josefsson.org>
6214
6215         * users.txt: Fix link to libksba.
6216
6217 2007-10-21  Ben Pfaff  <blp@gnu.org>
6218
6219         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
6220         round.c roundf implementation that depends on floorf and ceilf to
6221         be tested unconditionally.
6222
6223 2007-10-21  Ben Pfaff  <blp@gnu.org>
6224
6225         * m4/check-libm-func.m4: Removed.
6226         * m4/check-math-lib.m4: New file.
6227         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
6228         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
6229         definition and lack of AC_LIBOBJ([roundf]).
6230         * m4/roundl.m4: Ditto, and similarly for roundl.
6231         * modules/round: Reference new m4 file.
6232         * modules/roundf: Ditto.
6233         * modules/roundl: Ditto.
6234         * tests/test-round2.c (main): Use ROUND instead of round.
6235         Bug report from Bruno Haible.
6236
6237 2007-10-21  Bruno Haible  <bruno@clisp.org>
6238
6239         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
6240         context.
6241
6242 2007-10-21  Bruno Haible  <bruno@clisp.org>
6243
6244         * tests/test-wcwidth.c (main): Allow negative result for some control
6245         characters.
6246
6247         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
6248         Needed on OSF/1 5.1.
6249
6250 2007-10-21  Bruno Haible  <bruno@clisp.org>
6251
6252         * tests/test-floorf1.c: Include isnanf.h.
6253         (main): Use isnanf() instead of isnan().
6254         * tests/test-ceilf1.c: Include isnanf.h.
6255         (main): Use isnanf() instead of isnan().
6256         * tests/test-truncf1.c: Include isnanf.h.
6257         (main): Use isnanf() instead of isnan().
6258         * tests/test-roundf1.c: Include isnanf.h.
6259         (main): Use isnanf() instead of isnan().
6260
6261 2007-10-21  Eric Blake  <ebb9@byu.net>
6262
6263         * users.txt: Update URL for m4.
6264
6265 2007-10-21  Bruno Haible  <bruno@clisp.org>
6266
6267         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
6268
6269 2007-10-21  Bruno Haible  <bruno@clisp.org>
6270
6271         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
6272         Git's management files if the CVS files are not present.
6273
6274 2007-10-20  Bruno Haible  <bruno@clisp.org>
6275
6276         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
6277         gcc-3.4.x.
6278
6279 2007-10-20  Ben Pfaff  <blp@gnu.org>
6280
6281         * lib/math.in.h: Declare round, roundf, roundl if we are providing
6282         implementations.
6283         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
6284         * lib/round.c: New file.
6285         * lib/roundf.c: New file.
6286         * lib/roundl.c: New file.
6287         * m4/round.m4: New file.
6288         * m4/roundf.m4: New file.
6289         * m4/roundl.m4: New file.
6290         * m4/check-libm-func-m4: New file.
6291         * modules/math: Replace round, roundf, roundl related @VARS@ in
6292         math.in.h.
6293         * modules/round: New file.
6294         * modules/round-tests: New file.
6295         * modules/roundf: New file.
6296         * modules/roundf-tests: New file.
6297         * modules/roundl: New file.
6298         * modules/roundl-tests: New file.
6299         * tests/test-round1.c: New file.
6300         * tests/test-round2.c: New file.
6301         * tests/test-roundf1.c: New file.
6302         * tests/test-roundf2.c: New file.
6303         * tests/test-roundl.c: New file.
6304         * doc/functions/round.texi: Mention round module.
6305         * doc/functions/roundf.texi: Mention roundf module.
6306         * doc/functions/roundl.texi: Mention roundl module.
6307         * MODULES.html.sh: Mention new modules.
6308         Thanks to Bruno Haible for suggestions.
6309
6310 2007-10-20  Jim Meyering  <meyering@redhat.com>
6311
6312         * lib/xprintf.c: Include <config.h> unconditionally.
6313
6314         Change xprintf's license to GPL.
6315         * modules/xprintf (License): s/LGPL/GPL/, since this module
6316         depends on modules (exit and exitfail) which are GPL.
6317         Suggestion from Bruno Haible.
6318
6319         xprintf fixes.
6320         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
6321         Use a clearer diagnostic.
6322         Patch from Bruno Haible.
6323
6324 2007-10-20  Bruno Haible  <bruno@clisp.org>
6325
6326         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
6327         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
6328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6329
6330 2007-10-20  Bruno Haible  <bruno@clisp.org>
6331
6332         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
6333         precision in the comparison result > x - 1 or similar.
6334         * tests/test-ceilf2.c (correct_result_p): Likewise.
6335         * tests/test-truncf2.c (correct_result_p): Likewise.
6336         * tests/test-trunc2.c (correct_result_p): Likewise.
6337         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6338
6339 2007-10-20  Bruno Haible  <bruno@clisp.org>
6340
6341         * modules/ceil: New file.
6342         * m4/ceil.m4: New file.
6343         * doc/functions/ceil.texi: Mention the 'ceil' module.
6344
6345 2007-10-20  Bruno Haible  <bruno@clisp.org>
6346
6347         * modules/floor: New file.
6348         * m4/floor.m4: New file.
6349         * doc/functions/floor.texi: Mention the 'floor' module.
6350
6351 2007-10-20  Bruno Haible  <bruno@clisp.org>
6352
6353         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
6354         of %a.
6355         * modules/floorf-tests (Depends-on): Likewise.
6356         * modules/truncf-tests (Depends-on): Likewise.
6357         * modules/trunc-tests (Depends-on): Likewise.
6358         Reported by Ben Pfaff.
6359
6360 2007-10-19  Jim Meyering  <meyering@redhat.com>
6361
6362         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
6363         Don't bother testing specific errno values.  Just test ferror.
6364
6365         New module: xprintf
6366         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
6367
6368 2007-10-19  Bruno Haible  <bruno@clisp.org>
6369
6370         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
6371         syntax.
6372         * modules/javaexec (Makefile.am): Likewise.
6373         * modules/relocatable-prog (Makefile.am): Likewise.
6374         Suggested by Jim Meyering.
6375
6376 2007-10-18  Bruno Haible  <bruno@clisp.org>
6377
6378         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
6379         Reported by Jim Meyering.
6380
6381 2007-10-18  Eric Blake  <ebb9@byu.net>
6382
6383         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
6384
6385 2007-10-18  Bruno Haible  <bruno@clisp.org>
6386
6387         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
6388         the format string into writable memory. Needed in Fortify conditions.
6389
6390 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
6391             Bruno Haible  <bruno@clisp.org>
6392
6393         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
6394         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
6395         * modules/trim (Depends-on): Add mbchar.
6396         (configure.ac): Add gl_FUNC_MBRTOWC.
6397         (Makefile.am): Augment lib_SOURCES.
6398
6399 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
6400
6401         Modify glob.c to use fstatat and dirfd, to simplify it.
6402         Suggested by Eric Blake.
6403         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
6404         Don't include <stdbool.h>; not used.
6405         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
6406         (link_exists_p): Simplify implementation, since we can now assume
6407         dirfd and fstatat.
6408         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
6409
6410 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6411
6412         * gnulib-tool (func_get_dependencies): Fix sed script to
6413         match only tests.
6414
6415 2007-10-17  Bruno Haible  <bruno@clisp.org>
6416
6417         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
6418         allow locale names without encoding suffix.
6419         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6420         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6421
6422 2007-10-16  Bruno Haible  <bruno@clisp.org>
6423
6424         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
6425         * lib/getgroups.c (getgroups): Likewise.
6426         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
6427
6428 2007-10-16  Bruno Haible  <bruno@clisp.org>
6429
6430         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
6431         * modules/malloc-posix (License): Likewise.
6432         * modules/realloc-posix (License): Likewise.
6433         * modules/calloc-posix (License): Likewise.
6434         * modules/intprops (License): Change from GPL to LGPL, with
6435         Paul Eggert's approval.
6436
6437 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6438
6439         Merge glibc changes into lib/glob.c.
6440
6441         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
6442         2007-10-15 04:59:03 UTC.  Here are the changes:
6443
6444         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
6445
6446         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
6447
6448         * lib/glob.c: Add some branch prediction throughout.
6449
6450         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
6451
6452         [BZ #5103]
6453         * lib/glob.c (glob): Recognize patterns starting \/.
6454
6455         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
6456
6457         [BZ #3996]
6458         * lib/glob.c (attribute_hidden): Define if not defined.
6459         (glob): Unescape dirname, filename or username when needed and not
6460         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
6461         is NULL.  Handle unescaped [ in pattern without closing ].
6462         Don't pass GLOB_CHECK down to recursive glob for directories.
6463         (__glob_pattern_type): New function.
6464         (__glob_pattern_p): Implement using __glob_pattern_type.
6465         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
6466         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
6467         Remove unreachable code.
6468
6469         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
6470
6471         * lib/glob.c (glob_in_dir): Add some comments and asserts to
6472         explain why there are no leaks.
6473
6474         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
6475
6476         [BZ #3253]
6477         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
6478         time, rather allocate increasingly bigger arrays of pointers, if
6479         possible with alloca, if too large with malloc.
6480
6481 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6482
6483         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
6484         Problem reported by H.Merijn Brand in
6485         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
6486         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
6487         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
6488
6489 2007-10-15  Bruno Haible  <bruno@clisp.org>
6490
6491         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
6492         with explicit rpl_ prefix.
6493         * lib/fopen.c (fopen): Likewise.
6494         * lib/freopen.c (freopen): Likewise.
6495         * lib/iconv.c (iconv): Likewise.
6496         * lib/iconv_close.c (iconv_close): Likewise.
6497
6498 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6499
6500         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
6501
6502 2007-10-15  Bruno Haible  <bruno@clisp.org>
6503
6504         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
6505         <stddef.h> instead of <stdlib.h> since we only need NULL.
6506         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6507
6508 2007-10-15  Bruno Haible  <bruno@clisp.org>
6509
6510         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
6511         Replace paragraph talking about LIBOBJS.
6512         Reported by Colin Watson <cjwatson@debian.org>.
6513
6514 2007-10-15  Bruno Haible  <bruno@clisp.org>
6515
6516         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
6517         <stdlib.h> before using NULL.
6518
6519 2007-10-15  Simon Josefsson  <simon@josefsson.org>
6520
6521         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
6522         Reported by Albert Chin <china@thewrittenword.com>.
6523
6524 2007-10-14  Bruno Haible  <bruno@clisp.org>
6525
6526         * modules/iconv_open-utf-tests: New file.
6527         * tests/test-iconv-utf.c: New file.
6528
6529         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
6530         * modules/iconv_open-utf: New file.
6531         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
6532         (iconv, iconv_close): New declarations.
6533         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
6534         be defined.
6535         (iconv_open): Add special handling of conversion between UTF-8 and
6536         UTF-{16,32}{BE,LE}.
6537         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
6538         * lib/iconv_close.c: New file.
6539         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
6540         gl_FUNC_ICONV_OPEN.
6541         (gl_FUNC_ICONV_OPEN): Use it.
6542         (gl_FUNC_ICONV_OPEN_UTF): New macro.
6543         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
6544         and REPLACE_ICONV_UTF.
6545         * modules/iconv_open (Depends-on): Add c-strcase.
6546         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
6547         ICONV_CONST.
6548         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
6549
6550 2007-10-13  Albert Chin  <china@thewrittenword.com>
6551             Bruno Haible  <bruno@clisp.org>
6552
6553         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
6554         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
6555
6556 2007-10-13  Bruno Haible  <bruno@clisp.org>
6557
6558         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
6559         defined, use the ISO C99 inline semantics.
6560         * lib/argp.h (ARGP_EI): Likewise.
6561
6562 2007-10-13  Bruno Haible  <bruno@clisp.org>
6563
6564         Handle 'inline' change in gcc 4.3.0.
6565         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
6566         argp_fmtstream_write, argp_fmtstream_set_lmargin,
6567         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
6568         argp_fmtstream_point): Disable 'extern' declaration if the function
6569         definition is going to be provided inline.
6570         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
6571         semantics, not the ISO C99 inline semantics.
6572         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
6573         'extern' declaration if the function definition is going to be provided
6574         inline.
6575         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
6576         the GNU C inline semantics, not the ISO C99 inline semantics. With
6577         GCC 4.2, avoid a warning.
6578
6579 2007-10-13  Bruno Haible  <bruno@clisp.org>
6580
6581         * lib/freading.h (freading): Enable the use of __freading for
6582         glibc >= 2.7.
6583         * lib/freading.c (freading): Likewise.
6584
6585 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
6586
6587         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
6588         "warning: C99 inline functions are not supported; using GNU89".
6589
6590 2007-10-12  Bruno Haible  <bruno@clisp.org>
6591
6592         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
6593         of 2.
6594         * tests/test-ceilf2.c: New file.
6595         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
6596
6597         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
6598         * modules/ceilf-tests: Update.
6599
6600 2007-10-12  Bruno Haible  <bruno@clisp.org>
6601
6602         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
6603         of 2.
6604         * tests/test-floorf2.c: New file.
6605         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
6606
6607         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
6608         * modules/floorf-tests: Update.
6609
6610 2007-10-12  Bruno Haible  <bruno@clisp.org>
6611
6612         * tests/test-trunc2.c: New file.
6613         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
6614
6615         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
6616         * modules/trunc-tests: Update.
6617
6618 2007-10-12  Bruno Haible  <bruno@clisp.org>
6619
6620         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
6621         of 2.
6622         * tests/test-truncf2.c: New file.
6623         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
6624
6625         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
6626         * modules/truncf-tests: Update.
6627
6628 2007-10-11  Eric Blake  <ebb9@byu.net>
6629
6630         Don't claim strerror is broken on Interix.
6631         * doc/functions/strerror.texi (strerror): Known broken systems are
6632         now Solaris 8, and not Interix.
6633         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
6634         Interix on cross-compile.
6635         Reported by Martin Koeppe in
6636         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
6637
6638 2007-10-11  Bruno Haible  <bruno@clisp.org>
6639
6640         * modules/i-ring-tests: New file.
6641         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
6642         instead of assert.
6643
6644 2007-10-11  Bruno Haible  <bruno@clisp.org>
6645
6646         * modules/filenamecat-tests: New file.
6647         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
6648         * lib/filenamecat.c: Remove test code.
6649
6650 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6651
6652         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
6653
6654         * lib/strerror.c: Include <string.h> always, to test interface,
6655         and to remove the need for the dummy.
6656         Include intprops.h to compute width instead of doing it ourselves
6657         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
6658         (strerror): Define it to return NULL if there's no system strerror.
6659         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
6660         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
6661         ancient pre-strerror Unix systems well any more.  Saying "unknown
6662         system error" is enough.
6663         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
6664         simpler strerror.c implementation.
6665         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
6666         Simplify the tests to reflect the simpler strerror implementation.
6667         * modules/strerror (Depends-on): Add intprops.
6668
6669 2007-10-09  Eric Blake  <ebb9@byu.net>
6670
6671         Silence test-fpending.
6672         * modules/fpending-tests (Files): Add wrapper script.
6673         * tests/test-fpending.sh: New file.
6674
6675 2007-10-09  Bruno Haible  <bruno@clisp.org>
6676
6677         * MODULES.html.sh (func_module): Don't create a hyperlink for
6678         function names like 'printf_frexp'.
6679         (Misc): Add crc, memxor.
6680         (Characteristics of floating types): New section.
6681         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
6682         isnanf-nolibm, signbit, trunc, truncf, truncl.
6683         (Enhancements for ISO C 99 functions): New subsection Input/output.
6684         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
6685         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
6686         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
6687         (Compatibility checks for POSIX:2001 functions): Add clock-time.
6688         (Enhancements for POSIX:2001 functions): Add chdir-long.
6689         (File system functions): Add areadlink, chdir-safer, read-file.
6690         Remove cycle-check.
6691         (File system as inode set): New section.
6692         (Date and time): Add gethrxtime.
6693         (Multithreading): Add openmp.
6694         (Internationalization functions): Add localename.
6695         (Unicode string functions): Add unistr/u*-mbsnlen.
6696         (Support for maintaining and releasing projects): Add git-version-gen.
6697         (Lone files): Remove directories.
6698
6699 2007-10-08  Ben Pfaff  <blp@gnu.org>
6700
6701         * lib/xmalloca.h: Fix typo in comment.
6702
6703 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6704
6705         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
6706         when avoiding problems with integer overflow.  Use a portable test
6707         instead.
6708
6709 2007-10-08  Simon Josefsson  <simon@josefsson.org>
6710
6711         * modules/dummy (License): Change to LGPLv2+.
6712         * modules/float (License): Likewise
6713         * modules/realloc (License): Likewise
6714         * modules/stdlib (License): Likewise
6715
6716 2007-10-07  Bruno Haible  <bruno@clisp.org>
6717
6718         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
6719         * floor.c (TWO_MANT_DIG): Likewise.
6720         * ceil.c (TWO_MANT_DIG): Likewise.
6721         Reported by Ben Pfaff.
6722
6723 2007-10-07  Bruno Haible  <bruno@clisp.org>
6724
6725         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
6726         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
6727         * lib/frexp.c (FUNC): Likewise.
6728         * lib/printf-frexp.h (printf_frexp): Likewise.
6729         * lib/printf-frexpl.h (printf_frexpl): Likewise.
6730         * lib/printf-frexp.c (FUNC): Likewise.
6731         Suggested by Jim Meyering.
6732
6733 2007-10-07  Jim Meyering  <meyering@redhat.com>
6734
6735         Make xnanosleep's integer overflow test more robust.
6736         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
6737         so that gcc-4.3.0 doesn't optimize away this test for overflow.
6738
6739 2007-10-07  Bruno Haible  <bruno@clisp.org>
6740
6741         * NEWS: Mention the license change.
6742
6743         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
6744         abbreviations in the modules files.
6745
6746         Change copyright notice from GPLv2+ to GPLv3+.
6747         * README: Change copyright notice.
6748         * MODULES.html.sh: Likewise.
6749         * build-aux/bootstrap.conf: Likewise.
6750         * build-aux/config.libpath: Likewise.
6751         * build-aux/csharpcomp.sh.in: Likewise.
6752         * build-aux/csharpexec.sh.in: Likewise.
6753         * build-aux/install-reloc: Likewise.
6754         * build-aux/javacomp.sh.in: Likewise.
6755         * build-aux/javaexec.sh.in: Likewise.
6756         * build-aux/ldd.sh.in: Likewise.
6757         * build-aux/reloc-ldflags: Likewise.
6758         * build-aux/relocatable.sh.in: Likewise.
6759         * build-aux/x-to-1.in: Likewise.
6760         * check-module: Likewise.
6761         * config/srclistvars.sh: Likewise.
6762         * gnulib-tool: Likewise.
6763         * lib/acl-internal.h: Likewise.
6764         * lib/acl.c: Likewise.
6765         * lib/acl.h: Likewise.
6766         * lib/acl_entries.c: Likewise.
6767         * lib/areadlink-with-size.c: Likewise.
6768         * lib/areadlink.c: Likewise.
6769         * lib/areadlink.h: Likewise.
6770         * lib/argmatch.c: Likewise.
6771         * lib/argmatch.h: Likewise.
6772         * lib/argp-ba.c: Likewise.
6773         * lib/argp-eexst.c: Likewise.
6774         * lib/argp-fmtstream.c: Likewise.
6775         * lib/argp-fmtstream.h: Likewise.
6776         * lib/argp-fs-xinl.c: Likewise.
6777         * lib/argp-help.c: Likewise.
6778         * lib/argp-namefrob.h: Likewise.
6779         * lib/argp-parse.c: Likewise.
6780         * lib/argp-pin.c: Likewise.
6781         * lib/argp-pv.c: Likewise.
6782         * lib/argp-pvh.c: Likewise.
6783         * lib/argp-xinl.c: Likewise.
6784         * lib/argp.h: Likewise.
6785         * lib/at-func.c: Likewise.
6786         * lib/atanl.c: Likewise.
6787         * lib/backupfile.c: Likewise.
6788         * lib/backupfile.h: Likewise.
6789         * lib/basename.c: Likewise.
6790         * lib/binary-io.h: Likewise.
6791         * lib/byteswap.in.h: Likewise.
6792         * lib/c-stack.c: Likewise.
6793         * lib/c-stack.h: Likewise.
6794         * lib/c-strcasestr.c: Likewise.
6795         * lib/c-strcasestr.h: Likewise.
6796         * lib/c-strstr.c: Likewise.
6797         * lib/c-strstr.h: Likewise.
6798         * lib/c-strtod.c: Likewise.
6799         * lib/calloc.c: Likewise.
6800         * lib/canon-host.c: Likewise.
6801         * lib/canon-host.h: Likewise.
6802         * lib/canonicalize-lgpl.c: Likewise.
6803         * lib/canonicalize.c: Likewise.
6804         * lib/canonicalize.h: Likewise.
6805         * lib/ceil.c: Likewise.
6806         * lib/ceilf.c: Likewise.
6807         * lib/ceill.c: Likewise.
6808         * lib/chdir-long.c: Likewise.
6809         * lib/chdir-long.h: Likewise.
6810         * lib/chdir-safer.c: Likewise.
6811         * lib/chdir-safer.h: Likewise.
6812         * lib/chown.c: Likewise.
6813         * lib/classpath.c: Likewise.
6814         * lib/classpath.h: Likewise.
6815         * lib/clean-temp.c: Likewise.
6816         * lib/clean-temp.h: Likewise.
6817         * lib/cloexec.c: Likewise.
6818         * lib/close-stream.c: Likewise.
6819         * lib/closein.c: Likewise.
6820         * lib/closein.h: Likewise.
6821         * lib/closeout.c: Likewise.
6822         * lib/closeout.h: Likewise.
6823         * lib/concat-filename.c: Likewise.
6824         * lib/copy-file.c: Likewise.
6825         * lib/copy-file.h: Likewise.
6826         * lib/count-one-bits.h: Likewise.
6827         * lib/crc.c: Likewise.
6828         * lib/crc.h: Likewise.
6829         * lib/creat-safer.c: Likewise.
6830         * lib/csharpcomp.c: Likewise.
6831         * lib/csharpcomp.h: Likewise.
6832         * lib/csharpexec.c: Likewise.
6833         * lib/csharpexec.h: Likewise.
6834         * lib/cycle-check.c: Likewise.
6835         * lib/cycle-check.h: Likewise.
6836         * lib/diacrit.c: Likewise.
6837         * lib/diacrit.h: Likewise.
6838         * lib/diffseq.h: Likewise.
6839         * lib/dirchownmod.c: Likewise.
6840         * lib/dirent.in.h: Likewise.
6841         * lib/dirfd.c: Likewise.
6842         * lib/dirfd.h: Likewise.
6843         * lib/dirname.c: Likewise.
6844         * lib/dirname.h: Likewise.
6845         * lib/dummy.c: Likewise.
6846         * lib/dup-safer.c: Likewise.
6847         * lib/dup2.c: Likewise.
6848         * lib/eealloc.h: Likewise.
6849         * lib/error.c: Likewise.
6850         * lib/error.h: Likewise.
6851         * lib/euidaccess.c: Likewise.
6852         * lib/exclude.c: Likewise.
6853         * lib/exclude.h: Likewise.
6854         * lib/execute.c: Likewise.
6855         * lib/execute.h: Likewise.
6856         * lib/exitfail.c: Likewise.
6857         * lib/exitfail.h: Likewise.
6858         * lib/expl.c: Likewise.
6859         * lib/fatal-signal.c: Likewise.
6860         * lib/fatal-signal.h: Likewise.
6861         * lib/fbufmode.c: Likewise.
6862         * lib/fbufmode.h: Likewise.
6863         * lib/fchdir.c: Likewise.
6864         * lib/fchmodat.c: Likewise.
6865         * lib/fchownat.c: Likewise.
6866         * lib/fcntl--.h: Likewise.
6867         * lib/fcntl-safer.h: Likewise.
6868         * lib/fcntl.in.h: Likewise.
6869         * lib/fd-safer.c: Likewise.
6870         * lib/fflush.c: Likewise.
6871         * lib/file-has-acl.c: Likewise.
6872         * lib/file-set.c: Likewise.
6873         * lib/file-type.c: Likewise.
6874         * lib/file-type.h: Likewise.
6875         * lib/fileblocks.c: Likewise.
6876         * lib/filemode.c: Likewise.
6877         * lib/filemode.h: Likewise.
6878         * lib/filename.h: Likewise.
6879         * lib/filenamecat.c: Likewise.
6880         * lib/filenamecat.h: Likewise.
6881         * lib/findprog.c: Likewise.
6882         * lib/findprog.h: Likewise.
6883         * lib/float.in.h: Likewise.
6884         * lib/floor.c: Likewise.
6885         * lib/floorf.c: Likewise.
6886         * lib/floorl.c: Likewise.
6887         * lib/fopen-safer.c: Likewise.
6888         * lib/fopen.c: Likewise.
6889         * lib/fpending.c: Likewise.
6890         * lib/fpending.h: Likewise.
6891         * lib/fprintf.c: Likewise.
6892         * lib/fprintftime.h: Likewise.
6893         * lib/fpucw.h: Likewise.
6894         * lib/fpurge.c: Likewise.
6895         * lib/fpurge.h: Likewise.
6896         * lib/freadable.c: Likewise.
6897         * lib/freadable.h: Likewise.
6898         * lib/freadahead.c: Likewise.
6899         * lib/freadahead.h: Likewise.
6900         * lib/freading.c: Likewise.
6901         * lib/freading.h: Likewise.
6902         * lib/free.c: Likewise.
6903         * lib/freopen.c: Likewise.
6904         * lib/frexp.c: Likewise.
6905         * lib/frexpl.c: Likewise.
6906         * lib/fseek.c: Likewise.
6907         * lib/fseterr.c: Likewise.
6908         * lib/fseterr.h: Likewise.
6909         * lib/fstatat.c: Likewise.
6910         * lib/fstrcmp.c: Likewise.
6911         * lib/fstrcmp.h: Likewise.
6912         * lib/fsusage.c: Likewise.
6913         * lib/fsusage.h: Likewise.
6914         * lib/ftell.c: Likewise.
6915         * lib/ftello.c: Likewise.
6916         * lib/fts-cycle.c: Likewise.
6917         * lib/fts.c: Likewise.
6918         * lib/fts_.h: Likewise.
6919         * lib/full-read.c: Likewise.
6920         * lib/full-read.h: Likewise.
6921         * lib/full-write.c: Likewise.
6922         * lib/full-write.h: Likewise.
6923         * lib/fwritable.c: Likewise.
6924         * lib/fwritable.h: Likewise.
6925         * lib/fwriteerror.c: Likewise.
6926         * lib/fwriteerror.h: Likewise.
6927         * lib/fwriting.c: Likewise.
6928         * lib/fwriting.h: Likewise.
6929         * lib/gcd.c: Likewise.
6930         * lib/gcd.h: Likewise.
6931         * lib/getcwd.c: Likewise.
6932         * lib/getdate.h: Likewise.
6933         * lib/getdate.y: Likewise.
6934         * lib/getdomainname.c: Likewise.
6935         * lib/getdomainname.h: Likewise.
6936         * lib/getgroups.c: Likewise.
6937         * lib/gethostname.c: Likewise.
6938         * lib/gethrxtime.c: Likewise.
6939         * lib/gethrxtime.h: Likewise.
6940         * lib/getloadavg.c: Likewise.
6941         * lib/getndelim2.c: Likewise.
6942         * lib/getndelim2.h: Likewise.
6943         * lib/getnline.c: Likewise.
6944         * lib/getnline.h: Likewise.
6945         * lib/getopt.c: Likewise.
6946         * lib/getopt.in.h: Likewise.
6947         * lib/getopt1.c: Likewise.
6948         * lib/getopt_int.h: Likewise.
6949         * lib/getpagesize.h: Likewise.
6950         * lib/getsubopt.c: Likewise.
6951         * lib/gettime.c: Likewise.
6952         * lib/getugroups.c: Likewise.
6953         * lib/getugroups.h: Likewise.
6954         * lib/getusershell.c: Likewise.
6955         * lib/gl_anyavltree_list1.h: Likewise.
6956         * lib/gl_anyavltree_list2.h: Likewise.
6957         * lib/gl_anyhash_list1.h: Likewise.
6958         * lib/gl_anyhash_list2.h: Likewise.
6959         * lib/gl_anylinked_list1.h: Likewise.
6960         * lib/gl_anylinked_list2.h: Likewise.
6961         * lib/gl_anyrbtree_list1.h: Likewise.
6962         * lib/gl_anyrbtree_list2.h: Likewise.
6963         * lib/gl_anytree_list1.h: Likewise.
6964         * lib/gl_anytree_list2.h: Likewise.
6965         * lib/gl_anytree_oset.h: Likewise.
6966         * lib/gl_anytreehash_list1.h: Likewise.
6967         * lib/gl_anytreehash_list2.h: Likewise.
6968         * lib/gl_array_list.c: Likewise.
6969         * lib/gl_array_list.h: Likewise.
6970         * lib/gl_array_oset.c: Likewise.
6971         * lib/gl_array_oset.h: Likewise.
6972         * lib/gl_avltree_list.c: Likewise.
6973         * lib/gl_avltree_list.h: Likewise.
6974         * lib/gl_avltree_oset.c: Likewise.
6975         * lib/gl_avltree_oset.h: Likewise.
6976         * lib/gl_avltreehash_list.c: Likewise.
6977         * lib/gl_avltreehash_list.h: Likewise.
6978         * lib/gl_carray_list.c: Likewise.
6979         * lib/gl_carray_list.h: Likewise.
6980         * lib/gl_linked_list.c: Likewise.
6981         * lib/gl_linked_list.h: Likewise.
6982         * lib/gl_linkedhash_list.c: Likewise.
6983         * lib/gl_linkedhash_list.h: Likewise.
6984         * lib/gl_list.c: Likewise.
6985         * lib/gl_list.h: Likewise.
6986         * lib/gl_oset.c: Likewise.
6987         * lib/gl_oset.h: Likewise.
6988         * lib/gl_rbtree_list.c: Likewise.
6989         * lib/gl_rbtree_list.h: Likewise.
6990         * lib/gl_rbtree_oset.c: Likewise.
6991         * lib/gl_rbtree_oset.h: Likewise.
6992         * lib/gl_rbtreehash_list.c: Likewise.
6993         * lib/gl_rbtreehash_list.h: Likewise.
6994         * lib/gl_sublist.c: Likewise.
6995         * lib/gl_sublist.h: Likewise.
6996         * lib/group-member.c: Likewise.
6997         * lib/group-member.h: Likewise.
6998         * lib/hard-locale.c: Likewise.
6999         * lib/hard-locale.h: Likewise.
7000         * lib/hash-pjw.c: Likewise.
7001         * lib/hash-pjw.h: Likewise.
7002         * lib/hash-triple.c: Likewise.
7003         * lib/hash.c: Likewise.
7004         * lib/hash.h: Likewise.
7005         * lib/human.c: Likewise.
7006         * lib/human.h: Likewise.
7007         * lib/i-ring.c: Likewise.
7008         * lib/i-ring.h: Likewise.
7009         * lib/idcache.c: Likewise.
7010         * lib/imaxabs.c: Likewise.
7011         * lib/imaxdiv.c: Likewise.
7012         * lib/inet_pton.c: Likewise.
7013         * lib/inet_pton.h: Likewise.
7014         * lib/intprops.h: Likewise.
7015         * lib/inttostr.c: Likewise.
7016         * lib/inttostr.h: Likewise.
7017         * lib/inttypes.in.h: Likewise.
7018         * lib/isapipe.c: Likewise.
7019         * lib/isdir.c: Likewise.
7020         * lib/isnan.c: Likewise.
7021         * lib/isnan.h: Likewise.
7022         * lib/isnanf.c: Likewise.
7023         * lib/isnanf.h: Likewise.
7024         * lib/isnanl-nolibm.h: Likewise.
7025         * lib/isnanl.c: Likewise.
7026         * lib/isnanl.h: Likewise.
7027         * lib/javacomp.c: Likewise.
7028         * lib/javacomp.h: Likewise.
7029         * lib/javaexec.c: Likewise.
7030         * lib/javaexec.h: Likewise.
7031         * lib/javaversion.c: Likewise.
7032         * lib/javaversion.h: Likewise.
7033         * lib/javaversion.java: Likewise.
7034         * lib/lbrkprop.h: Likewise.
7035         * lib/lchmod.h: Likewise.
7036         * lib/lchown.c: Likewise.
7037         * lib/ldexpl.c: Likewise.
7038         * lib/linebreak.c: Likewise.
7039         * lib/linebreak.h: Likewise.
7040         * lib/linebuffer.c: Likewise.
7041         * lib/linebuffer.h: Likewise.
7042         * lib/locale.in.h: Likewise.
7043         * lib/logl.c: Likewise.
7044         * lib/long-options.c: Likewise.
7045         * lib/long-options.h: Likewise.
7046         * lib/lstat.c: Likewise.
7047         * lib/lstat.h: Likewise.
7048         * lib/math.in.h: Likewise.
7049         * lib/mbchar.c: Likewise.
7050         * lib/mbchar.h: Likewise.
7051         * lib/mbfile.h: Likewise.
7052         * lib/mbiter.h: Likewise.
7053         * lib/mbscasecmp.c: Likewise.
7054         * lib/mbscasestr.c: Likewise.
7055         * lib/mbschr.c: Likewise.
7056         * lib/mbscspn.c: Likewise.
7057         * lib/mbslen.c: Likewise.
7058         * lib/mbsncasecmp.c: Likewise.
7059         * lib/mbsnlen.c: Likewise.
7060         * lib/mbspbrk.c: Likewise.
7061         * lib/mbspcasecmp.c: Likewise.
7062         * lib/mbsrchr.c: Likewise.
7063         * lib/mbssep.c: Likewise.
7064         * lib/mbsspn.c: Likewise.
7065         * lib/mbsstr.c: Likewise.
7066         * lib/mbstok_r.c: Likewise.
7067         * lib/mbswidth.c: Likewise.
7068         * lib/mbswidth.h: Likewise.
7069         * lib/mbuiter.h: Likewise.
7070         * lib/memcasecmp.c: Likewise.
7071         * lib/memcasecmp.h: Likewise.
7072         * lib/memchr.c: Likewise.
7073         * lib/memcmp.c: Likewise.
7074         * lib/memcoll.c: Likewise.
7075         * lib/memcoll.h: Likewise.
7076         * lib/memcpy.c: Likewise.
7077         * lib/memrchr.c: Likewise.
7078         * lib/mkancesdirs.c: Likewise.
7079         * lib/mkdir-p.c: Likewise.
7080         * lib/mkdir-p.h: Likewise.
7081         * lib/mkdir.c: Likewise.
7082         * lib/mkdirat.c: Likewise.
7083         * lib/mkdtemp.c: Likewise.
7084         * lib/mkstemp-safer.c: Likewise.
7085         * lib/mkstemp.c: Likewise.
7086         * lib/modechange.c: Likewise.
7087         * lib/modechange.h: Likewise.
7088         * lib/mountlist.c: Likewise.
7089         * lib/mountlist.h: Likewise.
7090         * lib/mpsort.c: Likewise.
7091         * lib/nanosleep.c: Likewise.
7092         * lib/obstack.c: Likewise.
7093         * lib/obstack.h: Likewise.
7094         * lib/open-safer.c: Likewise.
7095         * lib/open.c: Likewise.
7096         * lib/openat-die.c: Likewise.
7097         * lib/openat-priv.h: Likewise.
7098         * lib/openat-proc.c: Likewise.
7099         * lib/openat.c: Likewise.
7100         * lib/openat.h: Likewise.
7101         * lib/pagealign_alloc.c: Likewise.
7102         * lib/pagealign_alloc.h: Likewise.
7103         * lib/physmem.c: Likewise.
7104         * lib/physmem.h: Likewise.
7105         * lib/pipe-safer.c: Likewise.
7106         * lib/pipe.c: Likewise.
7107         * lib/pipe.h: Likewise.
7108         * lib/posixtm.c: Likewise.
7109         * lib/posixtm.h: Likewise.
7110         * lib/posixver.c: Likewise.
7111         * lib/printf-frexp.c: Likewise.
7112         * lib/printf-frexp.h: Likewise.
7113         * lib/printf-frexpl.c: Likewise.
7114         * lib/printf-frexpl.h: Likewise.
7115         * lib/printf.c: Likewise.
7116         * lib/progname.c: Likewise.
7117         * lib/progname.h: Likewise.
7118         * lib/progreloc.c: Likewise.
7119         * lib/putenv.c: Likewise.
7120         * lib/quote.c: Likewise.
7121         * lib/quote.h: Likewise.
7122         * lib/quotearg.c: Likewise.
7123         * lib/quotearg.h: Likewise.
7124         * lib/raise.c: Likewise.
7125         * lib/readline.c: Likewise.
7126         * lib/readline.h: Likewise.
7127         * lib/readlink.c: Likewise.
7128         * lib/readtokens.c: Likewise.
7129         * lib/readtokens.h: Likewise.
7130         * lib/readtokens0.c: Likewise.
7131         * lib/readtokens0.h: Likewise.
7132         * lib/readutmp.c: Likewise.
7133         * lib/readutmp.h: Likewise.
7134         * lib/realloc.c: Likewise.
7135         * lib/relocwrapper.c: Likewise.
7136         * lib/rename-dest-slash.c: Likewise.
7137         * lib/rename.c: Likewise.
7138         * lib/rmdir.c: Likewise.
7139         * lib/rpmatch.c: Likewise.
7140         * lib/safe-read.c: Likewise.
7141         * lib/safe-read.h: Likewise.
7142         * lib/safe-write.c: Likewise.
7143         * lib/safe-write.h: Likewise.
7144         * lib/same-inode.h: Likewise.
7145         * lib/same.c: Likewise.
7146         * lib/same.h: Likewise.
7147         * lib/save-cwd.c: Likewise.
7148         * lib/save-cwd.h: Likewise.
7149         * lib/savedir.c: Likewise.
7150         * lib/savedir.h: Likewise.
7151         * lib/savewd.c: Likewise.
7152         * lib/savewd.h: Likewise.
7153         * lib/search.in.h: Likewise.
7154         * lib/setenv.c: Likewise.
7155         * lib/setenv.h: Likewise.
7156         * lib/settime.c: Likewise.
7157         * lib/sh-quote.c: Likewise.
7158         * lib/sh-quote.h: Likewise.
7159         * lib/sig2str.c: Likewise.
7160         * lib/sig2str.h: Likewise.
7161         * lib/signal.in.h: Likewise.
7162         * lib/signbitd.c: Likewise.
7163         * lib/signbitf.c: Likewise.
7164         * lib/signbitl.c: Likewise.
7165         * lib/sigprocmask.c: Likewise.
7166         * lib/sincosl.c: Likewise.
7167         * lib/sleep.c: Likewise.
7168         * lib/sprintf.c: Likewise.
7169         * lib/sqrtl.c: Likewise.
7170         * lib/stat-time.h: Likewise.
7171         * lib/stdio--.h: Likewise.
7172         * lib/stdio-safer.h: Likewise.
7173         * lib/stdlib--.h: Likewise.
7174         * lib/stdlib-safer.h: Likewise.
7175         * lib/stdlib.in.h: Likewise.
7176         * lib/stpcpy.c: Likewise.
7177         * lib/stpncpy.c: Likewise.
7178         * lib/strchrnul.c: Likewise.
7179         * lib/strcspn.c: Likewise.
7180         * lib/strerror.c: Likewise.
7181         * lib/strftime.c: Likewise.
7182         * lib/strftime.h: Likewise.
7183         * lib/striconveh.c: Likewise.
7184         * lib/striconveh.h: Likewise.
7185         * lib/striconveha.c: Likewise.
7186         * lib/striconveha.h: Likewise.
7187         * lib/stripslash.c: Likewise.
7188         * lib/strnlen1.c: Likewise.
7189         * lib/strnlen1.h: Likewise.
7190         * lib/strtod.c: Likewise.
7191         * lib/strtoimax.c: Likewise.
7192         * lib/strtok_r.c: Likewise.
7193         * lib/strtol.c: Likewise.
7194         * lib/strtoll.c: Likewise.
7195         * lib/strtoul.c: Likewise.
7196         * lib/strtoull.c: Likewise.
7197         * lib/sysexits.in.h: Likewise.
7198         * lib/tempname.c: Likewise.
7199         * lib/tempname.h: Likewise.
7200         * lib/timespec.h: Likewise.
7201         * lib/tls.c: Likewise.
7202         * lib/tls.h: Likewise.
7203         * lib/tmpdir.c: Likewise.
7204         * lib/tmpdir.h: Likewise.
7205         * lib/tmpfile-safer.c: Likewise.
7206         * lib/tmpfile.c: Likewise.
7207         * lib/trigl.c: Likewise.
7208         * lib/trigl.h: Likewise.
7209         * lib/trim.c: Likewise.
7210         * lib/trim.h: Likewise.
7211         * lib/trunc.c: Likewise.
7212         * lib/truncf.c: Likewise.
7213         * lib/truncl.c: Likewise.
7214         * lib/tsearch.c: Likewise.
7215         * lib/unicodeio.c: Likewise.
7216         * lib/unicodeio.h: Likewise.
7217         * lib/unistd--.h: Likewise.
7218         * lib/unistd-safer.h: Likewise.
7219         * lib/unistdio/ulc-fprintf.c: Likewise.
7220         * lib/unistdio/ulc-vfprintf.c: Likewise.
7221         * lib/unlinkdir.c: Likewise.
7222         * lib/unlinkdir.h: Likewise.
7223         * lib/unlocked-io.h: Likewise.
7224         * lib/unsetenv.c: Likewise.
7225         * lib/userspec.c: Likewise.
7226         * lib/utime.c: Likewise.
7227         * lib/utimecmp.c: Likewise.
7228         * lib/utimecmp.h: Likewise.
7229         * lib/utimens.c: Likewise.
7230         * lib/verify.h: Likewise.
7231         * lib/verror.c: Likewise.
7232         * lib/verror.h: Likewise.
7233         * lib/version-etc-fsf.c: Likewise.
7234         * lib/version-etc.c: Likewise.
7235         * lib/version-etc.h: Likewise.
7236         * lib/vfprintf.c: Likewise.
7237         * lib/vprintf.c: Likewise.
7238         * lib/vsprintf.c: Likewise.
7239         * lib/w32spawn.h: Likewise.
7240         * lib/wait-process.c: Likewise.
7241         * lib/wait-process.h: Likewise.
7242         * lib/wcwidth.c: Likewise.
7243         * lib/write-any-file.c: Likewise.
7244         * lib/xalloc-die.c: Likewise.
7245         * lib/xalloc.h: Likewise.
7246         * lib/xasprintf.c: Likewise.
7247         * lib/xgetcwd.c: Likewise.
7248         * lib/xgetcwd.h: Likewise.
7249         * lib/xgetdomainname.c: Likewise.
7250         * lib/xgetdomainname.h: Likewise.
7251         * lib/xgethostname.c: Likewise.
7252         * lib/xmalloc.c: Likewise.
7253         * lib/xmalloca.c: Likewise.
7254         * lib/xmalloca.h: Likewise.
7255         * lib/xmemcoll.c: Likewise.
7256         * lib/xnanosleep.c: Likewise.
7257         * lib/xreadlink.c: Likewise.
7258         * lib/xreadlink.h: Likewise.
7259         * lib/xsetenv.c: Likewise.
7260         * lib/xsetenv.h: Likewise.
7261         * lib/xstriconv.c: Likewise.
7262         * lib/xstriconv.h: Likewise.
7263         * lib/xstrndup.c: Likewise.
7264         * lib/xstrndup.h: Likewise.
7265         * lib/xstrtod.c: Likewise.
7266         * lib/xstrtod.h: Likewise.
7267         * lib/xstrtol-error.c: Likewise.
7268         * lib/xstrtol.c: Likewise.
7269         * lib/xstrtol.h: Likewise.
7270         * lib/xtime.h: Likewise.
7271         * lib/xvasprintf.c: Likewise.
7272         * lib/xvasprintf.h: Likewise.
7273         * lib/yesno.c: Likewise.
7274         * lib/yesno.h: Likewise.
7275         * posix-modules: Likewise.
7276         * tests/test-alloca-opt.c: Likewise.
7277         * tests/test-arcfour.c: Likewise.
7278         * tests/test-arctwo.c: Likewise.
7279         * tests/test-argmatch.c: Likewise.
7280         * tests/test-argp-2.sh: Likewise.
7281         * tests/test-argp.c: Likewise.
7282         * tests/test-arpa_inet.c: Likewise.
7283         * tests/test-array_list.c: Likewise.
7284         * tests/test-array_oset.c: Likewise.
7285         * tests/test-atexit.c: Likewise.
7286         * tests/test-avltree_list.c: Likewise.
7287         * tests/test-avltree_oset.c: Likewise.
7288         * tests/test-avltreehash_list.c: Likewise.
7289         * tests/test-base64.c: Likewise.
7290         * tests/test-binary-io.c: Likewise.
7291         * tests/test-byteswap.c: Likewise.
7292         * tests/test-c-ctype.c: Likewise.
7293         * tests/test-c-strcasecmp.c: Likewise.
7294         * tests/test-c-strcasestr.c: Likewise.
7295         * tests/test-c-strncasecmp.c: Likewise.
7296         * tests/test-c-strstr.c: Likewise.
7297         * tests/test-canonicalize-lgpl.c: Likewise.
7298         * tests/test-canonicalize.c: Likewise.
7299         * tests/test-carray_list.c: Likewise.
7300         * tests/test-ceilf.c: Likewise.
7301         * tests/test-ceill.c: Likewise.
7302         * tests/test-count-one-bits.c: Likewise.
7303         * tests/test-crc.c: Likewise.
7304         * tests/test-dirname.c: Likewise.
7305         * tests/test-fbufmode.c: Likewise.
7306         * tests/test-fcntl.c: Likewise.
7307         * tests/test-fflush.c: Likewise.
7308         * tests/test-floorf.c: Likewise.
7309         * tests/test-floorl.c: Likewise.
7310         * tests/test-fopen.c: Likewise.
7311         * tests/test-fprintf-posix.c: Likewise.
7312         * tests/test-fprintf-posix.h: Likewise.
7313         * tests/test-fpurge.c: Likewise.
7314         * tests/test-freadable.c: Likewise.
7315         * tests/test-freadahead.c: Likewise.
7316         * tests/test-freading.c: Likewise.
7317         * tests/test-freopen.c: Likewise.
7318         * tests/test-frexp.c: Likewise.
7319         * tests/test-frexpl.c: Likewise.
7320         * tests/test-fseek.c: Likewise.
7321         * tests/test-fseeko.c: Likewise.
7322         * tests/test-fseterr.c: Likewise.
7323         * tests/test-fstrcmp.c: Likewise.
7324         * tests/test-ftell.c: Likewise.
7325         * tests/test-ftello.c: Likewise.
7326         * tests/test-fwritable.c: Likewise.
7327         * tests/test-fwriting.c: Likewise.
7328         * tests/test-getaddrinfo.c: Likewise.
7329         * tests/test-getpass.c: Likewise.
7330         * tests/test-gettimeofday.c: Likewise.
7331         * tests/test-hmac-md5.c: Likewise.
7332         * tests/test-hmac-sha1.c: Likewise.
7333         * tests/test-iconv.c: Likewise.
7334         * tests/test-iconvme.c: Likewise.
7335         * tests/test-inttypes.c: Likewise.
7336         * tests/test-isnan.c: Likewise.
7337         * tests/test-isnanf.c: Likewise.
7338         * tests/test-isnanl-nolibm.c: Likewise.
7339         * tests/test-isnanl.c: Likewise.
7340         * tests/test-isnanl.h: Likewise.
7341         * tests/test-ldexpl.c: Likewise.
7342         * tests/test-linked_list.c: Likewise.
7343         * tests/test-linkedhash_list.c: Likewise.
7344         * tests/test-locale.c: Likewise.
7345         * tests/test-localename.c: Likewise.
7346         * tests/test-lock.c: Likewise.
7347         * tests/test-lseek.c: Likewise.
7348         * tests/test-malloca.c: Likewise.
7349         * tests/test-math.c: Likewise.
7350         * tests/test-mbscasecmp.c: Likewise.
7351         * tests/test-mbscasestr1.c: Likewise.
7352         * tests/test-mbscasestr2.c: Likewise.
7353         * tests/test-mbscasestr3.c: Likewise.
7354         * tests/test-mbscasestr4.c: Likewise.
7355         * tests/test-mbschr.c: Likewise.
7356         * tests/test-mbscspn.c: Likewise.
7357         * tests/test-mbsncasecmp.c: Likewise.
7358         * tests/test-mbspbrk.c: Likewise.
7359         * tests/test-mbspcasecmp.c: Likewise.
7360         * tests/test-mbsrchr.c: Likewise.
7361         * tests/test-mbsspn.c: Likewise.
7362         * tests/test-mbsstr1.c: Likewise.
7363         * tests/test-mbsstr2.c: Likewise.
7364         * tests/test-mbsstr3.c: Likewise.
7365         * tests/test-md5.c: Likewise.
7366         * tests/test-memmem.c: Likewise.
7367         * tests/test-netinet_in.c: Likewise.
7368         * tests/test-open.c: Likewise.
7369         * tests/test-printf-frexp.c: Likewise.
7370         * tests/test-printf-frexpl.c: Likewise.
7371         * tests/test-printf-posix.c: Likewise.
7372         * tests/test-printf-posix.h: Likewise.
7373         * tests/test-rbtree_list.c: Likewise.
7374         * tests/test-rbtree_oset.c: Likewise.
7375         * tests/test-rbtreehash_list.c: Likewise.
7376         * tests/test-read-file.c: Likewise.
7377         * tests/test-rijndael.c: Likewise.
7378         * tests/test-search.c: Likewise.
7379         * tests/test-signbit.c: Likewise.
7380         * tests/test-sleep.c: Likewise.
7381         * tests/test-snprintf-posix.c: Likewise.
7382         * tests/test-snprintf-posix.h: Likewise.
7383         * tests/test-snprintf.c: Likewise.
7384         * tests/test-sprintf-posix.c: Likewise.
7385         * tests/test-sprintf-posix.h: Likewise.
7386         * tests/test-stat-time.c: Likewise.
7387         * tests/test-stdbool.c: Likewise.
7388         * tests/test-stdint.c: Likewise.
7389         * tests/test-stdio.c: Likewise.
7390         * tests/test-stdlib.c: Likewise.
7391         * tests/test-stpncpy.c: Likewise.
7392         * tests/test-strcasestr.c: Likewise.
7393         * tests/test-striconv.c: Likewise.
7394         * tests/test-striconveh.c: Likewise.
7395         * tests/test-striconveha.c: Likewise.
7396         * tests/test-string.c: Likewise.
7397         * tests/test-sys_select.c: Likewise.
7398         * tests/test-sys_socket.c: Likewise.
7399         * tests/test-sys_stat.c: Likewise.
7400         * tests/test-sys_time.c: Likewise.
7401         * tests/test-sysexits.c: Likewise.
7402         * tests/test-time.c: Likewise.
7403         * tests/test-tls.c: Likewise.
7404         * tests/test-trunc.c: Likewise.
7405         * tests/test-truncf.c: Likewise.
7406         * tests/test-truncl.c: Likewise.
7407         * tests/test-unistd.c: Likewise.
7408         * tests/test-vasnprintf-posix.c: Likewise.
7409         * tests/test-vasnprintf-posix2.c: Likewise.
7410         * tests/test-vasnprintf.c: Likewise.
7411         * tests/test-vasprintf-posix.c: Likewise.
7412         * tests/test-vasprintf.c: Likewise.
7413         * tests/test-verify.c: Likewise.
7414         * tests/test-vfprintf-posix.c: Likewise.
7415         * tests/test-vprintf-posix.c: Likewise.
7416         * tests/test-vsnprintf-posix.c: Likewise.
7417         * tests/test-vsnprintf.c: Likewise.
7418         * tests/test-vsprintf-posix.c: Likewise.
7419         * tests/test-wchar.c: Likewise.
7420         * tests/test-wctype.c: Likewise.
7421         * tests/test-wcwidth.c: Likewise.
7422         * tests/test-xstrtol.c: Likewise.
7423         * tests/test-xvasprintf.c: Likewise.
7424         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
7425         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
7426         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
7427         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
7428         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
7429         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
7430         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
7431         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
7432         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
7433         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
7434         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
7435         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
7436         * tests/uniname/test-uninames.c: Likewise.
7437         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
7438         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
7439         * tests/unistdio/test-u16-printf1.h: Likewise.
7440         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
7441         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
7442         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
7443         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
7444         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
7445         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
7446         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
7447         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
7448         * tests/unistdio/test-u32-printf1.h: Likewise.
7449         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
7450         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
7451         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
7452         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
7453         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
7454         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
7455         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
7456         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
7457         * tests/unistdio/test-u8-printf1.h: Likewise.
7458         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
7459         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
7460         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
7461         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
7462         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
7463         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
7464         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
7465         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
7466         * tests/unistdio/test-ulc-printf1.h: Likewise.
7467         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
7468         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
7469         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
7470         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
7471         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
7472         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
7473         * tests/uniwidth/test-u16-strwidth.c: Likewise.
7474         * tests/uniwidth/test-u16-width.c: Likewise.
7475         * tests/uniwidth/test-u32-strwidth.c: Likewise.
7476         * tests/uniwidth/test-u32-width.c: Likewise.
7477         * tests/uniwidth/test-u8-strwidth.c: Likewise.
7478         * tests/uniwidth/test-u8-width.c: Likewise.
7479         * tests/uniwidth/test-uc_width.c: Likewise.
7480         * config/srclist-update: Likewise.
7481         (fixlicense): Update to GPLv3+.
7482
7483         Change copyright notice from LGPLv2.1+ to LGPLv3+.
7484         * tests/test-tsearch.c: Change copyright notice.
7485
7486         Change copyright notice from LGPLv2.0+ to LGPLv3+.
7487         * lib/c-strcaseeq.h: Change copyright notice.
7488         * lib/streq.h: Likewise.
7489         * lib/uniconv.h: Likewise.
7490         * lib/uniconv/u-conv-from-enc.h: Likewise.
7491         * lib/uniconv/u-conv-to-enc.h: Likewise.
7492         * lib/uniconv/u-strconv-from-enc.h: Likewise.
7493         * lib/uniconv/u-strconv-to-enc.h: Likewise.
7494         * lib/uniconv/u16-conv-from-enc.c: Likewise.
7495         * lib/uniconv/u16-conv-to-enc.c: Likewise.
7496         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
7497         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
7498         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
7499         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
7500         * lib/uniconv/u32-conv-from-enc.c: Likewise.
7501         * lib/uniconv/u32-conv-to-enc.c: Likewise.
7502         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
7503         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
7504         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
7505         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
7506         * lib/uniconv/u8-conv-from-enc.c: Likewise.
7507         * lib/uniconv/u8-conv-to-enc.c: Likewise.
7508         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
7509         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
7510         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
7511         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
7512         * lib/uniname.h: Likewise.
7513         * lib/uniname/uniname.c: Likewise.
7514         * lib/unistdio.h: Likewise.
7515         * lib/unistdio/u-asnprintf.h: Likewise.
7516         * lib/unistdio/u-asprintf.h: Likewise.
7517         * lib/unistdio/u-printf-args.c: Likewise.
7518         * lib/unistdio/u-printf-args.h: Likewise.
7519         * lib/unistdio/u-printf-parse.h: Likewise.
7520         * lib/unistdio/u-snprintf.h: Likewise.
7521         * lib/unistdio/u-sprintf.h: Likewise.
7522         * lib/unistdio/u-vasprintf.h: Likewise.
7523         * lib/unistdio/u-vsnprintf.h: Likewise.
7524         * lib/unistdio/u-vsprintf.h: Likewise.
7525         * lib/unistdio/u16-asnprintf.c: Likewise.
7526         * lib/unistdio/u16-asprintf.c: Likewise.
7527         * lib/unistdio/u16-printf-parse.c: Likewise.
7528         * lib/unistdio/u16-snprintf.c: Likewise.
7529         * lib/unistdio/u16-sprintf.c: Likewise.
7530         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
7531         * lib/unistdio/u16-u16-asprintf.c: Likewise.
7532         * lib/unistdio/u16-u16-snprintf.c: Likewise.
7533         * lib/unistdio/u16-u16-sprintf.c: Likewise.
7534         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
7535         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
7536         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
7537         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
7538         * lib/unistdio/u16-vasnprintf.c: Likewise.
7539         * lib/unistdio/u16-vasprintf.c: Likewise.
7540         * lib/unistdio/u16-vsnprintf.c: Likewise.
7541         * lib/unistdio/u16-vsprintf.c: Likewise.
7542         * lib/unistdio/u32-asnprintf.c: Likewise.
7543         * lib/unistdio/u32-asprintf.c: Likewise.
7544         * lib/unistdio/u32-printf-parse.c: Likewise.
7545         * lib/unistdio/u32-snprintf.c: Likewise.
7546         * lib/unistdio/u32-sprintf.c: Likewise.
7547         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
7548         * lib/unistdio/u32-u32-asprintf.c: Likewise.
7549         * lib/unistdio/u32-u32-snprintf.c: Likewise.
7550         * lib/unistdio/u32-u32-sprintf.c: Likewise.
7551         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
7552         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
7553         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
7554         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
7555         * lib/unistdio/u32-vasnprintf.c: Likewise.
7556         * lib/unistdio/u32-vasprintf.c: Likewise.
7557         * lib/unistdio/u32-vsnprintf.c: Likewise.
7558         * lib/unistdio/u32-vsprintf.c: Likewise.
7559         * lib/unistdio/u8-asnprintf.c: Likewise.
7560         * lib/unistdio/u8-asprintf.c: Likewise.
7561         * lib/unistdio/u8-printf-parse.c: Likewise.
7562         * lib/unistdio/u8-snprintf.c: Likewise.
7563         * lib/unistdio/u8-sprintf.c: Likewise.
7564         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
7565         * lib/unistdio/u8-u8-asprintf.c: Likewise.
7566         * lib/unistdio/u8-u8-snprintf.c: Likewise.
7567         * lib/unistdio/u8-u8-sprintf.c: Likewise.
7568         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
7569         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
7570         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
7571         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
7572         * lib/unistdio/u8-vasnprintf.c: Likewise.
7573         * lib/unistdio/u8-vasprintf.c: Likewise.
7574         * lib/unistdio/u8-vsnprintf.c: Likewise.
7575         * lib/unistdio/u8-vsprintf.c: Likewise.
7576         * lib/unistdio/ulc-asnprintf.c: Likewise.
7577         * lib/unistdio/ulc-asprintf.c: Likewise.
7578         * lib/unistdio/ulc-printf-parse.c: Likewise.
7579         * lib/unistdio/ulc-snprintf.c: Likewise.
7580         * lib/unistdio/ulc-sprintf.c: Likewise.
7581         * lib/unistdio/ulc-vasnprintf.c: Likewise.
7582         * lib/unistdio/ulc-vasprintf.c: Likewise.
7583         * lib/unistdio/ulc-vsnprintf.c: Likewise.
7584         * lib/unistdio/ulc-vsprintf.c: Likewise.
7585         * lib/unistr.h: Likewise.
7586         * lib/unistr/u-cpy-alloc.h: Likewise.
7587         * lib/unistr/u-cpy.h: Likewise.
7588         * lib/unistr/u-endswith.h: Likewise.
7589         * lib/unistr/u-move.h: Likewise.
7590         * lib/unistr/u-set.h: Likewise.
7591         * lib/unistr/u-startswith.h: Likewise.
7592         * lib/unistr/u-stpcpy.h: Likewise.
7593         * lib/unistr/u-stpncpy.h: Likewise.
7594         * lib/unistr/u-strcat.h: Likewise.
7595         * lib/unistr/u-strcpy.h: Likewise.
7596         * lib/unistr/u-strcspn.h: Likewise.
7597         * lib/unistr/u-strdup.h: Likewise.
7598         * lib/unistr/u-strlen.h: Likewise.
7599         * lib/unistr/u-strncat.h: Likewise.
7600         * lib/unistr/u-strncpy.h: Likewise.
7601         * lib/unistr/u-strnlen.h: Likewise.
7602         * lib/unistr/u-strpbrk.h: Likewise.
7603         * lib/unistr/u-strspn.h: Likewise.
7604         * lib/unistr/u-strstr.h: Likewise.
7605         * lib/unistr/u-strtok.h: Likewise.
7606         * lib/unistr/u16-check.c: Likewise.
7607         * lib/unistr/u16-chr.c: Likewise.
7608         * lib/unistr/u16-cmp.c: Likewise.
7609         * lib/unistr/u16-cpy-alloc.c: Likewise.
7610         * lib/unistr/u16-cpy.c: Likewise.
7611         * lib/unistr/u16-endswith.c: Likewise.
7612         * lib/unistr/u16-mblen.c: Likewise.
7613         * lib/unistr/u16-mbsnlen.c: Likewise.
7614         * lib/unistr/u16-mbtouc-aux.c: Likewise.
7615         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
7616         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
7617         * lib/unistr/u16-mbtouc.c: Likewise.
7618         * lib/unistr/u16-mbtoucr.c: Likewise.
7619         * lib/unistr/u16-move.c: Likewise.
7620         * lib/unistr/u16-next.c: Likewise.
7621         * lib/unistr/u16-prev.c: Likewise.
7622         * lib/unistr/u16-set.c: Likewise.
7623         * lib/unistr/u16-startswith.c: Likewise.
7624         * lib/unistr/u16-stpcpy.c: Likewise.
7625         * lib/unistr/u16-stpncpy.c: Likewise.
7626         * lib/unistr/u16-strcat.c: Likewise.
7627         * lib/unistr/u16-strchr.c: Likewise.
7628         * lib/unistr/u16-strcmp.c: Likewise.
7629         * lib/unistr/u16-strcpy.c: Likewise.
7630         * lib/unistr/u16-strcspn.c: Likewise.
7631         * lib/unistr/u16-strdup.c: Likewise.
7632         * lib/unistr/u16-strlen.c: Likewise.
7633         * lib/unistr/u16-strmblen.c: Likewise.
7634         * lib/unistr/u16-strmbtouc.c: Likewise.
7635         * lib/unistr/u16-strncat.c: Likewise.
7636         * lib/unistr/u16-strncmp.c: Likewise.
7637         * lib/unistr/u16-strncpy.c: Likewise.
7638         * lib/unistr/u16-strnlen.c: Likewise.
7639         * lib/unistr/u16-strpbrk.c: Likewise.
7640         * lib/unistr/u16-strrchr.c: Likewise.
7641         * lib/unistr/u16-strspn.c: Likewise.
7642         * lib/unistr/u16-strstr.c: Likewise.
7643         * lib/unistr/u16-strtok.c: Likewise.
7644         * lib/unistr/u16-to-u32.c: Likewise.
7645         * lib/unistr/u16-to-u8.c: Likewise.
7646         * lib/unistr/u16-uctomb-aux.c: Likewise.
7647         * lib/unistr/u16-uctomb.c: Likewise.
7648         * lib/unistr/u32-check.c: Likewise.
7649         * lib/unistr/u32-chr.c: Likewise.
7650         * lib/unistr/u32-cmp.c: Likewise.
7651         * lib/unistr/u32-cpy-alloc.c: Likewise.
7652         * lib/unistr/u32-cpy.c: Likewise.
7653         * lib/unistr/u32-endswith.c: Likewise.
7654         * lib/unistr/u32-mblen.c: Likewise.
7655         * lib/unistr/u32-mbsnlen.c: Likewise.
7656         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
7657         * lib/unistr/u32-mbtouc.c: Likewise.
7658         * lib/unistr/u32-mbtoucr.c: Likewise.
7659         * lib/unistr/u32-move.c: Likewise.
7660         * lib/unistr/u32-next.c: Likewise.
7661         * lib/unistr/u32-prev.c: Likewise.
7662         * lib/unistr/u32-set.c: Likewise.
7663         * lib/unistr/u32-startswith.c: Likewise.
7664         * lib/unistr/u32-stpcpy.c: Likewise.
7665         * lib/unistr/u32-stpncpy.c: Likewise.
7666         * lib/unistr/u32-strcat.c: Likewise.
7667         * lib/unistr/u32-strchr.c: Likewise.
7668         * lib/unistr/u32-strcmp.c: Likewise.
7669         * lib/unistr/u32-strcpy.c: Likewise.
7670         * lib/unistr/u32-strcspn.c: Likewise.
7671         * lib/unistr/u32-strdup.c: Likewise.
7672         * lib/unistr/u32-strlen.c: Likewise.
7673         * lib/unistr/u32-strmblen.c: Likewise.
7674         * lib/unistr/u32-strmbtouc.c: Likewise.
7675         * lib/unistr/u32-strncat.c: Likewise.
7676         * lib/unistr/u32-strncmp.c: Likewise.
7677         * lib/unistr/u32-strncpy.c: Likewise.
7678         * lib/unistr/u32-strnlen.c: Likewise.
7679         * lib/unistr/u32-strpbrk.c: Likewise.
7680         * lib/unistr/u32-strrchr.c: Likewise.
7681         * lib/unistr/u32-strspn.c: Likewise.
7682         * lib/unistr/u32-strstr.c: Likewise.
7683         * lib/unistr/u32-strtok.c: Likewise.
7684         * lib/unistr/u32-to-u16.c: Likewise.
7685         * lib/unistr/u32-to-u8.c: Likewise.
7686         * lib/unistr/u32-uctomb.c: Likewise.
7687         * lib/unistr/u8-check.c: Likewise.
7688         * lib/unistr/u8-chr.c: Likewise.
7689         * lib/unistr/u8-cmp.c: Likewise.
7690         * lib/unistr/u8-cpy-alloc.c: Likewise.
7691         * lib/unistr/u8-cpy.c: Likewise.
7692         * lib/unistr/u8-endswith.c: Likewise.
7693         * lib/unistr/u8-mblen.c: Likewise.
7694         * lib/unistr/u8-mbsnlen.c: Likewise.
7695         * lib/unistr/u8-mbtouc-aux.c: Likewise.
7696         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
7697         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
7698         * lib/unistr/u8-mbtouc.c: Likewise.
7699         * lib/unistr/u8-mbtoucr.c: Likewise.
7700         * lib/unistr/u8-move.c: Likewise.
7701         * lib/unistr/u8-next.c: Likewise.
7702         * lib/unistr/u8-prev.c: Likewise.
7703         * lib/unistr/u8-set.c: Likewise.
7704         * lib/unistr/u8-startswith.c: Likewise.
7705         * lib/unistr/u8-stpcpy.c: Likewise.
7706         * lib/unistr/u8-stpncpy.c: Likewise.
7707         * lib/unistr/u8-strcat.c: Likewise.
7708         * lib/unistr/u8-strchr.c: Likewise.
7709         * lib/unistr/u8-strcmp.c: Likewise.
7710         * lib/unistr/u8-strcpy.c: Likewise.
7711         * lib/unistr/u8-strcspn.c: Likewise.
7712         * lib/unistr/u8-strdup.c: Likewise.
7713         * lib/unistr/u8-strlen.c: Likewise.
7714         * lib/unistr/u8-strmblen.c: Likewise.
7715         * lib/unistr/u8-strmbtouc.c: Likewise.
7716         * lib/unistr/u8-strncat.c: Likewise.
7717         * lib/unistr/u8-strncmp.c: Likewise.
7718         * lib/unistr/u8-strncpy.c: Likewise.
7719         * lib/unistr/u8-strnlen.c: Likewise.
7720         * lib/unistr/u8-strpbrk.c: Likewise.
7721         * lib/unistr/u8-strrchr.c: Likewise.
7722         * lib/unistr/u8-strspn.c: Likewise.
7723         * lib/unistr/u8-strstr.c: Likewise.
7724         * lib/unistr/u8-strtok.c: Likewise.
7725         * lib/unistr/u8-to-u16.c: Likewise.
7726         * lib/unistr/u8-to-u32.c: Likewise.
7727         * lib/unistr/u8-uctomb-aux.c: Likewise.
7728         * lib/unistr/u8-uctomb.c: Likewise.
7729         * lib/unitypes.h: Likewise.
7730         * lib/uniwidth.h: Likewise.
7731         * lib/uniwidth/cjk.h: Likewise.
7732         * lib/uniwidth/u16-strwidth.c: Likewise.
7733         * lib/uniwidth/u16-width.c: Likewise.
7734         * lib/uniwidth/u32-strwidth.c: Likewise.
7735         * lib/uniwidth/u32-width.c: Likewise.
7736         * lib/uniwidth/u8-strwidth.c: Likewise.
7737         * lib/uniwidth/u8-width.c: Likewise.
7738         * lib/uniwidth/width.c: Likewise.
7739
7740 2007-10-07  Bruno Haible  <bruno@clisp.org>
7741
7742         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
7743         The file is still under LGPL (see modules/inttypes).
7744
7745 2007-10-06  Bruno Haible  <bruno@clisp.org>
7746
7747         * modules/trunc (Dependencies): Add 'extensions'.
7748         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
7749         Reported by Ben Pfaff <blp@gnu.org>.
7750
7751 2007-10-06  Bruno Haible  <bruno@clisp.org>
7752
7753         * modules/freopen-tests: New file.
7754         * tests/test-freopen.c: New file.
7755
7756         * modules/fopen-tests: New file.
7757         * tests/test-fopen.c: New file.
7758
7759         * modules/fopen: New file.
7760         * lib/fopen.c: New file.
7761         * m4/fopen.m4: New file.
7762         * modules/freopen: New file.
7763         * lib/freopen.c: New file.
7764         * m4/freopen.m4: New file.
7765         * lib/stdio.in.h (fopen, freopen): New declarations.
7766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
7767         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7768         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
7769         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7770         * doc/functions/fopen.texi: Mention the 'fopen' module.
7771         * doc/functions/freopen.texi: Mention the 'freopen' module.
7772
7773 2007-10-06  Bruno Haible  <bruno@clisp.org>
7774
7775         * modules/open-tests: New file.
7776         * tests/test-open.c: New file.
7777
7778         * modules/open: New file.
7779         * lib/open.c: New file.
7780         * m4/open.m4: New file.
7781         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
7782         lib/open.c does.
7783         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
7784         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
7785         macros.
7786         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
7787         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
7788         REPLACE_OPEN.
7789         * doc/functions/open.texi: Mention the 'open' module.
7790
7791 2007-10-04  Bruno Haible  <bruno@clisp.org>
7792
7793         * modules/ceill-tests: New file.
7794         * tests/test-ceill.c: New file.
7795
7796         * modules/ceill: New file.
7797         * lib/ceill.c: Replace entire file.
7798         * m4/ceill.m4: New file.
7799         * lib/math.in.h (ceill): Replace declaration.
7800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
7801         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
7802         * doc/functions/ceill.texi: Mention the 'ceill' module.
7803         * modules/mathl (Files): Remove lib/ceill.c.
7804         (Depends-on): Add ceill.
7805
7806 2007-10-04  Bruno Haible  <bruno@clisp.org>
7807
7808         * modules/ceilf-tests: New file.
7809         * tests/test-ceilf.c: New file.
7810
7811         * modules/ceilf: New file.
7812         * lib/ceil.c: New file.
7813         * lib/ceilf.c: New file.
7814         * m4/ceilf.m4: New file.
7815         * lib/math.in.h (ceilf): New declaration.
7816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
7817         HAVE_DECL_CEILF.
7818         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
7819         HAVE_DECL_CEILF.
7820         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
7821
7822 2007-10-04  Bruno Haible  <bruno@clisp.org>
7823
7824         * modules/floorl-tests: New file.
7825         * tests/test-floorl.c: New file.
7826
7827         * modules/floorl: New file.
7828         * lib/floorl.c: Replace entire file.
7829         * m4/floorl.m4: New file.
7830         * lib/math.in.h (floorl): Replace declaration.
7831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
7832         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
7833         * doc/functions/floorl.texi: Mention the 'floorl' module.
7834         * modules/mathl (Files): Remove lib/floorl.c.
7835         (Depends-on): Add floorl.
7836
7837 2007-10-04  Bruno Haible  <bruno@clisp.org>
7838
7839         * modules/floorf-tests: New file.
7840         * tests/test-floorf.c: New file.
7841
7842         * modules/floorf: New file.
7843         * lib/floor.c: New file.
7844         * lib/floorf.c: New file.
7845         * m4/floorf.m4: New file.
7846         * lib/math.in.h (floorf): New declaration.
7847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
7848         HAVE_DECL_FLOORF.
7849         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
7850         HAVE_DECL_FLOORF.
7851         * doc/functions/floorf.texi: Mention the 'floorf' module.
7852
7853 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
7854             Bruno Haible  <bruno@clisp.org>
7855
7856         Advertise for the Git server instead of the CVS server.
7857         * doc/gnulib-intro.texi (Steady Development): Mention the Git
7858         repository instead of the CVS one.
7859         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
7860         about all VCS systems generically.
7861         * doc/gnulib.texi (Introduction): Capitalize `Git'.
7862
7863 2007-10-04  Bruno Haible  <bruno@clisp.org>
7864
7865         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
7866         means.
7867         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
7868
7869 2007-10-04  Bruno Haible  <bruno@clisp.org>
7870
7871         * modules/truncl-tests: New file.
7872         * tests/test-truncl.c: New file.
7873
7874         * modules/truncl: New file.
7875         * lib/truncl.c: New file.
7876         * m4/truncl.m4: New file.
7877         * lib/math.in.h (truncl): New declaration.
7878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
7879         HAVE_DECL_TRUNCL.
7880         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
7881         HAVE_DECL_TRUNCL.
7882         * doc/functions/truncl.texi: Mention the 'truncl' module.
7883
7884 2007-10-04  Bruno Haible  <bruno@clisp.org>
7885
7886         * modules/truncf-tests: New file.
7887         * tests/test-truncf.c: New file.
7888
7889         * modules/truncf: New file.
7890         * lib/trunc.c: Make paramerizable through USE_* macros.
7891         * lib/truncf.c: New file.
7892         * m4/truncf.m4: New file.
7893         * lib/math.in.h (truncf): New declaration.
7894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
7895         HAVE_DECL_TRUNCF.
7896         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
7897         HAVE_DECL_TRUNCF.
7898         * doc/functions/truncf.texi: Mention the 'truncf' module.
7899
7900 2007-10-03  Bruno Haible  <bruno@clisp.org>
7901
7902         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
7903         augmentation also for tests modules.
7904         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
7905         * modules/atexit-tests (Makefile.am): Likewise.
7906         * modules/binary-io-tests (Makefile.am): Likewise.
7907         * modules/c-strcase-tests (Makefile.am): Likewise.
7908         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
7909         * modules/canonicalize-tests (Makefile.am): Likewise.
7910         * modules/closein-tests (Makefile.am): Likewise.
7911         * modules/fprintf-posix-tests (Makefile.am): Likewise.
7912         * modules/freadahead-tests (Makefile.am): Likewise.
7913         * modules/fseek-tests (Makefile.am): Likewise.
7914         * modules/fseeko-tests (Makefile.am): Likewise.
7915         * modules/ftell-tests (Makefile.am): Likewise.
7916         * modules/ftello-tests (Makefile.am): Likewise.
7917         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
7918         * modules/isnanl-tests (Makefile.am): Likewise.
7919         * modules/lseek-tests (Makefile.am): Likewise.
7920         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7921         * modules/mbscasestr-tests (Makefile.am): Likewise.
7922         * modules/mbschr-tests (Makefile.am): Likewise.
7923         * modules/mbscspn-tests (Makefile.am): Likewise.
7924         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7925         * modules/mbspbrk-tests (Makefile.am): Likewise.
7926         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7927         * modules/mbsrchr-tests (Makefile.am): Likewise.
7928         * modules/mbsspn-tests (Makefile.am): Likewise.
7929         * modules/mbsstr-tests (Makefile.am): Likewise.
7930         * modules/printf-posix-tests (Makefile.am): Likewise.
7931         * modules/snprintf-posix-tests (Makefile.am): Likewise.
7932         * modules/sprintf-posix-tests (Makefile.am): Likewise.
7933         * modules/tsearch-tests (Makefile.am): Likewise.
7934         * modules/uniname/uniname-tests (Makefile.am): Likewise.
7935         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7936         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7937         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7938         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7939         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7940         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7941         * modules/vprintf-posix-tests (Makefile.am): Likewise.
7942         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
7943         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
7944         * modules/xstrtoimax-tests (Makefile.am): Likewise.
7945         * modules/xstrtol-tests (Makefile.am): Likewise.
7946         * modules/xstrtoumax-tests (Makefile.am): Likewise.
7947         * modules/yesno-tests (Makefile.am): Likewise.
7948
7949 2007-10-03  Bruno Haible  <bruno@clisp.org>
7950
7951         * modules/trunc-tests: New file.
7952         * tests/test-trunc.c: New file.
7953
7954         * modules/trunc: New file.
7955         * lib/trunc.c: New file.
7956         * m4/trunc.m4: New file.
7957         * lib/math.in.h (trunc): New declaration.
7958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
7959         HAVE_DECL_TRUNC.
7960         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
7961         HAVE_DECL_TRUNC.
7962         * doc/functions/trunc.texi: Mention the 'trunc' module.
7963
7964 2007-10-03  Bruno Haible  <bruno@clisp.org>
7965
7966         * tests/test-fpending.c: New file, mostly copied
7967         from coreutils/lib/t-fpending.c.
7968         * modules/fpending-tests: New file.
7969
7970 2007-10-03  Bruno Haible  <bruno@clisp.org>
7971
7972         Port the stdio extensions to QNX (untested).
7973         * lib/fseterr.c (fseterr): Add support for QNX.
7974         * lib/fbufmode.c (fbufmode): Likewise.
7975         * lib/freadable.c (freadable): Likewise.
7976         * lib/fwritable.c (fwritable): Likewise.
7977         * lib/freading.c (freading): Likewise.
7978         * lib/fwriting.c (fwriting): Likewise.
7979         * lib/freadahead.c (freadahed): Likewise.
7980         * lib/fpurge.c (fpurge): Likewise.
7981         * lib/fseeko.c (rpl_fseeko): Likewise.
7982
7983 2007-10-03  Bruno Haible  <bruno@clisp.org>
7984             Jim Meyering  <jim@meyering.net>
7985             Eric Blake  <ebb9@byu.net>
7986
7987         * doc/relocatable.texi: Use @command instead of @program.
7988
7989 2007-10-02  Jim Meyering  <jim@meyering.net>
7990
7991         Perform one more "_.h" -> ".in.h" substitution.
7992         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
7993         instead of unistd_.h here, too.
7994
7995 2007-10-01  Bruno Haible  <bruno@clisp.org>
7996
7997         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
7998         Needed for the alloca-opt module.
7999
8000 2007-09-30  Bruno Haible  <bruno@clisp.org>
8001
8002         * lib/alloca.in.h: Renamed from lib/alloca_.h.
8003         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
8004         alloca_.h.
8005         * lib/argz.in.h: Renamed from lib/argz_.h.
8006         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
8007         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
8008         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
8009         byteswap_.h.
8010         * lib/dirent.in.h: Renamed from lib/dirent_.h.
8011         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
8012         dirent_.h.
8013         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
8014         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
8015         fcntl_.h.
8016         * lib/float.in.h: Renamed from lib/float_.h.
8017         * modules/float (Files, Makefile.am): Use float.in.h instead of
8018         float_.h.
8019         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
8020         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
8021         fnmatch_.h.
8022         * lib/getopt.in.h: Renamed from lib/getopt_.h.
8023         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
8024         getopt_.h.
8025         * lib/glob.in.h: Renamed from lib/glob_.h.
8026         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
8027         * lib/iconv.in.h: Renamed from lib/iconv_.h.
8028         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
8029         iconv_.h.
8030         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
8031         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
8032         inttypes_.h.
8033         * lib/locale.in.h: Renamed from lib/locale_.h.
8034         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
8035         locale_.h.
8036         * lib/math.in.h: Renamed from lib/math_.h.
8037         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
8038         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
8039         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
8040         of netinet_in_.h. Add dependency.
8041         * lib/poll.in.h: Renamed from lib/poll_.h.
8042         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
8043         * lib/search.in.h: Renamed from lib/search_.h.
8044         * modules/search (Files, Makefile.am): Use search.in.h instead of
8045         search_.h.
8046         * lib/signal.in.h: Renamed from lib/signal_.h.
8047         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
8048         _signal.h.
8049         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
8050         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
8051         stdbool_.h.
8052         * lib/stdint.in.h: Renamed from lib/stdint_.h.
8053         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
8054         stdint_.h.
8055         * lib/stdio.in.h: Renamed from lib/stdio_.h.
8056         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
8057         stdio_.h.
8058         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
8059         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
8060         stdlib_.h.
8061         * lib/string.in.h: Renamed from lib/string_.h.
8062         * modules/string (Files, Makefile.am): Use string.in.h instead of
8063         string_.h.
8064         * doc/gnulib-tool.texi (Initial import): Update.
8065         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
8066         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
8067         of sys_select_.h. Add dependency.
8068         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
8069         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
8070         of sys_socket_.h.
8071         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
8072         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
8073         sys_stat_.h.
8074         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
8075         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
8076         sys_time_.h.
8077         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
8078         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
8079         sysexits_.h.
8080         * lib/time.in.h: Renamed from lib/time_.h.
8081         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
8082         * lib/unistd.in.h: Renamed from lib/unistd_.h.
8083         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
8084         unistd_.h.
8085         * lib/wchar.in.h: Renamed from lib/wchar_.h.
8086         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
8087         wchar_.h.
8088         * lib/wctype.in.h: Renamed from lib/wctype_.h.
8089         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
8090         wctype_.h.
8091         * build-aux/bootstrap (slurp): Update.
8092         * lib/.cppi-disable: Update.
8093
8094 2007-09-30  Bruno Haible  <bruno@clisp.org>
8095
8096         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
8097         Needed on BeOS.
8098
8099 2007-09-30  Bruno Haible  <bruno@clisp.org>
8100
8101         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
8102
8103 2007-09-29  Bruno Haible  <bruno@clisp.org>
8104
8105         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
8106
8107 2007-09-29  Bruno Haible  <bruno@clisp.org>
8108
8109         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
8110         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
8111         * build-aux/install-reloc: Compile also areadlink.c.
8112         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
8113
8114 2007-09-29  Bruno Haible  <bruno@clisp.org>
8115
8116         * gnulib-tool (func_emit_initmacro_done): Indentation.
8117
8118 2007-09-29  Bruno Haible  <bruno@clisp.org>
8119
8120         * README: Add CVS checkout update instructions.
8121         Info from Bob Proulx <bob@proulx.com>.
8122
8123 2007-09-28  Eric Blake  <ebb9@byu.net>
8124
8125         Provide move-if-change.
8126         * build-aux/move-if-change: New file, based on best practice
8127         rather than any canonical upstream location.
8128
8129 2007-09-28  Jim Meyering  <jim@meyering.net>
8130
8131         Fix canonicalize loop-detection corner case.
8132         Do not attempt to stat the symlink values stored via seen_triple.
8133         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
8134         on linux-2.6.18, (but not 2.6.22).
8135         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
8136         triple_compare.  The former compares dev,ino,filename, while the latter
8137         would actually stat dirname(filename) when dev and ino were equal.
8138         * lib/hash-triple.c: Install <string.h>.
8139         (STREQ): Define.
8140         (triple_compare_ino_str): New function.
8141         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
8142
8143 2007-09-28  Eric Blake  <ebb9@byu.net>
8144
8145         Enforce that AC_REPLACE_FUNCS files exist.
8146         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
8147         override check for typos.
8148
8149         Fix test-closein on Solaris 10.
8150         * tests/test-closein.c (main): Don't assume stdin can be inherited
8151         closed on all systems.
8152         * tests/test-closein.sh: Likewise.
8153         Reported by Piotr Tarnowski.
8154
8155 2007-09-28  Jim Meyering  <jim@meyering.net>
8156
8157         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
8158
8159 2007-09-27  Jim Meyering  <jim@meyering.net>
8160
8161         canonicalize: Avoid a false-positive cycle failure.
8162         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
8163         Sort.  Remove cycle-check.
8164         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
8165         not cycle-check.h.
8166         (seen_triple): New function.
8167         (canonicalize_filename_mode): Use it instead of cycle-check.
8168         * tests/test-canonicalize.c: Add a test for this bug.
8169         * tests/test-canonicalize.sh: Set up and run the test.
8170
8171         New module, file-set, from coreutils.
8172         * modules/file-set: Define it.
8173         * lib/file-set.c, lib/file-set.h: Implement.
8174
8175         New module, hash-triple, from coreutils.
8176         * modules/hash-triple: Define it.
8177         * lib/hash-triple.c, lib/hash-triple.h: Implement.
8178
8179 2007-09-25  Eric Blake  <ebb9@byu.net>
8180
8181         Fix strerror on Interix.
8182         * lib/string_.h (strerror): Declare replacement.
8183         * doc/functions/strerror.texi (strerror): Document the Interix
8184         shortcoming.
8185         * modules/string (Makefile.am): Support new hooks.
8186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
8187         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
8188         gl_FUNC_STRERROR_SEPARATE.
8189         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
8190         * lib/strerror.c (rpl_strerror): Provide replacement.
8191         * modules/strerror (Depends-on): Add string.
8192         (configure.ac): Detect use of module.
8193         * tests/test-strerror.c: New file.
8194         * modules/strerror-tests: New test module.
8195         * modules/argp (Depends-on): Add strerror.
8196         * modules/error (Depends-on): Likewise.
8197         Reported by Martin Koeppe.
8198
8199 2007-09-24  Bruno Haible  <bruno@clisp.org>
8200
8201         * README: Update git instructions.
8202
8203 2007-09-24  Eric Blake  <ebb9@byu.net>
8204
8205         Revert fpending breakage from 2007-09-08.
8206         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
8207         __fpending.c.
8208
8209 2007-09-24  Jim Meyering  <jim@meyering.net>
8210
8211         filenamecat.c: Add a test.
8212         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
8213         showing how the function works when DIR is the empty string.
8214
8215 2007-09-21  Simon Josefsson  <simon@josefsson.org>
8216
8217         * tests/test-canonicalize.sh: Turn on executable bit.
8218
8219 2007-09-19  Eric Blake  <ebb9@byu.net>
8220
8221         * README: Update CVS instructions.
8222
8223 2007-09-18  Bruno Haible  <bruno@clisp.org>
8224
8225         * modules/areadlink: New file.
8226         * lib/areadlink.h (areadlink): New declaration.
8227         * lib/areadlink.c: New file, based on lib/xreadlink.c.
8228
8229 2007-09-17  Jim Meyering  <jim@meyering.net>
8230
8231         * lib/savewd.c (ESTALE) [!defined]: Define.
8232         Reported to be required on Interix by Martin Koeppe.
8233
8234 2007-09-17  Bruno Haible  <bruno@clisp.org>
8235
8236         * gnulib-tool (func_version): Use $version.
8237
8238 2007-09-16  Bruno Haible  <bruno@clisp.org>
8239
8240         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
8241         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
8242         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
8243         Reported by Greg Schafer <gschafer@zip.com.au>.
8244
8245 2007-09-15  Bruno Haible  <bruno@clisp.org>
8246
8247         * gnulib-tool (sed): Try a little harder to make bash understand the
8248         alias.
8249         Reported by Bruce Korb <bruce.korb@gmail.com>.
8250
8251 2007-09-13  Eric Blake  <ebb9@byu.net>
8252
8253         * ChangeLog: Remove conflict markers.
8254
8255 2007-09-13  Simon Josefsson  <simon@josefsson.org>
8256
8257         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
8258         Reported by Bruno Haible <bruno@clisp.org>.
8259
8260 2007-09-12  Bruno Haible  <bruno@clisp.org>
8261
8262         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
8263         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
8264         is not defined.
8265
8266 2007-09-12  Eric Blake  <ebb9@byu.net>
8267
8268         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
8269         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
8270         Autoconf definition.
8271         * modules/euidaccess (Depends-on): Add extensions, for
8272         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
8273         * modules/fnmatch (Depends-on): Likewise.
8274         * modules/getaddrinfo (Depends-on): Likewise.
8275         * modules/getdelim (Depends-on): Likewise.
8276         * modules/getline (Depends-on): Likewise.
8277         * modules/getsubopt (Depends-on): Likewise.
8278         * modules/gettext (Depends-on): Likewise.
8279         * modules/group-member (Depends-on): Likewise.
8280         * modules/mbchar (Depends-on): Likewise.
8281         * modules/memmem (Depends-on): Likewise.
8282         * modules/mempcpy (Depends-on): Likewise.
8283         * modules/memrchr (Depends-on): Likewise.
8284         * modules/pagealign_alloc (Depends-on): Likewise.
8285         * modules/readutmp (Depends-on): Likewise.
8286         * modules/stpcpy (Depends-on): Likewise.
8287         * modules/stpncpy (Depends-on): Likewise.
8288         * modules/strchrnul (Depends-on): Likewise.
8289         * modules/strndup (Depends-on): Likewise.
8290         * modules/strsep (Depends-on): Likewise.
8291         * modules/strverscmp (Depends-on): Likewise.
8292         * modules/vasprintf (Depends-on): Likewise.
8293         * modules/wcwidth (Depends-on): Likewise.
8294         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
8295         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
8296         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
8297         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
8298         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8299         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8300         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
8301         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
8302         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
8303         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
8304         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8305         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
8306         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
8307         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8308         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
8309         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8310         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8311         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
8312         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8313         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
8314         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
8315         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
8316         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
8317         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
8318         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
8319         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8320         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
8321         so that lock.m4 can be used in gettext without extensions module.
8322
8323 2007-09-11  Bruno Haible  <bruno@clisp.org>
8324
8325         * m4/isc-posix.m4: Remove file.
8326         Suggested by Eric Blake.
8327
8328 2007-09-11  Eric Blake  <ebb9@byu.net>
8329
8330         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
8331
8332 2007-09-10  Bruno Haible  <bruno@clisp.org>
8333
8334         * posix-modules: Fix typo in error message.
8335         Reported by Matt <mkraai@beckman.com>.
8336
8337 2007-09-09  Bruno Haible  <bruno@clisp.org>
8338
8339         * doc/functions/getdelim.texi: Update list of platforms lacking the
8340         function.
8341         * doc/functions/getline.texi: Likewise.
8342
8343 2007-09-09  Jim Meyering  <jim@meyering.net>
8344
8345         * lib/hash.c (hash_initialize): Detect calloc failure.
8346         Reported by Bruno Haible.
8347
8348 2007-09-09  Bruno Haible  <bruno@clisp.org>
8349
8350         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
8351         malloc or realloc fails.
8352
8353 2007-09-09  Bruno Haible  <bruno@clisp.org>
8354
8355         * modules/getcwd (Depends-on): Add malloc-posix.
8356         * modules/glob (Depends-on): Likewise.
8357         * modules/putenv (Depends-on): Likewise.
8358         * modules/strdup (Depends-on): Likewise.
8359         * modules/getdelim (Depends-on): Add realloc-posix.
8360         * modules/read-file (Depends-on): Likewise.
8361
8362 2007-09-09  Bruno Haible  <bruno@clisp.org>
8363
8364         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
8365         (gl_FUNC_MALLOC_POSIX): Require it.
8366         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
8367         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
8368         * modules/realloc (Files): Add m4/malloc.m4.
8369         * modules/calloc (Files): Likewise.
8370
8371 2007-09-09  Bruno Haible  <bruno@clisp.org>
8372
8373         * modules/malloc-posix: New file.
8374         * modules/malloc (Depends-on): Add malloc-posix.
8375         * lib/malloc.c: Include errno.h.
8376         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
8377         and a POSIX-compatible malloc into a single function. Set ENOMEM
8378         when returning NULL.
8379         * m4/malloc.m4: New file.
8380         * doc/functions/malloc.texi: Mention the malloc-posix module.
8381         * lib/stdlib_.h (malloc): New declaration.
8382         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8383         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
8384         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
8385         and HAVE_MALLOC_POSIX.
8386
8387 2007-09-09  Bruno Haible  <bruno@clisp.org>
8388
8389         * modules/realloc-posix: New file.
8390         * modules/realloc (Depends-on): Add realloc-posix.
8391         * lib/realloc.c: Include errno.h.
8392         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
8393         and a POSIX-compatible realloc into a single function. Set ENOMEM
8394         when returning NULL.
8395         * m4/realloc.m4: New file.
8396         * doc/functions/realloc.texi: Mention the realloc-posix module.
8397         * lib/stdlib_.h (realloc): New declaration.
8398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8399         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
8400         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
8401         and HAVE_REALLOC_POSIX.
8402
8403 2007-09-09  Bruno Haible  <bruno@clisp.org>
8404
8405         * modules/calloc-posix: New file.
8406         * modules/calloc (Depends-on): Add calloc-posix.
8407         * lib/calloc.c: Include errno.h.
8408         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
8409         and a POSIX-compatible calloc into a single function. Set ENOMEM
8410         when returning NULL.
8411         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
8412         * doc/functions/calloc.texi: Mention the calloc-posix module.
8413         * lib/stdlib_.h (calloc): New declaration.
8414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8415         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
8416         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
8417         and HAVE_CALLOC_POSIX.
8418
8419 2007-09-09  Bruno Haible  <bruno@clisp.org>
8420
8421         Allow for modules to show an arbitrary notice.
8422         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
8423         * gnulib-tool: New option --extract-notice.
8424         (func_usage): Document it.
8425         (sed_extract_prog): Update.
8426         (func_get_notice): New function.
8427         (func_modules_notice): New function.
8428         (func_import, func_create_testdir): Invoke it.
8429         Suggested by Jim Meyering.
8430
8431 2007-09-09  Bruno Haible  <bruno@clisp.org>
8432
8433         * gnulib-tool: New options --verbose, --quiet.
8434         (func_usage): Document them.
8435         (verbose): New variable.
8436         (func_execute_command): New function.
8437         (func_import): Don't show the module list and the file list if
8438         $verbose < 0.
8439         (func_create_testdir): Likewise. Use func_execute_command.
8440         (func_create_megatestdir): Use func_execute_command.
8441
8442 2007-09-08  Bruno Haible  <bruno@clisp.org>
8443
8444         * gnulib-tool (func_import): Prefer rsync over wget when available,
8445         for fetching the PO files.
8446
8447 2007-09-08  Bruno Haible  <bruno@clisp.org>
8448
8449         * posix-modules: New file. Portions copied from gnulib-tool.
8450         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
8451
8452 2007-09-08  Jim Meyering  <jim@meyering.net>
8453
8454         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
8455         * lib/fpending.h: Rename from __fpending.h.
8456         * lib/fpending.c: Rename from __fpending.c.
8457         Include "fpending.h", not "__fpending.h".
8458         * lib/__fpending.h, lib/__fpending.c: Remove files.
8459         * modules/fpending (Files): Reflect new file names.
8460         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
8461
8462 2007-09-08  Bruno Haible  <bruno@clisp.org>
8463
8464         * m4/inttypes-h.m4: Remove stub file.
8465
8466 2007-09-07  Simon Josefsson  <simon@josefsson.org>
8467
8468         * doc/headers/stdint.texi: Discuss #include_next issue.
8469
8470 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8471
8472         * build-aux/bootstrap: Remove obsolete comment about wget --help.
8473
8474 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8475
8476         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
8477         in variable name.
8478
8479 2007-09-03  Jim Meyering  <jim@meyering.net>
8480
8481         New module: git-version-gen.
8482         * modules/git-version-gen: New file.
8483
8484         Import changes from coreutils for bootstrap script.
8485
8486         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
8487
8488         bootstrap: uses rsync to download the .po files
8489         * build-aux/bootstrap (po_download_command_format): New global.
8490         (download_po_files): Use rsync.
8491         (update_po_files): Don't remove .po files after download,
8492         so future rsync runs can take advantage of the copies.
8493
8494         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
8495
8496         Solve the unnecessary-.po-file-regeneration problem once and for all.
8497         * build-aux/bootstrap (download_po_files): New function, renamed from
8498         get_translations.  Now, downloads, but doesn't update LINGUAS.
8499         (update_po_files): New function.
8500
8501         bootstrap: Ignore more.
8502         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
8503         uniwidth to e.g., lib/.gitignore.
8504         (slurp): Handle the sys_stat_.h -> sys mapping, too.
8505
8506         * build-aux/bootstrap: New setting: vc_ignore.
8507         (insert_sorted_if_absent): Create $file if absent.
8508         Adapt to new, possibly empty, list: $vc_ignore.
8509
8510         bootstrap: generate more ignorable names
8511         * build-aux/bootstrap (slurp): When generating ignorable names,
8512         also map .sin to .sed, .gperf to .c, and .y to .c.
8513
8514 2007-09-03  Jim Meyering  <jim@meyering.net>
8515
8516         * build-aux/git-version-gen: New file, from coreutils.  For details, see
8517         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
8518
8519 2007-09-02  Bruno Haible  <bruno@clisp.org>
8520
8521         Fix mis-recognition of 'mcs' on QNX 6.
8522         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
8523         output contains the string "Mono".
8524         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
8525         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
8526
8527 2007-09-01  Bruno Haible  <bruno@clisp.org>
8528
8529         Fix collision between uniwidth/* and linebreak modules.
8530         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
8531         u32_width): Remove declarations.
8532         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
8533         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
8534         streq3, streq2, streq1, streq0): Remove functions.
8535         (STREQ): Remove macro.
8536         (is_cjk_encoding): Remove function.
8537         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
8538         (uc_width, u8_width, u16_width, u32_width): Remove functions.
8539         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
8540         * NEWS: Document the change.
8541
8542 2007-09-01  Bruno Haible  <bruno@clisp.org>
8543
8544         * lib/streq.h: Add double-inclusion guard.
8545
8546 2007-09-01  Karl Berry  <karl@gnu.org>
8547
8548         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
8549
8550 2007-08-28  Jim Meyering  <jim@meyering.net>
8551
8552         Rename mreadlink_with_size to areadlink_with_size.
8553         * NEWS: Document the change.
8554         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
8555         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
8556         * lib/mreadlink.h: Rename this to...
8557         * lib/areadlink.h: ...this.
8558         * modules/mreadlink-with-size: Rename this to...
8559         * modules/areadlink-with-size: ...this.
8560         * lib/canonicalize.c: Reflect the renaming.
8561         * modules/canonicalize: Likewise.
8562
8563 2007-08-26  Bruno Haible  <bruno@clisp.org>
8564
8565         * gnulib-tool (func_import): When deciding which files to remove,
8566         consider also dangling symbolic links.
8567         Reported by Eric Blake.
8568
8569 2007-08-26  Bruno Haible  <bruno@clisp.org>
8570
8571         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
8572
8573 2007-08-23  Simon Josefsson  <simon@josefsson.org>
8574
8575         * lib/readline.c: Don't include getline.h, the prototype is now
8576         found in stdio.h.
8577
8578 2007-08-23  Jim Meyering  <jim@meyering.net>
8579
8580         Getdelim touchup.
8581         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
8582         around the funlockfile call, since funlockfile never sets errno.
8583         Don't set errno upon failed realloc.
8584
8585 2007-08-22  Eric Blake  <ebb9@byu.net>
8586
8587         Getline touchups.
8588         * lib/getdelim.c (getdelim): Revert regression that required *n to
8589         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
8590         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
8591         getdelim, rather than whether implementation is missing.
8592         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
8593         * lib/stdio_.h (getline): Also declare if replacement is
8594         required.
8595         * doc/functions/getdelim.texi: New file.
8596         * doc/functions/getline.texi: Likewise.
8597         * doc/gnulib.texi (Function Substitutes): Add new files.
8598         Reported by Bruno Haible.
8599
8600 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
8601
8602         * users.txt: Add Guile.
8603
8604 2007-08-22  Eric Blake  <ebb9@byu.net>
8605
8606         * tests/test-getdelim.c (main): Use remove, not unlink.
8607         * tests/test-getline.c (main): Likewise.
8608
8609         Move getline and getdelim into stdio.h, per POSIX 200x.
8610         * modules/getline (Files): Remove getline.h.
8611         (Depends-on): Add stdio.
8612         (configure.ac): Add module indicator.
8613         * modules/getdelim (Files): Remove getdelim.h.
8614         (Depends-on): Add stdio.
8615         (configure.ac): Add module indicator.
8616         * modules/stdio (Makefile.am): Work with new indicators.
8617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8618         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
8619         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8620         * lib/getdelim.h: Delete.
8621         * lib/getline.h: Delete.
8622         * lib/stdio_.h (getdelim, getline): Declare.
8623         * modules/getdelim-tests: New module.
8624         * modules/getline-tests: Likewise.
8625         * tests/test-getdelim.c: New file.
8626         * tests/test-getline.c: Likewise.
8627         * NEWS: Document the change.
8628         * lib/getline.c: Update choice of header.
8629         * lib/csharpcomp.c: Likewise.
8630         * lib/getpass.c: Likewise.
8631         * lib/javacomp.c: Likewise.
8632         * lib/javaversion.c: Likewise.
8633         * lib/yesno.c: Likewise.
8634         * lib/getdelim.c: Likewise.
8635         (getdelim): Set errno on failure, and avoid memory leak.
8636
8637 2007-08-19  Bruno Haible  <bruno@clisp.org>
8638
8639         * modules/closein (Depends-on): Add freadahead.
8640         * lib/closein.c: Include freadahead.h.
8641         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
8642         is zero.
8643
8644 2007-08-19  Bruno Haible  <bruno@clisp.org>
8645
8646         * modules/freadahead-tests: New file.
8647         * tests/test-freadahead.sh: New file.
8648         * tests/test-freadahead.c: New file.
8649
8650         * modules/freadahead: New file.
8651         * lib/freadahead.h: New file.
8652         * lib/freadahead.c: New file.
8653         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
8654         fbufmode, fpurge, freadable, fwritable.
8655
8656 2007-08-19  Eric Blake  <ebb9@byu.net>
8657
8658         Test yesno in combination with closein.
8659         * lib/yesno.c (yesno): Document use of stdin.
8660         * modules/yesno-tests (Files): New module.
8661         * tests/test-yesno.c (main): New file.
8662         * tests/test-yesno.sh: Likewise.
8663
8664 2007-08-19  Bruno Haible  <bruno@clisp.org>
8665
8666         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
8667         * lib/fseeko.c (rpl_fseeko): Likewise.
8668         * lib/fseterr.c (fseterr): Likewise.
8669
8670 2007-08-19  Bruno Haible  <bruno@clisp.org>
8671
8672         * tests/test-lseek.c (main): Disable a test for BeOS.
8673         * doc/functions/lseek.texi: Document the BeOS bug.
8674
8675 2007-08-19  Bruno Haible  <bruno@clisp.org>
8676             Eric Blake  <ebb9@byu.net>
8677
8678         * lib/lseek.c: Include <sys/stat.h>.
8679         (rpl_lseek): Add workaround code also for Unix platforms.
8680         Needed for BeOS.
8681         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
8682         * doc/functions/lseek.texi: Document BeOS definiency.
8683
8684 2007-08-18  Bruno Haible  <bruno@clisp.org>
8685
8686         * modules/fstrcmp-tests: New file.
8687         * tests/test-fstrcmp.c: New file.
8688
8689 2007-08-18  Bruno Haible  <bruno@clisp.org>
8690
8691         * modules/fstrcmp: New file, from GNU gettext with modifications.
8692         * lib/fstrcmp.h: New file, from GNU gettext.
8693         * lib/fstrcmp.c: New file, from GNU gettext.
8694         * MODULES.html.sh (String handling): Add fstrcmp.
8695
8696 2007-08-18  Bruno Haible  <bruno@clisp.org>
8697
8698         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
8699         'bool'.
8700         (diag, compareseq): Remove const from the ctxt argument.
8701         (USE_HEURISTIC): Undefine at the end.
8702
8703 2007-08-18  Jim Meyering  <jim@meyering.net>
8704
8705         New file: lib/idcache.h
8706         * NEWS: Mention the addition.
8707         * modules/idcache (Files): Add lib/idcache.h
8708         * lib/idcache.c: Include "idcache.h".
8709         Don't include <sys/types.h>.
8710         Add a FIXME comment.
8711         Move file-scoped "static" declarations to the top.
8712         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
8713
8714 2007-08-17  Bruno Haible  <bruno@clisp.org>
8715         and Paul Eggert  <eggert@cs.ucla.edu>
8716
8717         * MODULES.html.sh: Add diffseq.
8718         * modules/diffseq: New file.
8719         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
8720         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
8721
8722 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
8723
8724         Import changes from coreutils for bootstrap script.
8725
8726         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
8727
8728         * build-aux/bootstrap (slurp): Work even in environments where
8729         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
8730         current code does not slurp files whose names start with ".", and
8731         this looks like it might be a troublesome area.
8732
8733         2007-07-11  Jim Meyering  <jim@meyering.net>
8734
8735         If there's a GPL vN copyright comment, require that N == 3.
8736
8737         2007-07-08  Jim Meyering  <jim@meyering.net>
8738
8739         Run the coreutils-specific code only if tests/Makefile.am.in exists.
8740         * build-aux/bootstrap (mam_template): Move definition out of loop.
8741
8742         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
8743
8744         * build-aux/bootstrap (symlink_to_dir): Rename function from
8745         symlink_to_gnulib.  Add a directory parameter.  Update all
8746         callers.
8747         (cp_mark_as_generated): Also check for -- and link to -- files in
8748         gl/.
8749
8750         2007-07-08  Jim Meyering  <jim@meyering.net>
8751
8752         Adapt to deeper hierarchy in gnulib.
8753         * build-aux/bootstrap (symlink_to_dir): If the destination
8754         directory doesn't exist, create it. This is required at least for
8755         "lib/uniwidth/cjk.h".
8756
8757         2007-05-15  Jim Meyering  <jim@meyering.net>
8758
8759         * build-aux/bootstrap: Now that generated Makefile.am files
8760         are no longer under version control, they must be created at
8761         bootstrap time.
8762
8763 2007-08-14  Ben Pfaff  <blp@gnu.org>
8764
8765         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
8766
8767 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
8768
8769         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
8770         given the changes below.
8771         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
8772         even on hosts that have padding bits beyond the supported 64.
8773
8774 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8775
8776         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
8777         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
8778         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
8779         depends on it.
8780         (xstrtol_error): Remove.
8781         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
8782         but with a different signature.
8783         (ATTRIBUTE_NORETURN, __attribute__): New macros.
8784         * lib/xstrtol-error.c: Include exitfail.h.
8785         (xstrtol_fatal): New function, with a different signature from the
8786         old xstrtol_error, so that the caller need not worry about passing
8787         in an exit status, or about storage management of the option argument.
8788         (xstrtol_error): Now a static function.  Redo signature to
8789         implement xstrtol_fatal.  Output the correct number of hyphens in
8790         front of the option so that the caller need not worry about
8791         storage management.
8792         (N_): New macro.
8793         (_): Remove; not used now.
8794         * modules/xstrtol: Depend on getopt.
8795         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
8796         of old STRTOL_FATAL_ERROR macro.
8797         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
8798         of test program.
8799         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
8800         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
8801
8802 2007-08-08  Eric Blake  <ebb9@byu.net>
8803
8804         * lib/xstrtol-error.c: Add missing include.
8805
8806         Move xstrtol messages into gnulib domain, when --pobase is used.
8807         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
8808         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
8809         * modules/xstrtol (Files): Distribute new file.
8810         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
8811         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
8812         * tests/test-xstrtol.c: ...into new file.
8813         * tests/test-xstrtoul.c: Also test xstrtoul.
8814         * tests/test-xstrtoimax.c: Also test xstrtoimax.
8815         * tests/test-xstrtoumax.c: Also test xstrtoumax.
8816         * tests/test-xstrtol.sh: Drive the tests.
8817         * tests/test-xstrtoimax.sh: Likewise.
8818         * tests/test-xstrtoumax.sh: Likewise.
8819         * modules/xstrtol-tests: New module.
8820         * modules/xstrtoimax-tests: Likewise.
8821         * modules/xstrtoumax-tests: Likewise.
8822
8823 2007-08-08  Jim Meyering  <jim@meyering.net>
8824
8825         New function: mfile_name_concat.
8826         * lib/filenamecat.c (mfile_name_concat): New function, just like
8827         file_name_concat, but return NULL upon failure rather than exiting
8828         with a diagnostic.
8829         * lib/filenamecat.h: Declare it.
8830
8831 2007-08-07  Bruno Haible  <bruno@clisp.org>
8832
8833         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
8834         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
8835         warning from gcc.
8836         Reported by Eric Blake.
8837
8838 2007-08-07  Simon Josefsson  <simon@josefsson.org>
8839
8840         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
8841         * modules/crypto/arcfour (License): Likewise.
8842         * modules/crypto/des-tests (License): Likewise.
8843         * modules/crypto/gc-arctwo-tests (License): Likewise.
8844         * modules/crypto/gc-des-tests (License): Likewise.
8845         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
8846         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
8847         * modules/crypto/gc-md2-tests (License): Likewise.
8848         * modules/crypto/gc-md4-tests (License): Likewise.
8849         * modules/crypto/gc-md5-tests (License): Likewise.
8850         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
8851         * modules/crypto/gc-rijndael-tests (License): Likewise.
8852         * modules/crypto/gc-sha1-tests (License): Likewise.
8853         * modules/crypto/gc-tests (License): Likewise.
8854         * modules/crypto/hmac-md5 (License): Likewise.
8855         * modules/crypto/hmac-sha1 (License): Likewise.
8856         * modules/crypto/md2-tests (License): Likewise.
8857         * modules/crypto/md4-tests (License): Likewise.
8858         * modules/crypto/md5 (License): Likewise.
8859         * modules/crypto/rijndael (License): Likewise.
8860         * modules/crypto/sha1 (License): Likewise.
8861         * modules/memxor (License): Likewise.
8862
8863 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
8864         and Bruno Haible  <bruno@clisp.org>
8865
8866         * NEWS: Describe interface changes to human, xstrtol.
8867         * lib/human.h: Include <xstrtol.h>.
8868         (human_options): Return enum strtol_error, not int.  Remove
8869         bool arg; take int * instead.
8870         * lib/human.c: Don't include "gettext.h".
8871         (_): Remove; no longer used.
8872         Don't include <xstrtol.h>, since human.h does it.
8873         (human_options): Adjust to abovementioned interface changes.
8874         Do not report error to stderr; that's now the caller's
8875         responsibility.
8876         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
8877         interface change.
8878         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
8879         Str, Argument_type_string.  All uses changed.  Put " argument"
8880         in diagnostics to make them clearer.  Change wording of suffix
8881         message for clarity.
8882         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
8883         Argument_type_string.
8884         (STRTOL_FATAL_WARN): Remove; no longer used.
8885         * modules/human (Depends-on): Remove gettext-h.
8886
8887 2007-08-06  Simon Josefsson  <simon@josefsson.org>
8888
8889         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
8890
8891 2007-07-31  Bruno Haible  <bruno@clisp.org>
8892
8893         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
8894         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
8895         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
8896
8897 2007-07-31  Bruno Haible  <bruno@clisp.org>
8898
8899         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
8900         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
8901
8902 2007-07-30  Bruno Haible  <bruno@clisp.org>
8903
8904         * modules/base64 (License): Use the synonymous term "LGPLv2+".
8905         * modules/c-ctype (License): Likewise.
8906         * modules/c-strcase (License): Likewise.
8907         * modules/check-version (License): Likewise.
8908         * modules/iconv (License): Likewise.
8909         * modules/iconv_open (License): Likewise.
8910         * modules/read-file (License): Likewise.
8911         * modules/striconv (License): Likewise.
8912         * modules/strverscmp (License): Likewise.
8913         * modules/vasprintf (License): Likewise.
8914         * modules/crypto/des (License): Likewise.
8915         * modules/crypto/gc (License): Likewise.
8916         * modules/crypto/gc-arcfour (License): Likewise.
8917         * modules/crypto/gc-arctwo (License): Likewise.
8918         * modules/crypto/gc-des (License): Likewise.
8919         * modules/crypto/gc-hmac-md5 (License): Likewise.
8920         * modules/crypto/gc-hmac-sha1 (License): Likewise.
8921         * modules/crypto/gc-md2 (License): Likewise.
8922         * modules/crypto/gc-md4 (License): Likewise.
8923         * modules/crypto/gc-md5 (License): Likewise.
8924         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
8925         * modules/crypto/gc-random (License): Likewise.
8926         * modules/crypto/gc-rijndael (License): Likewise.
8927         * modules/crypto/gc-sha1 (License): Likewise.
8928         * modules/crypto/md2 (License): Likewise.
8929         * modules/crypto/md4 (License): Likewise.
8930
8931 2007-07-30  Jim Meyering  <jim@meyering.net>
8932
8933         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
8934         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
8935         it has valid stat data.  This bug would cause du not to count the
8936         sizes of inaccessible directories.
8937         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
8938         in <http://bugzilla.redhat.com/250077>.
8939
8940 2007-07-25  Peter O'Gorman  <peter@pogma.com>
8941             Bruno Haible  <bruno@clisp.org>
8942
8943         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
8944         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
8945         #include_next, gives a diagnostic about it, but reports no error in
8946         the exit code.
8947         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
8948
8949 2007-07-24  Ben Pfaff  <blp@gnu.org>
8950
8951         Improve name: "count-one-bits" is better than "popcount".
8952         * MODULES.html.sh: Update name.
8953         * lib/popcount.h: Renamed lib/count-one-bits.h.
8954         (popcount): Renamed count_one_bits.
8955         (popcountl): Renamed count_one_bits_l.
8956         (popcountll): Renamed count_one_bits_ll.
8957         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
8958         * modules/popcount: Renamed module/count-one-bits.
8959         * modules/popcount-tests: Renamed module/count-one-bits-tests.
8960         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
8961
8962 2007-07-23  Ben Pfaff  <blp@gnu.org>
8963
8964         * lib/popcount.h (popcount32): Reduce size of constants, to allow
8965         better code generation, and add U to large constants to avoid
8966         warnings, in non-GCC case.
8967         Suggested by Bruno Haible.
8968
8969 2007-07-23  Ben Pfaff  <blp@gnu.org>
8970
8971         * lib/popcount.h: Use verify_true instead of if...abort.
8972         * modules/popcount: Depend on verify module.
8973         Suggested by Jim Meyering.
8974
8975 2007-07-23  Bruno Haible  <bruno@clisp.org>
8976
8977         * gnulib-tool (func_import): Create a .cvsignore file also when the
8978         directory is not yet in CVS but the toplevel directory is. When
8979         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
8980         Reported by Karl Berry.
8981
8982 2007-07-22  Ben Pfaff  <blp@gnu.org>
8983
8984         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
8985         case.
8986         Suggested by Eric Blake.
8987
8988 2007-07-22  Ben Pfaff  <blp@gnu.org>
8989
8990         New module: popcount.
8991         * MODULES.html.sh: Add popcount.
8992         * modules/popcount: New file.
8993         * modules/popcount-tests: New file.
8994         * tests/test-popcount.c: New file.
8995         * lib/popcount.h: New file.
8996         * m4/popcount.m4: New file.
8997
8998 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8999
9000         * build-aux/announce-gen: Update to GPLv3.
9001
9002         * build-aux/config.guess: Update from config.
9003
9004 2007-07-21  Bruno Haible  <bruno@clisp.org>
9005
9006         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
9007         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
9008
9009 2007-07-20  Jim Meyering  <jim@meyering.net>
9010
9011         * check-module: Diagnose a self-dependency.
9012
9013 2007-07-19  Bruno Haible  <bruno@clisp.org>
9014
9015         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
9016         empty.
9017         Reported by Eric Blake.
9018
9019 2007-07-18  Bruno Haible  <bruno@clisp.org>
9020
9021         * gnulib-tool: New options --po-base, --po-domain.
9022         (func_usage): Document them.
9023         (pobase, po_domain): New variables.
9024         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
9025         DEFAULT_TEXT_DOMAIN.
9026         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
9027         (func_import): Consider pobase and po_domain. Create a po/ directory.
9028         (func_create_testdir): Set pobase and po_domain to empty.
9029         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
9030         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
9031
9032 2007-07-18  Bruno Haible  <bruno@clisp.org>
9033
9034         * gnulib-tool (func_get_automake_snippet): Synthesize also an
9035         EXTRA_DIST augmentation for files in build-aux/.
9036
9037 2007-07-16  Bruno Haible  <bruno@clisp.org>
9038
9039         * modules/lseek (License): Use the synonymous term "LGPLv2+".
9040         * modules/getdelim (License): Likewise.
9041
9042 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9043
9044         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
9045         * modules/d-type (License): Likewise.
9046         * modules/extensions (License): Likewise.
9047         * modules/fnmatch (License): Likewise.
9048         * modules/fseeko (License): Likewise.
9049         * modules/getaddrinfo (License): Likewise.
9050         * modules/getline (License): Likewise.
9051         * modules/getlogin_r (License): Likewise.
9052         * modules/getpass (License): Likewise.
9053         * modules/gettimeofday (License): Likewise.
9054         * modules/glob (License): Likewise.
9055         * modules/inet_ntop (License): Likewise.
9056         * modules/malloc (License): Likewise.
9057         * modules/malloca (License): Likewise.
9058         * modules/memmem (License): Likewise.
9059         * modules/mempcpy (License): Likewise.
9060         * modules/memset (License): Likewise.
9061         * modules/minmax (License): Likewise.
9062         * modules/mktime (License): Likewise.
9063         * modules/netinet_in (License): Likewise.
9064         * modules/pathmax (License): Likewise.
9065         * modules/poll (License): Likewise.
9066         * modules/regex (License): Likewise.
9067         * modules/snprintf (License): Likewise.
9068         * modules/stdbool (License): Likewise.
9069         * modules/stdint (License): Likewise.
9070         * modules/stdio (License): Likewise.
9071         * modules/strcase (License): Likewise.
9072         * modules/strcasestr (License): Likewise.
9073         * modules/strdup (License): Likewise.
9074         * modules/string (License): Likewise.
9075         * modules/strndup (License): Likewise.
9076         * modules/strnlen (License): Likewise.
9077         * modules/strpbrk (License): Likewise.
9078         * modules/strptime (License): Likewise.
9079         * modules/strsep (License): Likewise.
9080         * modules/sys_select (License): Likewise.
9081         * modules/sys_socket (License): Likewise.
9082         * modules/sys_stat (License): Likewise.
9083         * modules/sys_time (License): Likewise.
9084         * modules/time (License): Likewise.
9085         * modules/time_r (License): Likewise.
9086         * modules/timegm (License): Likewise.
9087         * modules/unistd (License): Likewise.
9088         * modules/vsnprintf (License): Likewise.
9089         * modules/wctype (License): Likewise.
9090
9091 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9092
9093         * modules/argz (License): LGPLv2+.
9094
9095 2007-07-15  Karl Berry  <karl@gnu.org>
9096
9097         * doc/gnulib.texi: revise node structure per new fdl.texi.
9098
9099 2007-07-14  Bruno Haible  <bruno@clisp.org>
9100
9101         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
9102         the output file.
9103         * lib/uniname/uninames.h: Regenerated.
9104
9105 2007-07-14  Karl Berry  <karl@gnu.org>
9106
9107         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
9108         omitting sectioning and index commands.
9109
9110 2007-07-13  Bruno Haible  <bruno@clisp.org>
9111
9112         New gnulib-tool option --more-symlinks.
9113         * gnulib-tool (func_usage): Document --more-symlinks.
9114         (do_copyrights): New variable.
9115         Recognize option --more-symlinks.
9116         (func_import): Don't add a copyright notice transform to
9117         sed_transform_lib_file if do_copyrights is empty.
9118
9119 2007-07-13  Bruno Haible  <bruno@clisp.org>
9120
9121         * lib/vasnprintf.c (decimal_point_char): Define also if
9122         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
9123         && !NEED_PRINTF_DIRECTIVE_A.
9124         Reported by Clemens Koller <clemens.koller@anagramm.de> via
9125         Gary V. Vaughan <gary@gnu.org>.
9126
9127 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
9128
9129         * lib/inttypes_.h: Undo previous change, since it was fixed
9130         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
9131
9132 2007-07-13  Bruno Haible  <bruno@clisp.org>
9133
9134         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
9135         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
9136
9137 2007-07-13  Jim Meyering  <jim@meyering.net>
9138
9139         df: Don't fail for Tru64's "file-on-file mount".
9140         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
9141         so we fall through and use statfs instead.  Details here:
9142         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
9143         Reported by Albert Chin.
9144
9145 2007-07-13  Bruno Haible  <bruno@clisp.org>
9146
9147         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
9148         * modules/configmake (License): Likewise.
9149         * modules/gettext (License): Likewise.
9150         * modules/gettext-h (License): Likewise.
9151         * modules/include_next (License): Likewise.
9152         * modules/link-warning (License): Likewise.
9153         * modules/localcharset (License): Likewise.
9154         * modules/localename (License): Likewise.
9155         * modules/lock (License): Likewise.
9156         * modules/relocatable-lib-lgpl (License): Likewise.
9157         * modules/size_max (License): Likewise.
9158         * modules/vasnprintf (License): Likewise.
9159         * modules/wchar (License): Likewise.
9160         * modules/xsize (License): Likewise.
9161
9162 2007-07-13  Bruno Haible  <bruno@clisp.org>
9163
9164         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
9165         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
9166
9167 2007-07-12  Bruno Haible  <bruno@clisp.org>
9168
9169         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
9170         in the modules files.
9171
9172 2007-07-11  Karl Berry  <karl@gnu.org>
9173
9174         * MODULES.html.sh (func_module): use
9175          sed -e '\|^'"${includefile}"'$|d'
9176          instead of /.../d, to avoid errors on $includefile's containing /.
9177
9178 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9179
9180         * gnulib-tool (func_import): Avoid duplication of --avoid
9181         statements
9182         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
9183         names to `_' in variable names.
9184
9185 2007-07-10  Eric Blake  <ebb9@byu.net>
9186
9187         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
9188         * NEWS: Document this change.
9189
9190 2007-07-08  Bruno Haible  <bruno@clisp.org>
9191
9192         Update to Unicode 5.0.
9193         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
9194         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
9195         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
9196         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
9197         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
9198         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
9199         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
9200         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
9201         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
9202         U+10A3F, U+1D242..U+1D244.
9203         (nonspacing_table_ind): Update.
9204         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
9205         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
9206
9207 2007-07-08  Bruno Haible  <bruno@clisp.org>
9208
9209         Update to Unicode 5.0.
9210         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
9211         code transform. Extend the name index field of unicode_name_to_code and
9212         unicode_code_to_name from 16 to 24 bits.
9213         * lib/uniname/uniname.c (unicode_character_name,
9214         unicode_name_character): Add the range 0x12xxx to the code transform.
9215         * lib/uniname/uninames.h: Regenerated.
9216         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
9217
9218 2007-07-07  Bruno Haible  <bruno@clisp.org>
9219
9220         * modules/wcwidth-tests: New file.
9221         * tests/test-wcwidth.c: New file.
9222
9223         Work around MacOS X wcwidth() bug.
9224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
9225         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
9226         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
9227         original wcwidth in non-UTF-8 locales.
9228         * modules/wcwidth (Depends-on): Add localcharset, streq,
9229         uniwidth/width.
9230         * doc/functions/wcwidth.texi: Update.
9231
9232 2007-07-07  Bruno Haible  <bruno@clisp.org>
9233
9234         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
9235         (wcwidth): New declaration.
9236         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
9237         macros.
9238         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
9239         here. Prepare for creating <wchar.h> unconditionally.
9240         * modules/wchar (Depends-on): Add link-warning.
9241         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
9242         REPLACE_WCWIDTH, and GL_LINK_WARNING.
9243         * lib/wcwidth.h: Remove file.
9244         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
9245         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
9246         * modules/wcwidth (Files): Remove lib/wcwidth.h.
9247         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
9248         (Include): Replace wcwidth.h with <wchar.h>.
9249         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
9250         * lib/mbchar.h: Don't include wcwidth.h.
9251         * lib/mbswidth.c: Likewise.
9252         * NEWS: Mention the change.
9253
9254 2007-07-07  Bruno Haible  <bruno@clisp.org>
9255
9256         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
9257         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
9258         definition with an external declaration.
9259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
9260         defined as a function. Remove AC_C_INLINE requirement.
9261         * modules/wcwidth (Files): Add lib/wcwidth.c.
9262         (Makefile.am): Remove redundant statement.
9263
9264 2007-07-07  Bruno Haible  <bruno@clisp.org>
9265
9266         * MODULES.html.sh (Unicode string functions): Add the new modules.
9267
9268         * tests/uniwidth/test-u32-strwidth.c: New file.
9269         * modules/uniwidth/u32-strwidth-tests: New file.
9270
9271         * lib/uniwidth/u32-strwidth.c: New file.
9272         * modules/uniwidth/u32-strwidth: New file.
9273
9274         * tests/uniwidth/test-u16-strwidth.c: New file.
9275         * modules/uniwidth/u16-strwidth-tests: New file.
9276
9277         * lib/uniwidth/u16-strwidth.c: New file.
9278         * modules/uniwidth/u16-strwidth: New file.
9279
9280         * tests/uniwidth/test-u8-strwidth.c: New file.
9281         * modules/uniwidth/u8-strwidth-tests: New file.
9282
9283         * lib/uniwidth/u8-strwidth.c: New file.
9284         * modules/uniwidth/u8-strwidth: New file.
9285
9286         * tests/uniwidth/test-u32-width.c: New file.
9287         * modules/uniwidth/u32-width-tests: New file.
9288
9289         * lib/uniwidth/u32-width.c: New file.
9290         * modules/uniwidth/u32-width: New file.
9291
9292         * tests/uniwidth/test-u16-width.c: New file.
9293         * modules/uniwidth/u16-width-tests: New file.
9294
9295         * lib/uniwidth/u16-width.c: New file.
9296         * modules/uniwidth/u16-width: New file.
9297
9298         * tests/uniwidth/test-u8-width.c: New file.
9299         * modules/uniwidth/u8-width-tests: New file.
9300
9301         * lib/uniwidth/u8-width.c: New file.
9302         * modules/uniwidth/u8-width: New file.
9303
9304         * tests/uniwidth/test-uc_width.c: New file.
9305         * modules/uniwidth/width-tests: New file.
9306
9307         * lib/uniwidth/width.c: New file, from GNU libiconv.
9308         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
9309         * modules/uniwidth/width: New file.
9310
9311         * lib/uniwidth.h: New file, from GNU libiconv.
9312         * modules/uniwidth/base: New file.
9313
9314 2007-07-07  Bruno Haible  <bruno@clisp.org>
9315
9316         * lib/uniname.h: New file, from GNU gettext.
9317         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
9318         * lib/uniname/uninames.h: New file, from GNU gettext.
9319         * lib/uniname/uniname.c: New file, from GNU gettext.
9320         * tests/uniname/test-uninames.sh: New file.
9321         * tests/uniname/test-uninames.c: New file, from GNU gettext.
9322         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
9323         * modules/uniname/base: New file.
9324         * modules/uniname/uniname: New file.
9325         * modules/uniname/uniname-tests: New file.
9326         * MODULES.html.sh (Unicode string functions): Add the new modules.
9327
9328 2007-07-06  Bruno Haible  <bruno@clisp.org>
9329
9330         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
9331
9332 2007-07-06  Bruno Haible  <bruno@clisp.org>
9333
9334         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
9335         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
9336         includes <cygwin/sys_time.h> which includes <sys/select.h> which
9337         include <sys/time.h>.
9338         Reported by Eric Blake.
9339
9340 2007-07-06  Eric Blake  <ebb9@byu.net>
9341
9342         Fix testing canonicalize on cygwin.
9343         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
9344         Revert patch from 2007-06-19.
9345         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
9346         canonicalize module is also in use.
9347         * tests/test-canonicalize.c: New file.
9348         * tests/test-canonicalize.sh: Likewise.
9349         * modules/canonicalize-tests: Likewise.
9350
9351 2007-07-06  Jim Meyering  <jim@meyering.net>
9352
9353         * lib/getugroups.c (getugroups): Detect getgrent failure.
9354         Adjust comment to reflect reality: this function may return -1.
9355
9356 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9357
9358         * build-aux/bootstrap (TP_URL,get_translations): Update to use
9359         the new TP address.
9360         (usage): Fix typo
9361         (gnulib_mk): New variable.
9362
9363 2007-07-05  Jim Meyering  <jim@meyering.net>
9364
9365         Don't let endgrent clobber errno, no matter how improbable.
9366         * lib/getugroups.c (getugroups): Save and restore errno around
9367         endgrent call.
9368
9369         Close the group DB even when failing with 2^31 or more members.
9370         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
9371
9372 2007-07-04  Jim Meyering  <jim@meyering.net>
9373
9374         * lib/getugroups.h: New file.
9375         * lib/getugroups.c: Include "getugroups.h".
9376         Remove uses of "register" keyword.
9377         Move local variable, "cp", down into scope where used.
9378         Give "username" parameter the "const" attribute.
9379         * modules/getugroups (Files): Add lib/getugroups.h
9380
9381 2007-07-04  Karl Berry  <karl@gnu.org>
9382
9383         * MODULES.html.sh (func_all_modules): Complete rename of
9384         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
9385
9386 2007-07-02  Bruno Haible  <bruno@clisp.org>
9387
9388         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
9389         mode, when inttypes.h comes from gnulib.
9390         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
9391
9392 2007-07-02  Simon Josefsson  <simon@josefsson.org>
9393
9394         * NEWS: Mention lgpl module name change.
9395
9396         * modules/lgpl-2.1: Renamed from lgpl.
9397
9398         * NEWS: Mention gpl module name change.
9399
9400         * modules/gpl-3.0: New file, based on gpl-2.0.
9401
9402         * modules/gpl-2.0: Renamed from gpl.
9403
9404         * modules/gpl: Fix filename, doc/gpl.texi is now found at
9405         doc/gpl-2.0.texi.
9406
9407 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9408
9409         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
9410         #define __STDC_LIMIT_MACROS temporarily while including
9411         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
9412         Problem reported by Joel E. Denny in
9413         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
9414
9415 2007-07-01  Bruno Haible  <bruno@clisp.org>
9416
9417         * lib/unistdio.h: New file.
9418         * lib/unistdio/u-asnprintf.h: New file.
9419         * lib/unistdio/u-asprintf.h: New file.
9420         * lib/unistdio/u-printf-args.c: New file.
9421         * lib/unistdio/u-printf-args.h: New file.
9422         * lib/unistdio/u-printf-parse.h: New file.
9423         * lib/unistdio/u-snprintf.h: New file.
9424         * lib/unistdio/u-sprintf.h: New file.
9425         * lib/unistdio/u-vasprintf.h: New file.
9426         * lib/unistdio/u-vsnprintf.h: New file.
9427         * lib/unistdio/u-vsprintf.h: New file.
9428         * lib/unistdio/ulc-asnprintf.c: New file.
9429         * lib/unistdio/ulc-asprintf.c: New file.
9430         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
9431         * lib/unistdio/ulc-printf-parse.c: New file.
9432         * lib/unistdio/ulc-snprintf.c: New file.
9433         * lib/unistdio/ulc-sprintf.c: New file.
9434         * lib/unistdio/ulc-vasnprintf.c: New file.
9435         * lib/unistdio/ulc-vasprintf.c: New file.
9436         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
9437         * lib/unistdio/ulc-vsnprintf.c: New file.
9438         * lib/unistdio/ulc-vsprintf.c: New file.
9439         * lib/unistdio/u8-asnprintf.c: New file.
9440         * lib/unistdio/u8-asprintf.c: New file.
9441         * lib/unistdio/u8-printf-parse.c: New file.
9442         * lib/unistdio/u8-snprintf.c: New file.
9443         * lib/unistdio/u8-sprintf.c: New file.
9444         * lib/unistdio/u8-vasnprintf.c: New file.
9445         * lib/unistdio/u8-vasprintf.c: New file.
9446         * lib/unistdio/u8-vsnprintf.c: New file.
9447         * lib/unistdio/u8-vsprintf.c: New file.
9448         * lib/unistdio/u8-u8-asnprintf.c: New file.
9449         * lib/unistdio/u8-u8-asprintf.c: New file.
9450         * lib/unistdio/u8-u8-snprintf.c: New file.
9451         * lib/unistdio/u8-u8-sprintf.c: New file.
9452         * lib/unistdio/u8-u8-vasnprintf.c: New file.
9453         * lib/unistdio/u8-u8-vasprintf.c: New file.
9454         * lib/unistdio/u8-u8-vsnprintf.c: New file.
9455         * lib/unistdio/u8-u8-vsprintf.c: New file.
9456         * lib/unistdio/u16-asnprintf.c: New file.
9457         * lib/unistdio/u16-asprintf.c: New file.
9458         * lib/unistdio/u16-printf-parse.c: New file.
9459         * lib/unistdio/u16-snprintf.c: New file.
9460         * lib/unistdio/u16-sprintf.c: New file.
9461         * lib/unistdio/u16-vasnprintf.c: New file.
9462         * lib/unistdio/u16-vasprintf.c: New file.
9463         * lib/unistdio/u16-vsnprintf.c: New file.
9464         * lib/unistdio/u16-vsprintf.c: New file.
9465         * lib/unistdio/u16-u16-asnprintf.c: New file.
9466         * lib/unistdio/u16-u16-asprintf.c: New file.
9467         * lib/unistdio/u16-u16-snprintf.c: New file.
9468         * lib/unistdio/u16-u16-sprintf.c: New file.
9469         * lib/unistdio/u16-u16-vasnprintf.c: New file.
9470         * lib/unistdio/u16-u16-vasprintf.c: New file.
9471         * lib/unistdio/u16-u16-vsnprintf.c: New file.
9472         * lib/unistdio/u16-u16-vsprintf.c: New file.
9473         * lib/unistdio/u32-asnprintf.c: New file.
9474         * lib/unistdio/u32-asprintf.c: New file.
9475         * lib/unistdio/u32-printf-parse.c: New file.
9476         * lib/unistdio/u32-snprintf.c: New file.
9477         * lib/unistdio/u32-sprintf.c: New file.
9478         * lib/unistdio/u32-vasnprintf.c: New file.
9479         * lib/unistdio/u32-vasprintf.c: New file.
9480         * lib/unistdio/u32-vsnprintf.c: New file.
9481         * lib/unistdio/u32-vsprintf.c: New file.
9482         * lib/unistdio/u32-u32-asnprintf.c: New file.
9483         * lib/unistdio/u32-u32-asprintf.c: New file.
9484         * lib/unistdio/u32-u32-snprintf.c: New file.
9485         * lib/unistdio/u32-u32-sprintf.c: New file.
9486         * lib/unistdio/u32-u32-vasnprintf.c: New file.
9487         * lib/unistdio/u32-u32-vasprintf.c: New file.
9488         * lib/unistdio/u32-u32-vsnprintf.c: New file.
9489         * lib/unistdio/u32-u32-vsprintf.c: New file.
9490         * tests/unistdio/test-ulc-asnprintf1.c: New file.
9491         * tests/unistdio/test-ulc-asnprintf1.h: New file.
9492         * tests/unistdio/test-ulc-printf1.h: New file.
9493         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
9494         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
9495         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
9496         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
9497         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
9498         * tests/unistdio/test-ulc-vasprintf1.c: New file.
9499         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
9500         * tests/unistdio/test-ulc-vsprintf1.c: New file.
9501         * tests/unistdio/test-u8-asnprintf1.c: New file.
9502         * tests/unistdio/test-u8-asnprintf1.h: New file.
9503         * tests/unistdio/test-u8-printf1.h: New file.
9504         * tests/unistdio/test-u8-vasnprintf1.c: New file.
9505         * tests/unistdio/test-u8-vasnprintf2.c: New file.
9506         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
9507         * tests/unistdio/test-u8-vasnprintf3.c: New file.
9508         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
9509         * tests/unistdio/test-u8-vasprintf1.c: New file.
9510         * tests/unistdio/test-u8-vsnprintf1.c: New file.
9511         * tests/unistdio/test-u8-vsprintf1.c: New file.
9512         * tests/unistdio/test-u16-asnprintf1.c: New file.
9513         * tests/unistdio/test-u16-asnprintf1.h: New file.
9514         * tests/unistdio/test-u16-printf1.h: New file.
9515         * tests/unistdio/test-u16-vasnprintf1.c: New file.
9516         * tests/unistdio/test-u16-vasnprintf2.c: New file.
9517         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
9518         * tests/unistdio/test-u16-vasnprintf3.c: New file.
9519         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
9520         * tests/unistdio/test-u16-vasprintf1.c: New file.
9521         * tests/unistdio/test-u16-vsnprintf1.c: New file.
9522         * tests/unistdio/test-u16-vsprintf1.c: New file.
9523         * tests/unistdio/test-u32-asnprintf1.c: New file.
9524         * tests/unistdio/test-u32-asnprintf1.h: New file.
9525         * tests/unistdio/test-u32-printf1.h: New file.
9526         * tests/unistdio/test-u32-vasnprintf1.c: New file.
9527         * tests/unistdio/test-u32-vasnprintf2.c: New file.
9528         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
9529         * tests/unistdio/test-u32-vasnprintf3.c: New file.
9530         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
9531         * tests/unistdio/test-u32-vasprintf1.c: New file.
9532         * tests/unistdio/test-u32-vsnprintf1.c: New file.
9533         * tests/unistdio/test-u32-vsprintf1.c: New file.
9534         * modules/unistdio/base: New file.
9535         * modules/unistdio/u-printf-args: New file.
9536         * modules/unistdio/ulc-asnprintf: New file.
9537         * modules/unistdio/ulc-asprintf: New file.
9538         * modules/unistdio/ulc-fprintf: New file.
9539         * modules/unistdio/ulc-printf-parse: New file.
9540         * modules/unistdio/ulc-snprintf: New file.
9541         * modules/unistdio/ulc-sprintf: New file.
9542         * modules/unistdio/ulc-vasnprintf: New file.
9543         * modules/unistdio/ulc-vasprintf: New file.
9544         * modules/unistdio/ulc-vfprintf: New file.
9545         * modules/unistdio/ulc-vsnprintf: New file.
9546         * modules/unistdio/ulc-vsprintf: New file.
9547         * modules/unistdio/u8-asnprintf: New file.
9548         * modules/unistdio/u8-asprintf: New file.
9549         * modules/unistdio/u8-printf-parse: New file.
9550         * modules/unistdio/u8-snprintf: New file.
9551         * modules/unistdio/u8-sprintf: New file.
9552         * modules/unistdio/u8-vasnprintf: New file.
9553         * modules/unistdio/u8-vasprintf: New file.
9554         * modules/unistdio/u8-vsnprintf: New file.
9555         * modules/unistdio/u8-vsprintf: New file.
9556         * modules/unistdio/u8-u8-asnprintf: New file.
9557         * modules/unistdio/u8-u8-asprintf: New file.
9558         * modules/unistdio/u8-u8-snprintf: New file.
9559         * modules/unistdio/u8-u8-sprintf: New file.
9560         * modules/unistdio/u8-u8-vasnprintf: New file.
9561         * modules/unistdio/u8-u8-vasprintf: New file.
9562         * modules/unistdio/u8-u8-vsnprintf: New file.
9563         * modules/unistdio/u8-u8-vsprintf: New file.
9564         * modules/unistdio/u16-asnprintf: New file.
9565         * modules/unistdio/u16-asprintf: New file.
9566         * modules/unistdio/u16-printf-parse: New file.
9567         * modules/unistdio/u16-snprintf: New file.
9568         * modules/unistdio/u16-sprintf: New file.
9569         * modules/unistdio/u16-vasnprintf: New file.
9570         * modules/unistdio/u16-vasprintf: New file.
9571         * modules/unistdio/u16-vsnprintf: New file.
9572         * modules/unistdio/u16-vsprintf: New file.
9573         * modules/unistdio/u16-u16-asnprintf: New file.
9574         * modules/unistdio/u16-u16-asprintf: New file.
9575         * modules/unistdio/u16-u16-snprintf: New file.
9576         * modules/unistdio/u16-u16-sprintf: New file.
9577         * modules/unistdio/u16-u16-vasnprintf: New file.
9578         * modules/unistdio/u16-u16-vasprintf: New file.
9579         * modules/unistdio/u16-u16-vsnprintf: New file.
9580         * modules/unistdio/u16-u16-vsprintf: New file.
9581         * modules/unistdio/u32-asnprintf: New file.
9582         * modules/unistdio/u32-asprintf: New file.
9583         * modules/unistdio/u32-printf-parse: New file.
9584         * modules/unistdio/u32-snprintf: New file.
9585         * modules/unistdio/u32-sprintf: New file.
9586         * modules/unistdio/u32-vasnprintf: New file.
9587         * modules/unistdio/u32-vasprintf: New file.
9588         * modules/unistdio/u32-vsnprintf: New file.
9589         * modules/unistdio/u32-vsprintf: New file.
9590         * modules/unistdio/u32-u32-asnprintf: New file.
9591         * modules/unistdio/u32-u32-asprintf: New file.
9592         * modules/unistdio/u32-u32-snprintf: New file.
9593         * modules/unistdio/u32-u32-sprintf: New file.
9594         * modules/unistdio/u32-u32-vasnprintf: New file.
9595         * modules/unistdio/u32-u32-vasprintf: New file.
9596         * modules/unistdio/u32-u32-vsnprintf: New file.
9597         * modules/unistdio/u32-u32-vsprintf: New file.
9598         * modules/unistdio/ulc-asnprintf-tests: New file.
9599         * modules/unistdio/ulc-vasnprintf-tests: New file.
9600         * modules/unistdio/ulc-vasprintf-tests: New file.
9601         * modules/unistdio/ulc-vsnprintf-tests: New file.
9602         * modules/unistdio/ulc-vsprintf-tests: New file.
9603         * modules/unistdio/u8-asnprintf-tests: New file.
9604         * modules/unistdio/u8-vasnprintf-tests: New file.
9605         * modules/unistdio/u8-vasprintf-tests: New file.
9606         * modules/unistdio/u8-vsnprintf-tests: New file.
9607         * modules/unistdio/u8-vsprintf-tests: New file.
9608         * modules/unistdio/u16-asnprintf-tests: New file.
9609         * modules/unistdio/u16-vasnprintf-tests: New file.
9610         * modules/unistdio/u16-vasprintf-tests: New file.
9611         * modules/unistdio/u16-vsnprintf-tests: New file.
9612         * modules/unistdio/u16-vsprintf-tests: New file.
9613         * modules/unistdio/u32-asnprintf-tests: New file.
9614         * modules/unistdio/u32-vasnprintf-tests: New file.
9615         * modules/unistdio/u32-vasprintf-tests: New file.
9616         * modules/unistdio/u32-vsnprintf-tests: New file.
9617         * modules/unistdio/u32-vsprintf-tests: New file.
9618         * MODULES.html.sh (Unicode string functions): Add the new modules.
9619
9620 2007-07-01  Bruno Haible  <bruno@clisp.org>
9621
9622         * lib/sprintf.c (sprintf): Limit the available length estimation,
9623         to avoid address wraparound.
9624         * lib/vsprintf.c (vsprintf): Likewise.
9625         * modules/sprintf-posix (Dependencies): Add stdint.
9626         * modules/vsprintf-posix (Dependencies): Likewise.
9627
9628 2007-07-01  Bruno Haible  <bruno@clisp.org>
9629
9630         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
9631         Windows PATH as well. Conservative double-quoting. Comments.
9632
9633 2007-07-01  Bruno Haible  <bruno@clisp.org>
9634             Eric Blake  <ebb9@byu.net>
9635             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9636
9637         * gnulib-tool (self_abspathname): Fix algorithm to cope with
9638         empty components in $PATH, denoting '.'.
9639
9640 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9641
9642         * gnulib-tool: Fix indentation.
9643         (func_create_megatestdir): Likewise.
9644         Report by Bruno Haible.
9645
9646 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9647
9648         Sync from Automake.
9649         * build-aux/gnupload: Fix shell portability issues with for loops.
9650         Report by Karl Berry.
9651
9652 2007-06-29  Simon Josefsson  <simon@josefsson.org>
9653
9654         * build-aux/maint.mk (POURL): Use translationproject.org.
9655
9656 2007-06-27  Simon Josefsson  <simon@josefsson.org>
9657             Bruno Haible  <bruno@clisp.org>
9658
9659         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
9660         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
9661         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
9662         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
9663         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
9664
9665 2007-06-27  Bruno Haible  <bruno@clisp.org>
9666
9667         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
9668         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
9669
9670 2007-06-26  Karl Berry  <karl@gnu.org>
9671
9672         * MODULES.html.sh: remove xreadlink-with-size.
9673
9674 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9675
9676         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
9677         method that I hope also handles the double-include problem noted
9678         by Bruno Haible in
9679         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
9680
9681 2007-06-23  Bruno Haible  <bruno@clisp.org>
9682
9683         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9684         Don't let the 'mostlyclean' target fail if the last subdirectory could
9685         not be removed.
9686         Reported by Karl Berry.
9687
9688 2007-06-23  Bruno Haible  <bruno@clisp.org>
9689
9690         * gnulib-tool (echo): Add a speedier workaround for ksh.
9691         * tests/test-echo.sh: Likewise.
9692
9693 2007-06-23  Bruno Haible  <bruno@clisp.org>
9694
9695         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
9696         * tests/test-echo.sh: Likewise.
9697
9698 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9699
9700         * gnulib-tool (IFS): Initialize early, so we don't set it to
9701         empty later.
9702         (self_abspathname): Rewrite algorithm to set it, reindent.
9703         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
9704         (func_create_megatestdir): Merge some sed scripts.
9705
9706 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9707
9708         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
9709         exposed by Sun Studio 11 cc on Solaris 8.
9710
9711 2007-06-22  Bruno Haible  <bruno@clisp.org>
9712
9713         * gnulib-tool (echo): Ensure the echo primitive does not interpret
9714         backslashes.
9715         * tests/test-echo.sh: New file.
9716
9717 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9718
9719         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
9720         simplify `sed_replace_build_aux' scripts, they are portable but
9721         echoing them with `echo' is not.
9722         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
9723
9724 2007-06-21  Karl Berry  <karl@gnu.org>
9725
9726         * config/srclist.txt: guess we can't handle the licenses via
9727         srclist at the moment.
9728
9729 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
9730
9731         * MODULES.html.sh: Add include_next.
9732         * modules/include_next: New file.
9733
9734 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9735
9736         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
9737         INCLUDE_NEXT.
9738         (gl_CHECK_NEXT_HEADERS): New macro.
9739         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
9740         the obsolescent gl_ABSOLUTE_HEADER.
9741         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
9742         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
9743         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
9744         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9745         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9746         * m4/math_h.m4 (gl_MATH_H): Likewise.
9747         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
9748         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9749         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9750         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9751         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9752         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9753         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9754         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9755         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9756         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9757         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9758         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9759         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9760         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9761         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9762         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9763         * m4/inttypes.m4 (gl_INTTYPES_H): Define
9764         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
9765         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
9766         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
9767         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
9768         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
9769         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
9770         * lib/float_.h: Likewise.
9771         * lib/inttypes_.h: Likewise.
9772         * lib/math_.h: Likewise.
9773         * lib/search_.h: Likewise.
9774         * lib/signal_.h: Likewise.
9775         * lib/stdint_.h: Likewise.
9776         * lib/stdio_.h: Likewise.
9777         * lib/stdlib_.h: Likewise.
9778         * lib/string_.h: Likewise.
9779         * lib/sys_stat_.h: Likewise.
9780         * lib/sys_time_.h: Likewise.
9781         * lib/time_.h: Likewise.
9782         * lib/unistd_.h: Likewise.
9783         * lib/wchar_.h: Likewise.
9784         * lib/wctype_.h: Likewise.
9785         * lib/dirent_.h: Likewise.
9786         * lib/iconv_.h: Likewise.
9787         * lib/locale_.h: Likewise.
9788         * lib/netinet_in_.h: Likewise.
9789         * lib/sys_select_.h: Likewise.
9790         * lib/sys_socket_.h: Likewise.
9791         * lib/sysexits_.h: Likewise.
9792         * modules/fcntl (Depends-on): Depend on include_next, not
9793         absolute_header.
9794         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
9795         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
9796         * modules/fchdir: Likewise.
9797         * modules/float: Likewise.
9798         * modules/iconv_open: Likewise.
9799         * modules/inttypes: Likewise.
9800         * modules/locale: Likewise.
9801         * modules/math: Likewise.
9802         * modules/netinet_in: Likewise.
9803         * modules/search: Likewise.
9804         * modules/signal: Likewise.
9805         * modules/stdint: Likewise.
9806         * modules/stdio: Likewise.
9807         * modules/stdlib: Likewise.
9808         * modules/string: Likewise.
9809         * modules/sys_select: Likewise.
9810         * modules/sys_socket: Likewise.
9811         * modules/sys_stat: Likewise.
9812         * modules/sys_time: Likewise.
9813         * modules/sysexits: Likewise.
9814         * modules/time: Likewise.
9815         * modules/unistd: Likewise.
9816         * modules/wchar: Likewise.
9817         * modules/wctype: Likewise.
9818         * modules/sys_stat: Change maintainer to "all".
9819         * modules/unistd: Likewise.
9820
9821 2007-06-20  Karl Berry  <karl@gnu.org>
9822
9823         * config/srclist.txt: track www changes in license files.
9824
9825 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
9826
9827         * build-aux/bootstrap: Remove stray dot.
9828         Make sure build_aux settings are honored when linking
9829         gnulib_extra_files.
9830
9831 2007-06-19  Eric Blake  <ebb9@byu.net>
9832
9833         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
9834         Allow compilation on cygwin.
9835
9836 2007-06-19  Jim Meyering  <jim@meyering.net>
9837
9838         xreadlink-with-size: Remove module.  No longer used.
9839         Ex-callers now use xreadlink or mreadlink-with-size.
9840         * modules/xreadlink-with-size: Remove module.
9841         * lib/xreadlink-with-size.c: Remove file.
9842         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
9843         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
9844         just before the function definition *is* accurate.
9845
9846         Eliminate one way canonicalize_filename_mode could exit.
9847         * lib/canonicalize.c (canonicalize_filename_mode):
9848         Use mreadlink_with_size, not xreadlink_with_size.
9849
9850 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
9851
9852         Detect porting problems to FreeBSD/arm, which has time_t wider than
9853         long int.  Original problem reported for GNU diff by Xin Li in
9854         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
9855         * modules/getdate (Depends-on): Add intprops, verify.
9856         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
9857         is an integer type no wider than long int.
9858
9859 2007-06-18  Jim Meyering  <jim@meyering.net>
9860
9861         New module: mreadlink-with-size.
9862         * MODULES.html.sh: Add mreadlink-with-size.
9863         * modules/mreadlink-with-size: New module
9864         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
9865         not xreadlink-with-size.
9866         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
9867
9868 2007-06-16  Bruno Haible  <bruno@clisp.org>
9869
9870         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
9871         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
9872         Reported by Gary V. Vaughan <gary@gnu.org>.
9873
9874 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9875
9876         Revamp lchown so that it lives in unistd.h where it belongs.
9877         * lib/lchown.h: Remove.
9878         * lib/dirchownmod.c: Don't include lib/lchown.h.
9879         * lib/fchownat.c: Likewise.
9880         * lib/openat.c: Likewise.
9881         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
9882         does not follow symlinks.
9883         (EOPNOTSUPP): Define if not defined.
9884         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
9885         is defined to 0.
9886         (lchown): New decl.
9887         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
9888         Do not check for lchown decl.
9889         Set REPLACE_LCHOWN.
9890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
9891         REPLACE_LCHOWN.
9892         * modules/chown: Make it clear it follows symlinks.
9893         * modules/lchown: Make it clear it doesn't follow symlinks.
9894         (Files): Remove lib/lchown.h
9895         (Depends-on): Add unistd.
9896         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
9897         (Include): Include <unistd.h>, not "lchown.h".
9898         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
9899         REPLACE_LCHOWN.
9900
9901 2007-06-15  Jim Meyering  <jim@meyering.net>
9902
9903         Change license (GPL to LGPL) of fsusage and dependents.
9904         * modules/fsusage (License): Change to LGPL.
9905         * modules/full-read (License): Likewise.
9906         * modules/full-write (License): Likewise.
9907         * modules/safe-read (License): Likewise.
9908         * modules/safe-write (License): Likewise.
9909
9910 2007-06-14  Ben Pfaff  <blp@gnu.org>
9911
9912         Missing part of allocsa -> malloca transition.
9913         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
9914         gl_MALLOCA.
9915
9916 2007-06-12  Bruno Haible  <bruno@clisp.org>
9917
9918         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
9919         to ia64, x86_64, i386.
9920         Reported by Eric Blake.
9921
9922 2007-06-12  Bruno Haible  <bruno@clisp.org>
9923
9924         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
9925         cross-compiling to x86_64.
9926
9927 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
9928
9929         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
9930         glitch reported by Ralf Wildenhues in
9931         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
9932
9933         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
9934         Vin Shelton.
9935
9936 2007-06-11  Bruno Haible  <bruno@clisp.org>
9937
9938         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
9939         replacement string.
9940         Reported by Eric Blake.
9941
9942 2007-06-10  Bruno Haible  <bruno@clisp.org>
9943
9944         Prepare vasnprintf code for use with Unicode strings.
9945         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
9946         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
9947         TYPE_U32_STRING.
9948         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
9949         a_u32_string variants.
9950         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
9951         * lib/printf-args.c: Don't include config.h and the specification
9952         header if PRINTF_FETCHARGS is already defined.
9953         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
9954         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
9955         TYPE_U16_STRING, TYPE_U32_STRING.
9956         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
9957         u16_directive, u16_directives, u32_directive, u32_directives): New
9958         types.
9959         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
9960         New declarations.
9961         * lib/printf-parse.c: Don't include config.h and the specification
9962         header if PRINTF_PARSE is already defined. Eliminate the set of
9963         parameters for WIDE_CHAR_VERSION; the user of this file must provide
9964         them now. Include c-ctype.h.
9965         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
9966         directive and CHAR_T_ONLY_ASCII.
9967         * lib/vasnprintf.c: Don't include config.h and the specification header
9968         if VASNPRINTF is already defined.
9969         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
9970         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
9971         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
9972         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
9973         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
9974         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
9975         code accordingly.
9976         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
9977         pad_ourselves also in this case, with the 'c' and 's' directives, and
9978         with a different notion of "width".
9979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
9980
9981 2007-06-10  Bruno Haible  <bruno@clisp.org>
9982
9983         * modules/unistr/u32-mbsnlen: New file.
9984         * lib/unistr/u32-mbsnlen.c: New file.
9985
9986         * modules/unistr/u16-mbsnlen: New file.
9987         * lib/unistr/u16-mbsnlen.c: New file.
9988
9989         * modules/unistr/u8-mbsnlen: New file.
9990         * lib/unistr/u8-mbsnlen.c: New file.
9991
9992         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
9993         declarations.
9994
9995 2007-06-10  Bruno Haible  <bruno@clisp.org>
9996
9997         * lib/string_.h (mbsnlen): New declaration.
9998         * lib/mbsnlen.c: New file.
9999         * m4/mbsnlen.m4: New file.
10000         * modules/mbsnlen: New file.
10001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
10002         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
10003         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
10004
10005 2007-06-10  Bruno Haible  <bruno@clisp.org>
10006
10007         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
10008
10009 2007-06-10  Bruno Haible  <bruno@clisp.org>
10010
10011         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
10012         * lib/mbuiter.h: Likewise.
10013
10014 2007-06-10  Bruno Haible  <bruno@clisp.org>
10015
10016         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
10017         declaration.
10018
10019 2007-06-10  Karl Berry  <karl@gnu.org>
10020
10021         * config/srclist.txt: remove gettext entries, Bruno prefers
10022         to update individually.
10023
10024 2007-06-10  Bruno Haible  <bruno@clisp.org>
10025
10026         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
10027         'maxlen'. Ensure only length + width bytes are allocated, not
10028         length + 1 + width.
10029
10030 2007-06-09  Bruno Haible  <bruno@clisp.org>
10031
10032         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
10033         (CHAR_T): Remove macro.
10034         (VASNPRINTF): Update.
10035
10036 2007-06-09  Bruno Haible  <bruno@clisp.org>
10037
10038         * MODULES.html.sh (Unicode string functions): Add the new modules.
10039
10040         * modules/uniconv/u32-conv-to-enc: New file.
10041         * lib/uniconv/u32-conv-to-enc.c: New file.
10042         * modules/uniconv/u32-conv-to-enc-tests: New file.
10043         * tests/uniconv/test-u32-conv-to-enc.c: New file.
10044
10045         * modules/uniconv/u16-conv-to-enc: New file.
10046         * lib/uniconv/u16-conv-to-enc.c: New file.
10047         * lib/uniconv/u-conv-to-enc.h: New file.
10048         * modules/uniconv/u16-conv-to-enc-tests: New file.
10049         * tests/uniconv/test-u16-conv-to-enc.c: New file.
10050
10051         * modules/uniconv/u8-conv-to-enc: New file.
10052         * lib/uniconv/u8-conv-to-enc.c: New file.
10053         * modules/uniconv/u8-conv-to-enc-tests: New file.
10054         * tests/uniconv/test-u8-conv-to-enc.c: New file.
10055
10056         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
10057         u32_conv_to_encoding): New declarations.
10058
10059 2007-06-09  Bruno Haible  <bruno@clisp.org>
10060
10061         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
10062
10063 2007-06-09  Bruno Haible  <bruno@clisp.org>
10064
10065         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
10066         * modules/malloca: Renamed from modules/allocsa, updated.
10067         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
10068         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
10069         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
10070         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
10071         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
10072         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
10073         * modules/xmalloca: Renamed from modules/xallocsa, updated.
10074         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
10075         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
10076         * modules/c-strcasestr (Depends-on): Update.
10077         * lib/c-strcasestr.c: Update.
10078         * modules/c-strstr (Depends-on): Update.
10079         * lib/c-strstr.c: Update.
10080         * modules/canonicalize-lgpl (Depends-on): Update.
10081         * lib/canonicalize-lgpl.c: Update.
10082         * modules/clean-temp (Depends-on): Update.
10083         * lib/clean-temp.c: Update.
10084         * modules/csharpcomp (Depends-on): Update.
10085         * lib/csharpcomp.c: Update.
10086         * modules/csharpexec (Depends-on): Update.
10087         * lib/csharpexec.c: Update.
10088         * modules/javacomp (Depends-on): Update.
10089         * lib/javacomp.c: Update.
10090         * modules/javaexec (Depends-on): Update.
10091         * lib/javaexec.c: Update.
10092         * modules/mbscasestr (Depends-on): Update.
10093         * lib/mbscasestr.c: Update.
10094         * modules/mbsstr (Depends-on): Update.
10095         * lib/mbsstr.c: Update.
10096         * modules/setenv (Depends-on): Update.
10097         * lib/setenv.c: Update.
10098         * modules/strcasestr (Depends-on): Update.
10099         * lib/strcasestr.c: Update.
10100         * modules/striconveha (Depends-on): Update.
10101         * lib/striconveha.c: Update.
10102         * modules/relocatable-prog-wrapper (Files): Update.
10103         * lib/relocwrapper.c: Update.
10104         * build-aux/install-reloc: Update.
10105         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
10106
10107 2007-06-08  Bruno Haible  <bruno@clisp.org>
10108
10109         Port to uClibc.
10110         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
10111         * lib/fpurge.c (fpurge): Likewise.
10112         * lib/freading.c (freading): Likewise.
10113         * lib/fseeko.c (rpl_fseeko): Likewise.
10114         * lib/fseterr.c (fseterr): Likewise.
10115         * lib/fwriting.c (fwriting): Likewise.
10116         * tests/test-fflush.c (main): Avoid a failure on uClibc.
10117
10118 2007-06-08  Bruno Haible  <bruno@clisp.org>
10119
10120         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
10121         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
10122         * modules/gettext (Files): Add m4/intlmacosx.m4.
10123
10124 2007-06-07  Bruno Haible  <bruno@clisp.org>
10125
10126         * modules/localename-tests: New file.
10127         * tests/test-localename.c: New file.
10128
10129         New module 'localename'.
10130         * lib/localename.h: New file.
10131         * lib/localename.c: New file, from GNU gettext.
10132         * m4/localename.m4: New file.
10133         * modules/localename: New file.
10134
10135 2007-06-07  Bruno Haible  <bruno@clisp.org>
10136
10137         Work around the lack of <wchar.h> on some builds of uClibc.
10138         * doc/headers/wchar.texi: Update.
10139         * lib/wchar_.h: Include <wchar.h> only if it exists.
10140         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
10141         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
10142         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
10143         doesn't exist.
10144         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
10145         * modules/mbfile (Depends-on): Add wchar.
10146         * modules/mbiter (Depends-on): Likewise.
10147         * modules/mbuiter (Depends-on): Likewise.
10148         Reported by Simon Josefsson.
10149
10150 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10151
10152         Work around problem reported by Steven M. Schweda in
10153         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
10154         Tru64 5.1B with the Compaq compiler environment installed declares
10155         an 'isblank' function but does not define it in the C library.
10156         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
10157         * lib/regex_internal.h (isblank): Likewise.
10158         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
10159         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10160
10161 2007-06-05  Bruno Haible  <bruno@clisp.org>
10162
10163         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
10164         ia64.
10165         * modules/printf-safe: New file.
10166         * modules/fprintf-posix (Depends-on): Add printf-safe.
10167         * modules/printf-posix (Depends-on): Likewise.
10168         * modules/snprintf-posix (Depends-on): Likewise.
10169         * modules/sprintf-posix (Depends-on): Likewise.
10170         * modules/vasnprintf-posix (Depends-on): Likewise.
10171         * modules/vasprintf-posix (Depends-on): Likewise.
10172         * modules/vfprintf-posix (Depends-on): Likewise.
10173         * modules/vprintf-posix (Depends-on): Likewise.
10174         * modules/vsnprintf-posix (Depends-on): Likewise.
10175         * modules/vsprintf-posix (Depends-on): Likewise.
10176         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10177         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
10178         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
10179         "no" on i386, x86_64, ia64.
10180         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
10181         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10182         on i386, x86_64, ia64.
10183         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
10184         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10185         on i386, x86_64, ia64.
10186         * tests/test-vasnprintf-posix.c: Include float.h.
10187         (LDBL80_WORDS): New macro.
10188         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10189         on i386, x86_64, ia64.
10190         * tests/test-vasprintf-posix.c: Include float.h.
10191         (LDBL80_WORDS): New macro.
10192         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10193         on i386, x86_64, ia64.
10194         * tests/test-snprintf-posix.c: Include float.h.
10195         * tests/test-sprintf-posix.c: Likewise.
10196         * tests/test-vsnprintf-posix.c: Likewise.
10197         * tests/test-vsprintf-posix.c: Likewise.
10198
10199 2007-06-05  Bruno Haible  <bruno@clisp.org>
10200
10201         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
10202         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
10203         non-IEEE numbers on i386, x86_64, ia64.
10204         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
10205         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
10206         * tests/test-isnanl.h: Include float.h.
10207         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
10208
10209 2007-06-05  Bruno Haible  <bruno@clisp.org>
10210
10211         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
10212         also the %a / %A. Handle the %a / %A code before this extra handling.
10213
10214 2007-06-05  Bruno Haible  <bruno@clisp.org>
10215
10216         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
10217         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
10218
10219 2007-06-05  Bruno Haible  <bruno@clisp.org>
10220
10221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
10222         typo in variable name.
10223
10224 2007-06-05  Eric Blake  <ebb9@byu.net>
10225
10226         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
10227         Reported by Simon Josefsson.
10228
10229 2007-06-04  Bruno Haible  <bruno@clisp.org>
10230
10231         Avoid test failures on some PowerPC platforms.
10232         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
10233         Define differently for PowerPC.
10234         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
10235         Reported by Gary V. Vaughan <gary@gnu.org>.
10236
10237 2007-06-02  Bruno Haible  <bruno@clisp.org>
10238
10239         Fix test-stdint failure on FreeBSD/ia64.
10240         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
10241         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
10242         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
10243         * doc/headers/stdint.texi: Update.
10244
10245 2007-06-01  Bruno Haible  <bruno@clisp.org>
10246
10247         * tests/test-binary-io.c (main): Pass a third argument to open().
10248         Reported by Gary V. Vaughan <gary@gnu.org>.
10249
10250 2007-06-01  Bruno Haible  <bruno@clisp.org>
10251
10252         * doc/functions/frexpl.texi: Update for mingw.
10253
10254 2007-06-01  Bruno Haible  <bruno@clisp.org>
10255
10256         * tests/test-lseek.c (main): Disable test of errno for invalid third
10257         argument.
10258         * doc/functions/lseek.texi: Update.
10259         Reported by Gary V. Vaughan <gary@gnu.org>.
10260
10261 2007-05-28  Bruno Haible  <bruno@clisp.org>
10262
10263         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
10264
10265 2007-05-31  Eric Blake  <ebb9@byu.net>
10266
10267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
10268         cross compiling.
10269
10270 2007-05-30  Eric Blake  <ebb9@byu.net>
10271         and Bruno Haible  <bruno@clisp.org>
10272
10273         Work around mingw test failures exposed by m4-1.4.9b.
10274         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
10275         * tests/test-unistd.c: Disable uid_t and git_t tests for the
10276         moment.
10277
10278 2007-05-30  Bruno Haible  <bruno@clisp.org>
10279
10280         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
10281         assuming that they are closed. Needed on HP-UX 11.
10282
10283 2007-05-29  Bruno Haible  <bruno@clisp.org>
10284
10285         Fix a problem with #include_next.
10286         * lib/dirent_.h: Split the double-inclusion guard.
10287         * lib/fcntl_.h: Likewise.
10288         * lib/float_.h: Likewise.
10289         * lib/iconv_.h: Likewise.
10290         * lib/inttypes_.h: Likewise.
10291         * lib/locale_.h: Likewise.
10292         * lib/math_.h: Likewise.
10293         * lib/netinet_in_.h: Likewise.
10294         * lib/search_.h: Likewise.
10295         * lib/signal_.h: Likewise.
10296         * lib/stdint_.h: Likewise.
10297         * lib/stdio_.h: Likewise.
10298         * lib/stdlib_.h: Likewise.
10299         * lib/string_.h: Likewise.
10300         * lib/sys_select_.h: Likewise.
10301         * lib/sys_socket_.h: Likewise.
10302         * lib/sys_stat_.h: Likewise.
10303         * lib/sys_time_.h: Likewise.
10304         * lib/sysexits_.h: Likewise.
10305         * lib/time_.h: Likewise.
10306         * lib/unistd_.h: Likewise.
10307         * lib/wchar_.h: Likewise.
10308         * lib/wctype_.h: Likewise.
10309
10310 2007-05-29  Bruno Haible  <bruno@clisp.org>
10311
10312         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
10313         for the moment.
10314
10315 2007-05-29  Bruno Haible  <bruno@clisp.org>
10316
10317         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
10318         invocation.
10319         Reported by Eric Blake.
10320
10321 2007-05-29  Bruno Haible  <bruno@clisp.org>
10322
10323         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
10324         compiling case.
10325
10326 2007-05-29  Eric Blake  <ebb9@byu.net>
10327             Bruno Haible  <bruno@clisp.org>
10328
10329         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
10330         cross compiles.
10331
10332 2007-05-28  Eric Blake  <ebb9@byu.net>
10333
10334         * modules/closein-tests (test_closein_LDADD): Support test on
10335         cygwin with libtool.
10336
10337 2007-05-28  Bruno Haible  <bruno@clisp.org>
10338
10339         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
10340         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10341         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10342         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10343         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10344         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10345         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10346         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10347         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10348
10349 2007-05-28  Eric Blake  <ebb9@byu.net>
10350
10351         Unconditionally include <config.h> in unit tests.
10352         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
10353         * tests/test-allocsa.c, tests/test-arcfour.c,
10354         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
10355         tests/test-array_list.c, tests/test-array_oset.c,
10356         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
10357         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
10358         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
10359         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
10360         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
10361         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
10362         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
10363         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
10364         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
10365         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
10366         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
10367         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
10368         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
10369         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
10370         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
10371         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
10372         test-md5.c, test-memmem.c, test-printf-posix.c,
10373         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
10374         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
10375         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
10376         test-strcasestr.c, test-striconv.c, test-striconveh.c,
10377         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
10378         test-vasnprintf-posix2.c, test-vasnprintf.c,
10379         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
10380         test-vfprintf-posix.c, test-vprintf-posix.c,
10381         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
10382         test-xvasprintf.c: Likewise.
10383
10384 2007-05-28  Bruno Haible  <bruno@clisp.org>
10385
10386         * gnulib-tool (func_import): Remember the --with-tests command-line
10387         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
10388         Reported by Eric Blake.
10389
10390 2007-05-28  Bruno Haible  <bruno@clisp.org>
10391
10392         * modules/ftell-tests: New file.
10393         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
10394         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
10395
10396         * lib/ftell.c: New file.
10397         * modules/ftell: New file.
10398         * m4/ftell.m4: New file.
10399         * doc/functions/ftell.texi: Update.
10400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
10401         REPLACE_FTELL.
10402         * lib/stdio_.h (rpl_ftell): New declaration.
10403         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
10404         REPLACE_FTELL.
10405
10406 2007-05-28  Eric Blake  <ebb9@byu.net>
10407
10408         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
10409
10410 2007-05-28  Bruno Haible  <bruno@clisp.org>
10411
10412         * modules/fseek-tests: New file.
10413         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
10414         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
10415
10416         * lib/fseek.c: New file.
10417         * modules/fseek: New file.
10418         * m4/fseek.m4: New file.
10419         * doc/functions/fseek.texi: Update.
10420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
10421         REPLACE_FSEEK.
10422         * lib/stdio_.h (rpl_fseek): New declaration.
10423         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
10424         REPLACE_FSEEK.
10425
10426 2007-05-28  Bruno Haible  <bruno@clisp.org>
10427
10428         * lib/stdio_.h (fflush): More comments.
10429
10430 2007-05-28  Bruno Haible  <bruno@clisp.org>
10431
10432         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
10433         runtime test.
10434
10435 2007-05-28  Eric Blake  <ebb9@byu.net>
10436
10437         Improve lseek module.
10438         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
10439         * lib/unistd_.h (lseek): Scale back link warning message.
10440         * tests/test-lseek.c: Beef up test.
10441         * tests/test-lseek.sh: Exercise more facets of lseek.
10442         Reported by Bruno Haible.
10443
10444 2007-05-28  Bruno Haible  <bruno@clisp.org>
10445
10446         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
10447         to define.
10448
10449 2007-05-27  Bruno Haible  <bruno@clisp.org>
10450
10451         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
10452
10453 2007-05-27  Bruno Haible  <bruno@clisp.org>
10454
10455         * modules/openmp: New file.
10456         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
10457         Noah Misch.
10458
10459 2007-05-26  Bruno Haible  <bruno@clisp.org>
10460
10461         * modules/chdir-long (Depends-on): Add fchdir.
10462         * modules/chdir-safer (Depends-on): Likewise.
10463         * modules/fts (Depends-on): Likewise.
10464         * modules/fts-lgpl (Depends-on): Likewise.
10465         * modules/openat (Depends-on): Likewise.
10466         * modules/savewd (Depends-on): Likewise.
10467
10468 2007-05-24  Eric Blake  <ebb9@byu.net>
10469
10470         Fix lseek on mingw.
10471         * modules/lseek: New module.
10472         * m4/lseek.m4: New file.
10473         * lib/lseek.c: New file.
10474         * modules/lseek-tests: New file.
10475         * tests/test-lseek.c: New file.
10476         * tests/test-lseek.sh: New file.
10477         * MODULES.html.sh: Document lseek module.
10478         * modules/fflush (Depends-on): Add lseek, fseeko.
10479         * modules/fseeko (Depends-on): Likewise.
10480         * modules/ftello (Depends-on): Likewise.
10481         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
10482         broken.
10483         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
10484         broken.
10485         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
10486         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
10487         * lib/ftello.c (rpl_ftello): Likewise.
10488         * tests/test-fseeko.c (main): Test this.
10489         * tests/test-fseeko.sh: Likewise.
10490         * tests/test-ftello.c (main): Likewise.
10491         * tests/test-ftello.sh: Likewise.
10492         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
10493         implies replacing fseek.
10494         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
10495         HAVE_FTELLO.
10496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
10497         * modules/unistd (Makefile.am): Likewise.
10498         * lib/unistd_.h (lseek): Declare a replacement.
10499         * doc/functions/lseek.texi (lseek): Document this fix.
10500         * doc/functions/fseek.texi (fseek): Likewise.
10501         * doc/functions/ftell.texi (ftell): Likewise.
10502
10503 2007-05-24  Bruno Haible  <bruno@clisp.org>
10504
10505         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
10506         in the printed representation of a NaN.
10507         * tests/test-vasprintf-posix.c (test_function): Likewise.
10508         * tests/test-snprintf-posix.h (test_function): Likewise.
10509         * tests/test-sprintf-posix.h (test_function): Likewise.
10510         Reported by Eric Blake.
10511
10512 2007-05-23  Eric Blake  <ebb9@byu.net>
10513
10514         Fix fseeko/ftello on cygwin 1.5.24.
10515         * doc/functions/fseeko.texi (fseeko): Document the fix.
10516         * doc/functions/ftello.texi (ftello): Document the fix.
10517         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
10518         * doc/functions/stdout.text (stdout): New file.
10519         * doc/functions/stderr.text (stderr): New file.
10520         * doc/gnulib.texi (Function Substitutes): Use new files.
10521         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
10522         prior to 1.7.0.
10523         * tests/test-ftello.c (main): Likewise for ftello.
10524         * tests/test-fseeko.sh: New file.
10525         * tests/test-ftello.sh: New file.
10526         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
10527         with seekable stdin.
10528         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
10529         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
10530         (gl_REPLACE_FSEEKO): New macro.
10531         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
10532         * modules/fseeko (Files): Distribute fseeko.c.
10533         * modules/ftello (Files): Distribute ftello.c.
10534         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
10535         mode.
10536         * lib/ftello.c (rpl_ftello): New file.
10537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
10538         fseeko, ftello.
10539         (gl_STDIN_LARGE_OFFSET): New macro.
10540         * modules/stdio (Makefile.am): Perform the replacement.
10541         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
10542
10543 2007-05-23  Bruno Haible  <bruno@clisp.org>
10544
10545         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
10546         GNULIB_POSIXCHECK is defined.
10547
10548 2007-05-21  Bruno Haible  <bruno@clisp.org>
10549
10550         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
10551         Check also the output for NaN arguments. When cross-compiling, guess
10552         no on IRIX.
10553         * lib/vasnprintf.c: Update comments.
10554         * tests/test-vasnprintf-posix.c (strisnan): New function.
10555         (test_function): Use it.
10556         * tests/test-vasprintf-posix.c (strisnan): New function.
10557         (test_function): Use it.
10558         * tests/test-snprintf-posix.h (strisnan): New function.
10559         (test_function): Use it.
10560         * tests/test-sprintf-posix.h (strisnan): New function.
10561         (test_function): Use it.
10562         Reported by Eric Blake.
10563
10564 2007-05-20  Bruno Haible  <bruno@clisp.org>
10565
10566         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
10567         numbers that fails on BeOS.
10568         * doc/functions/frexpl.texi: Update.
10569
10570 2007-05-20  Jim Meyering  <jim@meyering.net>
10571
10572         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
10573         forced upon us by glibc-2.6.
10574
10575 2007-05-20  Bruno Haible  <bruno@clisp.org>
10576
10577         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
10578         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
10579         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
10580         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
10581         NEED_PRINTF_INFINITE.
10582         (is_infinitel): New function.
10583         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
10584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
10585         gl_PREREQ_VASNPRINTF_INFINITE.
10586         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
10587         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10588         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
10589         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
10590         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
10591         gl_PREREQ_VASNPRINTF_INFINITE.
10592         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10593         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10594         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10595         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10596         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10597         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10598         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10599         * doc/functions/fprintf.texi: Update.
10600         * doc/functions/printf.texi: Update.
10601         * doc/functions/snprintf.texi: Update.
10602         * doc/functions/sprintf.texi: Update.
10603         * doc/functions/vfprintf.texi: Update.
10604         * doc/functions/vprintf.texi: Update.
10605         * doc/functions/vsnprintf.texi: Update.
10606         * doc/functions/vsprintf.texi: Update.
10607
10608 2007-05-20  Bruno Haible  <bruno@clisp.org>
10609
10610         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
10611         was not found in libc.
10612         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10613
10614 2007-05-20  Bruno Haible  <bruno@clisp.org>
10615
10616         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10617         printed as "-nan" instead of "nan".
10618         * tests/test-vasprintf-posix.c (test_function): Likewise.
10619         * tests/test-snprintf-posix.h (test_function): Likewise.
10620         * tests/test-sprintf-posix.h (test_function): Likewise.
10621         Needed for HP-UX 11.
10622
10623 2007-05-20  Jim Meyering  <jim@meyering.net>
10624
10625         Fix buggy test for the fchownat-deref bug.
10626         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
10627         symlink required for the run-test.  Without it, this test would
10628         always declare that fchownat doesn't work, and client code would
10629         unnecessarily use the replacement function with fixed libc.
10630         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
10631         Reported by Greg Schafer.
10632
10633 2007-05-19  Bruno Haible  <bruno@clisp.org>
10634
10635         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
10636         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
10637         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
10638         Needed for IRIX 6.5 and Solaris 2.5.1.
10639
10640 2007-05-19  Bruno Haible  <bruno@clisp.org>
10641
10642         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
10643         (test_function): Skip tests involving -0.0 on platforms where
10644         -0.0 = 0.0.
10645         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
10646         (test_function): Skip tests involving -0.0 on platforms where
10647         -0.0 = 0.0.
10648         * tests/test-snprintf-posix.h (have_minus_zero): New function.
10649         (test_function): Skip tests involving -0.0 on platforms where
10650         -0.0 = 0.0.
10651         * tests/test-sprintf-posix.h (have_minus_zero): New function.
10652         (test_function): Skip tests involving -0.0 on platforms where
10653         -0.0 = 0.0.
10654         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
10655         tests.
10656         * tests/test-printf-posix.h (test_function): Likewise.
10657         * tests/test-printf-posix.output: Remove all -0.0 related results.
10658         Needed for IRIX 6.5.
10659
10660 2007-05-19  Bruno Haible  <bruno@clisp.org>
10661
10662         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10663         printed as "nan0x7fffffff" instead of "nan".
10664         * tests/test-vasprintf-posix.c (test_function): Likewise.
10665         * tests/test-snprintf-posix.h (test_function): Likewise.
10666         * tests/test-sprintf-posix.h (test_function): Likewise.
10667         * tests/test-fprintf-posix.h (NaN): Remove macro.
10668         (test_function): Remove all NaN related tests.
10669         * tests/test-printf-posix.h (NaN): Remove macro.
10670         (test_function): Remove all NaN related tests.
10671         * tests/test-printf-posix.output: Remove all NaN related results.
10672         Needed for IRIX 6.5.
10673
10674 2007-05-19  Bruno Haible  <bruno@clisp.org>
10675
10676         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
10677         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10678
10679 2007-05-19  Bruno Haible  <bruno@clisp.org>
10680
10681         * lib/float_.h: New file.
10682         * m4/float_h.m4: New file.
10683         * modules/float: New file.
10684         * modules/isnanl (Dependencies): Add float.
10685         * modules/isnanl-nolibm (Dependencies): Likewise.
10686         * modules/mathl (Dependencies): Likewise.
10687         * modules/printf-frexpl (Dependencies): Likewise.
10688         * modules/signbit (Dependencies): Likewise.
10689         * modules/vasnprintf (Dependencies): Likewise.
10690         * doc/headers/float.texi: Update.
10691
10692 2007-05-19  Jim Meyering  <jim@meyering.net>
10693
10694         * lib/utimens.c (gl_futimens): Rename from futimens,
10695         now that glibc-2.6 declares futimens.
10696         * lib/utimens.h: Likewise.
10697
10698 2007-05-19  Bruno Haible  <bruno@clisp.org>
10699
10700         Avoid test failures on mingw.
10701         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
10702         * tests/test-printf-posix.sh: Likewise.
10703         * tests/test-vfprintf-posix.sh: Likewise.
10704         * tests/test-vprintf-posix.sh: Likewise.
10705
10706 2007-05-19  Bruno Haible  <bruno@clisp.org>
10707
10708         Fix *printf result for NaN, Inf, -0.0 on mingw.
10709         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
10710         * lib/vasnprintf.c: Include math.h and isnan.h.
10711         (is_infinite_or_zero): New function.
10712         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
10713         values in the %f, %F, %e, %E, %g, %G directives.
10714         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
10715         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10716         gl_PRINTF_INFINITE and test its result. Invoke
10717         gl_PREREQ_VASNPRINTF_INFINITE.
10718         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10719         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10720         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10721         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10722         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10723         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10724         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10725         * doc/functions/fprintf.texi: Update.
10726         * doc/functions/printf.texi: Update.
10727         * doc/functions/snprintf.texi: Update.
10728         * doc/functions/sprintf.texi: Update.
10729         * doc/functions/vfprintf.texi: Update.
10730         * doc/functions/vprintf.texi: Update.
10731         * doc/functions/vsnprintf.texi: Update.
10732         * doc/functions/vsprintf.texi: Update.
10733
10734 2007-05-19  Bruno Haible  <bruno@clisp.org>
10735
10736         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
10737         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
10738         Instead of multiplying with 10^k, set extra_zeroes to k.
10739         (scale10_round_long_double): Remove function.
10740
10741 2007-05-18  Bruno Haible  <bruno@clisp.org>
10742
10743         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
10744         introduced on 2007-05-06.
10745
10746 2007-05-18  Bruno Haible  <bruno@clisp.org>
10747
10748         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
10749         %g directives.
10750         * tests/test-vasprintf-posix.c (test_function): Likewise.
10751         * tests/test-snprintf-posix.h (test_function): Likewise.
10752         * tests/test-sprintf-posix.h (test_function): Likewise.
10753
10754 2007-05-18  Bruno Haible  <bruno@clisp.org>
10755
10756         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
10757         (strmatch): New function.
10758         (test_function): Test the %f directive on numbers of various exponents.
10759         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
10760         (strmatch): New function.
10761         (test_function): Test the %f directive on numbers of various exponents.
10762         * tests/test-snprintf-posix.h (strmatch): New function.
10763         (test_function): Test the %f directive on numbers of various exponents.
10764         * tests/test-sprintf-posix.h (strmatch): New function.
10765         (test_function): Test the %f directive on numbers of various exponents.
10766         * tests/test-snprintf-posix.c (SIZEOF): New macro.
10767         * tests/test-sprintf-posix.c (SIZEOF): New macro.
10768         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
10769         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
10770
10771 2007-05-18  Bruno Haible  <bruno@clisp.org>
10772
10773         Add support for 'long double' number output.
10774         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
10775         * lib/vasnprintf.c: Include math.h and float+.h.
10776         (mp_limb_t): New type.
10777         (GMP_LIMB_BITS): New macro.
10778         (mp_twolimb_t): New type.
10779         (GMP_TWOLIMB_BITS): New macro.
10780         (mpn_t): New type.
10781         (multiply, divide, convert_to_decimal, decode_long_double,
10782         scale10_round_long_double, scale10_round_decimal_long_double,
10783         floorlog10l): New functions.
10784         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
10785         for the %f, %F, %e, %E, %g, %G directives.
10786         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
10787         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10788         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
10789         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
10790         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10791         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10792         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10793         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10794         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10795         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10796         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10797         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
10798         * modules/snprintf-posix (Depends-on): Likewise.
10799         * modules/sprintf-posix (Depends-on): Likewise.
10800         * modules/vasnprintf-posix (Depends-on): Likewise.
10801         * modules/vasprintf-posix (Depends-on): Likewise.
10802         * modules/vfprintf-posix (Depends-on): Likewise.
10803         * modules/vsnprintf-posix (Depends-on): Likewise.
10804         * modules/vsprintf-posix (Depends-on): Likewise.
10805         * modules/vasnprintf (Files): Add lib/float+.h.
10806         * doc/functions/fprintf.texi: Update.
10807         * doc/functions/printf.texi: Update.
10808         * doc/functions/snprintf.texi: Update.
10809         * doc/functions/sprintf.texi: Update.
10810         * doc/functions/vfprintf.texi: Update.
10811         * doc/functions/vprintf.texi: Update.
10812         * doc/functions/vsnprintf.texi: Update.
10813         * doc/functions/vsprintf.texi: Update.
10814
10815 2007-05-18  Bruno Haible  <bruno@clisp.org>
10816
10817         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
10818
10819 2007-05-18  Bruno Haible  <bruno@clisp.org>
10820
10821         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
10822         for printing 64-bit integers. Needed for mingw.
10823
10824 2007-05-18  Bruno Haible  <bruno@clisp.org>
10825
10826         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
10827         gl_FUNC_FREXPL_WORKS.
10828         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
10829
10830 2007-05-18  Bruno Haible  <bruno@clisp.org>
10831
10832         * modules/frexpl-nolibm-tests: New file.
10833
10834         * modules/frexpl-nolibm: New file.
10835         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
10836
10837 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10838
10839         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
10840         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
10841         GCC 4.2, which otherwise issues a lot of warnings.
10842         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
10843         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
10844         Likewise.
10845         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
10846         * modules/iconv_open (iconv.h): Likewise.
10847         * modules/locale (locale.h): Likewise.
10848         * modules/netinet_in (netinet/in.h): Likewise.
10849         * modules/sys_select (sys_select.h): Likewise.
10850         * modules/sys_socket (sys/socket.h): Likewise.
10851         * modules/sys_stat (sys/stat.h): Likewise.
10852         * modules/sysexits (sysexits.h): Likewise.
10853         * modules/unistd (unistd.h): Likewise.
10854
10855 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10856
10857         * modules/closein-tests (Makefile.am): Distribute
10858         `test-closein.sh'.
10859
10860 2007-05-17  Bruno Haible  <bruno@clisp.org>
10861
10862         * tests/test-printf-posix.output: Renamed from
10863         tests/test-fprintf-posix.out.
10864         * modules/fprintf-posix-tests: Update.
10865         * modules/printf-posix-tests: Update.
10866         * modules/vfprintf-posix-tests: Update.
10867         * modules/vprintf-posix-tests: Update.
10868         * tests/test-fprintf-posix.sh: Update.
10869         * tests/test-printf-posix.sh: Update.
10870         * tests/test-vfprintf-posix.sh: Update.
10871         * tests/test-vprintf-posix.sh: Update.
10872         Reported by Ralf Wildenhues.
10873
10874 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10875
10876         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
10877         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
10878         GCC 4.2, which otherwise issues a lot of warnings.
10879         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
10880         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
10881         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
10882         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
10883         it should no longer be needed.
10884         * lib/string_.h: Likewise.
10885         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
10886         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
10887         * modules/inttypes (inttypes.h): Likewise.
10888         * modules/math (math.h): Likewise.
10889         * modules/search (search.h): Likewise.
10890         * modules/signal (signal.h): Likewise.
10891         * modules/stdint (stdint.h): Likewise.
10892         * modules/stdio (stdio.h): Likewise.
10893         * modules/stdlib (stdlib.h): Likewise.
10894         * modules/string (string.h): Likewise.
10895         * modules/sys_time (sys/time.h): Likewise.
10896         * modules/time (time.h): Likewise.
10897         * modules/wchar (wchar.h): Likewise.
10898         * modules/wctype (wtype.h): Likewise.
10899
10900 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10901
10902         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
10903
10904 2007-05-13  Bruno Haible  <bruno@clisp.org>
10905
10906         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
10907         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10908         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
10909         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
10910         (gl_PREREQ_STRTOK_R): Don't require it here.
10911
10912 2007-05-13  Bruno Haible  <bruno@clisp.org>
10913
10914         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
10915         when used in C++ mode.
10916
10917 2007-05-12  Bruno Haible  <bruno@clisp.org>
10918
10919         * lib/linebuffer.h: Tweak doc.
10920         * lib/linebuffer.c: Likewise.
10921
10922 2007-05-12  James Youngman  <jay@gnu.org>
10923
10924         * lib/linebuffer.c (readlinebuffer_delim): New function,
10925         like readlinebuffer, but use a caller-specified delimiter.
10926         (readlinebuffer): Just call readlinebuffer_delim with '\n'
10927         as the delimiter.
10928         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
10929
10930 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10931
10932         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
10933         * modules/openat (Files): Remove openat-die.c.
10934         (Depends-on): Add openat-die.
10935         * modules/openat-die: New module.
10936
10937 2007-05-06  Bruno Haible  <bruno@clisp.org>
10938
10939         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
10940         Update with info about Cygwin.
10941         * doc/functions/fprintf.texi: Update.
10942         * doc/functions/printf.texi: Update.
10943         * doc/functions/snprintf.texi: Update.
10944         * doc/functions/sprintf.texi: Update.
10945         * doc/functions/vfprintf.texi: Update.
10946         * doc/functions/vprintf.texi: Update.
10947         * doc/functions/vsnprintf.texi: Update.
10948         * doc/functions/vsprintf.texi: Update.
10949         Reported by Eric Blake.
10950
10951 2007-05-06  Bruno Haible  <bruno@clisp.org>
10952
10953         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
10954         padding ourselves for the floating-point directives.
10955         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
10956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
10957         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10958         gl_PRINTF_FLAG_ZERO and test its result. Invoke
10959         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
10960         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10961         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
10962         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10963         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10964         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10965         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10966         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10967         * tests/test-snprintf-posix.h (test_function): Also check the width
10968         and some flags in the %f directive.
10969         * tests/test-sprintf-posix.h (test_function): Likewise.
10970         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10971         * tests/test-vasprintf-posix.c (test_function): Likewise.
10972         * doc/functions/fprintf.texi: Update.
10973         * doc/functions/printf.texi: Update.
10974         * doc/functions/snprintf.texi: Update.
10975         * doc/functions/sprintf.texi: Update.
10976         * doc/functions/vfprintf.texi: Update.
10977         * doc/functions/vprintf.texi: Update.
10978         * doc/functions/vsnprintf.texi: Update.
10979         * doc/functions/vsprintf.texi: Update.
10980
10981 2007-05-06  Bruno Haible  <bruno@clisp.org>
10982
10983         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
10984         pass the ' flag character to sprintf or snprintf.
10985         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
10986         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
10987         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10988         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
10989         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
10990         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10991         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
10992         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10993         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10994         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10995         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10996         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10997         * tests/test-snprintf-posix.h (test_function): Also check the grouping
10998         flag.
10999         * tests/test-sprintf-posix.h (test_function): Likewise.
11000         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11001         * tests/test-vasprintf-posix.c (test_function): Likewise.
11002         * doc/functions/fprintf.texi: Update.
11003         * doc/functions/printf.texi: Update.
11004         * doc/functions/snprintf.texi: Update.
11005         * doc/functions/sprintf.texi: Update.
11006         * doc/functions/vfprintf.texi: Update.
11007         * doc/functions/vprintf.texi: Update.
11008         * doc/functions/vsnprintf.texi: Update.
11009         * doc/functions/vsprintf.texi: Update.
11010
11011 2007-05-01  Bruno Haible  <bruno@clisp.org>
11012
11013         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
11014
11015 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
11016
11017         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
11018         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
11019
11020 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
11021
11022         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
11023         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
11024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
11025
11026 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
11027
11028         * lib/argp-help.c (struct hol_entry): New member `ord'.
11029         (HOL_ENTRY_PTRCMP): Use ord for comparison
11030         (hol_sort): Initialize ord.
11031
11032 2007-05-01  Bruno Haible  <bruno@clisp.org>
11033
11034         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
11035         Reported by Eric Blake.
11036         * doc/gnulib.texi (Function Substitutes): Update.
11037
11038 2007-05-01  Bruno Haible  <bruno@clisp.org>
11039
11040         * doc/functions.texi: Remove file, now redundant through
11041         doc/functions/*.texi.
11042
11043 2007-05-01  Bruno Haible  <bruno@clisp.org>
11044
11045         * modules/argp (Depends-on): Add sleep.
11046
11047 2007-05-01  Bruno Haible  <bruno@clisp.org>
11048
11049         * modules/sleep-tests: New file.
11050         * tests/test-sleep.c: New file.
11051
11052         * modules/sleep: New file.
11053         * lib/sleep.c: New file.
11054         * m4/sleep.m4: New file.
11055         * lib/unistd_.h (sleep): New declaration.
11056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
11057         HAVE_SLEEP.
11058         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
11059         * doc/functions/sleep.texi: Document the sleep module.
11060
11061 2007-05-01  Bruno Haible  <bruno@clisp.org>
11062
11063         * lib/sigprocmask.h: Remove file.
11064         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
11065         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
11066         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
11067         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
11068         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11069         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
11070         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
11071         HAVE_SIGSET_T as a shell variable.
11072         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
11073         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
11074         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
11075         (Depends-on): Add signal. Remove verify.
11076         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
11077         (Include): Mention <signal.h> instead of sigprocmask.h.
11078         * NEWS: Mention the change.
11079         * lib/fatal-signal.c: Don't include sigprocmask.h.
11080
11081 2007-05-01  Bruno Haible  <bruno@clisp.org>
11082
11083         * modules/signal: New file.
11084         * lib/signal_.h: New file.
11085         * m4/signal_h.m4: New file.
11086
11087 2007-05-01  Bruno Haible  <bruno@clisp.org>
11088
11089         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
11090         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
11091         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
11092         HAVE_WCTYPE_CTMP_BUG into wctype.h.
11093
11094 2007-05-01  Bruno Haible  <bruno@clisp.org>
11095
11096         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
11097         configure time.
11098         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
11099         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
11100         * modules/sys_stat (Makefile.am): Substitute their values into
11101         sys/stat.h.
11102
11103 2007-05-01  Bruno Haible  <bruno@clisp.org>
11104
11105         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
11106         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
11107         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
11108
11109 2007-05-01  Bruno Haible  <bruno@clisp.org>
11110
11111         * doc/header/assert.texi: Undo last change: don't mention the gnulib
11112         'assert' module here.
11113
11114 2007-05-01  Bruno Haible  <bruno@clisp.org>
11115
11116         * doc/functions/*.texi: New files.
11117         * doc/functions/google-ranking.txt: New file.
11118         * doc/gnulib.texi (Function Substitutes): New chapter.
11119         (ctime, inet_ntoa): Remove sections.
11120         * doc/ctime.texi: Remove file.
11121         * doc/inet_ntoa.texi: Remove file.
11122         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
11123         dependencies.
11124         (%.info): New rule, specifying a --reference-limit.
11125
11126 2007-05-01  Bruno Haible  <bruno@clisp.org>
11127
11128         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
11129
11130 2007-05-01  Bruno Haible  <bruno@clisp.org>
11131
11132         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
11133         the portability of 'mkdir' to mingw systems.
11134
11135 2007-05-01  Bruno Haible  <bruno@clisp.org>
11136
11137         * doc/headers/google-ranking.txt: New file.
11138
11139 2007-04-30  Eric Blake  <ebb9@byu.net>
11140
11141         Prefer fseeko to fseek.
11142         * modules/getpass (Depends-on): Add fseeko.
11143         * lib/getpass.c (getpass): Use fseeko, not fseek.
11144
11145 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
11146
11147         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
11148         assumes the sorting is stable, while most qsort implementations
11149         are not.  Use argument addresses to ensure they never compare as
11150         equal.
11151
11152         * tests/test-argp-2.sh (usage-indent test): Fix output
11153         (func_compare): Restore diff options
11154         * tests/test-argp.c: Restore #include "progname.h"
11155
11156 2007-04-29  Bruno Haible  <bruno@clisp.org>
11157
11158         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
11159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11160         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
11161         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11162         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
11163         (configure.ac): Define CHECK_SNPRINTF_POSIX.
11164         (TESTS, check_PROGRAMS): Add test-snprintf.
11165         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
11166         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
11167         (TESTS, check_PROGRAMS): Add test-vsnprintf.
11168         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
11169         assertions that fail on HP-UX, OSF/1, or IRIX.
11170         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
11171
11172 2007-04-29  Bruno Haible  <bruno@clisp.org>
11173
11174         * MODULES.html.sh (posix_functions): Remove 'contents'.
11175
11176 2007-04-29  Karl Berry  <karl@gnu.org>
11177
11178         * config/srclist.txt (gendocs_template_min): new entry.
11179
11180 2007-04-29  Bruno Haible  <bruno@clisp.org>
11181
11182         Work around fpurge bug on BSD systems.
11183         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
11184         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
11185         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
11186         fpurge to rpl_fpurge if the system already has this function.
11187         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
11188         the case where the system already has this function. Correct invariants
11189         on BSD systems.
11190         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
11191         BSD systems.
11192
11193 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
11194
11195         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
11196         proposed by Sven Verdoolaege.
11197
11198         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
11199         options.
11200         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
11201         (usage and help tests): Update
11202
11203 2007-04-29  Bruno Haible  <bruno@clisp.org>
11204
11205         * tests/test-fflush.c (main): Use a file of size 17, not 10.
11206         Print more information in case of failure. Disable a test on BeOS.
11207
11208 2007-04-29  Bruno Haible  <bruno@clisp.org>
11209
11210         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
11211         This helps debugging on systems on which no gdb is available.
11212
11213 2007-04-29  Bruno Haible  <bruno@clisp.org>
11214
11215         * lib/freading.h: Improve comments.
11216         * lib/fwriting.h: Likewise.
11217         * tests/test-freading.c (main): Don't check freading immediately after
11218         repositioning. Needed for glibc.
11219
11220 2007-04-29  Bruno Haible  <bruno@clisp.org>
11221
11222         * lib/freading.c (freading): Trivial simplification.
11223
11224 2007-04-28  Bruno Haible  <bruno@clisp.org>
11225
11226         * tests/test-fwriting.c (main): Also test the interaction between
11227         fflush and fwriting.
11228         * modules/fwriting-tests (Depends-on): Add fflush.
11229
11230         * tests/test-freading.c (main): Also test the interaction between
11231         fflush and freading.
11232         * modules/freading-tests (Depends-on): Add fflush.
11233
11234 2007-04-28  Bruno Haible  <bruno@clisp.org>
11235
11236         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
11237         fseeko and ftello.
11238         Suggested by Eric Blake.
11239
11240 2007-04-28  Jim Meyering  <jim@meyering.net>
11241
11242         Avoid false-negative in gl_STDINT_H's C99 conformance test.
11243         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
11244         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
11245
11246 2007-04-27  Eric Blake  <ebb9@byu.net>
11247
11248         * doc/headers/assert.texi (assert.h): Document assert module use.
11249
11250 2007-04-27  Bruno Haible  <bruno@clisp.org>
11251
11252         * doc/headers/*.texi: New files.
11253         * doc/gnulib.texi (Header File Substitutes): New chapter.
11254         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
11255         dependencies.
11256         (standards.info ,standards.html, standards.dvi): Update dependencies.
11257         (mostlyclean, clean): New targets.
11258
11259 2007-04-27  Bruno Haible  <bruno@clisp.org>
11260
11261         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
11262         * modules/sysexits (Files, Makefile.am): Update.
11263
11264         * lib/sys_socket_.h: Renamed from lib/socket_.h.
11265         * modules/sys_socket (Files, Makefile.am): Update.
11266
11267         * lib/sys_stat_.h: Renamed from lib/stat_.h.
11268         * modules/sys_stat (Files, Makefile.am): Update.
11269
11270 2007-04-27  Eric Blake  <ebb9@byu.net>
11271
11272         * lib/freading.h: Improve comments.
11273         * lib/fwriting.h: Likewise.
11274         * lib/fflush.c: Likewise.
11275
11276         Fix closein for mingw.
11277         * modules/closein-tests: Add tests for closein.
11278         * tests/test-closein.c: New file.
11279         * tests/test-closein.sh: Likewise.
11280         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
11281         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
11282
11283 2007-04-27  Bruno Haible  <bruno@clisp.org>
11284
11285         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
11286         version is < 6.
11287         * lib/math_.h [__DECC]: Likewise.
11288         * lib/stdio_.h [__DECC]: Likewise.
11289         * lib/stdlib_.h [__DECC]: Likewise.
11290         * lib/string_.h [__DECC]: Likewise.
11291         * lib/time_.h [__DECC]: Likewise.
11292         * lib/wchar_.h [__DECC]: Likewise.
11293         * lib/wctype_.h [__DECC]: Likewise.
11294
11295 2007-04-27  Bruno Haible  <bruno@clisp.org>
11296
11297         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
11298
11299 2007-04-27  Bruno Haible  <bruno@clisp.org>
11300
11301         * lib/fflush.c: Add comments.
11302         * modules/fpurge-tests (Depends-on): Add fflush.
11303         * modules/freadable-tests (Depends-on): Likewise.
11304         * modules/fwritable-tests (Depends-on): Likewise.
11305
11306 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
11307
11308         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
11309         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
11310         Report by Bruno Haible <bruno@clisp.org>.
11311
11312 2007-04-26  Eric Blake  <ebb9@byu.net>
11313
11314         Fix fflush on mingw.
11315         * modules/fflush (Depends-on): Add freading.
11316         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
11317         but unread data.
11318
11319 2007-04-26  Eric Blake  <ebb9@byu.net>
11320         and Bruno Haible  <bruno@clisp.org>
11321
11322         Implement freading and fwriting.
11323         * lib/freading.c: New file.
11324         * lib/freading.h: Likewise.
11325         * m4/freading.m4: Likewise.
11326         * modules/freading: Likewise.
11327         * modules/freading-tests: Likewise.
11328         * tests/test-freading.c: Likewise.
11329         * lib/fwriting.c: New file.
11330         * lib/fwriting.h: Likewise.
11331         * m4/fwriting.m4: Likewise.
11332         * modules/fwriting: Likewise.
11333         * modules/fwriting-tests: Likewise.
11334         * tests/test-fwriting.c: Likewise.
11335         * MODULES.html.sh (File stream based Input/Output): Mention them.
11336
11337 2007-04-26  Bruno Haible  <bruno@clisp.org>
11338
11339         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
11340         'long' when we assume it.
11341         Suggested by Eric Blake.
11342
11343 2007-04-26  Bruno Haible  <bruno@clisp.org>
11344
11345         Ensure fseeko, ftello are declared on glibc systems.
11346         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
11347         * modules/fseeko (configure.ac-early): Likewise.
11348         * modules/ftello (configure.ac-early): Likewise.
11349         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
11350         AC_FUNC_FSEEKO for this.
11351         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
11352         (gl_CHECK_FSEEKO): Remove macro.
11353
11354 2007-04-26  Bruno Haible  <bruno@clisp.org>
11355
11356         * tests/test-fflush.c (main): Also check the ftell result after
11357         fflush and fseek/fseeko.
11358         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
11359         file descriptor position cache in the stream.
11360         * lib/fseeko.c (rpl_fseeko): Likewise.
11361
11362 2007-04-26  Bruno Haible  <bruno@clisp.org>
11363
11364         * modules/fflush-tests (Depends-on): Add fseeko.
11365
11366 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
11367             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11368
11369         * lib/argz_.h: ensure error_t definition is obtained in same
11370         mechanism system argz.h would have.
11371         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
11372         argz facilities are known bad.  Err on the side of caution if
11373         cross-compiling.
11374
11375 2007-04-25  Eric Blake  <ebb9@byu.net>
11376
11377         * lib/fpurge.c (includes): Use stdlib.h for free.
11378         * tests/test-fflush.c (main): Also test fflush-fseeko.
11379
11380 2007-04-25  Bruno Haible  <bruno@clisp.org>
11381
11382         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
11383         * lib/fseeko.c: New file.
11384         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
11385         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
11386         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
11387         gl_FUNC_FSEEKO.
11388         (gl_FUNC_FSEEKO): Invoke it.
11389         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
11390         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
11391         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
11392
11393 2007-04-25  Bruno Haible  <bruno@clisp.org>
11394
11395         * modules/fflush (Depends-on): Add ftello.
11396
11397 2007-04-25  Bruno Haible  <bruno@clisp.org>
11398
11399         * modules/ftello-tests: New file.
11400         * tests/test-ftello.c: New file.
11401
11402         * modules/ftello: New file.
11403         * m4/ftello.m4: New file.
11404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
11405         HAVE_FTELLO.
11406         * lib/stdio_.h (ftello): New declaration.
11407         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
11408         HAVE_FTELLO.
11409
11410 2007-04-25  Bruno Haible  <bruno@clisp.org>
11411
11412         * modules/fseeko-tests: New file.
11413         * tests/test-fseeko.c: New file.
11414
11415         * modules/fseeko: New file.
11416         * m4/fseeko.m4: New file.
11417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
11418         HAVE_FSEEKO.
11419         * lib/stdio_.h (fseeko): New declaration.
11420         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
11421         HAVE_FSEEKO.
11422
11423 2007-04-25  Bruno Haible  <bruno@clisp.org>
11424
11425         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
11426
11427 2007-04-25  Bruno Haible  <bruno@clisp.org>
11428
11429         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
11430         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
11431         * tests/test-unistd.c: Likewise.
11432         * tests/test-fcntl.c: Likewise.
11433
11434 2007-04-23  Eric Blake  <ebb9@byu.net>
11435
11436         * lib/fflush.c: Fix missing include.
11437         Reported by Bruno Haible.
11438
11439 2007-04-23  Bruno Haible  <bruno@clisp.org>
11440
11441         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
11442         Reported by Eric Blake.
11443
11444 2007-04-23  Bruno Haible  <bruno@clisp.org>
11445
11446         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
11447
11448 2007-04-23  Bruno Haible  <bruno@clisp.org>
11449
11450         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
11451
11452 2007-04-23  Bruno Haible  <bruno@clisp.org>
11453
11454         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
11455         Needed on HP-UX 11.
11456
11457 2007-04-16  Eric Blake  <ebb9@byu.net>
11458
11459         Make fflush rely on fpurge.
11460         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
11461         open coding all variants.
11462         * modules/fflush (Depends-on): Add fpurge and unistd.
11463         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
11464         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
11465
11466         Fix --with-tests compilation on cygwin.
11467         * modules/argmatch-tests (Makefile.am): List gnulib library first
11468         in LDADD.
11469         * modules/argp-tests (Makefile.am): Likewise.
11470         * modules/array-list-tests (Makefile.am): Likewise.
11471         * modules/array-oset-tests (Makefile.am): Likewise.
11472         * modules/avltree-list-tests (Makefile.am): Likewise.
11473         * modules/avltree-oset-tests (Makefile.am): Likewise.
11474         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11475         * modules/carray-list-tests (Makefile.am): Likewise.
11476         * modules/dirname-tests (Makefile.am): Likewise.
11477         * modules/frexp-tests (Makefile.am): Likewise.
11478         * modules/isnanl-tests (Makefile.am): Likewise.
11479         * modules/linked-list-tests (Makefile.am): Likewise.
11480         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11481         * modules/lock-tests (Makefile.am): Likewise.
11482         * modules/rbtree-list-tests (Makefile.am): Likewise.
11483         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11484         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11485         * modules/tls-tests (Makefile.am): Likewise.
11486         * modules/tsearch-tests (Makefile.am): Likewise.
11487         * modules/xvasprintf-tests (Makefile.am): Likewise.
11488
11489         Fix fpurge for cygwin.
11490         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
11491         value.
11492         * modules/fpurge-tests (Depends-on): Clean up trash.
11493
11494 2007-04-16  Simon Josefsson  <simon@josefsson.org>
11495
11496         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
11497
11498         * m4/autobuild.m4: Re-indent.
11499
11500 2007-04-13  Bruno Haible  <bruno@clisp.org>
11501
11502         * modules/fpurge-tests: New file.
11503         * tests/test-fpurge.c: New file.
11504
11505         * modules/fpurge: New file.
11506         * lib/fpurge.h: New file.
11507         * lib/fpurge.c: New file.
11508         * m4/fpurge.m4: New file.
11509
11510 2007-04-13  Bruno Haible  <bruno@clisp.org>
11511
11512         * modules/fbufmode-tests: New file.
11513         * tests/test-fbufmode.c: New file.
11514
11515         * modules/fbufmode: New file.
11516         * lib/fbufmode.h: New file.
11517         * lib/fbufmode.c: New file.
11518         * m4/fbufmode.m4: New file.
11519
11520 2007-04-13  Bruno Haible  <bruno@clisp.org>
11521
11522         * modules/fwritable-tests: New file.
11523         * tests/test-fwritable.c: New file.
11524
11525         * modules/fwritable: New file.
11526         * lib/fwritable.h: New file.
11527         * lib/fwritable.c: New file.
11528         * m4/fwritable.m4: New file.
11529
11530 2007-04-13  Bruno Haible  <bruno@clisp.org>
11531
11532         * modules/freadable-tests: New file.
11533         * tests/test-freadable.c: New file.
11534
11535         * modules/freadable: New file.
11536         * lib/freadable.h: New file.
11537         * lib/freadable.c: New file.
11538         * m4/freadable.m4: New file.
11539
11540 2007-04-13  Bruno Haible  <bruno@clisp.org>
11541
11542         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
11543         MOSTLYCLEANFILES.
11544
11545 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
11546
11547         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
11548         gzip bootstrap.conf to avoid dragging in i18n machinery.
11549         (gnulib_tool_option): Use it.
11550
11551 2007-04-13  Bruno Haible  <bruno@clisp.org>
11552
11553         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
11554         %F directives.
11555         * tests/test-vasprintf-posix.c (test_function): Likewise.
11556         * tests/test-snprintf-posix.h (test_function): Likewise.
11557         * tests/test-sprintf-posix.h (test_function): Likewise.
11558         * tests/test-fprintf-posix.h (test_function): Likewise.
11559         * tests/test-printf-posix.h (test_function): Likewise.
11560         * tests/test-fprintf-posix.out: Likewise.
11561
11562 2007-04-13  Bruno Haible  <bruno@clisp.org>
11563
11564         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
11565         * modules/tls-tests (configure.ac): Likewise.
11566         Reported by Arto C. Nirkko <anirkko@insel.ch>.
11567
11568 2007-04-13  Bruno Haible  <bruno@clisp.org>
11569
11570         * lib/tls.c (glthread_tls_get): Fix return type.
11571         Patch by Arto C. Nirkko <anirkko@insel.ch>.
11572
11573 2007-04-12  Eric Blake  <ebb9@byu.net>
11574
11575         * modules/gettime (Depends-on): Remove gettime.
11576         Reported by Dmitry V. Levin.
11577
11578 2007-04-12  Bruno Haible  <bruno@clisp.org>
11579
11580         * modules/fflush (Include): Mention <stdio.h>.
11581         * modules/strtoimax (Include): Mention <inttypes.h>.
11582         * modules/strtoumax (Include): Likewise.
11583
11584 2007-04-12  Eric Blake  <ebb9@byu.net>
11585
11586         * .cvsignore: New file.
11587         * .gitignore: Likewise.
11588
11589 2007-04-12  Bruno Haible  <bruno@clisp.org>
11590
11591         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
11592         not before, since $(LDADD) often contains libgnu.a.
11593         * modules/striconv-tests (test_striconv_LDADD): Likewise.
11594         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
11595         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
11596         Needed on Cygwin.
11597
11598 2007-04-12  Eric Blake  <ebb9@byu.net>
11599
11600         Work around glibc's failure to flush stdin on fclose.
11601         * lib/closein.c (close_stdin): Flush stdin before closing.
11602
11603         Work around glibc's failure to reset seekable stdin on exit.
11604         * modules/closein: New module.
11605         * lib/closein.c: New file.
11606         * lib/closein.h: Likewise.
11607         * m4/closein.m4: Likewise.
11608         * MODULES.html.sh (File stream based Input/Output): Document it.
11609
11610 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11611
11612         * gnulib-tool: Rename generated 'autobuild' script to
11613         'do-autobuild' in --create-megatestdir output.
11614
11615         * doc/gnulib.texi (Build robot for gnulib): Fix.
11616
11617 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11618
11619         * modules/sysexits (Depends-on): Add absolute-header.
11620
11621 2007-04-12  Eric Blake  <ebb9@byu.net>
11622
11623         No need to preserve errno on success.
11624         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
11625         Reported by Bruno Haible.
11626
11627 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11628
11629         * MODULES.html.sh (Support for maintaining and releasing
11630         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
11631
11632 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11633
11634         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
11635
11636 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11637
11638         * modules/autobuild: New module.
11639
11640         * m4/autobuild.m4: New file.
11641
11642 2007-04-11  Bruno Haible  <bruno@clisp.org>
11643
11644         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
11645         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
11646         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
11647         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
11648         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11649         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11650         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11651         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11652         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11653         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11654         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
11655         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11656         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11657         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
11658         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11659         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11660         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
11661         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11662         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11663         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
11664         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11665         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11666         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
11667         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11668         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11669         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
11670         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11671         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11672         Reported by Eric Blake.
11673
11674 2007-04-11  Bruno Haible  <bruno@clisp.org>
11675
11676         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
11677
11678 2007-04-10  Bruno Haible  <bruno@clisp.org>
11679
11680         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
11681         for NaN and Infinity. Needed on FreeBSD 6.1.
11682         * tests/test-vasnprintf-posix.c (test_function): Undo last change
11683         regarding results for "%010a" of Infinity and NaN.
11684         * tests/test-vasprintf-posix.c (test_function): Likewise.
11685         * tests/test-snprintf-posix.h (test_function): Likewise.
11686         * tests/test-sprintf-posix.h (test_function): Likewise.
11687         * tests/test-fprintf-posix.h (test_function): Likewise.
11688         * tests/test-printf-posix.h (test_function): Likewise.
11689         * tests/test-fprintf-posix.out: Likewise.
11690
11691 2007-04-10  Bruno Haible  <bruno@clisp.org>
11692
11693         * modules/locale-tests: New file.
11694         * tests/test-locale.c: New file.
11695
11696         * modules/locale: New file.
11697         * lib/locale_.h: New file.
11698         * m4/locale_h.m4: New file.
11699
11700 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
11701             Bruno Haible  <bruno@clisp.org>
11702
11703         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
11704         be determined, test for availability of the copysignf, copysign,
11705         copysignl functions.
11706         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
11707         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
11708         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
11709
11710 2007-04-09  Eric Blake  <ebb9@byu.net>
11711
11712         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
11713         * modules/stdio (Makefile.am): Support fflush.
11714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11715         * modules/fflush: New file.
11716         * lib/fflush.c: Likewise.
11717         * m4/fflush.m4: Likewise.
11718         * modules/fflush-tests: New test.
11719         * tests/test-fflush.c: Likewise.
11720         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
11721
11722 2007-04-06  Bruno Haible  <bruno@clisp.org>
11723
11724         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
11725         (VASNPRINTF): Use signbit for faster determination whether to print a
11726         minus sign.
11727         * modules/vasnprintf (Files): Remove lib/float+.h.
11728         * modules/fprintf-posix (Depends-on): Add signbit.
11729         * modules/snprintf-posix (Depends-on): Likewise.
11730         * modules/sprintf-posix (Depends-on): Likewise.
11731         * modules/vasnprintf-posix (Depends-on): Likewise.
11732         * modules/vasprintf-posix (Depends-on): Likewise.
11733         * modules/vfprintf-posix (Depends-on): Likewise.
11734         * modules/vsnprintf-posix (Depends-on): Likewise.
11735         * modules/vsprintf-posix (Depends-on): Likewise.
11736
11737 2007-04-06  Bruno Haible  <bruno@clisp.org>
11738
11739         * tests/test-frexp.c (main): Test also the sign bit of zero results.
11740         * tests/test-frexpl.c (main): Likewise.
11741         * tests/test-ldexpl.c (main): Likewise.
11742         * modules/frexp-tests (Depends-on): Add signbit.
11743         * modules/frexpl-tests (Depdends-on): Likewise.
11744         * modules/ldexpl-tests (Depdends-on): Likewise.
11745
11746 2007-04-06  Bruno Haible  <bruno@clisp.org>
11747
11748         * modules/signbit-tests: New file.
11749         * tests/test-signbit.c: New file.
11750
11751         * modules/signbit: New file.
11752         * lib/signbitf.c: New file.
11753         * lib/signbitd.c: New file.
11754         * lib/signbitl.c: New file.
11755         * m4/signbit.m4: New file.
11756         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
11757         (signbit): New macro.
11758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
11759         REPLACE_SIGNBIT.
11760         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
11761         REPLACE_FREXPL into math.h.
11762
11763 2007-04-06  Bruno Haible  <bruno@clisp.org>
11764
11765         * modules/isnanf-nolibm-tests: New file.
11766         * tests/test-isnanf.c: New file.
11767
11768         * modules/isnanf-nolibm: New file.
11769         * lib/isnanf.h: New file.
11770         * lib/isnanf.c: New file.
11771         * lib/isnan.c: Consider the USE_FLOAT macro.
11772         * m4/isnanf.m4: New file.
11773
11774 2007-04-06  Bruno Haible  <bruno@clisp.org>
11775
11776         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
11777         (Link): New section.
11778
11779         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
11780
11781 2007-04-06  Bruno Haible  <bruno@clisp.org>
11782
11783         Assume the 'long double' type.
11784         * m4/longdouble.m4: Remove file.
11785         * config/srclist.txt: Don't mention longdouble.m4.
11786         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
11787         * lib/float+.h: Likewise.
11788         * lib/frexp.c: Likewise.
11789         * lib/printf-args.h: Likewise.
11790         * lib/printf-args.c: Likewise.
11791         * lib/printf-frexp.c: Likewise.
11792         * lib/printf-parse.c: Likewise.
11793         * lib/vasnprintf.c: Likewise.
11794         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
11795         * m4/intl.m4: Likewise.
11796         * m4/isnanl.m4: Likewise.
11797         * m4/printf.m4: Likewise.
11798         * m4/printf-frexpl.m4: Likewise.
11799         * m4/vasnprintf.m4: Likewise.
11800         * modules/allocsa (Files): Remove m4/longdouble.m4.
11801         * modules/gettext (Files): Likewise.
11802         * modules/relocatable-prog-wrapper (Files): Likewise.
11803         * modules/vasnprintf (Files): Likewise.
11804         * modules/isnanl (Files): Likewise.
11805         (Include): Simplify.
11806         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
11807         (Include): Simplify.
11808         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
11809         (Include): Simplify.
11810         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
11811         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11812         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
11813         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11814         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11815         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11816         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
11817         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11818         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11819         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11820         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
11821         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11822         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
11823         * tests/test-isnanl.c: Likewise.
11824         * tests/test-snprintf-posix.h: Likewise.
11825         * tests/test-sprintf-posix.h: Likewise.
11826         * tests/test-vasnprintf-posix.c: Likewise.
11827         * tests/test-vasnprintf-posix2.c: Likewise.
11828         * tests/test-vasprintf-posix.c: Likewise.
11829
11830 2007-04-06  Bruno Haible  <bruno@clisp.org>
11831
11832         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
11833         * lib/math_.h [__DECC]: Include the overridden include file through
11834         #include_next, outside the double-inclusion guard.
11835         * lib/stdio_.h [__DECC]: Likewise.
11836         * lib/stdlib_.h [__DECC]: Likewise.
11837         * lib/string_.h [__DECC]: Likewise.
11838         * lib/time_.h [__DECC]: Likewise.
11839         * lib/wchar_.h [__DECC]: Likewise.
11840         * lib/wctype_.h [__DECC]: Likewise.
11841         * lib/inttypes_.h [__DECC]: Likewise.
11842         Reported by Albert Chin <china@thewrittenword.com> in
11843         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
11844
11845 2007-04-04  Eric Blake  <ebb9@byu.net>
11846
11847         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
11848         1.5.x.
11849
11850 2007-04-04  Bruno Haible  <bruno@clisp.org>
11851
11852         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
11853         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
11854
11855 2007-04-04  Bruno Haible  <bruno@clisp.org>
11856
11857         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
11858         results for "%010a" of Infinity and NaN.
11859         * tests/test-vasprintf-posix.c (test_function): Likewise.
11860         * tests/test-snprintf-posix.h (test_function): Likewise.
11861         * tests/test-sprintf-posix.h (test_function): Likewise.
11862         * tests/test-fprintf-posix.h (test_function): Remove these tests.
11863         * tests/test-printf-posix.h (test_function): Likewise.
11864         * tests/test-fprintf-posix.out: Update.
11865         Needed for FreeBSD 6.1.
11866
11867 2007-04-04  Bruno Haible  <bruno@clisp.org>
11868
11869         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
11870         directly used by the gnulib modules nor by gnulib-tool.
11871
11872 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
11873
11874         * DEPENDENCIES: Give overall description of version dependency
11875         desirability.  Use more-typical names for apps.
11876         Add shell, coreutils, diffutils, grep, tar, gzip.
11877
11878 2007-04-04  Simon Josefsson  <simon@josefsson.org>
11879
11880         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
11881
11882 2007-04-04  Karl Berry  <karl@gnu.org>
11883
11884         * MODULES.html.sh (func_module): missing '.
11885
11886 2007-04-03  Bruno Haible  <bruno@clisp.org>
11887
11888         * modules/argmatch-tests (Makefile.am): New variable
11889         test_argmatch_LDADD.
11890         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
11891         * modules/array-list-tests (Makefile.am): New variable
11892         test_array_list_LDADD.
11893         * modules/array-oset-tests (Makefile.am): New variable
11894         test_array_oset_LDADD.
11895         * modules/avltree-list-tests (Makefile.am): New variable
11896         test_avltree_list_LDADD.
11897         * modules/avltree-oset-tests (Makefile.am): New variable
11898         test_avltree_oset_LDADD.
11899         * modules/avltreehash-list-tests (Makefile.am): New variable
11900         test_avltreehash_list_LDADD.
11901         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
11902         test_canonicalize_lgpl_LDADD.
11903         * modules/carray-list-tests (Makefile.am): New variable
11904         test_carray_list_LDADD.
11905         * modules/dirname-tests (Makefile.am): New variable
11906         test_dirname_LDADD.
11907         * modules/linked-list-tests (Makefile.am): New variable
11908         test_linked_list_LDADD.
11909         * modules/linkedhash-list-tests (Makefile.am): New variable
11910         test_linkedhash_list_LDADD.
11911         * modules/rbtree-list-tests (Makefile.am): New variable
11912         test_rbtree_list_LDADD.
11913         * modules/rbtree-oset-tests (Makefile.am): New variable
11914         test_rbtree_oset_LDADD.
11915         * modules/rbtreehash-list-tests (Makefile.am): New variable
11916         test_rbtreehash_list_LDADD.
11917         * modules/xvasprintf-tests (Makefile.am): New variable
11918         test_xvasprintf_LDADD.
11919         Reported by Eric Blake.
11920
11921 2007-04-03  Eric Blake  <ebb9@byu.net>
11922
11923         * DEPENDENCIES: Weaken m4 requirements.
11924
11925 2007-04-03  Bruno Haible  <bruno@clisp.org>
11926
11927         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
11928         * modules/isnanl-tests (configure.ac): Likewise.
11929
11930 2007-04-03  Ben Pfaff  <blp@gnu.org>
11931
11932         * modules/iconv_open: Add $(srcdir)/ to source directory
11933         references in Makefile fragments that call gperf, to fix VPATH
11934         builds.
11935
11936 2007-04-03  Bruno Haible  <bruno@clisp.org>
11937
11938         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
11939         * lib/ldexpl.c: Undo last change.
11940
11941 2007-04-03  Bruno Haible  <bruno@clisp.org>
11942
11943         * modules/printf-frexpl (Depends-on): Undo last change.
11944         (Files): Add m4/ldexpl.m4.
11945
11946 2007-04-03  Bruno Haible  <bruno@clisp.org>
11947
11948         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
11949         * modules/isnanl (Link): New section.
11950
11951         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
11952         * modules/frexp (Link): New section.
11953
11954         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
11955         * modules/frexpl (Link): New section.
11956
11957         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
11958         * modules/ldexpl (Link): New section.
11959
11960 2007-04-03  Bruno Haible  <bruno@clisp.org>
11961
11962         * modules/TEMPLATE-EXTENDED: New file.
11963         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
11964
11965 2007-04-03  Bruno Haible  <bruno@clisp.org>
11966
11967         * DEPENDENCIES: New file.
11968         Suggested by Simon Josefsson.
11969
11970 2007-04-03  Bruno Haible  <bruno@clisp.org>
11971
11972         * doc/gnulib.texi: Escape @.
11973
11974 2007-04-03  James Youngman  <jay@gnu.org>
11975         and Paul Eggert  <eggert@cs.ucla.edu>
11976
11977         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
11978         birthtime on all systems that have birthtime, not just those which
11979         use st_birthtimensec rather than st_birthtim.  Putting zero in
11980         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
11981         that the birth time is not available for files on an NFS mount.
11982
11983 2007-04-03  Simon Josefsson  <simon@josefsson.org>
11984
11985         * modules/memxor: Move back from crypto/, suggested by Bruno.
11986         * modules/crypto/hmac-sha1: Fix memxor dependency.
11987
11988         * modules/crypto/gc: Moved from ../.
11989
11990 2007-04-02  Eric Blake  <ebb9@byu.net>
11991
11992         * lib/ldexpl.c (includes): Avoid libm.
11993
11994         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
11995
11996 2007-04-02  Bruno Haible  <bruno@clisp.org>
11997
11998         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
11999         on IRIX.
12000
12001 2007-04-02  Bruno Haible  <bruno@clisp.org>
12002
12003         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
12004         x86 or x86_64 platforms running MacOS X.
12005         Reported by Ryan Schmidt <@ryandesign.com>.
12006
12007 2007-04-02  Bruno Haible  <bruno@clisp.org>
12008
12009         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
12010         i386.
12011
12012 2007-04-01  Simon Josefsson  <simon@josefsson.org>
12013
12014         * modules/crypto/arcfour: Moved from ../.
12015         * modules/crypto/arcfour-tests: Moved from ../.
12016         * modules/crypto/arctwo: Moved from ../.
12017         * modules/crypto/arctwo-tests: Moved from ../.
12018         * modules/crypto/des: Moved from ../.
12019         * modules/crypto/des-tests: Moved from ../.
12020         * modules/crypto/gc-arcfour: Moved from ../.
12021         * modules/crypto/gc-arcfour-tests: Moved from ../.
12022         * modules/crypto/gc-arctwo: Moved from ../.
12023         * modules/crypto/gc-arctwo-tests: Moved from ../.
12024         * modules/crypto/gc-des: Moved from ../.
12025         * modules/crypto/gc-des-tests: Moved from ../.
12026         * modules/crypto/gc-hmac-md5: Moved from ../.
12027         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
12028         * modules/crypto/gc-hmac-sha1: Moved from ../.
12029         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
12030         * modules/crypto/gc-md2: Moved from ../.
12031         * modules/crypto/gc-md2-tests: Moved from ../.
12032         * modules/crypto/gc-md4: Moved from ../.
12033         * modules/crypto/gc-md4-tests: Moved from ../.
12034         * modules/crypto/gc-md5: Moved from ../.
12035         * modules/crypto/gc-md5-tests: Moved from ../.
12036         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
12037         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
12038         * modules/crypto/gc-random: Moved from ../.
12039         * modules/crypto/gc-rijndael: Moved from ../.
12040         * modules/crypto/gc-rijndael-tests: Moved from ../.
12041         * modules/crypto/gc-sha1: Moved from ../.
12042         * modules/crypto/gc-sha1-tests: Moved from ../.
12043         * modules/crypto/gc-tests: Moved from ../.
12044         * modules/crypto/hmac-md5: Moved from ../.
12045         * modules/crypto/hmac-md5-tests: Moved from ../.
12046         * modules/crypto/hmac-sha1: Moved from ../.
12047         * modules/crypto/hmac-sha1-tests: Moved from ../.
12048         * modules/crypto/md2: Moved from ../.
12049         * modules/crypto/md2-tests: Moved from ../.
12050         * modules/crypto/md4: Moved from ../.
12051         * modules/crypto/md4-tests: Moved from ../.
12052         * modules/crypto/md5: Moved from ../.
12053         * modules/crypto/md5-tests: Moved from ../.
12054         * modules/crypto/memxor: Moved from ../.
12055         * modules/crypto/rijndael: Moved from ../.
12056         * modules/crypto/rijndael-tests: Moved from ../.
12057         * modules/crypto/sha1: Moved from ../.
12058
12059 2007-03-30  James Youngman  <jay@gnu.org>
12060
12061         * tests/test-stat-time.c (prepare_test): use chmod() rather than
12062         rename() to change the ctime of a file (because ctime is unaffected
12063         by rename on jfs2 on AIX 5.1).
12064         (main): Start by doing cleanup, in case a previous run failed leaving
12065         test files behind.
12066
12067 2007-03-31  Bruno Haible  <bruno@clisp.org>
12068
12069         Support old proprietary implementations of iconv.
12070         * modules/iconv_open: New file.
12071         * lib/iconv_.h: New file.
12072         * m4/iconv_h.m4: New file.
12073         * lib/iconv_open.c: New file.
12074         * lib/iconv_open-aix.gperf: New file.
12075         * lib/iconv_open-hpux.gperf: New file.
12076         * lib/iconv_open-irix.gperf: New file.
12077         * lib/iconv_open-osf.gperf: New file.
12078         * m4/iconv_open.m4: New file.
12079         * modules/linebreak (Depends-on): Add iconv_open.
12080         * modules/striconv (Depends-on): Likewise.
12081         * modules/striconveh (Depends-on): Likewise.
12082         * modules/unicodeio (Depends-on): Likewise.
12083         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
12084         (iconv_t)(-1).
12085         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
12086         conversion if cd is (iconv_t)(-1).
12087         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
12088         is not possible.
12089
12090 2007-03-31  Bruno Haible  <bruno@clisp.org>
12091
12092         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
12093         work on Solaris either. Protect also second use of "autodetect_jp".
12094
12095 2007-03-31  Bruno Haible  <bruno@clisp.org>
12096
12097         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
12098         the function is not present.
12099
12100 2007-03-31  Bruno Haible  <bruno@clisp.org>
12101
12102         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
12103         the function is not present.
12104
12105 2007-03-31  Bruno Haible  <bruno@clisp.org>
12106
12107         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
12108         a bug in HP-UX iconv_open().
12109
12110 2007-03-31  Bruno Haible  <bruno@clisp.org>
12111
12112         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
12113         (Mathematics <math.h>): New section, add fpieee.
12114         (Input/output <stdio.h>): Add fseterr.
12115         (Mathematics <math.h>): New section, add printf-frexp.
12116         (Container data structures): Add sublist.
12117         (Core language properties): Add fpucw, inline.
12118         (Functions for greatest-width integer types <inttypes.h>): Add
12119         imaxabs, imaxdiv, inttypes.
12120         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
12121         isnanl-nolibm, ldexp.
12122         (Mathematics <math.h>): New section, add printf-frexpl.
12123         (Support for systems lacking POSIX:2001): Add fprintf-posix,
12124         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
12125         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
12126         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
12127         (Unicode string functions): Add unistr/u*-mbtoucr.
12128         (Java): Add javacomp-script, javaexec-script.
12129         (C#): Add csharpcomp-script, csharpexec-script.
12130         (Support for building libraries and executables): Add havelib,
12131         relocatable-*.
12132         (Support for maintaining and releasing projects): Renamed from
12133         'Support for maintaining and release projects'. Add announce-gen.
12134
12135 2007-03-31  Bruno Haible  <bruno@clisp.org>
12136
12137         * README: Talk primarily about git.
12138         (git and CVS): Renamed from CVS.
12139         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
12140         gnulib is available through git.
12141         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
12142
12143 2007-03-30  Bruno Haible  <bruno@clisp.org>
12144
12145         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
12146         * lib/poll_.h: Likewise.
12147         * lib/stat_.h: Likewise.
12148         * lib/sys_time_.h: Likewise.
12149         * lib/sysexit_.h: Likewise.
12150         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
12151         * lib/stdbool_.h: Likewise.
12152         * lib/byteswap_.h: Add double-inclusion guard.
12153
12154 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
12155
12156         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
12157
12158 2007-03-30  Karl Berry  <karl@gnu.org>
12159
12160         * config/srclist-update: double space after USA in the license
12161         substitution, since that's how it's usually (?) written.
12162
12163 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
12164
12165         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
12166         reported by Bruno Haible.
12167
12168 2007-03-29  Bruno Haible  <bruno@clisp.org>
12169
12170         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
12171         a bug in AIX iconv().
12172
12173 2007-03-29  Bruno Haible  <bruno@clisp.org>
12174
12175         * modules/ldexpl-tests: New file.
12176         * tests/test-ldexpl.c: New file.
12177
12178 2007-03-29  Bruno Haible  <bruno@clisp.org>
12179
12180         * lib/ldexpl.c: Include fpucw.h.
12181         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
12182         multiplication.
12183         * modules/ldexpl (Depends-on): Add fpucw.
12184
12185 2007-03-29  Bruno Haible  <bruno@clisp.org>
12186
12187         * modules/ldexpl: New file.
12188         * m4/ldexpl.m4: New file.
12189         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
12190         set.
12191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
12192         REPLACE_LDEXPL.
12193         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
12194         REPLACE_LDEXPL.
12195         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
12196         gl_FUNC_LDEXPL_WORKS.
12197         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
12198         * modules/mathl (Files): Remove lib/ldexpl.c.
12199         (Depends-on): Add ldexpl.
12200
12201 2007-03-29  Bruno Haible  <bruno@clisp.org>
12202
12203         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
12204
12205 2007-03-29  Bruno Haible  <bruno@clisp.org>
12206
12207         * tests/test-striconveh.c (main): Don't assume that a direct conversion
12208         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
12209         and possibly also HP-UX.
12210         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
12211         work on AIX, IRIX, HP-UX, OSF/1.
12212         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12213         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12214         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12215         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12216         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
12217         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12218
12219 2007-03-29  Bruno Haible  <bruno@clisp.org>
12220
12221         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
12222
12223 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
12224
12225         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
12226         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
12227
12228 2007-03-29  Eric Blake  <ebb9@byu.net>
12229
12230         * lib/acl-internal.h: Remove redundant include.
12231         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
12232         Cygwin when a file is locked.
12233
12234 2007-03-29  Bruno Haible  <bruno@clisp.org>
12235
12236         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
12237         file.
12238         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
12239
12240 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
12241
12242         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
12243         try to remove a parent directory if the child couldn't be removed
12244         (except for the first rmdir, which could fail because the child
12245         doesn't exist).  Problem reported by Jeff Blaine in
12246         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
12247
12248 2007-03-28  Bruno Haible  <bruno@clisp.org>
12249
12250         * lib/striconveh.c (utf8conv_carefully): New function.
12251         (mem_cd_iconveh_internal): Invoke it.
12252
12253 2007-03-28  Bruno Haible  <bruno@clisp.org>
12254
12255         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
12256         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
12257         input.
12258         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
12259         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
12260         unistr/u8-uctomb.
12261
12262 2007-03-28  Bruno Haible  <bruno@clisp.org>
12263
12264         * modules/unistr/u8-mbtoucr: New file.
12265         * lib/unistr/u8-mbtoucr.c: New file.
12266         * modules/unistr/u16-mbtoucr: New file.
12267         * lib/unistr/u16-mbtoucr.c: New file.
12268         * modules/unistr/u16-mbtoucr: New file.
12269         * lib/unistr/u16-mbtoucr.c: New file.
12270         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
12271
12272 2007-03-27  Simon Josefsson  <simon@josefsson.org>
12273             Bruno Haible  <bruno@clisp.org>
12274
12275         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
12276         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
12277         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
12278
12279         * m4/stdio_h.m4: Add stubs for vasprintf too.
12280
12281         * modules/stdio: Support vasprintf in sed command.
12282
12283         * modules/vasprintf: Depend on stdio for prototypes.  Remove
12284         vasprintf.h.  Add stdio module indicator.
12285
12286         * lib/stdio_.h: Declare asprintf and vasprintf, based on
12287         vasprintf.h.
12288
12289         * lib/vasprintf.h: File removed.
12290
12291         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
12292         * lib/vasprintf.c: Ditto.
12293         * lib/xvasprintf.c: Ditto.
12294         * tests/test-vasprintf-posix.c: Ditto.
12295         * tests/test-vasprintf.c: Ditto.
12296
12297 2007-03-27  Bruno Haible  <bruno@clisp.org>
12298
12299         Make vasnprintf multithread-safe.
12300         * lib/vasnprintf.c (decimal_point_char): New function.
12301         (VASNPRINTF): Use it.
12302         Suggested by Simon Josefsson.
12303
12304 2007-03-27  Eric Blake  <ebb9@byu.net>
12305
12306         Support sub-second birthtime on cygwin.
12307         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
12308         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
12309         (get_stat_birthtime): Also work with st_birthtim.
12310
12311 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
12312
12313         * lib/stat-time.h (USE_BIRTHTIME): Remove.
12314         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
12315         (get_stat_birthtime_ns): Do not try to use "spare" fields.
12316         (get_stat_birthtime_ns): Simplify compile-time tests.
12317         (get_stat_birthtime): Change the API to look like
12318         get_stat_mtime etc., except return a negative tv_nsec on error.
12319         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
12320         Don't check for "spare" fields.
12321         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
12322         or for struct stat.st_birthtime, as these tests aren't used.
12323         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
12324
12325 2007-03-27  Bruno Haible  <bruno@clisp.org>
12326
12327         * lib/stat-time.h: Include <sys/stat.h>.
12328
12329 2007-03-27  James Youngman  <jay@gnu.org>
12330
12331         * lib/stat-time.h (get_stat_birthtime): New function for
12332           retrieving st_birthtime as provided by UFS2 (hence *BSD).
12333         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
12334           and its variants.
12335         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
12336         * modules/stat-time-test: New file.
12337         * tests/test-stat-time.c: New test, devised by Bruno Haible.
12338
12339 2007-03-26  Bruno Haible  <bruno@clisp.org>
12340
12341         Better support of signalling NaNs.
12342         * lib/atanl.c: Include isnanl.h.
12343         (atanl): Perform test for NaN at the beginning of the function and
12344         through a call to isnanl.
12345         * lib/cosl.c: Include isnanl.h.
12346         (cosl): Perform test for NaN at the beginning of the function and
12347         through a call to isnanl.
12348         * lib/ldexpl.c: Include isnanl.h.
12349         (ldexpl): Perform test for NaN through a call to isnanl.
12350         * lib/logl.c: Include isnanl.h.
12351         (logl): Perform test for NaN at the beginning of the function and
12352         through a call to isnanl.
12353         * lib/sinl.c: Include isnanl.h.
12354         (sinl): Perform test for NaN at the beginning of the function and
12355         through a call to isnanl.
12356         * lib/sqrtl.c: Include isnanl.h.
12357         (sqrtl): Perform test for NaN at the beginning of the function and
12358         through a call to isnanl.
12359         * lib/tanl.c: Include isnanl.h.
12360         (tanl): Perform test for NaN at the beginning of the function and
12361         through a call to isnanl.
12362         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
12363         * modules/mathl (Depends-on): Add isnanl.
12364
12365 2007-03-26  Eric Blake  <ebb9@byu.net>
12366
12367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
12368         regression in logic sense of previous patch.
12369
12370 2007-03-26  Bruno Haible  <bruno@clisp.org>
12371
12372         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
12373         unportable shell command "if ! ...".
12374         Reported by Ralf Wildenhues.
12375
12376 2007-03-25  Bruno Haible  <bruno@clisp.org>
12377
12378         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
12379         <sysexits.h> file, and only add EX_CONFIG.
12380         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
12381         absolute file name and whether it is sufficient. Substitute also
12382         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
12383         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
12384         ABSOLUTE_SYSEXITS_H into sysexits.h.
12385
12386 2007-03-25  Bruno Haible  <bruno@clisp.org>
12387
12388         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
12389         hints is NULL.
12390
12391 2007-03-25  Bruno Haible  <bruno@clisp.org>
12392
12393         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
12394         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
12395
12396 2007-03-25  Bruno Haible  <bruno@clisp.org>
12397
12398         * lib/vasnprintf.c: Include langinfo.h.
12399         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
12400         multithread-safe.
12401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
12402         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
12403         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12404         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12405         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12406         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12407         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12408         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
12409         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12410         Reported by Simon Josefsson.
12411
12412 2007-03-25  Bruno Haible  <bruno@clisp.org>
12413
12414         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
12415         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
12416         * modules/vasnprintf (Depends-on): Add stdint.
12417
12418 2007-03-25  Bruno Haible  <bruno@clisp.org>
12419
12420         * modules/fpieee: New file.
12421         * m4/fpieee.m4: New file.
12422         * modules/isnan-nolibm (Depends-on): Add fpieee.
12423         * modules/isnanl-nolibm (Depends-on): Add fpieee.
12424         * modules/isnanl (Depends-on): Add fpieee.
12425
12426 2007-03-25  Bruno Haible  <bruno@clisp.org>
12427
12428         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
12429
12430 2007-03-25  Bruno Haible  <bruno@clisp.org>
12431
12432         Avoid test failures on IRIX 6.5.
12433         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
12434         (main): Use it.
12435         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
12436         macros.
12437         (main): Use them.
12438
12439 2007-03-25  Bruno Haible  <bruno@clisp.org>
12440
12441         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
12442         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
12443         exists but doesn't work.
12444         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
12445         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
12446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
12447         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
12448
12449 2007-03-25  Bruno Haible  <bruno@clisp.org>
12450
12451         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
12452         returns inf. Needed on IRIX 6.5.
12453
12454 2007-03-25  Bruno Haible  <bruno@clisp.org>
12455
12456         * tests/test-frexpl.c: Include isnanl-nolibm.h.
12457         (main): Use isnanl instead of x != x idiom.
12458         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
12459
12460         * tests/test-frexp.c: Include isnan.h.
12461         (main): Use isnan instead of x != x idiom.
12462         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
12463
12464 2007-03-25  Bruno Haible  <bruno@clisp.org>
12465
12466         * tests/test-frexp.c (NaN): New function/macro.
12467         (main): Use it instead of 0.0 / 0.0.
12468         * tests/test-isnan.c (NaN): New function/macro.
12469         (main): Use it instead of 0.0 / 0.0.
12470         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
12471         (test_function): Use it instead of 0.0 / 0.0.
12472         * tests/test-vasprintf-posix.c (NaN): New function/macro.
12473         (test_function): Use it instead of 0.0 / 0.0.
12474         * tests/test-snprintf-posix.h (NaN): New function/macro.
12475         (test_function): Use it instead of 0.0 / 0.0.
12476         * tests/test-sprintf-posix.h (NaN): New function/macro.
12477         (test_function): Use it instead of 0.0 / 0.0.
12478         * tests/test-fprintf-posix.h (NaN): New function/macro.
12479         (test_function): Use it instead of 0.0 / 0.0.
12480         * tests/test-printf-posix.h (NaN): New function/macro.
12481         (test_function): Use it instead of 0.0 / 0.0.
12482
12483         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
12484
12485 2007-03-25  Bruno Haible  <bruno@clisp.org>
12486
12487         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
12488
12489 2007-03-25  Bruno Haible  <bruno@clisp.org>
12490
12491         * lib/regexec.c (merge_state_with_log): Make static.
12492
12493 2007-03-25  Bruno Haible  <bruno@clisp.org>
12494
12495         * lib/trigl.c (kernel_rem_pio2): Make static.
12496
12497 2007-03-25  Bruno Haible  <bruno@clisp.org>
12498
12499         * lib/sincosl.c (sincosl_table): Make static.
12500
12501 2007-03-25  Bruno Haible  <bruno@clisp.org>
12502
12503         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
12504         if the compiler does not support C99.
12505
12506 2007-03-25  Bruno Haible  <bruno@clisp.org>
12507
12508         * modules/time (Makefile.am): Ensure all rule action lines start with a
12509         tab.
12510
12511 2007-03-24  Bruno Haible  <bruno@clisp.org>
12512
12513         * modules/tsearch-tests: New file.
12514         * tests/test-tsearch.sh: New file.
12515         * tests/test-tsearch.c: New file, mostly copied from glibc.
12516
12517         * modules/search-tests: New file.
12518         * tests/test-search.c: New file.
12519
12520         * modules/search: New file.
12521         * lib/search_.h: New file, incorporating lib/tsearch.h.
12522         * m4/search_h.m4: New file.
12523         * lib/tsearch.h: Remove file.
12524         * lib/tsearch.c: Include search.h instead of tsearch.h.
12525         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
12526         HAVE_TSEARCH.
12527         * modules/tsearch (Files): Remove lib/tsearch.h.
12528         (Depends-on): Add search.
12529         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
12530         (Include): Change tsearch.h into search.h.
12531
12532 2007-03-24  Bruno Haible  <bruno@clisp.org>
12533
12534         * modules/fpucw: New file.
12535         * lib/fpucw.h: New file.
12536         * lib/frexp.c: Include fpucw.h.
12537         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12538         (FUNC): Use them.
12539         * lib/printf-frexp.c: Include fpucw.h.
12540         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12541         (FUNC): Use them.
12542         * lib/vasnprintf.c: Include fpucw.h.
12543         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
12544         'long double' calculations.
12545         * tests/test-frexpl.c: Include fpucw.h.
12546         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12547         * tests/test-printf-frexpl.c: Include fpucw.h.
12548         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12549         * modules/frexpl (Depends-on): Add fpucw.
12550         * modules/printf-frexpl (Depends-on): Likewise.
12551         * modules/fprintf-posix (Depends-on): Likewise.
12552         * modules/snprintf-posix (Depends-on): Likewise.
12553         * modules/sprintf-posix (Depends-on): Likewise.
12554         * modules/vasnprintf-posix (Depends-on): Likewise.
12555         * modules/vasprintf-posix (Depends-on): Likewise.
12556         * modules/vfprintf-posix (Depends-on): Likewise.
12557         * modules/vsnprintf-posix (Depends-on): Likewise.
12558         * modules/vsprintf-posix (Depends-on): Likewise.
12559         * modules/frexpl-tests (Depends-on): Likewise.
12560         * modules/printf-frexpl-tests (Depends-on): Likewise.
12561
12562 2007-03-24  Bruno Haible  <bruno@clisp.org>
12563
12564         * lib/float+.h: New file.
12565         * lib/isnan.c: Include float+.h.
12566         (SIZE): New macro.
12567         (FUNC): Compare only SIZE bytes of the value.
12568         * lib/vasnprintf.c: Include float+.h.
12569         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
12570         SIZEOF_LDBL or SIZEOF_DBL bytes.
12571         * modules/isnan-nolibm (Files): Add lib/float+.h.
12572         * modules/isnanl-nolibm (Files): Add lib/float+.h.
12573         * modules/isnanl (Files): Add lib/float+.h.
12574         * modules/vasnprintf (Files): Add lib/float+.h.
12575
12576 2007-03-24  Bruno Haible  <bruno@clisp.org>
12577
12578         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
12579         include isnanl-nolibm.h.
12580
12581 2007-03-24  Bruno Haible  <bruno@clisp.org>
12582
12583         * tests/test-read-file.c (main): Don't produce spurious output for
12584         expected situations. Make the test fail if it encountered unexpected
12585         results.
12586
12587 2007-03-24  Bruno Haible  <bruno@clisp.org>
12588
12589         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
12590         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
12591
12592 2007-03-24  Bruno Haible  <bruno@clisp.org>
12593
12594         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
12595
12596 2007-03-24  Bruno Haible  <bruno@clisp.org>
12597
12598         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
12599         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
12600
12601         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
12602         * modules/utf8-ucs4: Turn into a symbolic link to module
12603         unistr/u8-mbtouc.
12604
12605         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
12606         utf8-ucs4-unsafe.
12607         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
12608         unistr/u8-mbtouc-unsafe.
12609
12610         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
12611         * modules/utf16-ucs4: Turn into a symbolic link to module
12612         unistr/u16-mbtouc.
12613
12614         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
12615         utf16-ucs4-unsafe.
12616         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
12617         unistr/u16-mbtouc-unsafe.
12618
12619         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
12620         * modules/ucs4-utf8: Turn into a symbolic link to module
12621         unistr/u8-ubtomb.
12622
12623         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
12624         * modules/ucs4-utf16: Turn into a symbolic link to module
12625         unistr/u16-ubtomb.
12626
12627 2007-03-24  Bruno Haible  <bruno@clisp.org>
12628
12629         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
12630         Enable the function only if HAVE_INLINE.
12631         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
12632         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12633         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
12634         Enable the function only if HAVE_INLINE.
12635         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
12636         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12637         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
12638         Enable the function only if HAVE_INLINE.
12639         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
12640         Enable the function only if HAVE_INLINE.
12641         * modules/utf8-ucs4: Update.
12642         * modules/utf8-ucs4-unsafe: Update.
12643         * modules/utf16-ucs4: Update.
12644         * modules/utf16-ucs4-unsafe: Update.
12645         * modules/ucs4-utf8: Update.
12646         * modules/ucs4-utf16: Update.
12647
12648 2007-03-24  Bruno Haible  <bruno@clisp.org>
12649
12650         * lib/utf8-ucs4.h: Remove file.
12651         * lib/utf8-ucs4-unsafe.h: Remove file.
12652         * lib/utf16-ucs4.h: Remove file.
12653         * lib/utf16-ucs4-unsafe.h: Remove file.
12654         * lib/ucs4-utf8.h: Remove file.
12655         * lib/ucs4-utf16.h: Remove file.
12656         * lib/unistr.h: Include their previous contents.
12657         * m4/utf-ucs4.m4: Remove file.
12658         * m4/ucs4-utf.m4: Remove file.
12659         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
12660         (Depends-on): Add unistr/base.
12661         (configure.ac): Remove gl_UTF_UCS4.
12662         (Makefile.am): Update.
12663         (Include): Change to unistr.h.
12664         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
12665         (Depends-on): Add unistr/base.
12666         (configure.ac): Remove gl_UTF_UCS4.
12667         (Makefile.am): Update.
12668         (Include): Change to unistr.h.
12669         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
12670         (Depends-on): Add unistr/base.
12671         (configure.ac): Remove gl_UTF_UCS4.
12672         (Makefile.am): Update.
12673         (Include): Change to unistr.h.
12674         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
12675         (Depends-on): Add unistr/base.
12676         (configure.ac): Remove gl_UTF_UCS4.
12677         (Makefile.am): Update.
12678         (Include): Change to unistr.h.
12679         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
12680         (Depends-on): Add unistr/base.
12681         (configure.ac): Remove gl_UCS4_UTF.
12682         (Makefile.am): Update.
12683         (Include): Change to unistr.h.
12684         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
12685         (Depends-on): Add unistr/base.
12686         (configure.ac): Remove gl_UCS4_UTF.
12687         (Makefile.am): Update.
12688         (Include): Change to unistr.h.
12689         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
12690         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
12691         utf8-ucs4-unsafe.h.
12692         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
12693         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
12694         utf16-ucs4-unsafe.h.
12695         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
12696         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
12697         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
12698         * lib/unistr/u8-strchr.c: Likewise.
12699         * lib/unistr/u8-strrchr.c: Likewise.
12700         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
12701         * lib/unistr/u16-strchr.c: Likewise.
12702         * lib/unistr/u16-strrchr.c: Likewise.
12703         * lib/striconveh.c: Update.
12704         * lib/linebreak.c: Update.
12705
12706 2007-03-24  Bruno Haible  <bruno@clisp.org>
12707
12708         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
12709         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
12710
12711 2007-03-22  Bruno Haible  <bruno@clisp.org>
12712
12713         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
12714
12715 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
12716
12717         * MODULES.html.sh (File system functions): New module write-any-file.
12718         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
12719         * m4/write-any-file.m4: New files.
12720
12721 2007-03-23  Eric Blake  <ebb9@byu.net>
12722
12723         * gnulib-tool: Rearrange space-tab sequences, since some editors
12724         like to eat them.
12725
12726 2007-03-23  Eric Blake  <ebb9@byu.net>
12727
12728         * lib/version-etc.c (version_etc_va): Update license wording to
12729         be more concise.  Recommended by Richard Stallman.
12730
12731 2007-03-22  Bruno Haible  <bruno@clisp.org>
12732
12733         * lib/poll.c (MSG_PEEK): New fallback definition.
12734
12735 2007-03-22  Bruno Haible  <bruno@clisp.org>
12736
12737         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
12738         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
12739         (main): Update.
12740         Fixes a compilation error on BeOS.
12741
12742 2007-03-22  Bruno Haible  <bruno@clisp.org>
12743
12744         * modules/frexpl-tests: New file.
12745         * tests/test-frexpl.c: New file.
12746
12747         * modules/frexpl: New file.
12748         * m4/frexpl.m4: New file.
12749         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
12750         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
12751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
12752         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
12753         (Depends-on): Add frexpl. Remove isnanl-nolibm.
12754         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
12755
12756 2007-03-22  Bruno Haible  <bruno@clisp.org>
12757
12758         * lib/frexpl.c: Share code with lib/frexp.c.
12759         * modules/mathl (Files): Add lib/frexp.c.
12760         (Depends-on): Add isnanl-nolibm.
12761
12762 2007-03-22  Bruno Haible  <bruno@clisp.org>
12763
12764         * modules/printf-frexp (Files): Add m4/frexp.m4.
12765         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
12766         only if the found frexp function actually works.
12767
12768 2007-03-22  Bruno Haible  <bruno@clisp.org>
12769
12770         * lib/frexp.c: Remove older implementation that uses divisions.
12771
12772 2007-03-21  Bruno Haible  <bruno@clisp.org>
12773
12774         * modules/frexp-tests: New file.
12775         * tests/test-frexp.c: New file.
12776
12777         * modules/frexp: New file.
12778         * lib/frexp.c: New file.
12779         * m4/frexp.m4: New file.
12780         * lib/math_.h (frexp): New declaration.
12781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
12782         REPLACE_FREXP.
12783         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
12784
12785 2007-03-21  Bruno Haible  <bruno@clisp.org>
12786
12787         * modules/isnanl-tests: New file.
12788         * tests/test-isnanl.c: New file.
12789
12790         * modules/isnanl: New file.
12791         * lib/isnanl.h: New file.
12792         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
12793         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
12794         gl_FUNC_ISNANL_WORKS.
12795         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
12796         New macros.
12797
12798 2007-03-21  Bruno Haible  <bruno@clisp.org>
12799
12800         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
12801         lib/isnanl.h.
12802         (Include): Update.
12803         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
12804         * lib/vasnprintf.c: Update.
12805         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
12806         tests/test-isnanl.h, remove tests/test-isnanl.c.
12807         (Makefile.am): Update.
12808         * tests/test-isnanl-nolibm.c: New file.
12809         * tests/test-isnanl.h: New file.
12810         * tests/test-isnanl.c: Remove file.
12811
12812 2007-03-21  Jim Meyering  <jim@meyering.net>
12813
12814         When trying to open ".", treat ESTALE like EACCES.
12815         * lib/savewd.c (savewd_save): Resort to forking not just upon
12816         failure with EACCES, but also when errno is ESTALE.
12817
12818 2007-03-20  Bruno Haible  <bruno@clisp.org>
12819
12820         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
12821         Needed on AIX 5.1. Reported by Matthew Woehlke.
12822
12823 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12824
12825         Suggestions by Bruno Haible:
12826         * lib/acl-internal.h: Include "gettext.h" rather than rolling
12827         our own.
12828         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
12829         * modules/acl (Depends-on): Add gettext.
12830
12831 2007-03-19  Bruno Haible  <bruno@clisp.org>
12832
12833         * modules/iconvme: Remove file.
12834         * lib/iconvme.h: Remove file.
12835         * lib/iconvme.c: Remove file.
12836         * m4/iconvme.m4: Remove file.
12837
12838 2007-03-19  Bruno Haible  <bruno@clisp.org>
12839
12840         * doc/relocatable-maint.texi: Break long shell script line.
12841         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12842
12843 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12844
12845         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
12846         handle file_has_acl.
12847         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
12848         * lib/acl.c: Move header inclusions and related macro defns into
12849         lib/acl-internal.h.
12850         (S_ISLNK): Remove defn, since that's now done for us.
12851         (file_has_acl): Move to lib/file-has-acl.c.
12852         Call acl_trivial if available.  This is the crucial part of the fix.
12853         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
12854         shared within the library.  Rewrite a bit, partly to make it compatible
12855         with the GNU coding style.
12856         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
12857         Remove unnecessary double-quotes.
12858         Don't test for acl_to_text; the build will catch that.
12859         Replace acl_entries if it doesn't exist and it is needed.
12860         Check for -lsec and acl_trivial (as used on Solaris 10).
12861         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
12862         lib/file-has-acl.c.
12863         (Depends-on): Add sys_stat, for S_ISLNK.
12864
12865 2007-03-19  Ben Pfaff  <blp@gnu.org>
12866
12867         * doc/gnulib.texi: Fix typos.
12868         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12869
12870 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12871
12872         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
12873         If size is zero here, buf must be zero.
12874
12875 2007-03-19  Simon Josefsson  <simon@josefsson.org>
12876
12877         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
12878         <bruno@clisp.org>.
12879
12880 2007-03-18  Bruno Haible  <bruno@clisp.org>
12881
12882         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
12883         Suggested by Eric Blake.
12884
12885 2007-03-18  Ben Pfaff  <blp@gnu.org>
12886
12887         * doc/relocatable.texi: Recommend using as prefix a directory
12888         that does not exist and will never be created.  Based on
12889         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
12890         and others.
12891
12892 2007-03-17  Bruno Haible  <bruno@clisp.org>
12893
12894         * lib/fchownat.c: Include lchown.h.
12895
12896 2007-03-17  Bruno Haible  <bruno@clisp.org>
12897
12898         Fix endless loop when the given allocated size was > INT_MAX.
12899         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
12900         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
12901         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
12902         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
12903         * lib/sprintf.c (sprintf): Likewise.
12904
12905 2007-03-17  Bruno Haible  <bruno@clisp.org>
12906
12907         * tests/test-argp-2.sh (func_compare): Output a context diff.
12908
12909 2007-03-17  Bruno Haible  <bruno@clisp.org>
12910
12911         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
12912         locale's decimal-point character.
12913
12914 2007-03-17  Bruno Haible  <bruno@clisp.org>
12915
12916         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
12917         before comparing it. Needed because on some platforms (e.g. x86) a
12918         'long double' occupies less bytes than sizeof (long double).
12919
12920 2007-03-17  Bruno Haible  <bruno@clisp.org>
12921
12922         * tests/test-crc.c (main): Make printf statements 64-bit clean.
12923         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
12924         * tests/test-getaddrinfo.c (simple): Likewise.
12925         * tests/test-read-file.c (main): Likewise.
12926
12927 2007-03-17  Bruno Haible  <bruno@clisp.org>
12928
12929         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
12930
12931 2007-03-17  Bruno Haible  <bruno@clisp.org>
12932
12933         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
12934         unused variable.
12935
12936 2007-03-17  Bruno Haible  <bruno@clisp.org>
12937
12938         * tests/test-c-strcasecmp.c: Include c-strcase.h.
12939         * tests/test-c-strncasecmp.c: Likewise.
12940
12941 2007-03-17  Bruno Haible  <bruno@clisp.org>
12942
12943         * modules/stdlib (Depends-on): Add unistd.
12944         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
12945         Needed for MacOS X 10.3.
12946
12947 2007-03-17  Bruno Haible  <bruno@clisp.org>
12948
12949         * lib/unistr/u-strdup.h: Include <stdlib.h>.
12950
12951 2007-03-17  Bruno Haible  <bruno@clisp.org>
12952
12953         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
12954
12955 2007-03-17  Bruno Haible  <bruno@clisp.org>
12956
12957         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
12958         to reflect files copied from gnulib (with or without modifications).
12959         Suggested by Jim Meyering.
12960
12961 2007-03-17  Eric Blake  <ebb9@byu.net>
12962
12963         * NEWS: Document stdlib change from 2007-02-18.
12964
12965 2007-03-17  Jim Meyering  <jim@meyering.net>
12966
12967         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
12968         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
12969         someone uses a name containing shell meta-characters.
12970         Reported by Alfred M. Szmidt.
12971
12972         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
12973
12974 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
12975
12976         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
12977         and copy gettext configuration files only if configure.ac contains
12978         a use of AM_GNU_GETTEXT_VERSION.
12979
12980 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
12981
12982         * build-aux/bootstrap (gnulib_name): New variable.
12983         (gnulib_tool_options): Use it.
12984
12985 2007-03-13  Simon Josefsson  <simon@josefsson.org>
12986
12987         * tests/test-des.c: Use new namespace.
12988
12989 2007-03-15  Bruno Haible  <bruno@clisp.org>
12990
12991         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
12992         Reported by James Youngman <jay@gnu.org>.
12993
12994 2007-03-15  Bruno Haible  <bruno@clisp.org>
12995
12996         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
12997         declared prototype. Needed with cc on OSF/1 5.1.
12998
12999 2007-03-15  Bruno Haible  <bruno@clisp.org>
13000
13001         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
13002         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
13003         (struct gl_list_implementation): Add dispose_fn argument to the
13004         'create_empty', 'create' methods.
13005         (struct gl_list_impl_base): Add field 'dispose_fn'.
13006         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
13007         argument.
13008         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
13009         dispose_fn argument.
13010         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
13011         dispose_fn on the dropped values.
13012         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
13013         dispose_fn argument.
13014         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
13015         dropped values.
13016         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
13017         (gl_tree_remove_node): Call dispose_fn on the dropped value.
13018         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
13019         (gl_tree_remove_node): Call dispose_fn on the dropped value.
13020         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
13021         argument.
13022         (gl_tree_list_free): Call dispose_fn on the dropped values.
13023         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
13024         the dropped values.
13025         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
13026         Add dispose_fn argument.
13027         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
13028         Call dispose_fn on the dropped values.
13029         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
13030         Add dispose_fn argument.
13031         (gl_sublist_create): Initialize the 'dispose_fn' field.
13032         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
13033         * tests/test-array_list.c (main): Update.
13034         * tests/test-carray_list.c (main): Update.
13035         * tests/test-avltree_list.c (main): Update.
13036         * tests/test-rbtree_list.c (main): Update.
13037         * tests/test-avltreehash_list.c (main): Update.
13038         * tests/test-rbtreehash_list.c (main): Update.
13039         * tests/test-linked_list.c (main): Update.
13040         * tests/test-linkedhash_list.c (main): Update.
13041         * tests/test-array_oset.c (main): Update.
13042
13043 2007-03-15  Bruno Haible  <bruno@clisp.org>
13044
13045         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
13046         (gl_oset_create_empty): Add dispose_fn argument.
13047         (struct gl_oset_implementation): Add dispose_fn argument to
13048         'create_empty' method.
13049         (struct gl_oset_impl_base): Add dispose_fn field.
13050         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
13051         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
13052         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
13053         values.
13054         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
13055         (gl_tree_oset_free): Call dispose_fn on the dropped values.
13056         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
13057         dropped value.
13058         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
13059         dropped value.
13060         * tests/test-array_oset.c (main): Update.
13061         * tests/test-avltree_oset.c (main): Update.
13062         * tests/test-rbtree_oset.c (main): Update.
13063         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
13064
13065 2007-03-13  Bruno Haible  <bruno@clisp.org>
13066
13067         * tests/test-stdbool.c (i): Update after last patch.
13068
13069 2007-03-12  Bruno Haible  <bruno@clisp.org>
13070
13071         * lib/quotearg.c: Include <wctype.h> early, before the definition of
13072         the iswprint macro. Needed on Solaris 2.5.1.
13073
13074 2007-03-12  Bruno Haible  <bruno@clisp.org>
13075
13076         * tests/test-printf-frexp.c (main): Declare x as volatile.
13077
13078 2007-03-12  Simon Josefsson  <simon@josefsson.org>
13079
13080         * doc/gnulib.texi (Build robot for gnulib): New section.
13081
13082 2007-03-12  Jim Meyering  <jim@meyering.net>
13083
13084         * build-aux/bootstrap: New file.
13085         * build-aux/bootstrap.conf: New file, from coreutils.
13086
13087 2007-03-11  Bruno Haible  <bruno@clisp.org>
13088
13089         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
13090
13091 2007-03-12  Simon Josefsson  <simon@josefsson.org>
13092
13093         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
13094         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
13095         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
13096
13097 2007-03-11  Bruno Haible  <bruno@clisp.org>
13098
13099         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
13100         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
13101
13102 2007-03-11  Bruno Haible  <bruno@clisp.org>
13103
13104         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
13105         formula. Needed for SunPRO C 5.0.
13106
13107 2007-03-11  Bruno Haible  <bruno@clisp.org>
13108
13109         * modules/long-options (Depends-on): Add getopt.
13110
13111 2007-03-11  Bruno Haible  <bruno@clisp.org>
13112
13113         * modules/modechange (Depends-on): Add stdbool.
13114
13115 2007-03-11  Bruno Haible  <bruno@clisp.org>
13116
13117         * modules/i-ring (Depends-on): Add stdbool.
13118
13119 2007-03-11  Bruno Haible  <bruno@clisp.org>
13120
13121         * modules/gc-des (Depends-on): Add stdbool.
13122
13123 2007-03-11  Bruno Haible  <bruno@clisp.org>
13124
13125         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
13126
13127 2007-03-11  Bruno Haible  <bruno@clisp.org>
13128
13129         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
13130
13131 2007-03-11  Bruno Haible  <bruno@clisp.org>
13132
13133         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
13134
13135 2007-03-11  Bruno Haible  <bruno@clisp.org>
13136
13137         * lib/vasnprintf.c (sprintf): Undefine.
13138
13139 2007-03-11  Bruno Haible  <bruno@clisp.org>
13140
13141         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
13142         initializers in SunPRO C and Compaq C compilers.
13143
13144 2007-03-11  Bruno Haible  <bruno@clisp.org>
13145
13146         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
13147         decrementing code ANSI C compliant.
13148
13149 2007-03-11  Bruno Haible  <bruno@clisp.org>
13150
13151         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
13152         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
13153
13154 2007-03-11  Bruno Haible  <bruno@clisp.org>
13155
13156         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
13157         <stdbool.h> substitute doesn't pass.
13158
13159 2007-03-11  Bruno Haible  <bruno@clisp.org>
13160
13161         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
13162
13163 2007-03-11  Bruno Haible  <bruno@clisp.org>
13164
13165         * gnulib-tool (func_create_megatestdir): Create also an autobuild
13166         script, for submission to autobuild.josefsson.org.
13167
13168 2007-03-10  Bruno Haible  <bruno@clisp.org>
13169
13170         * modules/canonicalize-lgpl-tests: New file.
13171         * tests/test-canonicalize-lgpl.sh: New file.
13172         * tests/test-canonicalize-lgpl.c: New file.
13173
13174         * modules/c-strcase-tests: New file.
13175         * tests/test-c-strcase.sh: New file.
13176         * tests/test-c-strcasecmp.c: New file.
13177         * tests/test-c-strncasecmp.c: New file.
13178
13179         * modules/atexit-tests: New file.
13180         * tests/test-atexit.sh: New file.
13181         * tests/test-atexit.c: New file.
13182
13183 2007-03-10  Bruno Haible  <bruno@clisp.org>
13184
13185         * tests/test-binary-io.sh: Use temporary filenames that are not so
13186         likely to clash with those of other tests (in a parallel make).
13187         * tests/test-binary-io.c: Likewise.
13188
13189 2007-03-10  Bruno Haible  <bruno@clisp.org>
13190
13191         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
13192         fallback; use #error instead.
13193         Suggested by Simon Josefsson.
13194
13195 2007-03-10  Bruno Haible  <bruno@clisp.org>
13196
13197         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
13198         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
13199         first and the last.
13200
13201 2007-03-10  Bruno Haible  <bruno@clisp.org>
13202
13203         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
13204
13205 2007-03-10  Bruno Haible  <bruno@clisp.org>
13206
13207         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
13208         "make distcheck".
13209         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
13210         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
13211         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
13212
13213 2007-03-10  Bruno Haible  <bruno@clisp.org>
13214
13215         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
13216         variable.
13217         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
13218         variable.
13219
13220 2007-03-09  Eric Blake  <ebb9@byu.net>
13221         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
13222
13223         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
13224         types are not being provided by gnulib.
13225         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
13226         types are supported.
13227
13228 2007-03-10  Bruno Haible  <bruno@clisp.org>
13229
13230         * lib/stdio_.h (__attribute__): New macro.
13231         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
13232         vsprintf): Specify __attribute__ __format__ for GCC.
13233         Suggested by Eric Blake.
13234
13235 2007-03-09  Bruno Haible  <bruno@clisp.org>
13236
13237         * modules/printf-posix-tests: New file.
13238         * tests/test-printf-posix.sh: New file.
13239         * tests/test-printf-posix.c: New file.
13240
13241         * modules/printf-posix: New file.
13242         * lib/printf.c: New file.
13243         * m4/printf-posix-rpl.m4: New file.
13244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
13245         REPLACE_PRINTF.
13246         * lib/stdio_.h (printf): New declaration.
13247         (format, __format__, ____printf____, ____scanf____, ____strftime____,
13248         ____strfmon____): New macros.
13249         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
13250         REPLACE_PRINTF.
13251
13252 2007-03-09  Bruno Haible  <bruno@clisp.org>
13253
13254         * tests/test-vasnprintf-posix2.sh: New file.
13255         * tests/test-vasnprintf-posix2.c: New file.
13256         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
13257         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
13258         (Makefile.am): Activate test-vasnprintf-posix2.sh.
13259
13260         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
13261         a locale dependent decimal point, rather than always '.'.
13262
13263 2007-03-09  Eric Blake  <ebb9@byu.net>
13264
13265         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
13266         spite of platforms like Tandem/NSK that define it to -1.
13267
13268 2007-03-08  Bruno Haible  <bruno@clisp.org>
13269
13270         * modules/vprintf-posix-tests: New file.
13271         * tests/test-vprintf-posix.sh: New file.
13272         * tests/test-vprintf-posix.c: New file.
13273         * tests/test-printf-posix.h: New file.
13274
13275         * modules/vprintf-posix: New file.
13276         * lib/vprintf.c: New file.
13277         * m4/vprintf-posix.m4: New file.
13278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
13279         REPLACE_VPRINTF.
13280         * lib/stdio_.h (vprintf): New declaration.
13281         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
13282         REPLACE_VPRINTF.
13283
13284 2007-03-08  Bruno Haible  <bruno@clisp.org>
13285
13286         * modules/fprintf-posix-tests: New file.
13287         * tests/test-fprintf-posix.sh: New file.
13288         * tests/test-fprintf-posix.c: New file.
13289
13290         * modules/fprintf-posix: New file.
13291         * lib/fprintf.c: New file.
13292         * m4/fprintf-posix.m4: New file.
13293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
13294         REPLACE_FPRINTF.
13295         * lib/stdio_.h (fprintf): New declaration.
13296         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
13297         REPLACE_FPRINTF.
13298
13299 2007-03-08  Bruno Haible  <bruno@clisp.org>
13300
13301         * modules/vfprintf-posix-tests: New file.
13302         * tests/test-vfprintf-posix.sh: New file.
13303         * tests/test-vfprintf-posix.c: New file.
13304         * tests/test-fprintf-posix.h: New file.
13305         * tests/test-fprintf-posix.out: New file.
13306
13307         * modules/vfprintf-posix: New file.
13308         * lib/vfprintf.c: New file.
13309         * m4/vfprintf-posix.m4: New file.
13310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
13311         REPLACE_VFPRINTF.
13312         * lib/stdio_.h (vfprintf): New declaration.
13313         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
13314         REPLACE_VFPRINTF.
13315
13316 2007-03-08  Bruno Haible  <bruno@clisp.org>
13317
13318         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
13319
13320 2007-03-08  Bruno Haible  <bruno@clisp.org>
13321
13322         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
13323         instead of 'expr' invocations.
13324         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13325         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13326         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13327         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13328         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13329         Suggested by Paul Eggert.
13330
13331 2007-03-08  Bruno Haible  <bruno@clisp.org>
13332
13333         * modules/fseterr-tests: New file.
13334         * tests/test-fseterr.c: New file.
13335
13336         * modules/fseterr: New file.
13337         * lib/fseterr.h: New file.
13338         * lib/fseterr.c: New file.
13339
13340 2007-03-08  Bruno Haible  <bruno@clisp.org>
13341
13342         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
13343         * lib/getopt_.h: Likewise.
13344         * lib/mbswidth.h: Likewise.
13345         * lib/setenv.h: Likewise.
13346         * lib/vasnprintf.h: Likewise.
13347         * lib/vasprintf.h: Likewise.
13348         * lib/verror.h: Likewise.
13349         * lib/xsetenv.h: Likewise.
13350         * lib/xvasprintf.h: Likewise.
13351
13352 2007-03-08  Jim Meyering  <jim@meyering.net>
13353
13354         * users.txt: Add parted.
13355
13356         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
13357
13358 2007-03-07  Bruno Haible  <bruno@clisp.org>
13359
13360         * m4/printf.m4: Make the shell script snippets copy&pastable.
13361
13362 2007-03-02  Bruno Haible  <bruno@clisp.org>
13363
13364         * lib/netinet_in_.h: New file.
13365         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
13366         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
13367         * modules/netinet_in (Files): Add lib/netinet_in_.h.
13368         (Depends-on): Add absolute-header.
13369         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
13370         into netinet/in.h.
13371
13372 2007-03-03  Bruno Haible  <bruno@clisp.org>
13373
13374         * lib/sys_select_.h: New file.
13375         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
13376         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
13377         * modules/sys_select (Files): Add lib/sys_select_.h.
13378         (Depends-on): Add absolute-header.
13379         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
13380         into sys/select.h.
13381
13382 2007-03-02  Bruno Haible  <bruno@clisp.org>
13383
13384         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
13385         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
13386         values.
13387         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
13388         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
13389         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
13390         * modules/sys_socket (Depends-on): Add absolute-header.
13391         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
13392         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
13393         (Include): Remove requirement of inclusion of <sys/types.h>.
13394
13395 2007-03-02  Bruno Haible  <bruno@clisp.org>
13396
13397         * lib/byteswap_.h (bswap_32): Fix formula.
13398
13399 2007-03-06  Bruno Haible  <bruno@clisp.org>
13400
13401         * modules/sprintf-posix-tests: New file.
13402         * tests/test-sprintf-posix.c: New file.
13403
13404         * modules/sprintf-posix: New file.
13405         * lib/sprintf.c: New file.
13406         * m4/sprintf-posix.m4: New file.
13407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
13408         REPLACE_SPRINTF.
13409         * lib/stdio_.h (sprintf): New declaration.
13410         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
13411         REPLACE_SPRINTF.
13412
13413 2007-03-06  Bruno Haible  <bruno@clisp.org>
13414
13415         * modules/vsprintf-posix-tests: New file.
13416         * tests/test-vsprintf-posix.c: New file.
13417         * tests/test-sprintf-posix.h: New file.
13418
13419         * modules/vsprintf-posix: New file.
13420         * lib/vsprintf.c: New file.
13421         * m4/vsprintf-posix.m4: New file.
13422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
13423         REPLACE_VSPRINTF.
13424         * lib/stdio_.h (vsprintf): New declaration.
13425         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
13426         REPLACE_VSPRINTF.
13427
13428 2007-03-06  Bruno Haible  <bruno@clisp.org>
13429
13430         * modules/vsnprintf (Depend-on): Remove minmax.
13431
13432 2007-03-06  Bruno Haible  <bruno@clisp.org>
13433
13434         * modules/snprintf-posix-tests: New file.
13435         * tests/test-snprintf-posix.c: New file.
13436
13437         * modules/snprintf-posix: New file.
13438         * m4/snprintf-posix.m4: New file.
13439         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
13440         gl_FUNC_SNPRINTF.
13441         (gl_FUNC_SNPRINTF): Invoke it.
13442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
13443         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
13444         is set.
13445         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
13446
13447 2007-03-06  Bruno Haible  <bruno@clisp.org>
13448
13449         * modules/vsnprintf-posix-tests: New file.
13450         * tests/test-vsnprintf-posix.c: New file.
13451         * tests/test-snprintf-posix.h: New file.
13452
13453         * modules/vsnprintf-posix: New file.
13454         * m4/vsnprintf-posix.m4: New file.
13455         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
13456         gl_FUNC_VSNPRINTF.
13457         (gl_FUNC_VSNPRINTF): Invoke it.
13458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
13459         * lib/stdio_.h (vsnprintf): Define as a replacement if
13460         REPLACE_VSNPRINTF is set.
13461         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
13462
13463 2007-03-06  Bruno Haible  <bruno@clisp.org>
13464
13465         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
13466         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
13467
13468 2007-03-06  Bruno Haible  <bruno@clisp.org>
13469
13470         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
13471         (asinl): Declare also if HAVE_DECL_ASINL is set.
13472         (atanl): Declare also if HAVE_DECL_ATANL is set.
13473         (ceill): Declare also if HAVE_DECL_CEILL is set.
13474         (cosl): Declare also if HAVE_DECL_COSL is set.
13475         (expl): Declare also if HAVE_DECL_EXPL is set.
13476         (floorl): Declare also if HAVE_DECL_FLOORL is set.
13477         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
13478         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
13479         (logl): Declare also if HAVE_DECL_LOGL is set.
13480         (sinl): Declare also if HAVE_DECL_SINL is set.
13481         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
13482         (tanl): Declare also if HAVE_DECL_TANL is set.
13483         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
13484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
13485         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
13486         declaration of frexpl, ldexpl.
13487         * modules/printf-frexpl (Depends-on): Add math.
13488         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
13489
13490 2007-03-05  Bruno Haible  <bruno@clisp.org>
13491
13492         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
13493         frexpl and ldexpl are declared.
13494         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
13495
13496 2007-03-05  Bruno Haible  <bruno@clisp.org>
13497
13498         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
13499         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
13500
13501 2007-03-05  Bruno Haible  <bruno@clisp.org>
13502
13503         * lib/stdio_.h: Include <stddef.h>.
13504
13505 2007-03-05  Bruno Haible  <bruno@clisp.org>
13506
13507         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
13508
13509 2007-03-05  Bruno Haible  <bruno@clisp.org>
13510
13511         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
13512         NetBSD 4, from Ralf Wildenhues.
13513
13514 2007-03-04  Bruno Haible  <bruno@clisp.org>
13515
13516         * lib/vasprintf.h: Update #if logic for the case when the functions
13517         exist but are overridden.
13518
13519 2007-03-04  Bruno Haible  <bruno@clisp.org>
13520
13521         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
13522         implementations: glibc-2.4 and MacOS X 10.3.
13523         * tests/test-vasnprintf-posix.c (test_function): Test also the case
13524         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
13525         * tests/test-vasprintf-posix.c (test_function): Likewise.
13526
13527 2007-03-04  Bruno Haible  <bruno@clisp.org>
13528
13529         * modules/vasprintf-posix-tests: New file.
13530         * tests/test-vasprintf-posix.c: New file.
13531
13532         * modules/vasprintf-posix: New file.
13533         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
13534         defined.
13535         * m4/vasprintf-posix.m4: New file.
13536         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
13537         gl_FUNC_VASPRINTF.
13538         (gl_FUNC_VASPRINTF): Invoke it.
13539         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
13540         here.
13541         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
13542
13543 2007-03-04  Bruno Haible  <bruno@clisp.org>
13544
13545         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
13546         REPLACE_GETTIMEOFDAY.
13547         * modules/sys_time (Makefile.am): Likewise.
13548         * m4/sys_time_h.m4: Likewise.
13549         * m4/gettimeofday.m4: Likewise.
13550
13551 2007-03-04  Bruno Haible  <bruno@clisp.org>
13552
13553         * modules/vasnprintf-posix-tests: New file.
13554         * tests/test-vasnprintf-posix.c: New file.
13555
13556         * modules/vasnprintf-posix: New file.
13557         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
13558         printf-frexpl.h.
13559         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
13560         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
13561         REPLACE_VASNPRINTF is defined.
13562         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
13563         gl_FUNC_VASNPRINTF.
13564         (gl_FUNC_VASNPRINTF): Invoke it.
13565         * m4/vasnprintf-posix.m4: New file.
13566         * m4/printf.m4: New file.
13567
13568 2007-03-04  Bruno Haible  <bruno@clisp.org>
13569
13570         Compile progreloc.c only if --enable-relocatable is specified.
13571         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
13572         if --enable-relocatable was specified.
13573         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
13574         lib_SOURCES.
13575
13576 2007-03-04  Jim Meyering  <jim@meyering.net>
13577
13578         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
13579         Use it consistently, rather than enumerating errno constants.
13580
13581 2007-03-04  Bruno Haible  <bruno@clisp.org>
13582
13583         * modules/xvasprintf-tests: New file.
13584         * tests/test-xvasprintf.c: New file.
13585
13586         * modules/vasprintf-tests: New file.
13587         * tests/test-vasprintf.c: New file.
13588
13589         * modules/vasnprintf-tests: New file.
13590         * tests/test-vasnprintf.c: New file.
13591
13592         * modules/vsnprintf-tests: New file.
13593         * tests/test-vsnprintf.c: New file.
13594
13595         * modules/snprintf-tests: New file.
13596         * tests/test-snprintf.c: New file.
13597
13598 2007-03-04  Bruno Haible  <bruno@clisp.org>
13599
13600         Compile relocatable.c only if --enable-relocatable is specified.
13601         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
13602         gl_RELOCATABLE_LIBRARY.
13603         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
13604         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
13605         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
13606         gl_RELOCATABLE_LIBRARY.
13607         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
13608         (Makefile.am): Remove lib_SOURCES.
13609         * modules/relocatable-lib-lgpl (configure.ac): Invoke
13610         gl_RELOCATABLE_LIBRARY.
13611         (Makefile.am): Remove lib_SOURCES.
13612         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
13613         always.
13614         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13615         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
13616
13617 2007-03-04  Bruno Haible  <bruno@clisp.org>
13618
13619         * modules/argmatch-tests: New file.
13620         * tests/test-argmatch.c: New file.
13621
13622         * tests/test-allocsa.c (main): Halve the number of loop runs.
13623
13624         * modules/alloca-opt-tests: New file.
13625         * tests/test-alloca-opt.c: New file.
13626
13627 2007-03-04  Jim Meyering  <jim@meyering.net>
13628
13629         Work around difference between Linux ACLs and Solaris 10 ZFS.
13630         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
13631         for EINVAL.
13632
13633 2007-03-03  Bruno Haible  <bruno@clisp.org>
13634
13635         * modules/relocatable-prog (Depends-on): Add back progreloc's
13636         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
13637
13638 2007-03-03  Bruno Haible  <bruno@clisp.org>
13639
13640         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
13641         * modules/relocatable-lib: New file.
13642
13643 2007-03-03  Bruno Haible  <bruno@clisp.org>
13644
13645         * modules/relocatable-prog: Renamed from modules/relocatable.
13646         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
13647
13648 2007-03-03  Bruno Haible  <bruno@clisp.org>
13649
13650         * modules/relocatable-script (Files): Add doc/relocatable.texi,
13651         m4/relocatable-lib.m4.
13652         (Depends-on): Remove 'relocatable'.
13653         (configure.ac): Add gl_RELOCATABLE_NOP.
13654
13655 2007-03-03  Bruno Haible  <bruno@clisp.org>
13656
13657         * modules/relocatable-prog-wrapper: New file.
13658         * modules/relocatable (Depends-on): Add it. Remove all other
13659         dependencies except progname.
13660         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
13661
13662         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
13663         (gl_FUNC_STRERROR): Nop.
13664         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
13665
13666         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
13667         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
13668
13669         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
13670         (gl_FUNC_READLINK): Update.
13671
13672         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
13673
13674 2007-03-03  Bruno Haible  <bruno@clisp.org>
13675
13676         * lib/xreadlink.c: Include <unistd.h> unconditionally.
13677         * modules/xreadlink (Depends-on): Add unistd.
13678         * modules/xreadlink-with-size (Depends-on): Likewise.
13679
13680 2007-03-03  Bruno Haible  <bruno@clisp.org>
13681
13682         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
13683         extracted from gt_FUNC_SETENV.
13684         (gt_FUNC_SETENV): Remove macro.
13685         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
13686         remove gt_FUNC_SETENV.
13687
13688 2007-03-03  Bruno Haible  <bruno@clisp.org>
13689
13690         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
13691         ENABLE_RELOCATABLE here.
13692         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
13693
13694 2007-03-03  Bruno Haible  <bruno@clisp.org>
13695
13696         * modules/rbtreehash-list-tests (Depends-on): Add progname.
13697         * tests/test-rbtreehash_list.c: Include progname.h.
13698         (main): Call set_program_name.
13699
13700         * modules/rbtree-oset-tests (Depends-on): Add progname.
13701         * tests/test-rbtree_oset.c: Include progname.h.
13702         (main): Call set_program_name.
13703
13704         * modules/rbtree-list-tests (Depends-on): Add progname.
13705         * tests/test-rbtree_list.c: Include progname.h.
13706         (main): Call set_program_name.
13707
13708         * modules/linked-list-tests (Depends-on): Add progname.
13709         * tests/test-linked_list.c: Include progname.h.
13710         (main): Call set_program_name.
13711
13712 2007-03-03  Bruno Haible  <bruno@clisp.org>
13713
13714         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
13715         All uses of __restrict changed to _Restrict_.
13716         * lib/glob_.h (__restrict): Remove macro.
13717
13718 2007-03-02  Bruno Haible  <bruno@clisp.org>
13719
13720         * modules/gettext (configure.ac): Require gettext infrastructure
13721         from version 0.16.1.
13722
13723 2007-03-02  Bruno Haible  <bruno@clisp.org>
13724
13725         * modules/linkedhash-list-tests (Depends-on): Add progname.
13726         * tests/test-linkedhash_list.c: Include progname.h.
13727         (main): Call set_program_name.
13728
13729         * modules/carray-list-tests (Depends-on): Add progname.
13730         * tests/test-carray_list.c: Include progname.h.
13731         (main): Call set_program_name.
13732
13733         * modules/avltreehash-list-tests (Depends-on): Add progname.
13734         * tests/test-avltreehash_list.c: Include progname.h.
13735         (main): Call set_program_name.
13736
13737         * modules/avltree-oset-tests (Depends-on): Add progname.
13738         * tests/test-avltree_oset.c: Include progname.h.
13739         (main): Call set_program_name.
13740
13741         * modules/avltree-list-tests (Depends-on): Add progname.
13742         * tests/test-avltree_list.c: Include progname.h.
13743         (main): Call set_program_name.
13744
13745         * modules/array-oset-tests (Depends-on): Add progname.
13746         * tests/test-array_oset.c: Include progname.h.
13747         (main): Call set_program_name.
13748
13749         * modules/array-list-tests (Depends-on): Add progname.
13750         * tests/test-array_list.c: Include progname.h.
13751         (main): Call set_program_name.
13752
13753         * modules/argp-tests (Depends-on): Add progname.
13754         * tests/test-argp.c: Include argp.h first. Include progname.h.
13755         (main): Call set_program_name.
13756
13757 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
13758
13759         * doc/gnulib-tool.texi (Initial import): Reword description of
13760         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
13761         limited effect even if defined after the first system include.
13762
13763 2007-03-01  Bruno Haible  <bruno@clisp.org>
13764
13765         * build-aux/config.libpath: Update to libtool-1.5.22.
13766         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13767
13768 2007-03-01  Bruno Haible  <bruno@clisp.org>
13769
13770         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
13771         foo_CFLAGS.
13772         Reported by Ralf Wildenhues.
13773
13774 2007-03-01  Bruno Haible  <bruno@clisp.org>
13775
13776         * build-aux/install-reloc: Remove object files left over by some
13777         compilers.
13778         Reported by Ralf Wildenhues.
13779
13780 2007-03-01  Bruno Haible  <bruno@clisp.org>
13781
13782         * build-aux/install-reloc: Break long lines.
13783
13784 2007-03-01  Bruno Haible  <bruno@clisp.org>
13785
13786         * doc/relocatable.texi: Document that it may not work on OpenBSD.
13787         Reported by Ralf Wildenhues.
13788
13789 2007-03-01  Bruno Haible  <bruno@clisp.org>
13790
13791         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
13792         include ordering constraints.
13793
13794 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
13795
13796         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
13797         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
13798         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
13799         as another example.
13800         * lib/time_.h: Fix misspelling.
13801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
13802         Require gl_HEADER_TIME_H_DEFAULTS.
13803         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
13804         * m4/time_r.m4 (gl_TIME_R): Likewise.
13805         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
13806
13807 2007-03-01  Bruno Haible  <bruno@clisp.org>
13808
13809         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
13810         * m4/utimens.m4 (gl_UTIMENS): Likewise.
13811
13812 2007-03-01  Jim Meyering  <jim@meyering.net>
13813
13814         * modules/xreadlink (Maintainer): Add my name.
13815         * modules/xreadlink-with-size (Depends-on): Alphabetize.
13816
13817 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
13818             Bruno Haible  <bruno@clisp.org>
13819
13820         * build-aux/install-reloc: Compile also c-ctype.c.
13821         * build-aux/relocatable.sh.in: New file.
13822         * doc/relocatable.texi: New file.
13823         * doc/relocatable-maint.texi: New file.
13824         * doc/gnulib.texi: Include relocatable-maint.texi.
13825         * lib/progreloc.c: Include unistd.h unconditionally.
13826         * lib/relocwrapper.c: Include unistd.h unconditionally.
13827         Include c-ctype.h.
13828         (add_dotbin): Use c_tolower.
13829         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
13830         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
13831         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
13832         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
13833         to m4/relocatable-lib.m4.
13834         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
13835         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
13836         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
13837         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
13838         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
13839         * modules/relocatable: New file.
13840         * modules/relocatable-lib: New file.
13841         * modules/relocatable-script: New file.
13842
13843 2007-02-28  Bruno Haible  <bruno@clisp.org>
13844
13845         Import --enable-relocatable infrastructure.
13846         * build-aux/config.libpath: New file, from GNU gettext.
13847         * build-aux/install-reloc: New file, from GNU gettext.
13848         * build-aux/reloc-ldflags: New file, from GNU gettext.
13849         * lib/relocatable.h: New file, from GNU gettext.
13850         * lib/relocatable.c: New file, from GNU gettext.
13851         * lib/relocwrapper.c: New file, from GNU gettext.
13852         * m4/relocatable.m4: New file, from GNU gettext.
13853
13854 2007-02-28  Bruno Haible  <bruno@clisp.org>
13855
13856         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
13857
13858         * modules/xreadlink: New file, from GNU gettext with modifications.
13859         * lib/xreadlink.c: New file, from GNU gettext.
13860         * lib/xreadlink.h: Add comments.
13861         (xreadlink): New declaration.
13862
13863         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
13864         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
13865         lib/xreadlink-with-size.c.
13866         (configure.ac): Remove gl_XREADLINK invocation.
13867         (Makefile.am): Augment lib_SOURCES.
13868         * m4/xreadlink.m4: Remove file.
13869         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
13870         (xreadlink_with_size): Renamed from xreadink.
13871         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
13872         * modules/canonicalize (Depends-on): Replace xreadlink with
13873         xreadlink-with-size.
13874         * lib/canonicalize.c (canonicalize_filename_mode): Update.
13875
13876 2007-02-25  Jim Meyering  <jim@meyering.net>
13877
13878         * build-aux/announce-gen: When complaining about excess arguments,
13879         list them.
13880
13881 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13882
13883         * README: Document signed integer overflow situation more
13884         accurately.
13885
13886 2007-02-25  Bruno Haible  <bruno@clisp.org>
13887
13888         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
13889         'a' or 'A' conversion.
13890
13891 2007-02-25  Bruno Haible  <bruno@clisp.org>
13892
13893         * modules/filename: Renamed from modules/pathname.
13894         (Files): Replace lib/pathname.h with lib/filename.h. Replace
13895         lib/concatpath.c with lib/concat-filename.c.
13896         (Makefile.am): Update.
13897         (Include): Replace pathname.h with filename.h.
13898         * lib/filename.h: Renamed from lib/pathname.h.
13899         (concatenated_filename): Renamed from concatenated_pathname.
13900         * lib/concat-filename.c: Renamed from lib/concatpath.c.
13901         (concatenated_filename): Renamed from concatenated_pathname.
13902         * lib/findprog.c: Include filename.h instead of pathname.h.
13903         (find_in_path): Update.
13904         * lib/javacomp.c: Include filename.h instead of pathname.h.
13905         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
13906         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
13907         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
13908         is_oldgcj_14_13_usable, is_javac_usable): Update.
13909         * lib/javaexec.c: Include filename.h instead of pathname.h.
13910         (execute_java_class): Update.
13911         * modules/findprog: Update.
13912         * modules/javacomp: Update.
13913         * modules/javaexec: Update.
13914         * MODULES.html.sh (File system functions): Add 'filename', remove
13915         'pathname'.
13916
13917 2007-02-25  Bruno Haible  <bruno@clisp.org>
13918
13919         * modules/printf-frexpl-tests: New file.
13920         * tests/test-printf-frexpl.c: New file.
13921
13922         * modules/printf-frexpl: New file.
13923         * lib/printf-frexpl.h: New file.
13924         * lib/printf-frexpl.c: New file.
13925         * m4/printf-frexpl.m4: New file.
13926
13927 2007-02-25  Bruno Haible  <bruno@clisp.org>
13928
13929         * modules/printf-frexp-tests: New file.
13930         * tests/test-printf-frexp.c: New file.
13931
13932         * modules/printf-frexp: New file.
13933         * lib/printf-frexp.h: New file.
13934         * lib/printf-frexp.c: New file.
13935         * m4/printf-frexp.m4: New file.
13936
13937 2007-02-25  Bruno Haible  <bruno@clisp.org>
13938
13939         Assume automake >= 1.10 for the tests.
13940         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
13941         * modules/arctwo-tests: Likewise.
13942         * modules/argp-tests: Likewise.
13943         * modules/avltree-list-tests: Likewise.
13944         * modules/avltree-oset-tests: Likewise.
13945         * modules/avltreehash-list-tests: Likewise.
13946         * modules/carray-list-tests: Likewise.
13947         * modules/crc-tests: Likewise.
13948         * modules/des-tests: Likewise.
13949         * modules/gc-arcfour-tests: Likewise.
13950         * modules/gc-arctwo-tests: Likewise.
13951         * modules/gc-des-tests: Likewise.
13952         * modules/gc-hmac-md5-tests: Likewise.
13953         * modules/gc-hmac-sha1-tests: Likewise.
13954         * modules/gc-md2-tests: Likewise.
13955         * modules/gc-md4-tests: Likewise.
13956         * modules/gc-md5-tests: Likewise.
13957         * modules/gc-pbkdf2-sha1-tests: Likewise.
13958         * modules/gc-rijndael-tests: Likewise.
13959         * modules/gc-sha1-tests: Likewise.
13960         * modules/gc-tests: Likewise.
13961         * modules/getaddrinfo-tests: Likewise.
13962         * modules/hmac-md5-tests: Likewise.
13963         * modules/hmac-sha1-tests: Likewise.
13964         * modules/linked-list-tests: Likewise.
13965         * modules/linkedhash-list-tests: Likewise.
13966         * modules/lock-tests: Likewise.
13967         * modules/md2-tests: Likewise.
13968         * modules/md4-tests: Likewise.
13969         * modules/md5-tests: Likewise.
13970         * modules/rbtree-list-tests: Likewise.
13971         * modules/rbtree-oset-tests: Likewise.
13972         * modules/rbtreehash-list-tests: Likewise.
13973         * modules/read-file-tests: Likewise.
13974         * modules/rijndael-tests: Likewise.
13975         * modules/stdint-tests: Likewise.
13976         * modules/tls-tests: Likewise.
13977
13978 2007-02-24  Bruno Haible  <bruno@clisp.org>
13979
13980         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
13981         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
13982         function; instead check whether isnan with a double argument links.
13983         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
13984         function; instead check whether isnan with a 'long double' argument
13985         links.
13986         Reported by Eric Blake <ebb9@byu.net>.
13987
13988 2007-02-24  Bruno Haible  <bruno@clisp.org>
13989
13990         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
13991         defined.
13992         * lib/isnanl.c: Remove all code. Just include isnan.c.
13993         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
13994
13995 2007-02-25  Jim Meyering  <jim@meyering.net>
13996
13997         Avoid conflicting types for 'unsetenv' on FreeBSD.
13998         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
13999         conflicting with FreeBSD's (5.0 and 6.1) function declaration
14000         in stdlib.h.
14001
14002 2007-02-24  Bruno Haible  <bruno@clisp.org>
14003
14004         * modules/isnanl-nolibm-tests: New file.
14005         * tests/test-isnanl.c: New file.
14006
14007         * modules/isnanl-nolibm: New file.
14008         * lib/isnanl.h: New file.
14009         * lib/isnanl.c: New file.
14010         * m4/isnanl.m4: New file.
14011
14012 2007-02-24  Bruno Haible  <bruno@clisp.org>
14013
14014         * modules/isnan-nolibm-tests: New file.
14015         * tests/test-isnan.c: New file.
14016
14017         * modules/isnan-nolibm: New file.
14018         * lib/isnan.h: New file.
14019         * lib/isnan.c: New file.
14020         * m4/isnan.m4: New file.
14021
14022 2007-02-24  Bruno Haible  <bruno@clisp.org>
14023
14024         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
14025         assume that an exponent fits in 20 bits.
14026
14027 2007-02-24  Jim Meyering  <jim@meyering.net>
14028
14029         * m4/regex.m4: Update the description of the configure-time option,
14030         --without-included-regex, to state accurately what the defaults are,
14031         and perhaps to give people an idea why using this option is risky.
14032
14033 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14034
14035         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
14036         loops on small arguments.  This attempts to avoid the problem
14037         Bruno Haible reported for AIX 4.3.2 in
14038         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
14039
14040 2007-02-23  Bruno Haible  <bruno@clisp.org>
14041
14042         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
14043         Needed for help2man.
14044
14045 2007-02-23  Karl Berry  <karl@gnu.org>
14046
14047         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
14048         exists, foo.h should be cvs-ignored, not committed.
14049
14050 2007-02-23  Eric Blake  <ebb9@byu.net>
14051
14052         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
14053         * lib/stat-time.h (includes): Likewise.
14054         * lib/utimecmp.c (includes): Likewise.
14055         * lib/utimens.h (includes): Likewise.
14056         * lib/getdate.y (includes): Also include "timespec.h" for use
14057         internal to the module.
14058         * modules/utimens (Depends-on): Revert yesterday's patch.
14059         * modules/nanosleep (Depends-on): Add missing dependency.
14060
14061 2007-02-22  Bruno Haible  <bruno@clisp.org>
14062
14063         * lib/glob.c: Don't include getlogin_r.h.
14064
14065 2007-02-22  Jim Meyering  <jim@meyering.net>
14066
14067         * modules/utimens (Depends-on): Add timespec, required for
14068         utimens.h's inclusion of timespec.h.
14069
14070 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14071
14072         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
14073         long unreadable paths in GNU/Linux.  Problem reported by Andreas
14074         Schwab in
14075         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
14076         I'll try to think of a better way to fix the Solaris problem.
14077
14078         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
14079         like glibc; on Solaris 10, it fails with errno == EINVAL.
14080         POSIX says the behavior is unspecified if the first argument is NULL,
14081         so play it safe and never pass NULL to the system getcwd.
14082
14083 2007-02-21  Jim Meyering  <jim@meyering.net>
14084
14085         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
14086         of gettimeofday.  It would conflict with the one now always
14087         provided via sys_time_.h.  Reported by Matthew Woehlke, as
14088         an IRIX 6.5 build failure.
14089
14090 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14091
14092         Minor fixups to port to Solaris 10 with Sun C 5.8.
14093         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
14094         * modules/getcwd (Depends-on): Add dirfd.
14095         * lib/putenv.c (putenv): #undef it.
14096         (rpl_putenv): New decl.
14097         (malloc, free): Include <stdlib.h> rather than prototyping separately.
14098
14099 2007-02-20  Bruno Haible  <bruno@clisp.org>
14100
14101         * modules/stdio-tests: New file.
14102         * tests/test-stdio.c: New file.
14103
14104         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
14105         (Depends-on): Add stdio.
14106         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14107         (Include): Use <stdio.h> instead of vsnprintf.h.
14108         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
14109         HAVE_DECL_VSNPRINTF.
14110         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
14111
14112         * modules/snprintf (Files): Remove lib/snprintf.h.
14113         (Depends-on): Add stdio.
14114         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14115         (Include): Use <stdio.h> instead of snprintf.h.
14116         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
14117         HAVE_DECL_SNPRINTF.
14118         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
14119         * lib/getaddrinfo.c: Likewise.
14120
14121         * modules/stdio: New file.
14122         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
14123         * lib/snprintf.h: Remove file.
14124         * lib/vsnprintf.h: Remove file.
14125         * lib/.cppi-disable: Remove snprintf.h.
14126         * m4/stdio_h.m4: New file.
14127         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
14128
14129 2007-02-20  Jim Meyering  <jim@meyering.net>
14130
14131         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
14132         used by e.g., mingw.  From Bruno Haible.
14133
14134 2007-02-19  Bruno Haible  <bruno@clisp.org>
14135
14136         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
14137         warnings.
14138         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14139
14140 2007-02-19  Bruno Haible  <bruno@clisp.org>
14141
14142         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
14143         from mingw users.
14144
14145 2007-02-19  Bruno Haible  <bruno@clisp.org>
14146
14147         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
14148         warnings.
14149         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
14150
14151 2007-02-19  Jim Meyering  <jim@meyering.net>
14152
14153         Don't use FD after a successful "fdopendir (fd)".
14154         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
14155         Reset it by calling dirfd on the just-obtained DIR*.
14156
14157         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
14158         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
14159
14160 2007-02-18  Bruno Haible  <bruno@clisp.org>
14161
14162         * lib/readlink.c: Include <unistd.h>.
14163         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
14164         HAVE_READLINK.
14165         * modules/readlink (Depends-on): Add unistd.
14166         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14167         (Include): Add <unistd.h>.
14168
14169         * lib/getlogin_r.h: Remove file.
14170         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
14171         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
14172         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
14173         HAVE_DECL_GETLOGIN_R.
14174         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
14175         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14176         (Include): Use <unistd.h> instead of getlogin_r.h.
14177
14178         * lib/getcwd.h: Remove file.
14179         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
14180         * lib/xgetcwd.c: Likewise.
14181         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
14182         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
14183         * modules/getcwd (Files): Remove lib/getcwd.h.
14184         (Depends-on): Add unistd.
14185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14186         (Include): Use <unistd.h> instad of getcwd.h.
14187
14188         * lib/ftruncate.c: Include <unistd.h> first.
14189         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
14190         Set HAVE_FTRUNCATE.
14191         * modules/ftruncate (Depends-on): Add unistd.
14192         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14193
14194         * lib/fchdir.c: Include <unistd.h> first.
14195         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
14196         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
14197         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
14198         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14199         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
14200
14201         * lib/dup2.c: Include <unistd.h> first.
14202         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
14203         HAVE_DUP2.
14204         * modules/dup2 (Depends-on): Add unistd.
14205         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14206
14207         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
14208         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
14209         REPLACE_CHOWN. Don't define chown as a macro here.
14210         * modules/chown (Depends-on): Add unistd.
14211         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14212
14213         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
14214         Add definition for GL_LINK_WARNING.
14215         (chown, dup2): New declarations.
14216         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
14217         link warning.
14218         (ftruncate): New declaration.
14219         (getcwd): New declaration, taken from old getcwd.h.
14220         (getlogin_r): New declaration, taken from old getlogin_r.h.
14221         (readlink): New declaration.
14222         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
14223         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
14224         (gl_PREREQ_UNISTD): Remove macro.
14225         (gl_UNISTD_MODULE_INDICATOR): New macro.
14226         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
14227         many new variables. Don't set UNISTD_H.
14228         * modules/unistd (Description): Change.
14229         (Depends-on): Add link-warning.
14230         (configure.ac): Update.
14231         (Makefile.am): Create unistd.h always. Substitute many new variables
14232         into it.
14233
14234 2007-02-18  Bruno Haible  <bruno@clisp.org>
14235
14236         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
14237         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
14238         HAVE_GETSUBOPT.
14239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
14240         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
14241         * lib/getsubopt.h: Remove file.
14242         * modules/getsubopt (Files): Remove lib/getsubopt.h.
14243         (Depends-on): Add stdlib.
14244         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14245         (Includes): Use <stdlib.h> instead of getsubopt.h.
14246         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
14247         Set HAVE_GETSUBOPT.
14248         * lib/getsubopt.c: Don't include getsubopt.h.
14249
14250 2007-02-18  Bruno Haible  <bruno@clisp.org>
14251
14252         * modules/fchdir (Depends-on): Add dup2.
14253
14254 2007-02-18  Bruno Haible  <bruno@clisp.org>
14255
14256         * lib/stdlib_.h: Handle glibc's special invocation convention
14257         specially.
14258
14259 2007-02-18  Bruno Haible  <bruno@clisp.org>
14260
14261         * modules/stdlib-tests: New file.
14262         * tests/test-stdlib.c: New file.
14263
14264         * modules/mkstemp (Files): Remove lib/mkstemp.h.
14265         (Depends-on): Add stdlib.
14266         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14267         (Includes): Use <stdlib.h> instead of mkstemp.h.
14268         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
14269         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
14270         * lib/mkstemp.c: Don't include mkstemp.h.
14271         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
14272         * lib/stdlib--.h: Don't include mkstemp.h.
14273
14274         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
14275         (Depends-on): Add stdlib.
14276         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14277         (Includes): Use <stdlib.h> instead of mkdtemp.h.
14278         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
14279         HAVE_MKDTEMP.
14280         * lib/mkdtemp.c: Don't include mkdtemp.h.
14281         * lib/clean-temp.c: Don't include mkdtemp.h.
14282
14283         * modules/exit (Files): Remove lib/exit.h.
14284         (Depends-on): Add stdlib.
14285         (Makefile.am): Remove lib_SOURCES.
14286         (Include): Use <stdlib.h> instead of exit.h.
14287         * lib/argmatch.c: Don't include exit.h.
14288         * lib/execute.c: Likewise.
14289         * lib/pagealign_alloc.c: Likewise.
14290         * lib/pipe.c: Likewise.
14291         * lib/wait-process.c: Likewise.
14292         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
14293         * lib/exitfail.c: Likewise.
14294         * lib/savewd.c: Likewise.
14295         * lib/xsetenv.c: Likewise.
14296
14297         * modules/stdlib: New file.
14298         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
14299         and extra comments about mkstemp().
14300         * lib/exit.h: Remove file.
14301         * lib/mkdtemp.h: Remove file.
14302         * lib/mkstemp.h: Remove file.
14303         * m4/stdlib_h.m4: New file.
14304         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
14305
14306 2007-02-18  Bruno Haible  <bruno@clisp.org>
14307
14308         * modules/math-tests: New file.
14309         * tests/test-math.c: New file.
14310
14311         * modules/math: New file.
14312         * modules/mathl (Files): Remove lib/mathl.h.
14313         (Depends-on): Add math.
14314         (Makefile.am): Don't mention mathl.h.
14315         (Include): Use <math.h> instead of mathl.h.
14316         * lib/math_.h: New file.
14317         * lib/mathl.h: Remove file.
14318         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
14319         mathl.h.
14320         * lib/asinl.c: Likewise.
14321         * lib/atanl.c: Likewise.
14322         * lib/ceill.c: Likewise.
14323         * lib/cosl.c: Likewise.
14324         * lib/expl.c: Likewise.
14325         * lib/floorl.c: Likewise.
14326         * lib/frexpl.c: Likewise.
14327         * lib/ldexpl.c: Likewise.
14328         * lib/logl.c: Likewise.
14329         * lib/sincosl.c: Likewise.
14330         * lib/sinl.c: Likewise.
14331         * lib/sqrtl.c: Likewise.
14332         * lib/tanl.c: Likewise.
14333         * lib/trigl.c: Likewise.
14334         * m4/math_h.m4: New file.
14335         * MODULES.html.sh (Mathematics): Add math.
14336
14337 2007-02-17  Bruno Haible  <bruno@clisp.org>
14338
14339         * modules/wctype-tests: New file.
14340         * tests/test-wctype.c: New file.
14341
14342         * modules/wchar-tests: New file.
14343         * tests/test-wchar.c: New file.
14344
14345         * modules/unistd-tests: New file.
14346         * tests/test-unistd.c: New file.
14347
14348         * modules/time-tests: New file.
14349         * tests/test-time.c: New file.
14350
14351         * modules/sysexits-tests: New file.
14352         * tests/test-sysexits.c: New file.
14353
14354         * modules/sys_time-tests: New file.
14355         * tests/test-sys_time.c: New file.
14356
14357         * modules/sys_stat-tests: New file.
14358         * tests/test-sys_stat.c: New file.
14359
14360         * modules/sys_socket-tests: New file.
14361         * tests/test-sys_socket.c: New file.
14362
14363         * modules/sys_select-tests: New file.
14364         * tests/test-sys_select.c: New file.
14365
14366         * modules/string-tests: New file.
14367         * tests/test-string.c: New file.
14368
14369         * modules/stdbool-tests: New file.
14370         * tests/test-stdbool.c: New file.
14371
14372         * modules/netinet_in-tests: New file.
14373         * tests/test-netinet_in.c: New file.
14374
14375         * modules/inttypes-tests: New file.
14376         * tests/test-inttypes.c: New file.
14377
14378         * modules/fcntl-tests: New file.
14379         * tests/test-fcntl.c: New file.
14380
14381         * modules/byteswap-tests: New file.
14382         * tests/test-byteswap.c: New file.
14383
14384         * modules/arpa_inet-tests: New file.
14385         * tests/test-arpa_inet.c: New file.
14386
14387 2007-02-17  Bruno Haible  <bruno@clisp.org>
14388
14389         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
14390         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
14391         if the corresponding module is not enabled. Emit link warnings if
14392         the function is used nevertheless.
14393         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
14394         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
14395         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
14396         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
14397         * modules/inttypes (Depends-on): Add link-warning.
14398         (Makefile.am): Copy the contents of build-aux/link-warning.h into
14399         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
14400         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
14401         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
14402         * modules/imaxdiv (configure.ac): Likewise.
14403         * modules/strtoimax (configure.ac): Likewise.
14404         * modules/strtoumax (configure.ac): Likewise.
14405
14406 2007-02-17  Bruno Haible  <bruno@clisp.org>
14407
14408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
14409         gl_STRING_MODULE_INDICATOR_DEFAULTS.
14410         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
14411         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
14412
14413 2007-02-17  Bruno Haible  <bruno@clisp.org>
14414
14415         * modules/link-warning: New file.
14416         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
14417         * lib/string_.h (GL_LINK_WARNING): Remove definition.
14418         * modules/string (Depends-on): Add link-warning.
14419         (Makefile.am): Copy the contents of build-aux/link-warning.h into
14420         string.h.
14421         * MODULES.html.sh (Support for building libraries and executables): Add
14422         link-warning.
14423
14424 2007-02-17  Bruno Haible  <bruno@clisp.org>
14425
14426         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
14427         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
14428         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
14429         long lines.
14430
14431 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
14432             Bruno Haible  <bruno@clisp.org>
14433
14434         * modules/tmpfile: New file.
14435         * lib/tmpfile.c: New file.
14436         * m4/tmpfile.m4: New file.
14437         * MODULES.html.sh (func_all_modules): New section "Input/output".
14438
14439 2007-02-15  Bruno Haible  <bruno@clisp.org>
14440
14441         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
14442         (supports_delete_on_close): New function.
14443         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
14444
14445 2007-02-14  Bruno Haible  <bruno@clisp.org>
14446
14447         * modules/mbspcasecmp-tests: New file.
14448         * tests/test-mbspcasecmp.sh: New file.
14449         * tests/test-mbspcasecmp.c: New file.
14450
14451         New module mbspcasecmp.
14452         * modules/mbspcasecmp: New file.
14453         * lib/mbspcasecmp.c: New file.
14454         * lib/string_.h (strncasecmp): Change warning message.
14455         (mbspcasecmp): New declaration.
14456         * m4/mbspcasecmp.m4: New file.
14457         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14458         GNULIB_MBSPCASECMP.
14459         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
14460         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
14461
14462 2007-02-14  Bruno Haible  <bruno@clisp.org>
14463
14464         * modules/mbsncasecmp-tests: New file.
14465         * tests/test-mbsncasecmp.sh: New file.
14466         * tests/test-mbsncasecmp.c: New file.
14467
14468         New module mbsncasecmp.
14469         * modules/mbsncasecmp: New file.
14470         * lib/mbsncasecmp.c: New file.
14471         * lib/string_.h (mbsncasecmp): New declaration.
14472         * m4/mbsncasecmp.m4: New file.
14473         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14474         GNULIB_MBSNCASECMP.
14475         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
14476         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
14477
14478 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
14479
14480         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
14481         Verify that it doesn't overlap with our flags.
14482         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
14483         do not have the desired effect in multibyte locales; instead, use
14484         mbscasecmp.
14485         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
14486         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
14487         we don't require GNU fnmatch ourselves (if our users require it, they
14488         should do so explicitly).
14489
14490         Fix regex code so it doesn't rely on strcasecmp.
14491         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
14492         Otherwise, include gnulib's langinfo.h.
14493         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
14494         undesirable behavior in non-C locales.  Instead, rely on localecharset.
14495         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
14496         * modules/regex (FILES): Remove m4/codeset.m4.
14497         (Depends-on): Add localcharset.  Remove strcase.
14498
14499 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14500
14501         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
14502         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14503
14504 2007-02-13  Bruno Haible  <bruno@clisp.org>
14505
14506         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
14507         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14508
14509 2007-02-12  Bruno Haible  <bruno@clisp.org>
14510
14511         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
14512         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
14513         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
14514         time warning rather than a link error.
14515
14516 2007-02-12  Bruno Haible  <bruno@clisp.org>
14517
14518         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
14519         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14520         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14521
14522 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14523
14524         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
14525         args, not 2.
14526
14527 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14528
14529         New module 'time', so that apps can include <time.h> as per
14530         POSIX and GNU instead of separate include files like time_r.h
14531         and timegm.h.  This implementation tries out a simpler approach
14532         for replacing decls in standard include files (as compared to
14533         the string module), somewhat as an experiment.
14534
14535         * config/srclist.txt: Comment out mktime.c for now.
14536         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
14537         since it doesn't apply any more.  Use generic wording instead.
14538         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
14539         'time'.
14540         * lib/time_.h, m4/time_h.m4, modules/time: New files.
14541         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
14542         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
14543         Don't include <sys/types.h>; no longer needed since we assume C89.
14544         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
14545         * lib/strftime.c: Likewise.
14546         * lib/time_r.c: Likewise.
14547         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
14548         * lib/nanosleep.c: Include <time.h> first, to check interface.
14549         * lib/strptime.c: Likewise.
14550         * lib/time_r.c: Likewise.
14551         * lib/timegm.c: Likewise.
14552         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
14553         needed.
14554         * lib/timegm.c: Don't include timegm.h; no longer needed.
14555         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
14556         time.h now handles any problems in that area.
14557         (struct timespec, nanosleep): Remove; time.h now arranges for these.
14558         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
14559         that time.h defines struct timespec.
14560         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
14561         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
14562         handles that.
14563         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
14564         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
14565         needed.  Set REPLACE_LOCALTIME.
14566         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
14567         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
14568         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
14569         nanosleep; time_h.m4 now does that.  Don't require
14570         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
14571         module handles this now.
14572         * modules/getdate (Depends-on): Remove timespec.  Add time.
14573         * modules/nanosleep (Depends-on): Likewise.
14574         * modules/stat-time (Depends-on): Likewise.
14575         * modules/nanosleep (Include): Include time.h, not timespec.h.
14576         * modules/strptime (Files): Remove lib/strptime.h.
14577         (Depends-on): Add extensions, time.
14578         (Include): Include time.h, not strptime.h.
14579         * modules/time_r (Files): Remove lib/time_r.h.
14580         (Depends-on): Add time.
14581         (Include): Include time.h, not time_r.h.
14582         * modules/timegm: Likewise.
14583         * modules/timespec (Description): Now does timespec-related decls
14584         of our own, instead of struct timespec itself.
14585         (Depends-on): Add time; remove extensions.
14586         (Maintainer): Add self.
14587         * modules/utimecmp (Depends-on): Add time; remove timespec.
14588         * modules/utimens (Depends-on): Likewise.
14589         * modules/xnanosleep (Depends-on): Likewise.
14590
14591 2007-02-11  Bruno Haible  <bruno@clisp.org>
14592
14593         * lib/c-strstr.c: Include allocsa.h.
14594         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14595         * lib/c-strcasestr.c: Include allocsa.h.
14596         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14597         * lib/strcasestr.c: Include allocsa.h.
14598         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14599         * lib/mbsstr.c: Include allocsa.h.
14600         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14601         allocsa/freesa instead of malloc/free.
14602         * lib/mbscasestr.c: Include allocsa.h.
14603         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14604         allocsa/freesa instead of malloc/free.
14605         * modules/c-strstr (Depends-on): Add allocsa.
14606         * modules/c-strcasestr (Depends-on): Likewise.
14607         * modules/strcasestr (Depends-on): Likewise.
14608         * modules/mbsstr (Depends-on): Likewise.
14609         * modules/mbscasestr (Depends-on): Likewise.
14610
14611 2007-02-11  Bruno Haible  <bruno@clisp.org>
14612
14613         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
14614
14615         * modules/mbsspn-tests: New file.
14616         * tests/test-mbsspn.sh: New file.
14617         * tests/test-mbsspn.c: New file.
14618
14619 2007-02-11  Bruno Haible  <bruno@clisp.org>
14620
14621         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
14622
14623         * modules/mbspbrk-tests: New file.
14624         * tests/test-mbspbrk.sh: New file.
14625         * tests/test-mbspbrk.c: New file.
14626
14627 2007-02-11  Bruno Haible  <bruno@clisp.org>
14628
14629         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
14630         unneeded cast.
14631
14632         * modules/mbscspn-tests: New file.
14633         * tests/test-mbscspn.sh: New file.
14634         * tests/test-mbscspn.c: New file.
14635
14636 2007-02-11  Bruno Haible  <bruno@clisp.org>
14637
14638         * modules/mbscasecmp-tests: New file.
14639         * tests/test-mbscasecmp.sh: New file.
14640         * tests/test-mbscasecmp.c: New file.
14641
14642 2007-02-11  Bruno Haible  <bruno@clisp.org>
14643
14644         Ensure O(n) worst-case complexity of mbscasestr.
14645         * lib/mbscasestr.c: Include stdbool.h.
14646         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14647         functions.
14648         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
14649         the bookkeeping indicates that it's worth it.
14650         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
14651
14652         * modules/mbscasestr-tests: New file.
14653         * tests/test-mbscasestr1.c: New file.
14654         * tests/test-mbscasestr2.sh: New file.
14655         * tests/test-mbscasestr2.c: New file.
14656         * tests/test-mbscasestr3.sh: New file.
14657         * tests/test-mbscasestr3.c: New file.
14658         * tests/test-mbscasestr4.sh: New file.
14659         * tests/test-mbscasestr4.c: New file.
14660         * m4/locale-tr.m4: New file.
14661
14662 2007-02-11  Bruno Haible  <bruno@clisp.org>
14663
14664         Ensure O(n) worst-case complexity of mbsstr.
14665         * lib/mbsstr.c: Include stdbool.h.
14666         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14667         functions.
14668         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
14669         bookkeeping indicates that it's worth it.
14670         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
14671
14672         * modules/mbsstr-tests: New file.
14673         * tests/test-mbsstr1.c: New file.
14674         * tests/test-mbsstr2.sh: New file.
14675         * tests/test-mbsstr2.c: New file.
14676         * tests/test-mbsstr3.sh: New file.
14677         * tests/test-mbsstr3.c: New file.
14678         * m4/locale-fr.m4: New file.
14679
14680 2007-02-11  Bruno Haible  <bruno@clisp.org>
14681
14682         * lib/mbsrchr.c (mbsrchr): Fix bug.
14683
14684         * modules/mbsrchr-tests: New file.
14685         * tests/test-mbsrchr.sh: New file.
14686         * tests/test-mbsrchr.c: New file.
14687
14688 2007-02-11  Bruno Haible  <bruno@clisp.org>
14689
14690         * lib/mbschr.c (mbschr): Fix bug.
14691
14692         * modules/mbschr-tests: New file.
14693         * tests/test-mbschr.sh: New file.
14694         * tests/test-mbschr.c: New file.
14695         * m4/locale-zh.m4: New file.
14696
14697 2007-02-11  Bruno Haible  <bruno@clisp.org>
14698
14699         Support for copying multibyte string iterators.
14700         * lib/mbiter.h: Include <string.h>.
14701         (mbiter_multi_copy): New function.
14702         (mbi_copy): New macro.
14703         * lib/mbuiter.h: Include <string.h>.
14704         (mbuiter_multi_copy): New function.
14705         (mbui_copy): New macro.
14706
14707 2007-02-11  Bruno Haible  <bruno@clisp.org>
14708
14709         New module mbslen.
14710         * modules/mbslen: New file.
14711         * lib/mbslen.c: New file.
14712         * lib/string_.h (mbslen): New declaration.
14713         * m4/mbslen.m4: New file.
14714         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14715         GNULIB_MBSLEN.
14716         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
14717         * MODULES.html.sh (Internationalization functions): Add mbslen.
14718
14719 2007-02-11  Bruno Haible  <bruno@clisp.org>
14720
14721         Ensure O(n) worst-case complexity of strcasestr substitute.
14722         * lib/strcasestr.c: Include stdbool.h.
14723         (knuth_morris_pratt): New function.
14724         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14725         bookkeeping indicates that it's worth it.
14726         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
14727
14728         * modules/strcasestr-tests: New file.
14729         * tests/test-strcasestr.c: New file.
14730
14731 2007-02-11  Bruno Haible  <bruno@clisp.org>
14732
14733         Ensure O(n) worst-case complexity of c_strcasestr.
14734         * lib/c-strcasestr.c: Include stdbool.h, string.h.
14735         (knuth_morris_pratt): New function.
14736         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
14737         the bookkeeping indicates that it's worth it.
14738         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
14739
14740         * modules/c-strcasestr-tests: New file.
14741         * tests/test-c-strcasestr.c: New file.
14742
14743 2007-02-11  Bruno Haible  <bruno@clisp.org>
14744
14745         Ensure O(n) worst-case complexity of c_strstr.
14746         * lib/c-strstr.c: Include stdbool.h, string.h.
14747         (knuth_morris_pratt): New function.
14748         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14749         bookkeeping indicates that it's worth it.
14750         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
14751
14752         * lib/c-strstr.c: Complete rewrite for maintainability.
14753
14754         * modules/c-strstr-tests: New file.
14755         * tests/test-c-strstr.c: New file.
14756
14757 2007-02-11  Bruno Haible  <bruno@clisp.org>
14758
14759         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
14760         5.2.1 and earlier, whereby \055 was treated just like the range
14761         delimiter '-'.
14762         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
14763
14764 2007-02-08  Bruno Haible  <bruno@clisp.org>
14765
14766         * modules/regex (Depends-on): Add stdbool.
14767         Reported by Dalibor Topic <robilad@kaffe.org>.
14768
14769 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14770
14771         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
14772         Prefer returning from main to exiting from it.
14773         Remove unnecessary parens after sizeof.
14774
14775 2007-02-05  Bruno Haible  <bruno@clisp.org>
14776
14777         New module mbssep.
14778         * modules/mbssep: New file.
14779         * lib/mbssep.c: New file.
14780         * lib/string_.h (strsep): Add a conditional link warning.
14781         (mbssep): New declaration.
14782         * m4/mbssep.m4: New file.
14783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14784         GNULIB_MBSSEP.
14785         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
14786         * MODULES.html.sh (Internationalization functions): Add mbssep.
14787
14788 2007-02-05  Bruno Haible  <bruno@clisp.org>
14789
14790         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
14791         Optimize search in case of 1 delimiter.
14792
14793 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
14794
14795         * lib/acl.h: Include sys/types.h before sys/acl.h.
14796
14797 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
14798
14799         Merge upstream fix for glibc bugzilla #3957:
14800
14801         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
14802
14803         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
14804         bit for RE_HAT_LISTS_NOT_NEWLINE.
14805         (build_charclass_op): Remove bogus comment.
14806
14807 2007-02-05  Simon Josefsson  <simon@josefsson.org>
14808
14809         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
14810
14811 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14812
14813         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
14814         * lib/memmem.c [!defined _LIBC]: Include config.h.
14815
14816 2007-02-04  Bruno Haible  <bruno@clisp.org>
14817
14818         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
14819         warning message.
14820
14821 2007-02-04  Bruno Haible  <bruno@clisp.org>
14822
14823         New module mbstok_r.
14824         * modules/mbstok_r: New file.
14825         * lib/mbstok_r.c: New file.
14826         * lib/string_.h (strtok_r): Change argument names to match the
14827         comments. Add a conditional link warning.
14828         (mbstok_r): New declaration.
14829         * m4/mbstok_r.m4: New file.
14830         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14831         GNULIB_MBSTOK_R.
14832         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
14833         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
14834
14835 2007-02-04  Bruno Haible  <bruno@clisp.org>
14836
14837         New module mbsspn.
14838         * modules/mbsspn: New file.
14839         * lib/mbsspn.c: New file.
14840         * lib/string_.h (strspn): Add a conditional link warning.
14841         (mbsspn): New declaration.
14842         * m4/mbsspn.m4: New file.
14843         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14844         GNULIB_MBSSPN.
14845         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
14846         * MODULES.html.sh (Internationalization functions): Add mbsspn.
14847
14848 2007-02-04  Bruno Haible  <bruno@clisp.org>
14849
14850         New module mbspbrk.
14851         * modules/mbspbrk: New file.
14852         * lib/mbspbrk.c: New file.
14853         * lib/string_.h (strpbrk): Add a conditional link warning.
14854         (mbspbrk): New declaration.
14855         * m4/mbspbrk.m4: New file.
14856         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14857         GNULIB_MBSPBRK.
14858         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
14859         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
14860
14861 2007-02-04  Bruno Haible  <bruno@clisp.org>
14862
14863         New module mbscspn.
14864         * modules/mbscspn: New file.
14865         * lib/mbscspn.c: New file.
14866         * lib/string_.h (strcspn): Add a conditional link warning.
14867         (mbscspn): New declaration.
14868         * m4/mbscspn.m4: New file.
14869         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14870         GNULIB_MBSCSPN.
14871         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
14872         * MODULES.html.sh (Internationalization functions): Add mbscspn.
14873
14874 2007-02-04  Bruno Haible  <bruno@clisp.org>
14875
14876         New module mbscasestr, reduced goal of strcasestr.
14877         * modules/mbscasestr: New file.
14878         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
14879         (mbscasestr): Renamed from strcasestr.
14880         * lib/strcasestr.c: Don't include mbuiter.h.
14881         (strcasestr): Remove support for multibyte locales.
14882         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
14883         Change the conditional link warning.
14884         (mbscasestr): New declaration.
14885         * m4/mbscasestr.m4: New file.
14886         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
14887         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
14888         REPLACE_STRCASESTR.
14889         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
14890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14891         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
14892         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
14893         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
14894         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
14895         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
14896         (Depends-on): Remove mbuiter.
14897         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
14898
14899 2007-02-04  Bruno Haible  <bruno@clisp.org>
14900
14901         Simplify handling of strncasecmp.
14902         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
14903         the conditional link warning.
14904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14905         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
14906         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
14907         * modules/strcase (configure.ac): Don't invoke
14908         gl_STRING_MODULE_INDICATOR.
14909         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
14910
14911 2007-02-04  Bruno Haible  <bruno@clisp.org>
14912
14913         New module mbscasecmp, reduced goal of strcasecmp.
14914         * modules/mbscasecmp: New file.
14915         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
14916         (mbscasecmp): Renamed from strcasecmp.
14917         * lib/strcasecmp.c: Don't include mbuiter.h.
14918         (strcasecmp): Remove support for multibyte locales.
14919         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
14920         Change the conditional link warning.
14921         (mbscasecmp): New declaration.
14922         * m4/mbscasecmp.m4: New file.
14923         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
14924         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
14925         REPLACE_STRCASECMP.
14926         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
14927         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14928         GNULIB_MBSCASECMP.
14929         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
14930         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
14931         * modules/strcase (Files): Remove m4/mbrtowc.m4.
14932         (Depends-on): Remove mbuiter.
14933         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
14934
14935 2007-02-04  Bruno Haible  <bruno@clisp.org>
14936
14937         New module mbsstr. Remove module strstr.
14938         * modules/mbsstr: New file.
14939         * modules/strstr: Remove file.
14940         * lib/mbsstr.c: Renamed from lib/strstr.c.
14941         (mbsstr): Renamed from strstr.
14942         * lib/string_.h (strstr): Remove declaration. Change the conditional
14943         link warning.
14944         (mbsstr): New declaration.
14945         * m4/mbsstr.m4: New file.
14946         * m4/strstr.m4: Remove file.
14947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14948         REPLACE_STRSTR.
14949         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
14950         Don't initialize GNULIB_STRSTR.
14951         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
14952         substitute GNULIB_STRSTR and REPLACE_STRSTR.
14953         * MODULES.html.sh (Internationalization functions): Add mbsstr.
14954         (Support for systems lacking ANSI C 89): Remove strstr.
14955
14956 2007-02-04  Bruno Haible  <bruno@clisp.org>
14957
14958         New module mbsrchr.
14959         * modules/mbsrchr: New file.
14960         * lib/mbsrchr.c: New file.
14961         * lib/string_.h (strrchr): Add a conditional link warning.
14962         (mbsrchr): New declaration.
14963         * m4/mbsrchr.m4: New file.
14964         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14965         GNULIB_MBSRCHR.
14966         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
14967         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
14968
14969 2007-02-04  Bruno Haible  <bruno@clisp.org>
14970
14971         New module mbschr.
14972         * modules/mbschr: New file.
14973         * lib/mbschr.c: New file.
14974         * lib/string_.h (strchr): Add a conditional link warning.
14975         (mbschr): New declaration.
14976         * m4/mbschr.m4: New file.
14977         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14978         GNULIB_MBSCHR.
14979         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
14980         * MODULES.html.sh (Internationalization functions): Add mbschr.
14981
14982 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14983
14984         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
14985
14986         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
14987
14988 2007-02-04  Bruno Haible  <bruno@clisp.org>
14989
14990         New module description section 'configure.ac-early'.
14991         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
14992         (func_get_autoconf_early_snippet): New function.
14993         (func_import, func_create_testdir): Use it. Remove special cases for
14994         modules 'extensions' and 'lock'.
14995         * modules/extensions (configure.ac-early): Require
14996         gl_USE_SYSTEM_EXTENSIONS.
14997         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
14998
14999 2007-02-04  Bruno Haible  <bruno@clisp.org>
15000
15001         Make use of gcj-4.3's -fsource and -ftarget option.
15002         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
15003         and if so try the options -fsource and -ftarget.
15004         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
15005         source_version, ftarget_option, target_version arguments.
15006         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
15007         (is_envjavac_oldgcj_14_14_usable): Renamed from
15008         is_envjavac_gcj_14_14_usable.
15009         (is_envjavac_oldgcj_14_13_usable): Renamed from
15010         is_envjavac_gcj_14_13_usable.
15011         (is_gcj_present): Update.
15012         (is_gcj_43, is_gcj43_usable): New functions.
15013         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
15014         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
15015         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
15016         try the options -fsource and -ftarget.
15017
15018 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
15019
15020         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
15021         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
15022         larger value.
15023
15024 2007-02-03  Jim Meyering  <jim@meyering.net>
15025
15026         Give tools a better chance to allocate space for very large buffers.
15027         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
15028
15029         Make pwd and readlink work also when run with an unreadable parent dir
15030         on systems with openat support.
15031         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
15032         provided getcwd function, even when we have openat support.
15033         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
15034
15035 2007-02-02  Bruno Haible  <bruno@clisp.org>
15036
15037         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
15038         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
15039         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
15040         portability problems if one of these functions is only used on specific
15041         platforms.
15042         Reported by Paul Eggert.
15043
15044 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
15045
15046         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
15047         is causing more trouble than it's curing.
15048         * lib/regex_internal.h (__mempcpy): Remove.
15049         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
15050         (and make the code a tad smaller to boot).
15051         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
15052
15053 2007-02-02  Jim Meyering  <jim@meyering.net>
15054
15055         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
15056         section, not in the Makefile.am: one.
15057
15058 2007-02-02  Eric Blake  <ebb9@byu.net>
15059
15060         * lib/strchrnul.c: Always include config.h first.
15061
15062         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
15063         gnulib strstr is not necessary here.
15064
15065 2007-02-02  Simon Josefsson  <simon@josefsson.org>
15066
15067         * m4/socklen.m4: Fix typo.
15068
15069 2007-02-02  Eric Blake  <ebb9@byu.net>
15070
15071         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
15072         * modules/netinet_in (Makefile.am): Likewise.
15073
15074 2007-02-01  Bruno Haible  <bruno@clisp.org>
15075
15076         * lib/string_.h (GL_LINK_WARNING): New macro.
15077         (strcasecmp, strstr, strcasestr): If provided by the system,
15078         conditionally define as a macro that leads to a warning instead of to
15079         an error.
15080         (strncasecmp): Conditionally define as a macro that leads to a warning.
15081
15082 2007-02-01  Karl Berry  <karl@gnu.org>
15083
15084         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
15085
15086 2007-02-01  Bruno Haible  <bruno@clisp.org>
15087
15088         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
15089         renamings.
15090
15091 2007-02-01  Eric Blake  <ebb9@byu.net>
15092
15093         * modules/regex (Depends-on): Revert dependence on mempcpy.
15094         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
15095         module's definition of mempcpy.
15096         Reported by Paul Eggert.
15097
15098 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
15099
15100         * lib/string_.h: If the gnulib module XYZ is not present, undefine
15101         the symbol XYZ before redefining it.  This fixes a problem with
15102         programs that don't use XYZ, when compiled on systems that define
15103         XYZ to something else.
15104
15105 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
15106
15107         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
15108         occurs when "mkdir -m foo" creates a setgid directory that is (1)
15109         writeable to group or other and (2) is intended to have a special
15110         mode bit that is set or cleared.  In such a case, the directory
15111         should be neither group- nor other-writeable until the special
15112         mode bits are right.
15113
15114 2007-01-31  Eric Blake  <ebb9@byu.net>
15115
15116         * modules/mountlist (Depends-on): Add strstr.
15117
15118         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
15119         bug.
15120         * modules/string (Makefile.am): Remove redundant replacement.
15121         * modules/regex (Depends-on): Add mempcpy.
15122
15123 2007-01-31  Bruno Haible  <bruno@clisp.org>
15124
15125         New module description field 'Link'.
15126         * gnulib-tool (func_usage): Document --extract-link-directive.
15127         (sed_extract_prog): Recognize 'Link' directive.
15128         (func_get_link_directive): New function.
15129         (func_import): Show summary of link directives.
15130         Handle --extract-link-directive option.
15131         * modules/acl (Link): New section.
15132         * modules/clock-time (Link): New section.
15133         * modules/euidaccess (Link): New section.
15134         * modules/gettext (Link): New section.
15135         * modules/iconv (Link): New section.
15136         * modules/lock (Link): New section.
15137         * modules/nanosleep (Link): New section.
15138         * modules/readline (Link): New section.
15139
15140 2007-01-27  Bruno Haible  <bruno@clisp.org>
15141
15142         Enforce the use of gnulib modules for unportable <string.h> functions.
15143         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
15144         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
15145         (gl_HEADER_STRING_H_BODY): Require it.
15146         * lib/string_.h: If the gnulib module XYZ is not present, redefine
15147         the symbol XYZ to one that gives a link error.
15148         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
15149         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
15150         * modules/mempcpy (configure.ac): Likewise.
15151         * modules/memrchr (configure.ac): Likewise.
15152         * modules/stpcpy (configure.ac): Likewise.
15153         * modules/stpncpy (configure.ac): Likewise.
15154         * modules/strcase (configure.ac): Likewise.
15155         * modules/strcasestr (configure.ac): Likewise.
15156         * modules/strchrnul (configure.ac): Likewise.
15157         * modules/strdup (configure.ac): Likewise.
15158         * modules/strndup (configure.ac): Likewise.
15159         * modules/strnlen (configure.ac): Likewise.
15160         * modules/strpbrk (configure.ac): Likewise.
15161         * modules/strsep (configure.ac): Likewise.
15162         * modules/strstr (configure.ac): Likewise.
15163         * modules/strtok_r (configure.ac): Likewise.
15164
15165 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
15166
15167         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
15168
15169 2007-01-30  Jim Meyering  <jim@meyering.net>
15170
15171         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
15172
15173 2007-01-29  Bruno Haible  <bruno@clisp.org>
15174
15175         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
15176         * lib/execute.c: Likewise.
15177         * lib/pipe.c: Likewise.
15178         * lib/printf-args.h: Likewise.
15179         * lib/printf-args.c: Likewise.
15180         * lib/printf-parse.c: Likewise.
15181         * lib/vasnprintf.c: Likewise.
15182
15183 2007-01-29  Eric Blake  <ebb9@byu.net>
15184
15185         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
15186         declaration.
15187
15188 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15189
15190         * lib/strptime.h (strptime): Use 'restrict' for args where
15191         POSIX requires this.
15192         * lib/strptime.c (strptime): Likewise.
15193         Change license notice from LGPL to GPL, since gnulib-tool will
15194         change this as needed.
15195         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
15196         defined.
15197         Include "strptime.h" first, to check interface.
15198         Do not #undef _LIBC and _NL_CURRENT.
15199         Do not include <stdlib.h>; no longer needed.
15200         Include "time_r.h" and declare ptime_locale_status
15201         only if _LIBC is not defined.
15202         (__P): Remove unused macro.
15203         (match_string): Bring back glibc version, but use it only if _LIBC
15204         is defined.
15205         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
15206         Remove unnecessary assertion and abort() call.
15207         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
15208         * m4/strptime.m4: Fix serial number comment.
15209         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
15210         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
15211         (Depends-on): Add time_r.
15212
15213 2007-01-29  Bruno Haible  <bruno@clisp.org>
15214
15215         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15216         strptime.
15217         * modules/strptime (Depends-on): Add stdbool.
15218         * lib/strptime.h: Include <time.h> always. Add comments.
15219
15220 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15221
15222         * modules/strptime: New file.
15223         * lib/strptime.h: New file.
15224         * lib/strptime.c: New file.
15225         * m4/strptime.m4: New file.
15226
15227 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15228
15229         * MODULES.html.sh: New module mpsort.
15230         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
15231
15232         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
15233         a circularity problem with HP-UX ia64 reported by Bob Proulx in
15234         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
15235         All uses changed.
15236         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
15237         All uses changed.
15238         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
15239         to _Restrict_.
15240         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
15241         the parameter matches the prototype.
15242
15243 2007-01-28  Jim Meyering  <jim@meyering.net>
15244
15245         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
15246         sys/time.h here, reverting that part of the previous patch:
15247         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
15248
15249 2007-01-28  Bruno Haible  <bruno@clisp.org>
15250
15251         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
15252         value of $(SYS_TIME_H).
15253         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
15254         remove it conditionally, too. [added by Jim Meyering]
15255         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
15256         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
15257         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
15258         GETTIMEOFDAY_REPLACEMENT to 1.
15259
15260 2007-01-28  Bruno Haible  <bruno@clisp.org>
15261
15262         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
15263         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
15264         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
15265         Set UNISTD_H instead of UNISTD_H2.
15266         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
15267
15268 2007-01-28  Bruno Haible  <bruno@clisp.org>
15269
15270         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
15271         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
15272
15273 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15274
15275         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
15276         (func_create_testdir): Ensure C locale for `grep' and `tr'
15277         character ranges.
15278         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
15279         ACLOCAL_AMFLAGS parsing state machine.
15280
15281 2007-01-27  Bruno Haible  <bruno@clisp.org>
15282
15283         * modules/unistr/base: Update.
15284
15285 2007-01-27  Bruno Haible  <bruno@clisp.org>
15286
15287         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
15288         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
15289         * modules/unistr/u32-mbtouc-unsafe: Renamed from
15290         modules/unistr/u32-mbtouc.
15291         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
15292         * lib/unistr.h: Update.
15293         * lib/linebreak.c: Update.
15294         * modules/unistr/u32-mbtouc: Renamed from
15295         modules/unistr/u32-mbtouc-safe.
15296         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
15297         * lib/unistr.h: Update.
15298         * lib/unistr/u32-to-u8.c: Update.
15299         * lib/unistr/u32-to-u16.c: Update.
15300
15301 2007-01-27  Bruno Haible  <bruno@clisp.org>
15302
15303         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
15304         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
15305         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
15306         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
15307         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
15308         * modules/unistr/u16-mbtouc-unsafe: Renamed from
15309         modules/unistr/u16-mbtouc.
15310         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
15311         * lib/unistr.h: Update.
15312         * lib/linebreak.c: Update.
15313         * modules/linebreak: Update.
15314         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
15315         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
15316         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
15317         * modules/unistr/u16-mbtouc: Renamed from
15318         modules/unistr/u16-mbtouc-safe.
15319         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
15320         * lib/unistr.h: Update.
15321         * lib/unistr/u16-to-u8.c: Update.
15322         * modules/unistr/u16-to-u8: Update.
15323         * lib/unistr/u16-to-u32.c: Update.
15324         * modules/unistr/u16-to-u32: Update.
15325
15326 2007-01-27  Bruno Haible  <bruno@clisp.org>
15327
15328         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
15329         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
15330         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
15331         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
15332         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
15333         * modules/unistr/u8-mbtouc-unsafe: Renamed from
15334         modules/unistr/u8-mbtouc.
15335         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
15336         * lib/unistr.h: Update.
15337         * lib/striconveh.c: Update.
15338         * modules/striconveh: Update.
15339         * lib/linebreak.c: Update.
15340         * modules/linebreak: Update.
15341         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
15342         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
15343         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
15344         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
15345         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
15346         * lib/unistr.h: Update.
15347         * lib/striconveh.c: Update.
15348         * modules/striconveh: Update.
15349         * lib/unistr/u8-to-u16.c: Update.
15350         * modules/unistr/u8-to-u16: Update.
15351         * lib/unistr/u8-to-u32.c: Update.
15352         * modules/unistr/u8-to-u32: Update.
15353
15354 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15355
15356         Sync from Libtool.
15357         * lib/argz.c: Do not include strings.h nor memory.h, include
15358         string.h unconditionally.  Patch by Simon Josefsson.
15359
15360 2007-01-27  Bruno Haible  <bruno@clisp.org>
15361
15362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
15363         from gl_HEADER_STRING_H_BODY.
15364         (gl_HEADER_STRING_H_BODY): Require it.
15365         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
15366         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
15367         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
15368         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
15369         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15370         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
15371         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15372         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
15373         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
15374         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
15375         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
15376         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
15377         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
15378         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15379         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15380
15381 2007-01-27  Bruno Haible  <bruno@clisp.org>
15382
15383         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
15384         check_PROGRAMS into noinst_PROGRAMS.
15385         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
15386         check_PROGRAMS in this case.
15387         (func_import): Set for_test to false.
15388         (func_create_testdir): Set for_test to true.
15389
15390 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15391             Bruno Haible  <bruno@clisp.org>
15392
15393         * modules/strcasestr (Files): Remove lib/strcasestr.h.
15394         (Depends-on): Add string.
15395         (Includes): Use <string.h> instead of strcasestr.h.
15396         * modules/string (Makefile.am): Also substitute the value of
15397         REPLACE_STRCASESTR.
15398         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
15399         assume strcasestr is declared in <string.h> not <strings.h>. Also
15400         set REPLACE_STRCASESTR.
15401         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
15402         REPLACE_STRCASESTR.
15403         * lib/strcasestr.h: Remove file.
15404         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
15405         * lib/string_.h (strcasestr): New declaration.
15406
15407 2007-01-27  Bruno Haible  <bruno@clisp.org>
15408
15409         * lib/string_.h: Use 'extern'.
15410
15411 2007-01-27  Jim Meyering  <jim@meyering.net>
15412
15413         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
15414         of set-but-not-used local, "q".
15415
15416         * lib/mempcpy.c: Include <config.h> before <string.h>.
15417         This fixes a compilation error on HP-UX, due to the system's
15418         "restrict"-using mempcpy prototype.
15419
15420 2007-01-26  Bruno Haible  <bruno@clisp.org>
15421
15422         Small optimization.
15423         * lib/javacomp.c: Include c-strstr.h.
15424          (is_envjavac_gcj): Use c_strstr instead of strstr.
15425         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
15426
15427 2007-01-26  Bruno Haible  <bruno@clisp.org>
15428
15429         * MODULES.html.sh (Unicode string functions): Add the new modules.
15430
15431         * modules/uniconv/u32-strconv-to-locale: New file.
15432         * lib/uniconv/u32-strconv-to-locale.c: New file.
15433
15434         * modules/uniconv/u16-strconv-to-locale: New file.
15435         * lib/uniconv/u16-strconv-to-locale.c: New file.
15436
15437         * modules/uniconv/u8-strconv-to-locale: New file.
15438         * lib/uniconv/u8-strconv-to-locale.c: New file.
15439
15440         * modules/uniconv/u32-strconv-from-locale: New file.
15441         * lib/uniconv/u32-strconv-from-locale.c: New file.
15442
15443         * modules/uniconv/u16-strconv-from-locale: New file.
15444         * lib/uniconv/u16-strconv-from-locale.c: New file.
15445
15446         * modules/uniconv/u8-strconv-from-locale: New file.
15447         * lib/uniconv/u8-strconv-from-locale.c: New file.
15448
15449         * modules/uniconv/u32-strconv-to-enc: New file.
15450         * lib/uniconv/u32-strconv-to-enc.c: New file.
15451         * modules/uniconv/u32-strconv-to-enc-tests: New file.
15452         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
15453
15454         * modules/uniconv/u16-strconv-to-enc: New file.
15455         * lib/uniconv/u16-strconv-to-enc.c: New file.
15456         * lib/uniconv/u-strconv-to-enc.h: New file.
15457         * modules/uniconv/u16-strconv-to-enc-tests: New file.
15458         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
15459
15460         * modules/uniconv/u8-strconv-to-enc: New file.
15461         * lib/uniconv/u8-strconv-to-enc.c: New file.
15462         * modules/uniconv/u8-strconv-to-enc-tests: New file.
15463         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
15464
15465         * modules/uniconv/u32-strconv-from-enc: New file.
15466         * lib/uniconv/u32-strconv-from-enc.c: New file.
15467         * modules/uniconv/u32-strconv-from-enc-tests: New file.
15468         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
15469
15470         * modules/uniconv/u16-strconv-from-enc: New file.
15471         * lib/uniconv/u16-strconv-from-enc.c: New file.
15472         * modules/uniconv/u16-strconv-from-enc-tests: New file.
15473         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
15474
15475         * modules/uniconv/u8-strconv-from-enc: New file.
15476         * lib/uniconv/u8-strconv-from-enc.c: New file.
15477         * lib/uniconv/u-strconv-from-enc.h: New file.
15478         * modules/uniconv/u8-strconv-from-enc-tests: New file.
15479         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
15480
15481         * modules/uniconv/u32-conv-from-enc: New file.
15482         * lib/uniconv/u32-conv-from-enc.c: New file.
15483         * modules/uniconv/u32-conv-from-enc-tests: New file.
15484         * tests/uniconv/test-u32-conv-from-enc.c: New file.
15485
15486         * modules/uniconv/u16-conv-from-enc: New file.
15487         * lib/uniconv/u16-conv-from-enc.c: New file.
15488         * lib/uniconv/u-conv-from-enc.h: New file.
15489         * modules/uniconv/u16-conv-from-enc-tests: New file.
15490         * tests/uniconv/test-u16-conv-from-enc.c: New file.
15491
15492         * modules/uniconv/u8-conv-from-enc: New file.
15493         * lib/uniconv/u8-conv-from-enc.c: New file.
15494         * modules/uniconv/u8-conv-from-enc-tests: New file.
15495         * tests/uniconv/test-u8-conv-from-enc.c: New file.
15496
15497         * modules/uniconv/base: New file.
15498         * lib/uniconv.h: New file.
15499
15500 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
15501
15502         * doc/gnulib-tool.texi (Initial import): Update to match current
15503         behavior with strdup module.
15504         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
15505         * lib/memmem.h: Remove; all uses removed.  This is now done
15506         by <string.h>.
15507         * lib/mempcpy.h: Likewise.
15508         * lib/memrchr.h: Likewise.
15509         * lib/stpcpy.h: Likewise.
15510         * lib/stpncpy.h: Likewise.
15511         * lib/strcase.h: Likewise.
15512         * lib/strchrnul.h: Likewise.
15513         * lib/strdup.h: Likewise.
15514         * lib/strndup.h: Likewise.
15515         * lib/strnlen.h: Likewise.
15516         * lib/strpbrk.h: Likewise.
15517         * lib/strsep.h: Likewise.
15518         * lib/strstr.h: Likewise.
15519         * lib/strtok_r.h: Likewise.
15520         * lib/string_.h: New file.
15521         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
15522         Rely on <string.h> instead.
15523         * lib/canon-host.c: Likewise.
15524         * lib/chdir-long.c: Likewise.
15525         * lib/concatpath.c: Likewise.
15526         * lib/exclude.c: Likewise.
15527         * lib/fchdir.c: Likewise.
15528         * lib/getaddrinfo.c: Likewise.
15529         * lib/getcwd.c: Likewise.
15530         * lib/getsubopt.c: Likewise.
15531         * lib/glob.c: Likewise.
15532         * lib/hard-locale.c: Likewise.
15533         * lib/iconvme.c: Likewise.
15534         * lib/javacomp.c: Likewise.
15535         * lib/mempcpy.c: Likewise.
15536         * lib/memrchr.c: Likewise.
15537         * lib/regex_internal.h: Likewise.
15538         * lib/stpncpy.c: Likewise.
15539         * lib/strcasecmp.c: Likewise.
15540         * lib/strchrnul.c: Likewise.
15541         * lib/strdup.c: Likewise.
15542         * lib/striconv.c: Likewise.
15543         * lib/striconveh.c: Likewise.
15544         * lib/striconveha.c: Likewise.
15545         * lib/strncasecmp.c: Likewise.
15546         * lib/strndup.c: Likewise.
15547         * lib/strnlen.c: Likewise.
15548         * lib/strsep.c: Likewise.
15549         * lib/strstr.c: Likewise.
15550         * lib/strtok_r.c: Likewise.
15551         * lib/userspec.c: Likewise.
15552         * lib/w32spawn.h: Likewise.
15553         * lib/xstrndup.c: Likewise.
15554         * lib/mountlist.c (strstr): Remove decl.
15555         * m4/string_h.m4: New file.
15556         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
15557         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
15558         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
15559         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
15560         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
15561         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
15562         Set REPLACE_STRCASECMP if necessary.
15563         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
15564         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
15565         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
15566         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
15567         HAVE_DECL_STRDUP if necessary.
15568         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
15569         since gl_FUNC_STRNDUP does that now.
15570         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
15571         Check for decl here...
15572         (gl_PREREQ_STRNLEN): ... not here.
15573         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
15574         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
15575         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
15576         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
15577         necessary.
15578         * modules/string: New file.
15579         * modules/memmem (Files): Remove special-purpose include file.
15580         (Depends-on): Add string.
15581         (Include): Include <string.h>, not the removed file.
15582         * modules/mempcpy: Likewise.
15583         * modules/memrchr: Likewise.
15584         * modules/stpcpy: Likewise.
15585         * modules/stpncpy: Likewise.
15586         * modules/strcase: Likewise.
15587         * modules/strchrnul: Likewise.
15588         * modules/strdup: Likewise.
15589         * modules/strndup: Likewise.
15590         * modules/strnlen: Likewise.
15591         * modules/strpbrk: Likewise.
15592         * modules/strsep: Likewise.
15593         * modules/strstr: Likewise.
15594         * modules/strtok_r: Likewise.
15595         * tests/test-dirname.c: Don't include "strdup.h", since
15596         <string.h> now suffices.
15597         * tests/test-memmem.c: Don't include "memmem.h", since
15598         <string.h> now suffices.
15599
15600 2007-01-25  Bruno Haible  <bruno@clisp.org>
15601
15602         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
15603         *resultp is 0.
15604
15605         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
15606         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
15607         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
15608         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
15609
15610         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
15611         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
15612         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
15613         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
15614         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
15615         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
15616
15617 2007-01-24  Bruno Haible  <bruno@clisp.org>
15618
15619         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
15620         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
15621         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
15622         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
15623         gl_FUNC_FTS_CORE.
15624         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
15625         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
15626         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15627         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
15628         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
15629         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
15630         gl_FUNC_FCHOWNAT.
15631         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
15632         gl_FUNC_STRFTIME.
15633         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
15634         Reported by Ralf Wildenhues.
15635
15636 2007-01-24  Bruno Haible  <bruno@clisp.org>
15637
15638         Drop AC_REQUIRE calls that are redundant with the module dependencies.
15639         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
15640         gl_GETADDRINFO.
15641         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
15642         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
15643         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
15644
15645 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
15646
15647         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
15648         Don't use 'exit'; just return from 'main'.
15649         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
15650
15651         * lib/fnmatch_.h: Readjust white space and comments to match
15652         glibc, to avoid spurious diffs.
15653
15654 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15655
15656         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
15657         2004-12-01 change by Jakub Jelinek, since this code won't compile
15658         if !LIBC.  Problem reported by Bob Proulx.
15659
15660 2007-01-23  Bruno Haible  <bruno@clisp.org>
15661
15662         * lib/striconveh.c: Include c-strcaseeq.h.
15663         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
15664         * modules/striconveh (Depends-on): Add c-strcaseeq.
15665
15666 2007-01-23  Bruno Haible  <bruno@clisp.org>
15667
15668         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
15669
15670         * modules/c-strcaseeq: New file.
15671         * lib/c-strcaseeq.h: New file.
15672
15673         * modules/streq: New file.
15674         * lib/streq.h: New file.
15675
15676 2007-01-23  Bruno Haible  <bruno@clisp.org>
15677
15678         * modules/striconveha-tests: New file.
15679         * tests/test-striconveha.c: New file.
15680
15681         * lib/striconveha.h: Include <stdbool.h>.
15682         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
15683         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
15684         (mem_iconveha_notranslit): Renamed from mem_iconveha.
15685         (mem_iconveha): New function.
15686         (str_iconveha_notranslit): Renamed from str_iconveha.
15687         (str_iconveha): New function.
15688         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
15689         c-strcase.
15690
15691 2007-01-23  Bruno Haible  <bruno@clisp.org>
15692
15693         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
15694         encodings without forgiving before trying any encoding with handler.
15695         (str_iconveha): Try all encodings without forgiving before trying any
15696         encoding with handler.
15697
15698 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15699
15700         Import the following changes from libc.
15701
15702         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
15703
15704         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
15705
15706         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
15707
15708         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
15709         normal_bracket label.
15710
15711         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
15712
15713         [BZ #361]
15714         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
15715         to normal_bracket after fetching the next character.
15716
15717 2007-01-22  Bruno Haible  <bruno@clisp.org>
15718
15719         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
15720         argument.
15721         * lib/striconveh.c (iconv_carefully_1): New function.
15722         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
15723         argument.
15724         (str_cd_iconveh): Update.
15725         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
15726         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
15727         * tests/test-striconveh.c (MAGIC): New macro.
15728         (new_offsets): New function.
15729         (main): Test call with and without offsets.
15730
15731 2007-01-22  Bruno Haible  <bruno@clisp.org>
15732
15733         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
15734         * modules/sys_select (Makefile.am): Likewise.
15735         * modules/sys_socket (Makefile.am): Likewise.
15736         * modules/sys_time (Makefile.am): Likewise.
15737
15738 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15739
15740         * modules/gettimeofday (License): Change from GPL to LGPL, since
15741         gettimeofday is a library function.
15742
15743 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15744
15745         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
15746
15747 2007-01-21  Bruno Haible  <bruno@clisp.org>
15748
15749         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
15750
15751 2007-01-21  Bruno Haible  <bruno@clisp.org>
15752
15753         * modules/striconveha: New file.
15754         * lib/striconveha.h: New file.
15755         * lib/striconveha.c: New file.
15756         * MODULES.html.sh (Internationalization functions): Add striconveha.
15757         * lib/striconv.c (str_iconv): Optimize the case of an empty input
15758         string.
15759         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
15760
15761 2007-01-21  Bruno Haible  <bruno@clisp.org>
15762
15763         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
15764         * lib/striconveh.c (str_iconveh): Likewise.
15765
15766 2007-01-21  Bruno Haible  <bruno@clisp.org>
15767
15768         * lib/striconveh.h (mem_iconveh): New declaration.
15769         * lib/striconveh.c (mem_iconveh): New function.
15770         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
15771
15772 2007-01-21  Bruno Haible  <bruno@clisp.org>
15773
15774         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
15775
15776         * lib/striconveh.h (mem_cd_iconveh): Change specification.
15777         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
15778         original result buffer.
15779         (str_cd_iconveh): Update.
15780         * tests/test-striconveh.c (main): Update.
15781
15782         * lib/striconv.h (mem_cd_iconv): Change specification.
15783         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
15784         result buffer.
15785         (str_cd_iconv): Update.
15786         * tests/test-striconv.c (main): Update.
15787
15788 2007-01-21  Bruno Haible  <bruno@clisp.org>
15789
15790         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
15791
15792 2007-01-20  Jim Meyering  <jim@meyering.net>
15793
15794         * lib/userspec.c (parse_with_separator): If a user or group string
15795         starts with "+", skip the corresponding name-to-ID look-up, since
15796         such a look-up must fail: user and group names may not include "+".
15797
15798 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15799
15800         * lib/poll.c: Include sys/time.h and time.h unconditionally,
15801         since we now assume the sys_time module.
15802         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
15803         check for sys/time.h; no longer needed.
15804         * modules/poll (Depends-on): Depend on sys_time.
15805
15806 2007-01-18  Bruno Haible  <bruno@clisp.org>
15807
15808         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
15809         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15810
15811         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
15812         gettimeofday.
15813
15814         * tests/test-gettimeofday.c: Include <time.h>.
15815         (dummy): Remove variable.
15816
15817         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
15818         gl_HEADER_SYS_TIME_H.
15819         (gl_HEADER_SYS_TIME_H): New macro.
15820
15821         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
15822         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15823         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15824         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
15825         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15826         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
15827         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
15828         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15829         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
15830         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
15831         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15832
15833         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
15834         last change; it caused a compilation error when cross-compiling to
15835         Cygwin.
15836
15837 2007-01-18  Jim Meyering  <jim@meyering.net>
15838
15839         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
15840         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
15841         than the race-prone "test -d sys || mkdir sys".
15842         (configure.ac): Use AC_PROG_MKDIR_P.
15843         * modules/sys_select: Likewise.
15844         * modules/sys_socket: Likewise.
15845         * modules/sys_time: Likewise.
15846
15847 2007-01-18  Eric Blake  <ebb9@byu.net>
15848
15849         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
15850         replace gettimeofday.
15851         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
15852         name, to avoid infinite recursion.
15853
15854 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
15855
15856         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
15857         module sys_time.
15858         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
15859         assume timespec.h defines struct timeval.
15860         * lib/settime.c: Likewise.
15861         * lib/utimens.c: Likewise.
15862         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
15863         since we now assume the gettimeofday module.
15864         * lib/tempname.c (__gen_tempname): Likewise.
15865         * lib/gettimeofday.h: Remove.
15866         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
15867         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
15868         Include <time.h>, for 'time()'.
15869         (localtime_buffer_addr): Also use this workaround if
15870         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
15871         to simplify the uses.  All uses changed.
15872         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
15873         that #undef is inside {}, and 'const' follows type name consistently.
15874         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
15875         (gettimeofday): Do not use the maximum possible value for
15876         tv->tv_usec, since that might break usages other than ls.c.
15877         Instead, we'll leave ls.c alone.  This undoes today's patch
15878         by Bruno.  Add a compile-time warning for 1s-clock resolution;
15879         we've never observed the problem but might as well keep the
15880         canary.
15881         * lib/nanosleep.c: Include timespec.h first, for interface check.
15882         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
15883         now assume the sys_time module.
15884         * lib/tempname.c: Likewise.
15885         * lib/timespec.h: Likewise.
15886         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
15887         needed.
15888         * lib/strftime.c: Likewise.
15889         * lib/timespec.h: Likewise.
15890         * lib/posixtm.c: Include posixtm.h first, for interface check.
15891         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
15892         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
15893         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
15894         * lib/sys_time_.h: New file.
15895         * lib/timespec.h (struct timespec): Use long int, not long.
15896         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
15897         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
15898         Remove obsolescent call to AC_HEADER_TIME.
15899         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15900         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15901         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15902         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
15903         Likewise.
15904         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
15905         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
15906         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
15907         into the sys_time module.  Check for gettimeofday just once.
15908         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
15909         for gettimeofday signature to just check the signature.  Merely
15910         compile it, since linking doesn't test signature.  Improve test for
15911         whether gettimeofday.o is actually needed.
15912         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
15913         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
15914         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
15915         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15916         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
15917         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
15918         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
15919         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
15920         than worrying about sys/time.h.
15921         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15922         Don't bother worrying about TIME_WITH_SYS_TIME.
15923         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
15924         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
15925         * m4/sys_time_h.m4: New file.
15926         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
15927         Don't include sys/time.h.  Return from main rather than exiting.
15928         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
15929         all uses changed.
15930         * modules/gethrxtime (Depends-on): Add sys_time.
15931         * modules/gettime (Depends-on): Likewise.
15932         * modules/gettimeofday (Depends-on): Likewise.
15933         * modules/nanosleep (Depends-on): Likewise.
15934         * modules/settime (Depends-on): Likewise.
15935         * modules/tempname (Depends-on): Likewise.
15936         * modules/utimens (Depends-on): Likewise.
15937         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
15938         (Include:) Change back to <sys/time.h>.
15939         (Maintainer:) Add self.
15940         * modules/sys_time: New file.
15941         * modules/tempname (Depends-on): Add gettimeofday.
15942         * tests/test-gettimeofday.c: Include <sys/time.h>
15943         rather than gettimeofday.h.
15944
15945 2007-01-17  Bruno Haible  <bruno@clisp.org>
15946
15947         * gnulib-tool (func_get_license): Revert last patch. Instead, let
15948         the license default to GPL.
15949         (func_create_testdir): Don't complain if a module is LGPL and its
15950         tests module depends on GPLed modules.
15951
15952 2007-01-17  Bruno Haible  <bruno@clisp.org>
15953
15954         * lib/gettimeofday.c (gettimeofday): Add code for the case
15955         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
15956         maximum possible value for tv->tv_usec, rather than the minimum one.
15957
15958 2005-10-08  Martin Lambers  <marlam@marlam.de>
15959 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15960 2007-01-16  Bruno Haible  <bruno@clisp.org>
15961
15962         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
15963         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
15964         gl_FUNC_GETTIMEOFDAY.
15965         (Include): Add gettimeofday.h.
15966         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
15967         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
15968         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
15969         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
15970         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
15971         * lib/gettimeofday.h: New file.
15972         * lib/gettimeofday.c: Include <sys/timeb.h>.
15973         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
15974         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15975         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
15976         fall back on time().
15977
15978         * tests/test-gettimeofday.c: New file.
15979         * modules/gettimeofday-tests: New file.
15980
15981 2007-01-16  Eric Blake  <ebb9@byu.net>
15982
15983         * modules/fnmatch (Depends-on): Depend on wchar.
15984         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
15985         * m4/fnmatch.m4: Likewise.
15986         * modules/mbchar (Makefile.am): Assume <wchar.h>.
15987         * m4/mbchar.m4: Likewise.
15988         * modules/mbswidth (Depends-on): Depend on wchar.
15989         * lib/mbswidth.c: Assume <wchar.h>.
15990         * m4/mbswidth.m4: Likewise.
15991         * modules/quotearg (Depends-on): Depend on wchar.
15992         * lib/quotearg.c: Assume <wchar.h>.
15993         * m4/quotearg.m4: Likewise.
15994         * modules/regex (Depends-on): Depend on wchar.
15995         * lib/regex_internal.h: Assume <wchar.h>.
15996         * m4/regex.m4: Likewise.
15997         * modules/stdint (Depends-on): Depend on wchar.
15998         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
15999         * m4/stdint.m4: Likewise.
16000         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
16001         * modules/strftime (Depends-on): Depend on wchar.
16002         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
16003         * modules/strtol (Depends-on): Depend on wchar.
16004         * lib/strtol.c: Assume <wchar.h>.
16005         * modules/wcwidth (Depends-on): Depend on wchar.
16006         * lib/wcwidth.h: Assume <wchar.h>.
16007         * m4/wcwidth.m4: Likewise.
16008
16009 2007-01-16  Bruno Haible  <bruno@clisp.org>
16010
16011         * modules/csharpexec-script: New, created from...
16012         * modules/csharpexec: ... this.
16013
16014 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
16015
16016         * modules/javaexec-script: New, created from...
16017         * modules/javaexec: ... this.
16018
16019 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16020
16021         * modules/poll (Dependencies): Add sys_select.
16022
16023 2007-01-15  Jim Meyering  <jim@meyering.net>
16024
16025         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
16026         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
16027         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
16028         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
16029
16030 2007-01-15  Bruno Haible  <bruno@clisp.org>
16031
16032         * modules/striconveh: New file.
16033         * lib/striconveh.h: New file.
16034         * lib/striconveh.c: New file.
16035         * MODULES.html.sh (Internationalization functions): Add striconveh.
16036
16037         * modules/striconveh-tests: New file.
16038         * tests/test-striconveh.c: New file.
16039
16040 2007-01-15  Bruno Haible  <bruno@clisp.org>
16041
16042         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
16043         not from GNU libiconv or GNU libc.
16044
16045 2007-01-15  Bruno Haible  <bruno@clisp.org>
16046
16047         * doc/gnulib-intro.texi (Copyright): Explain the different license
16048         terms for module descriptions, autoconf macros, tests, documentation.
16049
16050 2007-01-14  Bruno Haible  <bruno@clisp.org>
16051
16052         * modules/striconv-tests: New file.
16053         * tests/test-striconv.c: New file.
16054
16055 2007-01-14  Bruno Haible  <bruno@clisp.org>
16056
16057         * modules/iconv-tests: New file.
16058         * tests/test-iconv.c: New file.
16059
16060 2007-01-14  Bruno Haible  <bruno@clisp.org>
16061
16062         * gnulib-tool (func_get_license): For test modules, use the license of
16063         the main module.
16064
16065 2007-01-14  Bruno Haible  <bruno@clisp.org>
16066
16067         * modules/iconv (Include): Clarify that <iconv.h> can only be included
16068         if iconv is found to exist.
16069
16070 2007-01-14  Bruno Haible  <bruno@clisp.org>
16071
16072         * modules/c-ctype-tests: New file.
16073         * tests/test-c-ctype.c: New file.
16074
16075 2007-01-14  Bruno Haible  <bruno@clisp.org>
16076
16077         * modules/binary-io-tests: New file.
16078         * tests/test-binary-io.sh: New file.
16079         * tests/test-binary-io.c: New file.
16080
16081 2007-01-14  Bruno Haible  <bruno@clisp.org>
16082
16083         * modules/array-oset-tests: New file.
16084         * tests/test-array_oset.c: New file.
16085
16086 2007-01-14  Bruno Haible  <bruno@clisp.org>
16087
16088         * modules/array-list-tests: New file.
16089         * tests/test-array_list.c: New file.
16090
16091 2007-01-14  Bruno Haible  <bruno@clisp.org>
16092
16093         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
16094         and make.
16095         Reported by Simon Josefsson in
16096         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
16097
16098 2007-01-14  Bruno Haible  <bruno@clisp.org>
16099
16100         * modules/allocsa-tests: New file.
16101         * tests/test-allocsa.c: New file.
16102
16103 2007-01-14  Bruno Haible  <bruno@clisp.org>
16104
16105         * modules/fchdir (Depends-on): Add absolute-header.
16106         * modules/unistd (Depends-on): Likewise.
16107
16108 2006-12-30  Bruno Haible  <bruno@clisp.org>
16109
16110         * modules/fchdir: New file.
16111         * modules/unistd (Files): Add lib/unistd_.h.
16112         (Makefile.am): Generate unistd.h from unistd_.h.
16113         * lib/fchdir.c: New file.
16114         * lib/dirent_.h: New file.
16115         * lib/unistd_.h: New file.
16116         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
16117         * m4/fchdir.m4: New file.
16118         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
16119         (gl_HEADER_UNISTD): Invoke it.
16120         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
16121         function.
16122         * lib/backupfile.c (opendir, closedir): Undefine.
16123         * lib/chown.c (open, close): Undefine.
16124         * lib/clean-temp.c (open, close): Undefine.
16125         * lib/copy-file.c (open, close): Undefine.
16126         * lib/execute.c (open, close): Undefine.
16127         * lib/fsusage.c (open, close): Undefine.
16128         * lib/gc-gnulib.c (open, close): Undefine.
16129         * lib/getcwd.c (opendir, closedir): Undefine.
16130         * lib/glob.c (opendir, closedir): Undefine.
16131         * lib/javacomp.c (open, close): Undefine.
16132         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
16133         * lib/openat-proc.c (open, close): Undefine.
16134         * lib/pagealign_alloc.c (open, close): Undefine.
16135         * lib/pipe.c (open, close): Undefine.
16136         * lib/progreloc.c (open, close): Undefine.
16137         * lib/savedir.c (opendir, closedir): Undefine.
16138         * lib/utime.c (open, close): Undefine.
16139         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
16140
16141 2007-01-10  Bruno Haible  <bruno@clisp.org>
16142
16143         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
16144
16145 2007-01-12  Eric Blake  <ebb9@byu.net>
16146
16147         Provide a robust <wchar.h>.  Further simplifications are now
16148         possible in other modules, but not included here.
16149         * modules/wchar: New module.
16150         * m4/wchar.m4: New file.
16151         * lib/wchar_.h: Likewise.
16152         * modules/mbchar (Depends-on): Depend on wchar, as the first use
16153         of the new module.
16154         * MODULES.html.sh (Extended multibyte and wide character utilities):
16155         New section.
16156
16157 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
16158
16159         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
16160         to a reasonable default for memory allocation.
16161         (xreadlink): Don't allocate a huge buffer, to work around a buggy
16162         file system that reports garbage st_size values for symlinks.
16163         Problem reported by Liyang Hu.
16164
16165 2007-01-11  Simon Josefsson  <simon@josefsson.org>
16166
16167         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
16168         Emacs .#* auto-save files).
16169
16170 2007-01-11  Bruno Haible  <bruno@clisp.org>
16171
16172         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
16173         directory.
16174
16175 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16176
16177         Use @...@ consistently in lib/wctype_.h.
16178         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
16179         on it being set to 1 or 0.
16180         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
16181         go back to AC_SUBSTing it.
16182         * modules/wctype (Makefile.am): Undo previous change.
16183
16184 2007-01-10  Eric Blake  <ebb9@byu.net>
16185
16186         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
16187         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
16188         * modules/wctype (Makefile.am): Likewise.
16189         Reported by Chris McGuire.
16190
16191 2007-01-10  Jim Meyering  <jim@meyering.net>
16192
16193         fts.c: a small readability/maintainability improvement
16194         * lib/fts.c (fts_read): Make this code slightly more readable and
16195         maintainable by hoisting the "sp->fts_cur = p" assignments to
16196         immediately follow the statements that set P.  Derived from
16197         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
16198
16199 2007-01-10  Eric Blake  <ebb9@byu.net>
16200
16201         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
16202         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
16203         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16204         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16205         Reported by Chris McGuire.
16206
16207 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16208
16209         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
16210         in sed script.
16211
16212 2007-01-09  Bruno Haible  <bruno@clisp.org>
16213
16214         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
16215         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
16216         variables.
16217         (func_module): Use them.
16218
16219 2007-01-09  Bruno Haible  <bruno@clisp.org>
16220
16221         * modules/unistr/base: New file.
16222         * lib/unistr.h: New file.
16223
16224         * modules/unistr/u8-to-u16: New file.
16225         * lib/unistr/u8-to-u16.c: New file.
16226
16227         * modules/unistr/u8-to-u32: New file.
16228         * lib/unistr/u8-to-u32.c: New file.
16229
16230         * modules/unistr/u16-to-u8: New file.
16231         * lib/unistr/u16-to-u8.c: New file.
16232
16233         * modules/unistr/u16-to-u32: New file.
16234         * lib/unistr/u16-to-u32.c: New file.
16235
16236         * modules/unistr/u32-to-u8: New file.
16237         * lib/unistr/u32-to-u8.c: New file.
16238
16239         * modules/unistr/u32-to-u16: New file.
16240         * lib/unistr/u32-to-u16.c: New file.
16241
16242         * modules/unistr/u8-check: New file.
16243         * modules/unistr/u16-check: New file.
16244         * modules/unistr/u32-check: New file.
16245         * lib/unistr/u8-check.c: New file.
16246         * lib/unistr/u16-check.c: New file.
16247         * lib/unistr/u32-check.c: New file.
16248
16249         * modules/unistr/u8-chr: New file.
16250         * modules/unistr/u16-chr: New file.
16251         * modules/unistr/u32-chr: New file.
16252         * lib/unistr/u8-chr.c: New file.
16253         * lib/unistr/u16-chr.c: New file.
16254         * lib/unistr/u32-chr.c: New file.
16255
16256         * modules/unistr/u8-cmp: New file.
16257         * modules/unistr/u16-cmp: New file.
16258         * modules/unistr/u32-cmp: New file.
16259         * lib/unistr/u8-cmp.c: New file.
16260         * lib/unistr/u16-cmp.c: New file.
16261         * lib/unistr/u32-cmp.c: New file.
16262
16263         * modules/unistr/u8-cpy: New file.
16264         * modules/unistr/u16-cpy: New file.
16265         * modules/unistr/u32-cpy: New file.
16266         * lib/unistr/u8-cpy.c: New file.
16267         * lib/unistr/u16-cpy.c: New file.
16268         * lib/unistr/u32-cpy.c: New file.
16269         * lib/unistr/u-cpy.h: New file.
16270
16271         * modules/unistr/u8-cpy-alloc: New file.
16272         * modules/unistr/u16-cpy-alloc: New file.
16273         * modules/unistr/u32-cpy-alloc: New file.
16274         * lib/unistr/u8-cpy-alloc.c: New file.
16275         * lib/unistr/u16-cpy-alloc.c: New file.
16276         * lib/unistr/u32-cpy-alloc.c: New file.
16277         * lib/unistr/u-cpy-alloc.h: New file.
16278
16279         * modules/unistr/u8-endswith: New file.
16280         * modules/unistr/u16-endswith: New file.
16281         * modules/unistr/u32-endswith: New file.
16282         * lib/unistr/u8-endswith.c: New file.
16283         * lib/unistr/u16-endswith.c: New file.
16284         * lib/unistr/u32-endswith.c: New file.
16285         * lib/unistr/u-endswith.h: New file.
16286
16287         * modules/unistr/u8-mblen: New file.
16288         * modules/unistr/u16-mblen: New file.
16289         * modules/unistr/u32-mblen: New file.
16290         * lib/unistr/u8-mblen.c: New file.
16291         * lib/unistr/u16-mblen.c: New file.
16292         * lib/unistr/u32-mblen.c: New file.
16293
16294         * modules/unistr/u8-mbtouc: New file.
16295         * modules/unistr/u16-mbtouc: New file.
16296         * modules/unistr/u32-mbtouc: New file.
16297         * lib/unistr/u8-mbtouc.c: New file.
16298         * lib/unistr/u16-mbtouc.c: New file.
16299         * lib/unistr/u32-mbtouc.c: New file.
16300
16301         * modules/unistr/u8-mbtouc-safe: New file.
16302         * modules/unistr/u16-mbtouc-safe: New file.
16303         * modules/unistr/u32-mbtouc-safe: New file.
16304         * lib/unistr/u8-mbtouc-safe.c: New file.
16305         * lib/unistr/u16-mbtouc-safe.c: New file.
16306         * lib/unistr/u32-mbtouc-safe.c: New file.
16307
16308         * modules/unistr/u8-move: New file.
16309         * modules/unistr/u16-move: New file.
16310         * modules/unistr/u32-move: New file.
16311         * lib/unistr/u8-move.c: New file.
16312         * lib/unistr/u16-move.c: New file.
16313         * lib/unistr/u32-move.c: New file.
16314         * lib/unistr/u-move.h: New file.
16315
16316         * modules/unistr/u8-next: New file.
16317         * modules/unistr/u16-next: New file.
16318         * modules/unistr/u32-next: New file.
16319         * lib/unistr/u8-next.c: New file.
16320         * lib/unistr/u16-next.c: New file.
16321         * lib/unistr/u32-next.c: New file.
16322
16323         * modules/unistr/u8-prev: New file.
16324         * modules/unistr/u16-prev: New file.
16325         * modules/unistr/u32-prev: New file.
16326         * lib/unistr/u8-prev.c: New file.
16327         * lib/unistr/u16-prev.c: New file.
16328         * lib/unistr/u32-prev.c: New file.
16329
16330         * modules/unistr/u8-set: New file.
16331         * modules/unistr/u16-set: New file.
16332         * modules/unistr/u32-set: New file.
16333         * lib/unistr/u8-set.c: New file.
16334         * lib/unistr/u16-set.c: New file.
16335         * lib/unistr/u32-set.c: New file.
16336         * lib/unistr/u-set.h: New file.
16337
16338         * modules/unistr/u8-startswith: New file.
16339         * modules/unistr/u16-startswith: New file.
16340         * modules/unistr/u32-startswith: New file.
16341         * lib/unistr/u8-startswith.c: New file.
16342         * lib/unistr/u16-startswith.c: New file.
16343         * lib/unistr/u32-startswith.c: New file.
16344         * lib/unistr/u-startswith.h: New file.
16345
16346         * modules/unistr/u8-stpcpy: New file.
16347         * modules/unistr/u16-stpcpy: New file.
16348         * modules/unistr/u32-stpcpy: New file.
16349         * lib/unistr/u8-stpcpy.c: New file.
16350         * lib/unistr/u16-stpcpy.c: New file.
16351         * lib/unistr/u32-stpcpy.c: New file.
16352         * lib/unistr/u-stpcpy.h: New file.
16353
16354         * modules/unistr/u8-stpncpy: New file.
16355         * modules/unistr/u16-stpncpy: New file.
16356         * modules/unistr/u32-stpncpy: New file.
16357         * lib/unistr/u8-stpncpy.c: New file.
16358         * lib/unistr/u16-stpncpy.c: New file.
16359         * lib/unistr/u32-stpncpy.c: New file.
16360         * lib/unistr/u-stpncpy.h: New file.
16361
16362         * modules/unistr/u8-strcat: New file.
16363         * modules/unistr/u16-strcat: New file.
16364         * modules/unistr/u32-strcat: New file.
16365         * lib/unistr/u8-strcat.c: New file.
16366         * lib/unistr/u16-strcat.c: New file.
16367         * lib/unistr/u32-strcat.c: New file.
16368         * lib/unistr/u-strcat.h: New file.
16369
16370         * modules/unistr/u8-strchr: New file.
16371         * modules/unistr/u16-strchr: New file.
16372         * modules/unistr/u32-strchr: New file.
16373         * lib/unistr/u8-strchr.c: New file.
16374         * lib/unistr/u16-strchr.c: New file.
16375         * lib/unistr/u32-strchr.c: New file.
16376
16377         * modules/unistr/u8-strcmp: New file.
16378         * modules/unistr/u16-strcmp: New file.
16379         * modules/unistr/u32-strcmp: New file.
16380         * lib/unistr/u8-strcmp.c: New file.
16381         * lib/unistr/u16-strcmp.c: New file.
16382         * lib/unistr/u32-strcmp.c: New file.
16383
16384         * modules/unistr/u8-strcpy: New file.
16385         * modules/unistr/u16-strcpy: New file.
16386         * modules/unistr/u32-strcpy: New file.
16387         * lib/unistr/u8-strcpy.c: New file.
16388         * lib/unistr/u16-strcpy.c: New file.
16389         * lib/unistr/u32-strcpy.c: New file.
16390         * lib/unistr/u-strcpy.h: New file.
16391
16392         * modules/unistr/u8-strcspn: New file.
16393         * modules/unistr/u16-strcspn: New file.
16394         * modules/unistr/u32-strcspn: New file.
16395         * lib/unistr/u8-strcspn.c: New file.
16396         * lib/unistr/u16-strcspn.c: New file.
16397         * lib/unistr/u32-strcspn.c: New file.
16398         * lib/unistr/u-strcspn.h: New file.
16399
16400         * modules/unistr/u8-strdup: New file.
16401         * modules/unistr/u16-strdup: New file.
16402         * modules/unistr/u32-strdup: New file.
16403         * lib/unistr/u8-strdup.c: New file.
16404         * lib/unistr/u16-strdup.c: New file.
16405         * lib/unistr/u32-strdup.c: New file.
16406         * lib/unistr/u-strdup.h: New file.
16407
16408         * modules/unistr/u8-strlen: New file.
16409         * modules/unistr/u16-strlen: New file.
16410         * modules/unistr/u32-strlen: New file.
16411         * lib/unistr/u8-strlen.c: New file.
16412         * lib/unistr/u16-strlen.c: New file.
16413         * lib/unistr/u32-strlen.c: New file.
16414         * lib/unistr/u-strlen.h: New file.
16415
16416         * modules/unistr/u8-strmblen: New file.
16417         * modules/unistr/u16-strmblen: New file.
16418         * modules/unistr/u32-strmblen: New file.
16419         * lib/unistr/u8-strmblen.c: New file.
16420         * lib/unistr/u16-strmblen.c: New file.
16421         * lib/unistr/u32-strmblen.c: New file.
16422
16423         * modules/unistr/u8-strmbtouc: New file.
16424         * modules/unistr/u16-strmbtouc: New file.
16425         * modules/unistr/u32-strmbtouc: New file.
16426         * lib/unistr/u8-strmbtouc.c: New file.
16427         * lib/unistr/u16-strmbtouc.c: New file.
16428         * lib/unistr/u32-strmbtouc.c: New file.
16429
16430         * modules/unistr/u8-strncat: New file.
16431         * modules/unistr/u16-strncat: New file.
16432         * modules/unistr/u32-strncat: New file.
16433         * lib/unistr/u8-strncat.c: New file.
16434         * lib/unistr/u16-strncat.c: New file.
16435         * lib/unistr/u32-strncat.c: New file.
16436         * lib/unistr/u-strncat.h: New file.
16437
16438         * modules/unistr/u8-strncmp: New file.
16439         * modules/unistr/u16-strncmp: New file.
16440         * modules/unistr/u32-strncmp: New file.
16441         * lib/unistr/u8-strncmp.c: New file.
16442         * lib/unistr/u16-strncmp.c: New file.
16443         * lib/unistr/u32-strncmp.c: New file.
16444
16445         * modules/unistr/u8-strncpy: New file.
16446         * modules/unistr/u16-strncpy: New file.
16447         * modules/unistr/u32-strncpy: New file.
16448         * lib/unistr/u8-strncpy.c: New file.
16449         * lib/unistr/u16-strncpy.c: New file.
16450         * lib/unistr/u32-strncpy.c: New file.
16451         * lib/unistr/u-strncpy.h: New file.
16452
16453         * modules/unistr/u8-strnlen: New file.
16454         * modules/unistr/u16-strnlen: New file.
16455         * modules/unistr/u32-strnlen: New file.
16456         * lib/unistr/u8-strnlen.c: New file.
16457         * lib/unistr/u16-strnlen.c: New file.
16458         * lib/unistr/u32-strnlen.c: New file.
16459         * lib/unistr/u-strnlen.h: New file.
16460
16461         * modules/unistr/u8-strpbrk: New file.
16462         * modules/unistr/u16-strpbrk: New file.
16463         * modules/unistr/u32-strpbrk: New file.
16464         * lib/unistr/u8-strpbrk.c: New file.
16465         * lib/unistr/u16-strpbrk.c: New file.
16466         * lib/unistr/u32-strpbrk.c: New file.
16467         * lib/unistr/u-strpbrk.h: New file.
16468
16469         * modules/unistr/u8-strrchr: New file.
16470         * modules/unistr/u16-strrchr: New file.
16471         * modules/unistr/u32-strrchr: New file.
16472         * lib/unistr/u8-strrchr.c: New file.
16473         * lib/unistr/u16-strrchr.c: New file.
16474         * lib/unistr/u32-strrchr.c: New file.
16475
16476         * modules/unistr/u8-strspn: New file.
16477         * modules/unistr/u16-strspn: New file.
16478         * modules/unistr/u32-strspn: New file.
16479         * lib/unistr/u8-strspn.c: New file.
16480         * lib/unistr/u16-strspn.c: New file.
16481         * lib/unistr/u32-strspn.c: New file.
16482         * lib/unistr/u-strspn.h: New file.
16483
16484         * modules/unistr/u8-strstr: New file.
16485         * modules/unistr/u16-strstr: New file.
16486         * modules/unistr/u32-strstr: New file.
16487         * lib/unistr/u8-strstr.c: New file.
16488         * lib/unistr/u16-strstr.c: New file.
16489         * lib/unistr/u32-strstr.c: New file.
16490         * lib/unistr/u-strstr.h: New file.
16491
16492         * modules/unistr/u8-strtok: New file.
16493         * modules/unistr/u16-strtok: New file.
16494         * modules/unistr/u32-strtok: New file.
16495         * lib/unistr/u8-strtok.c: New file.
16496         * lib/unistr/u16-strtok.c: New file.
16497         * lib/unistr/u32-strtok.c: New file.
16498         * lib/unistr/u-strtok.h: New file.
16499
16500         * modules/unistr/u8-uctomb: New file.
16501         * modules/unistr/u16-uctomb: New file.
16502         * modules/unistr/u32-uctomb: New file.
16503         * lib/unistr/u8-uctomb.c: New file.
16504         * lib/unistr/u16-uctomb.c: New file.
16505         * lib/unistr/u32-uctomb.c: New file.
16506
16507         * MODULES.html.sh (Unicode string functions): Add the new modules.
16508
16509 2007-01-08  Bruno Haible  <bruno@clisp.org>
16510
16511         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
16512         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
16513         subdirectories.
16514
16515 2007-01-08  Karl Berry  <karl@gnu.org>
16516
16517         * doc/error.texi: mention that main() fns must set program_name
16518         when progname is used.
16519
16520 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
16521
16522         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
16523         WCTYPE_H is empty, for the benefit of builds from non-distclean
16524         directories.  Problem reported by Eric Blake in
16525         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
16526
16527 2007-01-08  Bruno Haible  <bruno@clisp.org>
16528
16529         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
16530         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
16531         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
16532         PROVIDE_CANONICALIZE_FILENAME_MODE.
16533         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
16534
16535 2007-01-08  Bruno Haible  <bruno@clisp.org>
16536
16537         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
16538         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
16539         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
16540         * lib/fts.c: Likewise.
16541         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
16542
16543 2006-12-25  Bruno Haible  <bruno@clisp.org>
16544
16545         * modules/utf8-ucs4-safe: New file.
16546         * lib/utf8-ucs4-safe.h: New file.
16547         * lib/unistr/utf8-ucs4-safe.c: New file.
16548
16549         * modules/utf16-ucs4-safe: New file.
16550         * lib/utf16-ucs4-safe.h: New file.
16551         * lib/unistr/utf16-ucs4-safe.c: New file.
16552
16553         * MODULES.html.sh (Unicode string functions): Add the new modules.
16554
16555 2007-01-08  Bruno Haible  <bruno@clisp.org>
16556
16557         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
16558         (Depends-on): Add unitypes.
16559         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16560         (u8_mbtouc_aux): Move out to separate file.
16561         (u8_mbtouc): Use ucs4_t, uint8_t types.
16562         * lib/unistr/utf8-ucs4.c: New file.
16563
16564         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
16565         (Depends-on): Add unitypes.
16566         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16567         (u16_mbtouc_aux): Move out to separate file.
16568         (u16_mbtouc): Use ucs4_t, uint16_t types.
16569         * lib/unistr/utf16-ucs4.c: New file.
16570
16571         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
16572         (Depends-on): Add unitypes.
16573         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
16574         (u8_uctomb_aux): Move out to separate file.
16575         (u8_uctomb): Use ucs4_t, uint8_t types.
16576         * lib/unistr/ucs4-utf8.c: New file.
16577
16578         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
16579         (Depends-on): Add unitypes.
16580         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
16581         (u16_uctomb_aux): Move out to separate file.
16582         (u16_uctomb): Use ucs4_t, uint16_t types.
16583         * lib/unistr/ucs4-utf16.c: New file.
16584
16585 2006-12-25  Bruno Haible  <bruno@clisp.org>
16586
16587         * modules/unitypes: New file.
16588         * lib/unitypes.h: New file.
16589         * MODULES.html.sh (func_all_modules): New section "Unicode string
16590         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
16591         this section. Add unitypes.
16592
16593 2007-01-08  Bruno Haible  <bruno@clisp.org>
16594
16595         Avoid variable names that conflict with those from libtool.
16596         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
16597         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
16598         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
16599         library_names_spec to acl_library_names_spec, hardcode_* to
16600         acl_hardcode_*.
16601         Reported by Ralf Wildenhues.
16602
16603 2007-01-08  Bruno Haible  <bruno@clisp.org>
16604
16605         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
16606         definition.
16607         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
16608         definition.
16609         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
16610         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
16611         definition.
16612         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
16613         definition.
16614         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
16615         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
16616         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
16617         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
16618         definition.
16619         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
16620         definition.
16621         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
16622         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
16623         GC_USE_<algorithm>.
16624         * lib/gc-libgcrypt.c: Likewise.
16625         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
16626         * modules/gc-arctwo (configure.ac): Likewise.
16627         * modules/gc-des (configure.ac): Likewise.
16628         * modules/gc-hmac-md5 (configure.ac): Likewise.
16629         * modules/gc-hmac-sha1 (configure.ac): Likewise.
16630         * modules/gc-md2 (configure.ac): Likewise.
16631         * modules/gc-md4 (configure.ac): Likewise.
16632         * modules/gc-md5 (configure.ac): Likewise.
16633         * modules/gc-random (configure.ac): Likewise.
16634         * modules/gc-rijndael (configure.ac): Likewise.
16635         * modules/gc-sha1 (configure.ac): Likewise.
16636
16637 2007-01-08  Bruno Haible  <bruno@clisp.org>
16638
16639         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
16640         macro definition.
16641         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
16642         definition.
16643         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
16644         definition.
16645         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
16646         * modules/fcntl-safer (configure.ac): Likewise.
16647         * modules/fopen-safer (configure.ac): Likewise.
16648         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
16649         GNULIB_FWRITEERROR macro definition.
16650
16651 2007-01-08  Bruno Haible  <bruno@clisp.org>
16652
16653         * m4/gnulib-common.m4: New file.
16654         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
16655         (func_get_filelist): Add m4/gnulib-common.m4.
16656
16657 2007-01-08  Bruno Haible  <bruno@clisp.org>
16658
16659         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
16660         command.
16661
16662 2007-01-08  Jim Meyering  <jim@meyering.net>
16663
16664         Use a more robust test for a "can't happen" condition.
16665         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
16666         narrowed the st_size value.  Presuming the "can't happen" condition
16667         is true, that narrowing could conceivably convert an invalid st_size
16668         value into a valid one.  Instead, use a change based on Matthew
16669         Woehlke's original patch.
16670
16671         Slight readability improvement: use an assert-like macro
16672         in place of literal "abort ()" uses.
16673         * lib/fts.c (fts_assert): Define.
16674         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
16675         Use this macro instead of a bare 'abort'.
16676
16677 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16678
16679         Don't worry about using IRIX 5.3's wctype.h broken definitions;
16680         simply work around them.
16681         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
16682         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
16683         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
16684         declaring.
16685         Don't bother to define as macros, since the standard doesn't require it.
16686         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
16687         longer worry about IRIX 5.3.
16688         (HAVE_WCTYPE_CTMP_BUG): Remove.
16689
16690 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16691
16692         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
16693         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
16694         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
16695         Problems reported by Georg Schwarz for IRIX 5.3.
16696
16697         * gnulib-tool (autoconf_minversion): Take the maximum version number
16698         found, not the minimum.  Problem reported by James Youngman.
16699
16700 2007-01-03  Karl Berry  <karl@gnu.org>
16701
16702         * doc/error.texi: new file, explaining interaction with progname.
16703         * doc/gnulib.texi: include it.  Update copyright.
16704
16705 2007-01-03  Simon Josefsson  <simon@josefsson.org>
16706
16707         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
16708         AC_CANONICAL_HOST, to improve autobuild outputs.
16709
16710 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
16711             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16712
16713         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
16714         sockets, server sockets, and other file descriptors.  Count errors
16715         to compute the return value.  Reorder the code a bit to be easier
16716         to follow.  Don't set event bits that were not requested (except
16717         POLLERR and POLLHUP).
16718
16719 2007-01-01  Bruno Haible  <bruno@clisp.org>
16720
16721         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
16722
16723 2007-01-03  Jim Meyering  <jim@meyering.net>
16724
16725         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
16726
16727 2007-01-02  Bruno Haible  <bruno@clisp.org>
16728
16729         * modules/settime (Include): Require timespec.h.
16730         * modules/nanosleep (Include): Likewise.
16731
16732 2007-01-01  Bruno Haible  <bruno@clisp.org>
16733
16734         * gnulib-tool (func_emit_copyright_notice): Bump year.
16735         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
16736
16737 2007-01-01  Bruno Haible  <bruno@clisp.org>
16738
16739         Improve support for OpenBSD.
16740         * build-aux/config.rpath (libname_spec): Export.
16741         (library_names_spec): New variable. Export.
16742         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
16743         library_names_spec from the config.rpath output. Locate shared library
16744         through the name pattern in library_names_spec.
16745
16746 2007-01-01  Eric Blake  <ebb9@byu.net>
16747
16748         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
16749
16750 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16751
16752         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
16753         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
16754         assume the C locale, and avoid an "eval" that could cause trouble.
16755         Problem with SORT reported by Bob Proulx.
16756
16757         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
16758         Define.  Trivial patch from Henning Nielsen Lund, originally
16759         sent to bug-grep@gnu.org today.
16760
16761 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16762
16763         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
16764         struct stat.  Problem reported by Henning Nielsen Lund.
16765         * lib/acl.c: Include acl.h first, to check interface.  Don't
16766         bother to include sys/types.h and sys/stat.h again.
16767
16768 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16769
16770         Import the following change from libc; problem reported by
16771         Sven Verdoolaege.
16772
16773         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
16774
16775         [BZ #1373]
16776         * lib/argp.h: Remove __NTH for __argp_usage inline function.
16777
16778 2006-12-28  Jim Meyering  <jim@meyering.net>
16779
16780         * build-aux/announce-gen: Do not assume that the package
16781         builds any of tar.gz, tar.bz2, and .xdelta files.
16782         Suggestion from Simon Josefsson.
16783
16784 2006-12-28  Simon Josefsson  <simon@josefsson.org>
16785
16786         * modules/announce-gen: New file.
16787
16788 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16789
16790         * lib/mbchar.h: Just include <wctype.h>; the wctype module
16791         handles its gotchas now.
16792         * lib/mbswidth.c: Likewise.
16793         * lib/wcwidth.h: Likewise.
16794         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
16795         and iswcntrl; the wctype module does this stuff now.
16796         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16797         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16798         * modules/mbchar (Depends-on): Add wctype.
16799         * modules/mbswidth (Depends-on): Likewise.
16800         * modules/wcwidth (Depends-on): Likewise.
16801
16802 2006-12-27  Eric Blake  <ebb9@byu.net>
16803
16804         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
16805         module uses more than what <wctype.h> is required to provide.
16806
16807 2006-12-26  Eric Blake  <ebb9@byu.net>
16808
16809         * gnulib-tool (sed_extract_prog): Avoid space-tab.
16810
16811 2006-12-26  Eric Blake  <ebb9@byu.net>
16812
16813         * modules/absolute-header: New module.
16814         * modules/fcntl (Depends-on): Depend on it.
16815         * modules/inttypes (Depends-on): Likewise.
16816         * modules/stdint (Depends-on): Likewise.
16817         * modules/sys_stat (Depends-on): Likewise.
16818         * modules/wctype (Depends-on): Likewise.
16819         * MODULES.html.sh (Support for building libraries and
16820         executables): Document it.
16821
16822 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16823
16824         * gnulib-tool (SED): Remove, undoing previous change.
16825         The problem was that it broke coreutils on Solaris, because
16826         "sed --posix" leaked into a makefile.
16827         (sed): New alias, if 'alias' and GNU sed.
16828
16829 2006-12-24  Jim Meyering  <jim@meyering.net>
16830
16831         Work around an fchownat bug in glibc-2.4:
16832         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
16833         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
16834         in spite of the -P option.
16835         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
16836         New macros.
16837         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
16838         * modules/openat (Files): Add lib/fchownat.c.
16839         * lib/openat.c (fchownat): Don't define here.  Move to...
16840         * lib/fchownat.c: ...this new file.
16841
16842 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16843
16844         Fix bug reported by Bruno Haible in
16845         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
16846         where quotearg.c didn't compile on Mac OS X 10.2 because it
16847         lacks <wchar.h> and wint_t.
16848         * lib/wctype_.h (__wctype_wint_t): New type.
16849         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
16850         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
16851         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
16852         Arg is now of type __wctype_wint_t, not wint_t.
16853         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
16854         substitute HAVE_WINT_T.
16855         * modules/wctype (Files): Add m4/wint_t.m4.
16856         (wctype.h): Substitute HAVE_WINT_T.
16857
16858 2006-12-23  Bruno Haible  <bruno@clisp.org>
16859
16860         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
16861
16862 2006-12-23  Bruno Haible  <bruno@clisp.org>
16863
16864         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
16865         S_ISLNK.
16866         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
16867         mingw.
16868
16869 2006-12-22  Bruno Haible  <bruno@clisp.org>
16870
16871         * lib/copy-file.c: Include acl.h.
16872         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
16873         Close the file descriptors only after being done with copy_acl.
16874         * modules/copy-file (Depends-on): Add acl.
16875
16876 2006-12-22  Bruno Haible  <bruno@clisp.org>
16877
16878         * gnulib-tool (SED): New variable.
16879         Use $SED instead of sed everywhere.
16880
16881 2006-12-22  Bruno Haible  <bruno@clisp.org>
16882
16883         * modules/no-c++: New file.
16884         * m4/no-c++.m4: New file.
16885         * MODULES.html.sh (Support for building libraries and executables):
16886         Add no-c++.
16887
16888 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16889
16890         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
16891         Include <limits.h>, and use its INT_MAX to rewrite the
16892         j loop so that it does not overflow 'int'.  Problem reported by
16893         Ralf Wildenhues in
16894         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
16895         Play it safe by shifting left by 1 rather than multiplying by 2,
16896         as GCC is less likely to optimize this away when the value
16897         is signed (when it assumes overflow leads to undefined behavior).
16898         Also, don't assume time_t uses two's complement.
16899
16900 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16901
16902         * MODULES.html.sh: New module wctype.
16903         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
16904         * lib/fnmatch.c: Don't bother to include <wchar.h> before
16905         <wctype.h>, since the new wctype module should fix this.
16906         * lib/quotearg.c: Include <wctype.h> unconditionally, since
16907         the wctype module should arrange for it.
16908         * lib/regex_internal.h: Likewise.
16909         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
16910         since the wctype module should handle this now.
16911         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
16912         * modules/fnmatch (Depends-on): Add wctype.
16913         * modules/quotearg (Depends-on): Likewise.
16914         * modules/regex (Depends-on): Likewise.
16915
16916 2006-12-19  Bruno Haible  <bruno@clisp.org>
16917
16918         * lib/strdup.h [C++]: Wrap definitions in extern "C".
16919         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
16920
16921 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16922
16923         * modules/savewd (Depends-on): Fix dependency on fcntl.
16924
16925 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16926
16927         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
16928         conforms to C99, rather than relying on the user's environment
16929         setting of STDINT_H.
16930
16931 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16932         and Eric Blake  <ebb9@byu.net>
16933
16934         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
16935         This is more consistent with the other defines here.
16936         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
16937         Port to z/OS.  Problem reported by Paul Gilmartin.
16938         Change local vars to use gl_ prefix rather than ac_.
16939         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
16940         with other defines.
16941         * modules/double-slash-root: New module.
16942         * modules/dirname (Files): Remove m4/double-slash-root.m4.
16943         (Depends-on): Add double-slash-root.
16944         * MODULES.html.sh (File system functions): Mention new module.
16945
16946 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
16947
16948         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
16949         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
16950         This is for the benefit of gzip, which doesn't do i18n.
16951
16952 2006-12-12  Jim Meyering  <jim@meyering.net>
16953
16954         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
16955         Reported by Andreas Schwab <schwab@suse.de>.
16956
16957 2006-12-12  Bruno Haible  <bruno@clisp.org>
16958
16959         Merge these changes.
16960         2006-09-05  Bruno Haible  <bruno@clisp.org>
16961         * lib/iconvme.c (iconv_string): No need to save and restore errno when
16962         iconv_alloc succeeded.
16963         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
16964         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
16965         test for " && dest " at the end - dest is always != NULL there. Call
16966         iconv with 4xNULL arguments initially, to reset the state. Call iconv
16967         with 2xNULL arguments, also to flush the state storage. Handle the
16968         IRIX iconv behaviour. Realloc the final result, to throw away unused
16969         memory.
16970
16971 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
16972
16973         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
16974         and fchmodat unconditionally, since glibc 2.4 has them.
16975         Problem reported by Arkadiusz Miskiewicz.
16976
16977 2006-12-10  Bruno Haible  <bruno@clisp.org>
16978
16979         * gnulib-tool (func_import): Show the include files only for those
16980         modules that are copied and specified.
16981         Reported by Karl Berry.
16982
16983 2006-12-08  Jim Meyering  <jim@meyering.net>
16984
16985         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
16986         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
16987
16988         * build-aux/announce-gen: Add two new options, both optional:
16989         --bootstrap-tools=TOOL_LIST
16990               a comma-separated list of tools, e.g.,
16991               autoconf,automake,bison,gnulib
16992         --gnulib-snapshot-date=DATE
16993               if gnulib is in the bootstrap tool list,
16994               then report this as the snapshot date.
16995               If not specified, use the current date/time.
16996               If you specify a date here, be sure it's UTC.
16997
16998 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16999
17000         * tests/test-argp-2.sh: Fix test to match actual output.
17001         (func_compare): Fix sed script to be portable.
17002
17003 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
17004
17005         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
17006         workaround for this case.  It is not autoconfigured now; offhand
17007         it's hard to see how to autoconfigure it.
17008
17009 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
17010
17011         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
17012         a directory that is about to be chowned.  Such a directory's
17013         initial file permissions should permit the owner only and this
17014         should not be changed until after the chown, since the group and
17015         other bits would be incorrect if they granted permission before
17016         the chown.
17017
17018         Fix porting problem for iswctype reported by Georg Schwarz in:
17019         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
17020         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
17021         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
17022         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
17023         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17024
17025 2006-12-03  Jim Meyering  <jim@meyering.net>
17026
17027         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
17028         p->fts_statp may not yet be defined.
17029         (fts_read): Instead, set it in the caller, once p->fts_statp is
17030         sure to be defined, and corresponds to a top-level directory.
17031         This bug made du -x fail.  Here's the coreutils test case:
17032         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
17033         Reported by Mike Frysinger.
17034
17035 2006-12-01  Jim Meyering  <jim@meyering.net>
17036
17037         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
17038         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
17039         Reported by Simon Josefsson.
17040
17041 2006-11-30  Jim Meyering  <jim@meyering.net>
17042
17043         * m4/warning.m4: Use the all-permissive copyright notice
17044         recommended by RMS (rather than LGPL).
17045         * m4/vararrays.m4: Likewise.
17046         * m4/flexmember.m4: Likewise.
17047
17048 2006-11-29  Bruno Haible  <bruno@clisp.org>
17049
17050         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
17051         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
17052         using +=.
17053         Reported by Simon Josefsson <simon@josefsson.org>.
17054
17055 2006-11-28  James Youngman <jay@gnu.org>
17056
17057         * README: Advise users that they might find the bug-gnulib@gnu.org
17058         and autotools-announce@gnu.org mailing lists useful.
17059
17060 2006-11-28  Bruno Haible  <bruno@clisp.org>
17061
17062         * m4/ptrdiff_max.m4: Remove file.
17063
17064 2006-11-21  Bruno Haible  <bruno@clisp.org>
17065
17066         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
17067         _AC_COMPUTE_INT.
17068         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17069         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
17070         _AC_COMPUTE_INT.
17071         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17072         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
17073         _AC_COMPUTE_INT.
17074         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17075
17076 2006-11-28  Jim Meyering  <jim@meyering.net>
17077
17078         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
17079         warning from "gcc -Wshadow" about shadowing the builtin.
17080
17081 2006-11-27  Bruno Haible  <bruno@clisp.org>
17082
17083         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
17084         _AC_COMPUTE_INT.
17085         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17086
17087 2006-11-27  Bruno Haible  <bruno@clisp.org>
17088             Paul Eggert  <eggert@cs.ucla.edu>
17089
17090         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
17091
17092 2006-11-26  Bruno Haible  <bruno@clisp.org>
17093
17094         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
17095         noinst_LTLIBRARIES.
17096
17097 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
17098             Bruno Haible  <bruno@clisp.org>
17099
17100         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
17101         if compiling with "gcc -ansi".
17102
17103 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
17104
17105         Fix some incompatibilities with gcc -ansi -pedantic.
17106         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
17107         if compiling pedantically with GCC, unless it's C99 or later.
17108         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
17109         it mishandles gcc -ansi -pedantic as well.
17110         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
17111         if gcc -pedantic.
17112         * lib/regexec.c (check_node_accept_bytes): Don't use auto
17113         initializers for struct if -pedantic, unless it's C99 or later.
17114
17115 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
17116
17117         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
17118         Don't close an fd more than once. Identical atimes indicate
17119         success, not failure.
17120
17121 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
17122
17123         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
17124
17125 2006-11-23  Jim Meyering  <jim@meyering.net>
17126
17127         * build-aux/announce-gen: New file.  From coreutils.
17128
17129 2006-11-22  Jim Meyering  <jim@meyering.net>
17130
17131         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
17132         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
17133         (fts_read): Use a temporary to narrow the overused st_size member
17134         before using it in a switch statement.  Reported by Matthew Woehlke.
17135
17136         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
17137         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
17138
17139 2006-11-20  Bruno Haible  <bruno@clisp.org>
17140
17141         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
17142         changequote instead of pairs of brackets.
17143         Reported by Andreas Schwab <schwab@suse.de>.
17144
17145 2006-11-21  Jim Meyering  <jim@meyering.net>
17146
17147         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
17148         so as to remain compatible with older compilers.
17149         Patch from Michael Deutschmann.
17150
17151 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
17152
17153         * MODULES.html.sh (File system functions): Add openat.
17154
17155         * lib/openat.h (rpl_fstatat): New macro, if
17156         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
17157         (fstatat): Define to rpl_fstatat under the same conditions,
17158         unless COMPILING_FSTATAT.
17159         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
17160         seems to have the bug.
17161         * lib/fstatat.c: New file.
17162         * modules/openat (Files): Add it.
17163
17164 2006-11-20  Bruno Haible  <bruno@clisp.org>
17165
17166         * Makefile: New file.
17167
17168 2006-11-20  Jim Meyering  <jim@meyering.net>
17169
17170         The beginnings of syntax-related checks for gnulib.
17171         * lib/Makefile: New file.
17172         * lib/t-idcache: New script.  Ensure that the two halves of
17173         idcache.c stay in sync.
17174
17175         * lib/idcache.c: Adjust comments in user- and group- portions to
17176         be more accurate, and to be consistent with one another.
17177
17178 2006-11-20  Jim Meyering  <jim@meyering.net>
17179
17180         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
17181         continue using the flexible array member (thus, this module performs
17182         half as many malloc calls), with the addition that...
17183         (getgroup, getuser): Consistently record a non-match via an empty
17184         "name" string, and map an empty string match to a NULL return value.
17185         * modules/idcache (Depends-on): Re-add flexmember.
17186
17187         * lib/idcache.c (getuser): Remove all uses of the register keyword.
17188         (getuidbyname, getgroup, getgidbyname): Likewise.
17189
17190         Use cleaner syntax: NULL rather than 0.
17191         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
17192
17193 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
17194
17195         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
17196         It mishandled the case where the group was missing.
17197         Problem reported by Greg Schafer.
17198         * modules/idcache: Likewise.
17199
17200 2006-11-18  Jim Meyering  <jim@meyering.net>
17201
17202         * check-module (%exempt_header): Add exception for some
17203         conditionally-included headers.
17204
17205         * modules/i-ring (Depends-on): Add verify.
17206         (License): Change to LGPL.
17207
17208 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
17209
17210         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
17211         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
17212         and inttostr.h.  Use snprintf rather than uinttostr, so that
17213         LGPLed code doesn't depend on GPLed.
17214
17215 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17216
17217         * modules/inline (License): Change from GPL to LGPL.
17218
17219 2006-11-17  Jim Meyering  <jim@meyering.net>
17220
17221         * modules/d-type (License): Switch to LGPL.
17222
17223 2006-11-15  Bruno Haible  <bruno@clisp.org>
17224
17225         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
17226
17227 2006-11-15  Eric Blake  <ebb9@byu.net>
17228
17229         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
17230         the module dependency.
17231
17232 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17233             Bruno Haible  <bruno@clisp.org>
17234
17235         * gnulib-tool (func_create_testdir): Add license consistency check.
17236
17237 2006-11-15  Eric Blake  <ebb9@byu.net>
17238
17239         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
17240         random "(cached)" in configure output.
17241
17242 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17243
17244         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
17245         test for conforming inttypes.h is both announced and cached.
17246
17247         * MODULES.html.sh (seen_modules, seen_files): New variables.
17248         (func_module): Rewrite to use a few less gnulib-tool and sed
17249         invocations.  Avoid a couple of quadratic algorithms for ...
17250         (missed_modules, missed_files): ... these, with ...
17251         (func_append, func_tmpdir): ... these new functions, from
17252         gnulib-tool.  Analogously, install traps for cleanup.
17253
17254         * tests/test-gc.c (main): Remove unused variables.
17255         * tests/test-read-file.c: Include stdlib.h, for 'free'.
17256
17257 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
17258
17259         * modules/inttostr (License): Change to LGPL.
17260
17261 2006-11-14  Eric Blake  <ebb9@byu.net>
17262
17263         * modules/tempname (License): Change to LGPL.
17264
17265 2006-11-14  Eric Blake  <ebb9@byu.net>
17266
17267         * doc/functions.texi (Function Portability): *printf functions on
17268         Cygwin now understand all POSIX size specifiers.
17269
17270 2006-11-14  Bruno Haible  <bruno@clisp.org>
17271
17272         * modules/c-ctype (License): Change to LGPL.
17273
17274 2006-11-12  Bruno Haible  <bruno@clisp.org>
17275
17276         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17277         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
17278         for GNOME libraries, for which the include files are installed in
17279         subdirectories of $prefix/include.
17280
17281 2006-11-12  Bruno Haible  <bruno@clisp.org>
17282
17283         * m4/lib-link.m4: Require at least autoconf-2.54.
17284         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
17285         name to underscores for the --with option.
17286
17287 2006-11-13  Bruno Haible  <bruno@clisp.org>
17288
17289         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
17290         the tests directory.
17291         Reported by Ralf Wildenhues.
17292
17293 2006-11-13  Bruno Haible  <bruno@clisp.org>
17294
17295         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
17296         (func_emit_initmacro_end): Undo the override here.
17297         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
17298         Works around the famous automake error in coreutils.
17299
17300 2006-11-13  Eric Blake  <ebb9@byu.net>
17301
17302         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
17303         element, not its node.
17304
17305 2006-11-12  Bruno Haible  <bruno@clisp.org>
17306
17307         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
17308         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
17309
17310 2006-11-12  Bruno Haible  <bruno@clisp.org>
17311
17312         * gnulib-tool: New option --local-symlink.
17313         (func_usage): Document it.
17314         (lsymbolic): New variable.
17315         (func_import, func_create_testdir): If --symlink was not specified,
17316         test whether --local-symlink was specified and the file comes from
17317         the local_gnulib_dir.
17318
17319 2006-11-12  Bruno Haible  <bruno@clisp.org>
17320
17321         * gnulib-tool (func_ln): New function.
17322         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
17323
17324 2006-11-12  Bruno Haible  <bruno@clisp.org>
17325
17326         Finish support for source files in subdirectories.
17327         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
17328         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
17329         AUTOMAKE_OPTIONS.
17330         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
17331
17332 2006-11-12  Bruno Haible  <bruno@clisp.org>
17333
17334         * gnulib-tool (func_get_automake_snippet): Synthesize also an
17335         EXTRA_lib_SOURCES augmentation.
17336         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
17337
17338 2006-11-12  Jim Meyering  <jim@meyering.net>
17339
17340         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
17341         file descriptors.  This also averts a failure on systems with
17342         native openat support when a traversed directory lacks "x" access.
17343         * lib/fts_.h: Include "i-ring.h"
17344         (struct FTS) [fts_fd_ring]: New member.
17345         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
17346         (FCHDIR): Add parentheses.
17347         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
17348         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
17349         When descending, rather than simply closing the previous
17350         fts_cwd_fd value, push that file descriptor onto the ring.
17351         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
17352         (fts_open): Initialize the new fd_ring member.
17353         (fts_close): Clear the ring.
17354         (fts_safe_changedir): When possible, use our new fd_ring to skip
17355         the diropen and fstat and dev/ino comparison that would normally
17356         accompany a virtual `chdir ("..")'.
17357
17358         * modules/fts (Depends-on): Add i-ring.
17359         * modules/i-ring: New module.
17360         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
17361         * m4/i-ring.m4: New file.
17362
17363 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17364
17365         * gnulib-tool (func_create_testdir): Fix replacement of
17366         `build-aux' in configure.ac.  Run autotools in gltests
17367         subdirectory.
17368         (func_create_testdir, func_create_megatestdir, test): There is
17369         no need for '--force' in most autotool invocations in a new
17370         tree.  Actually fail the whole test if any of the tools, or the
17371         configure or make stages fail.
17372
17373         Sync from Automake.
17374         * build-aux/gnupload: Revert last change.  Add pointer to upload
17375         instructions of the GNU Maintenance Instructions.
17376         Suggestion by Karl Berry.
17377
17378 2006-11-10  Jim Meyering  <jim@meyering.net>
17379
17380         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
17381
17382 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
17383
17384         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
17385         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
17386         (bind_textdomain_codeset) [! ENABLE_NLS]:
17387         Evaluate all the arguments.  That way, callers get compatible behavior
17388         if the arguments have side effects.  Also, it avoids some GCC
17389         diagnostics in some cases; Joel E. Denny reported problems when Bison
17390         was configured with --enable-gcc-warnigs.
17391
17392 2006-11-10  Jim Meyering  <jim@meyering.net>
17393
17394         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
17395         relevant options in CFLAGS (like -O, -fno-inline) are taken into
17396         account.
17397
17398 2006-11-10  Jim Meyering  <jim@meyering.net>
17399
17400         * modules/inline: New file/module.
17401         * modules/xalloc (Files): Remove m4/inline.m4.
17402         (Depends-on): Add inline, instead.
17403         * modules/oset: Likewise.
17404         * modules/list: Likewise.
17405
17406 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
17407
17408         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
17409         Problem reported by Matthew Woehlke.
17410
17411 2006-11-09  Bruno Haible  <bruno@clisp.org>
17412
17413         * lib/tempname.c (gen_tempname): Remove variant that invokes
17414         __gen_tempname.
17415         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
17416         __gen_tempname.
17417
17418 2006-11-08  Bruno Haible  <bruno@clisp.org>
17419
17420         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
17421         to 'yes' instead of 'cross-compiling'.
17422
17423 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
17424
17425         * lib/quotearg.h (quotearg_free): New decl.
17426         * lib/quotearg.c (quotearg_free): New function.
17427         (slot0, nslots, slotvec0, slotvec):
17428         Now file-scope so that quotearg_free can get at them.
17429
17430 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17431
17432         Sync from Automake.
17433         * build-aux/gnupload: Add missing 'gnu' to example URL.
17434         Report by Karl Berry.
17435
17436 2006-11-08  Bruno Haible  <bruno@clisp.org>
17437
17438         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
17439         Suggested by Paul Eggert.
17440
17441 2006-11-08  Jim Meyering  <jim@meyering.net>
17442
17443         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
17444         It's already included if !_LIBC.
17445         (fts_safe_changedir): Add a comment.
17446
17447 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17448
17449         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
17450         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
17451         Matthew Woehlke.
17452
17453         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
17454         definitions up, to avoid colliding with change below.
17455         (static_inline) [HAVE_INLINE]: New macro.
17456         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
17457         Provide extern decls when !HAVE_INLINE.  Do not define unless
17458         static_inline is defined, either by us or by xmalloc.c.  Use
17459         static_inline rather than static inline.
17460         (XCALLOC): Optimize sizeof(T) = 1 case.
17461         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
17462
17463 2006-11-07  Bruno Haible  <bruno@clisp.org>
17464
17465         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
17466         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
17467         AC_C_INLINE.
17468         * modules/xalloc (Files): Add m4/inline.m4.
17469
17470 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17471
17472         * README: Fix typo.
17473         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
17474         (Miscellanous Notes): ...from this.
17475
17476 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17477
17478         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
17479         Mention that offsetof should be used instead of sizeof.
17480         From Bruno Haible.
17481
17482 2006-11-07  Bruno Haible  <bruno@clisp.org>
17483
17484         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
17485
17486 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17487
17488         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17489         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
17490         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17491         (gl_tree_add_before, gl_tree_add_after):
17492         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
17493         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
17494         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17495         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
17496         (gl_linked_add_after, gl_linked_add_at): Likewise.
17497         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
17498         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17499         (gl_tree_add_before, gl_tree_add_after): Likewise.
17500         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
17501         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
17502         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17503
17504 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17505
17506         * lib/gl_oset.h: Use C comment style, not C++ comment style.
17507
17508 2006-11-06  Bruno Haible  <bruno@clisp.org>
17509
17510         * m4/inline.m4: New file.
17511         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
17512         * modules/list (Files): Add m4/inline.m4.
17513         * modules/oset (Files): Likewise.
17514
17515 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17516
17517         * lib/idcache.c: Include <stddef.h>, for offsetof.
17518         (struct userid.name): Change from char * to a flexible array member.
17519         All uses changed.
17520         * modules/idcache (Depends-on): Add flexmember.
17521
17522         * MODULES.html.sh (Core language properties): New module flexmember.
17523         * modules/flexmember, m4/flexmember.m4: New files.
17524
17525         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
17526         inline functions that are identical with the old xnmalloc_inline,
17527         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
17528         that we can avoid some unnecessary integer multiplications and
17529         divisions in the common case where the element size is known at
17530         compile time.
17531         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
17532         needed.
17533         (xnboundedmalloc): Remove.
17534         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
17535         arguments, for consistency with rest of this header.
17536         (xcharalloc): Rewrite using XNMALLOC.
17537         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
17538         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
17539         versions have been moved to lib/xalloc.h and renamed to be the
17540         non-*_inline versions.
17541         (xmalloc, xrealloc): Implement without reference to the xnmalloc
17542         and xnrealloc functions, since those functions are now inline and
17543         now call us.
17544         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
17545         renaming described above.
17546         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
17547         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
17548         captures the dependency in AC_C_INLINE.
17549
17550         New module canonicalize-lgpl, proposed by Charles Wilson in
17551         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
17552         with a few small changes afterwards.
17553         * MODULES.html.sh (File system functions): New module
17554         canonicalize-lgpl.
17555         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
17556         and canonicalize_file_name.
17557         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
17558         * modules/canonicalize-lgpl: New files.
17559
17560 2006-11-05  Bruno Haible  <bruno@clisp.org>
17561
17562         * gnulib-tool (func_import, func_create_testdir): Create directories
17563         also for files in subdirectories of lib/.
17564
17565 2006-11-05  Bruno Haible  <bruno@clisp.org>
17566
17567         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
17568         ANSI C compliant.
17569
17570 2006-11-03  Bruno Haible  <bruno@clisp.org>
17571
17572         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17573         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
17574         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
17575         (xnboundedmalloc): New inline function.
17576         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
17577         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
17578         xmalloc.
17579         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
17580         xmalloc.
17581         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
17582         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
17583         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
17584         xmalloc.
17585         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17586         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
17587         xmalloc.
17588         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
17589         gl_tree_add_after): Use XMALLOC instead of xmalloc.
17590         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
17591         xmalloc.
17592         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17593         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
17594         gl_tree_add_after): Use XMALLOC instead of xmalloc.
17595         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
17596         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
17597         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
17598         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
17599
17600 2006-11-03  Bruno Haible  <bruno@clisp.org>
17601
17602         * lib/c-ctype.h [C++]: Define functions without name mangling.
17603         * lib/fwriteerror.h [C++]: Likewise.
17604         * lib/gcd.h [C++]: Likewise.
17605         * lib/linebreak.h [C++]: Likewise.
17606
17607 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17608
17609         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
17610         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
17611         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
17612         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
17613         Check for functions and headers just once.
17614         Check for declaration of canonicalize_file_name.
17615         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
17616
17617 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
17618
17619         * gnulib-tool (func_import): Fix typo in actioncmd.
17620
17621 2006-11-02  Bruno Haible  <bruno@clisp.org>
17622
17623         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
17624         newline sequence in the Makefile.am snippet as a space, like "make"
17625         does.
17626         Reported by Roger Persson <perrog@gmail.com>.
17627
17628 2006-11-01  Bruno Haible  <bruno@clisp.org>
17629
17630         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
17631         already declared in <string.h>.
17632         * lib/strcase.h (strncasecmp): Don't declare it if yes.
17633
17634 2006-11-01  Bruno Haible  <bruno@clisp.org>
17635
17636         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
17637         * lib/strcase.h: Include <string.h>.
17638         (strcasecmp): Define to rpl_strcasecmp here.
17639
17640 2006-11-01  Bruno Haible  <bruno@clisp.org>
17641
17642         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
17643
17644 2006-11-01  Eric Blake  <ebb9@byu.net>
17645
17646         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
17647
17648         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
17649
17650 2006-10-29  Bruno Haible  <bruno@clisp.org>
17651
17652         Make it compile in C++ mode.
17653         * lib/full-write.c (full_rw): Add a cast.
17654
17655 2006-11-01  Bruno Haible  <bruno@clisp.org>
17656
17657         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
17658         be POSIX compliant.
17659         Reported by Roger Persson <perrog@gmail.com>.
17660
17661 2006-11-01  Eric Blake  <ebb9@byu.net>
17662
17663         * lib/getopt_.h: Fix comments.
17664
17665 2006-10-31  Eric Blake  <ebb9@byu.net>
17666
17667         * modules/tmpdir (Depends-on): Add sys_stat.
17668         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
17669         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
17670         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
17671         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
17672         tempname.
17673
17674 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
17675
17676         Avoid some C++ diagnostics reported by Bruno Haible.
17677         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
17678         xmalloc.
17679         (quotearg_alloc): Use xcharalloc rather than xmalloc.
17680         (struct slotvec): Move to top level.
17681         (quotearg_n_options): Rewrite to avoid xmalloc.
17682         * lib/xalloc.h (xcharalloc): New function.
17683         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
17684         [defined __cplusplus]: Add function template that provides result
17685         type propagation.  This part of the change is from Bruno Haible.
17686
17687 2006-10-29  Bruno Haible  <bruno@clisp.org>
17688
17689         Make it compile in C++ mode.
17690         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
17691         * lib/strnlen1.c (strnlen1): Cast memchr result.
17692         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
17693         * lib/clean-temp.c (string_equals, string_hash): Add casts.
17694         (create_temp_dir): Rename local variable 'template'.
17695         (compile_csharp_using_sscli): Add cast.
17696         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
17697         * lib/findprog.c (find_in_path): Likewise.
17698         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
17699         * lib/wait-process.c (register_slave_subprocess): Likewise.
17700
17701 2006-10-22  Bruno Haible  <bruno@clisp.org>
17702
17703         * modules/tsearch: New file.
17704         * lib/tsearch.h: New file.
17705         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
17706         * m4/tsearch.m4: New file.
17707         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
17708
17709 2006-10-29  Eric Blake  <ebb9@byu.net>
17710
17711         * lib/arcfour.c: Assume config.h.
17712         * lib/arctwo.c: Likewise.
17713         * lib/base64.c: Likewise.
17714         * lib/check-version.c: Likewise.
17715         * lib/crc.c: Likewise.
17716         * lib/des.c: Likewise.
17717         * lib/gc-gnulib.c: Likewise.
17718         * lib/gc-libgcrypt.c: Likewise.
17719         * lib/gc-pbkdf2-sha1.c: Likewise.
17720         * lib/getaddrinfo.c: Likewise.
17721         * lib/getdelim.c: Likewise.
17722         * lib/getline.c: Likewise.
17723         * lib/hmac-md5.c: Likewise.
17724         * lib/hmac-sha1.c: Likewise.
17725         * lib/iconvme.c: Likewise.
17726         * lib/md2.c: Likewise.
17727         * lib/md4.c: Likewise.
17728         * lib/memxor.c: Likewise.
17729         * lib/read-file.c: Likewise.
17730         * lib/readline.c: Likewise.
17731         * lib/rijndael-alg-fst.c: Likewise.
17732         * lib/rijndael-api-fst.c: Likewise.
17733         * lib/xgetdomainname.c: Likewise.
17734
17735 2006-10-28  Eric Blake  <ebb9@byu.net>
17736
17737         * lib/xstrndup.c: Assume config.h.
17738
17739 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
17740
17741         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
17742         stat-macros.h is now for our own macros, whereas stat_h is for
17743         macros in the <sys/stat.h> name space.
17744         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
17745         (STAT_MACROS_H): Remove.
17746         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
17747         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
17748         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
17749         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
17750         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
17751         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
17752         Move these macros to ...
17753         * lib/stat_.h: here.  Don't include stat-macros.h.
17754         * lib/canonicalize.c: Don't include stat-macros.h.
17755         * lib/chown.c: Likewise.
17756         * lib/euidaccess.c: Likewise.
17757         * lib/file-type.c: Likewise.
17758         * lib/filemode.c: Likewise.
17759         * lib/glob.c: Likewise.
17760         * lib/isapipe.c: Likewise.
17761         * lib/lchown.c: Likewise.
17762         * lib/lstat.c: Likewise.
17763         * lib/mkdir-p.c: Likewise.
17764         * lib/rmdir.c: Likewise.
17765         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
17766         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
17767         unless mkdir isn't declared, to speed up 'configure'.
17768         Always create sys/stat.h, since it's unlikely any real sys/stat.h
17769         would define all the S_* symbols.
17770         * modules/canonicalize (Depends-on):
17771         Depend on sys_stat, not stat-macros.
17772         * modules/chown: Likewise.
17773         * modules/euidaccess: Likewise.
17774         * modules/filemode: Likewise.
17775         * modules/file-type: Likewise.
17776         * modules/glob: Likewise.
17777         * modules/isapipe: Likewise.
17778         * modules/lchown: Likewise.
17779         * modules/lstat: Likewise.
17780         * modules/mkancesdirs: Likewise.
17781         * modules/rmdir: Likewise.
17782         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
17783         * modules/modechange: Likewise.
17784         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
17785         (configure.ac): Remove gl_STAT_MACROS.
17786         * modules/sys_stat (Depends-on): Remove stat-macros.
17787
17788 2006-10-27  Bruno Haible  <bruno@clisp.org>
17789
17790         * m4/signed.m4: Remove file.
17791         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
17792         invocation.
17793         * modules/vasnprintf (Files): Remove m4/signed.m4.
17794
17795 2006-10-27  Bruno Haible  <bruno@clisp.org>
17796
17797         Update to GNU gettext 0.16.
17798         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
17799         m4/inttypes-h.m4, m4/signed.m4.
17800         * m4/gettext.m4: Update to GNU gettext 0.16.
17801         * m4/intl.m4: New file, from GNU gettext.
17802         * m4/intldir.m4: New file, from GNU gettext.
17803         * config/srclist.txt: Update
17804
17805 2006-10-27  Eric Blake  <ebb9@byu.net>
17806
17807         * MODULES.html.sh: Document tempname.
17808         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
17809         dependencies.
17810         (Files): Move lib/tempname.c...
17811         * modules/tempname: ...to this new module.
17812         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
17813         (gl_PREREQ_TEMPNAME): Move...
17814         * m4/tempname.m4: ...to this new file.
17815         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
17816         * modules/sys_stat (Depends-on): Add stat-macros.
17817         * lib/stat_.h (includes): Pick up stat macros.
17818         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
17819         if stat macros are broken.
17820         * lib/tempname.c (includes): No need to include "stat-macros.h".
17821         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
17822         (direxists, __path_search) [!_LIBC]: Don't compile these in
17823         gnulib; the tmpdir module covers that.
17824         * lib/tempname.h: New file.
17825
17826 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17827
17828         * COPYING: Explain how gnulib-tool converts licence headers.
17829         Almost all wording by Eric Blake.
17830
17831 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17832
17833         * lib/mbchar.h (is_basic_table): Make read-only.
17834         * lib/mbchar.c (is_basic_table): Likewise.
17835         Reported by John Darrington.
17836
17837 2006-10-25  Bruno Haible  <bruno@clisp.org>
17838
17839         * lib/progname.h (set_program_name): Undefine before defining.
17840
17841 2006-10-25  Bruno Haible  <bruno@clisp.org>
17842
17843         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
17844         false for non-gcc C++ compilers.
17845         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17846
17847 2006-10-24  Bruno Haible  <bruno@clisp.org>
17848
17849         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
17850         iconv implementations like Irix iconv.
17851
17852 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17853
17854         * modules/vararrays: New file.
17855         * m4/vararrays.m4: New file, taken from diffutils.
17856         * MODULES.html.sh: New module vararrays.
17857
17858 2006-10-24  Karl Berry  <karl@gnu.org>
17859
17860         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
17861         Don't call GNU Unix.
17862
17863 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17864
17865         * users.txt: Add Libtool.
17866
17867         Sync from Libtool:
17868
17869         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17870
17871         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
17872         to gnulib's policy of including config.h unconditionally.
17873
17874 2006-10-24  Bruno Haible  <bruno@clisp.org>
17875
17876         * modules/wcwidth (Files): Add m4/wint_t.m4.
17877         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
17878         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
17879
17880 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17881
17882         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
17883         to pacify GCC with some -W flags enabled.  Problem reported by
17884         Bruno Haible.
17885
17886 2006-10-24  Jim Meyering  <jim@meyering.net>
17887
17888         * MODULES.html.sh: Remove uinttostr.  It's not a module.
17889         Reported by Karl Berry.
17890
17891 2006-10-23  Bruno Haible  <bruno@clisp.org>
17892
17893         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
17894
17895 2006-10-24  Bruno Haible  <bruno@clisp.org>
17896
17897         * lib/gl_list.h: Use C comment style, not C++ comment style.
17898
17899 2006-10-23  Eric Blake  <ebb9@byu.net>
17900
17901         * lib/getaddrinfo.c (includes): Add missing include.
17902
17903 2006-10-23  Bruno Haible  <bruno@clisp.org>
17904             Paul Eggert  <eggert@cs.ucla.edu>
17905
17906         Ability to rename obstack_free.
17907         * lib/obstack.h (__obstack_free): New macro. Declare instead of
17908         obstack_free.
17909         (obstack_free): Invoke the __obstack_free macro.
17910         * lib/obstack.c (obstack_free): Use __obstack_free macro.
17911
17912 2006-10-23  Bruno Haible  <bruno@clisp.org>
17913             Paul Eggert  <eggert@cs.ucla.edu>
17914
17915         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
17916         __argc, __argv from the declaration. (They are defined as macros on
17917         mingw.)
17918
17919 2006-10-22  Bruno Haible  <bruno@clisp.org>
17920
17921         * doc/gnulib-intro.texi: New file.
17922         * doc/gnulib.texi: Include it.
17923
17924 2006-10-21  Bruno Haible  <bruno@clisp.org>
17925
17926         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
17927         "Introduction", "Miscellanous Notes", "Particular Modules".
17928
17929 2006-10-21  Bruno Haible  <bruno@clisp.org>
17930
17931         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17932         Change mostlyclean-local rule to avoid sh syntax error from bash
17933         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
17934
17935 2006-10-23  Jim Meyering  <jim@meyering.net>
17936
17937         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
17938         in place of snprintf.
17939
17940         * modules/inttostr (Files): Add lib/uinttostr.c.
17941         * lib/uinttostr.c (inttostr): New file/function.
17942         * lib/inttostr.h (uinttostr): Declare.
17943         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
17944         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
17945         Add uinttostr.
17946         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
17947
17948 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17949
17950         * lib/canonicalize.c (ELOOP): Define if not already defined.
17951         Problem reported by Bruno Haible in
17952         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
17953
17954 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17955
17956         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
17957         Problem reported by Perry Smith and Ville Laurikari.
17958
17959         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
17960         uses.
17961
17962 2006-10-19  Bruno Haible  <bruno@clisp.org>
17963
17964         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
17965         for mingw.
17966
17967 2006-10-19  Bruno Haible  <bruno@clisp.org>
17968
17969         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
17970         Needed for mingw.
17971
17972 2006-10-19  Bruno Haible  <bruno@clisp.org>
17973
17974         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
17975
17976 2006-10-19  Bruno Haible  <bruno@clisp.org>
17977
17978         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
17979         it.
17980
17981 2006-10-19  Bruno Haible  <bruno@clisp.org>
17982
17983         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
17984         invocation.
17985
17986 2006-10-19  Bruno Haible  <bruno@clisp.org>
17987
17988         * gnulib-tool (func_create_testdir): Don't include ftruncate and
17989         mountlist by default.
17990
17991 2006-10-16  Bruno Haible  <bruno@clisp.org>
17992
17993         * lib/c-strstr.c: Include c-strstr.h.
17994
17995 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
17996
17997         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
17998         in a slash.
17999
18000 2006-10-18  Bruno Haible  <bruno@clisp.org>
18001
18002         * lib/lock.h [C++]: Wrap definitions in extern "C".
18003
18004 2006-10-18  Bruno Haible  <bruno@clisp.org>
18005
18006         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
18007         gl_LIBOBJS list.
18008
18009 2006-10-18  Bruno Haible  <bruno@clisp.org>
18010
18011         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
18012
18013 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
18014
18015         * lib/xstrtol.h: Include gettext.h.
18016         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
18017         Problem reported by Eric Blake.
18018         * modules/xstrtol (Depends-on): Add gettext-h.
18019
18020 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
18021
18022         * lib/strftime.c (advance): New macro.
18023         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
18024         incomplete type, so you can't add 0 to it.  Problem and patch
18025         reported by Eelco Dolstra for dietlibc.
18026
18027 2006-10-18  Jim Meyering  <jim@meyering.net>
18028
18029         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
18030         type for a local, and rename it: s/up/user_proc/.
18031
18032 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
18033
18034         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
18035         READ_UTMP_USER_PROCESS.
18036         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
18037
18038 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
18039
18040         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
18041         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
18042
18043 2006-10-17  Eric Blake  <ebb9@byu.net>
18044
18045         * lib/sigprocmask.c (sigprocmask): Fix typo.
18046
18047         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
18048
18049         * modules/clean-temp (Makefile.am): Don't add to make output...
18050         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
18051         config.h.
18052
18053 2006-10-17  Bruno Haible  <bruno@clisp.org>
18054
18055         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
18056         differently if DEFAULT_TEXT_DOMAIN is set.
18057
18058 2006-10-16  Bruno Haible  <bruno@clisp.org>
18059
18060         * lib/clean-temp.c: Include fwriteerror.h.
18061
18062 2006-10-16  Bruno Haible  <bruno@clisp.org>
18063
18064         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
18065
18066 2006-10-16  Bruno Haible  <bruno@clisp.org>
18067
18068         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
18069         * lib/sigprocmask.h: Include <sys/types.h>.
18070         (sigset_t): Use the system's definition if present.
18071
18072 2006-10-17  Eric Blake  <ebb9@byu.net>
18073
18074         * lib/xvasprintf.c (includes): Assume config.h.
18075         * lib/xasprintf.c (includes): Likewise.
18076
18077 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18078
18079         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
18080         at least as wide as intmax_t.
18081
18082 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
18083
18084         (Imported from Automake.)
18085         * build-aux/gnupload: Update to version 1.1 of directive file.
18086
18087 2006-10-16  Eric Blake  <ebb9@byu.net>
18088
18089         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
18090         match Automake 1.10a.
18091
18092 2006-10-14  Bruno Haible  <bruno@clisp.org>
18093
18094         * modules/sigprocmask: New file.
18095         * lib/sigprocmask.h: New file.
18096         * lib/sigprocmask.c: New file.
18097         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
18098         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
18099         request sigprocmask.o.
18100         (gl_PREREQ_SIGPROCMASK): New macro.
18101         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
18102         (Depends-on): Add sigprocmask.
18103         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
18104         gt_SIGNALBLOCKING. Test for 'raise' only once.
18105         * lib/fatal-signal.c: Include sigprocmask.h.
18106         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
18107         unblock_fatal_signals): Define always.
18108         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18109         sigprocmask.
18110
18111 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18112
18113         Sync from Automake.
18114         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
18115         which incorrectly sets the mode of an existing destination
18116         directory.  In some cases the unpatched install-sh could do the
18117         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
18118         system.  We hope this is rare in practice, but it's clearly worth
18119         fixing.  Problem reported by Alex Unleashed in
18120         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
18121         Also, don't bother to check for -m bugs unless we're using -m;
18122         suggested by Stepan Kasal.
18123
18124 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18125
18126         Sync from Automake.
18127         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
18128         `-c' flag, so they appear at the same position as in %FASTDEP%
18129         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
18130         which ignores unknown options only after the first non-option.
18131         Bug report against M4 by Nelson H. F. Beebe.
18132
18133 2006-10-13  Jim Meyering  <jim@meyering.net>
18134
18135         Fix a bug in yesterday's change.
18136         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
18137         p->fts_statp->st_dev would be used uninitialized.
18138         Ensures that we always call fts_stat on the very first entry.
18139         Miklos Szeredi reported that find -xdev stopped working.
18140
18141 2006-10-12  Bruno Haible  <bruno@clisp.org>
18142
18143         * gnulib-tool (func_get_automake_snippet): Append an automatically
18144         computed EXTRA_DIST augmentation.
18145         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
18146         * modules/alloca-opt (Makefile.am): Likewise.
18147         * modules/allocsa (Makefile.am): Likewise.
18148         * modules/arcfour (Makefile.am): Likewise.
18149         * modules/arctwo (Makefile.am): Likewise.
18150         * modules/argmatch (Makefile.am): Likewise.
18151         * modules/argz (Makefile.am): Likewise.
18152         * modules/atexit (Makefile.am): Likewise.
18153         * modules/backupfile (Makefile.am): Likewise.
18154         * modules/byteswap (Makefile.am): Likewise.
18155         * modules/c-strtod (Makefile.am): Likewise.
18156         * modules/c-strtold (Makefile.am): Likewise.
18157         * modules/calloc (Makefile.am): Likewise.
18158         * modules/canon-host (Makefile.am): Likewise.
18159         * modules/canonicalize (Makefile.am): Likewise.
18160         * modules/chdir-long (Makefile.am): Likewise.
18161         * modules/chdir-safer (Makefile.am): Likewise.
18162         * modules/check-version (Makefile.am): Likewise.
18163         * modules/chown (Makefile.am): Likewise.
18164         * modules/cloexec (Makefile.am): Likewise.
18165         * modules/close-stream (Makefile.am): Likewise.
18166         * modules/closeout (Makefile.am): Likewise.
18167         * modules/crc (Makefile.am): Likewise.
18168         * modules/csharpexec (Makefile.am): Likewise.
18169         * modules/cycle-check (Makefile.am): Likewise.
18170         * modules/des (Makefile.am): Likewise.
18171         * modules/dev-ino (Makefile.am): Likewise.
18172         * modules/dirfd (Makefile.am): Likewise.
18173         * modules/dirname (Makefile.am): Likewise.
18174         * modules/dup2 (Makefile.am): Likewise.
18175         * modules/eealloc (Makefile.am): Likewise.
18176         * modules/error (Makefile.am): Likewise.
18177         * modules/euidaccess (Makefile.am): Likewise.
18178         * modules/exclude (Makefile.am): Likewise.
18179         * modules/exitfail (Makefile.am): Likewise.
18180         * modules/fcntl-safer (Makefile.am): Likewise.
18181         * modules/fcntl (Makefile.am): Likewise.
18182         * modules/file-type (Makefile.am): Likewise.
18183         * modules/fileblocks (Makefile.am): Likewise.
18184         * modules/filemode (Makefile.am): Likewise.
18185         * modules/filenamecat (Makefile.am): Likewise.
18186         * modules/fnmatch (Makefile.am): Likewise.
18187         * modules/fopen-safer (Makefile.am): Likewise.
18188         * modules/fpending (Makefile.am): Likewise.
18189         * modules/fprintftime (Makefile.am): Likewise.
18190         * modules/free (Makefile.am): Likewise.
18191         * modules/fsusage (Makefile.am): Likewise.
18192         * modules/ftruncate (Makefile.am): Likewise.
18193         * modules/fts (Makefile.am): Likewise.
18194         * modules/gc-arcfour (Makefile.am): Likewise.
18195         * modules/gc-des (Makefile.am): Likewise.
18196         * modules/gc-hmac-md5 (Makefile.am): Likewise.
18197         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
18198         * modules/gc-md4 (Makefile.am): Likewise.
18199         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
18200         * modules/gc-sha1 (Makefile.am): Likewise.
18201         * modules/gc (Makefile.am): Likewise.
18202         * modules/getaddrinfo (Makefile.am): Likewise.
18203         * modules/getcwd (Makefile.am): Likewise.
18204         * modules/getdelim (Makefile.am): Likewise.
18205         * modules/getdomainname (Makefile.am): Likewise.
18206         * modules/getgroups (Makefile.am): Likewise.
18207         * modules/gethostname (Makefile.am): Likewise.
18208         * modules/gethrxtime (Makefile.am): Likewise.
18209         * modules/getline (Makefile.am): Likewise.
18210         * modules/getloadavg (Makefile.am): Likewise.
18211         * modules/getlogin_r (Makefile.am): Likewise.
18212         * modules/getndelim2 (Makefile.am): Likewise.
18213         * modules/getopt (Makefile.am): Likewise.
18214         * modules/getpagesize (Makefile.am): Likewise.
18215         * modules/getpass-gnu (Makefile.am): Likewise.
18216         * modules/getpass (Makefile.am): Likewise.
18217         * modules/getsubopt (Makefile.am): Likewise.
18218         * modules/gettime (Makefile.am): Likewise.
18219         * modules/gettimeofday (Makefile.am): Likewise.
18220         * modules/getugroups (Makefile.am): Likewise.
18221         * modules/getusershell (Makefile.am): Likewise.
18222         * modules/glob (Makefile.am): Likewise.
18223         * modules/group-member (Makefile.am): Likewise.
18224         * modules/hard-locale (Makefile.am): Likewise.
18225         * modules/hash (Makefile.am): Likewise.
18226         * modules/hmac-md5 (Makefile.am): Likewise.
18227         * modules/hmac-sha1 (Makefile.am): Likewise.
18228         * modules/human (Makefile.am): Likewise.
18229         * modules/idcache (Makefile.am): Likewise.
18230         * modules/imaxabs (Makefile.am): Likewise.
18231         * modules/imaxdiv (Makefile.am): Likewise.
18232         * modules/inet_ntop (Makefile.am): Likewise.
18233         * modules/inet_pton (Makefile.am): Likewise.
18234         * modules/intprops (Makefile.am): Likewise.
18235         * modules/inttostr (Makefile.am): Likewise.
18236         * modules/inttypes (Makefile.am): Likewise.
18237         * modules/isapipe (Makefile.am): Likewise.
18238         * modules/javaversion (Makefile.am): Likewise.
18239         * modules/lchmod (Makefile.am): Likewise.
18240         * modules/lchown (Makefile.am): Likewise.
18241         * modules/localcharset (Makefile.am): Likewise.
18242         * modules/long-options (Makefile.am): Likewise.
18243         * modules/lstat (Makefile.am): Likewise.
18244         * modules/malloc (Makefile.am): Likewise.
18245         * modules/mathl (Makefile.am): Likewise.
18246         * modules/mbchar (Makefile.am): Likewise.
18247         * modules/md2 (Makefile.am): Likewise.
18248         * modules/md4 (Makefile.am): Likewise.
18249         * modules/md5 (Makefile.am): Likewise.
18250         * modules/memcasecmp (Makefile.am): Likewise.
18251         * modules/memchr (Makefile.am): Likewise.
18252         * modules/memcmp (Makefile.am): Likewise.
18253         * modules/memcoll (Makefile.am): Likewise.
18254         * modules/memcpy (Makefile.am): Likewise.
18255         * modules/memmem (Makefile.am): Likewise.
18256         * modules/memmove (Makefile.am): Likewise.
18257         * modules/mempcpy (Makefile.am): Likewise.
18258         * modules/memrchr (Makefile.am): Likewise.
18259         * modules/memset (Makefile.am): Likewise.
18260         * modules/memxor (Makefile.am): Likewise.
18261         * modules/mkancesdirs (Makefile.am): Likewise.
18262         * modules/mkdir-p (Makefile.am): Likewise.
18263         * modules/mkdir (Makefile.am): Likewise.
18264         * modules/mkdtemp (Makefile.am): Likewise.
18265         * modules/mkstemp (Makefile.am): Likewise.
18266         * modules/mktime (Makefile.am): Likewise.
18267         * modules/modechange (Makefile.am): Likewise.
18268         * modules/mountlist (Makefile.am): Likewise.
18269         * modules/nanosleep (Makefile.am): Likewise.
18270         * modules/obstack (Makefile.am): Likewise.
18271         * modules/openat (Makefile.am): Likewise.
18272         * modules/pagealign_alloc (Makefile.am): Likewise.
18273         * modules/pathmax (Makefile.am): Likewise.
18274         * modules/physmem (Makefile.am): Likewise.
18275         * modules/poll (Makefile.am): Likewise.
18276         * modules/posixtm (Makefile.am): Likewise.
18277         * modules/posixver (Makefile.am): Likewise.
18278         * modules/putenv (Makefile.am): Likewise.
18279         * modules/quote (Makefile.am): Likewise.
18280         * modules/quotearg (Makefile.am): Likewise.
18281         * modules/raise (Makefile.am): Likewise.
18282         * modules/read-file (Makefile.am): Likewise.
18283         * modules/readline (Makefile.am): Likewise.
18284         * modules/readlink (Makefile.am): Likewise.
18285         * modules/readtokens (Makefile.am): Likewise.
18286         * modules/readutmp (Makefile.am): Likewise.
18287         * modules/realloc (Makefile.am): Likewise.
18288         * modules/regex (Makefile.am): Likewise.
18289         * modules/rename-dest-slash (Makefile.am): Likewise.
18290         * modules/rename (Makefile.am): Likewise.
18291         * modules/rijndael (Makefile.am): Likewise.
18292         * modules/rmdir (Makefile.am): Likewise.
18293         * modules/rpmatch (Makefile.am): Likewise.
18294         * modules/safe-read (Makefile.am): Likewise.
18295         * modules/safe-write (Makefile.am): Likewise.
18296         * modules/same-inode (Makefile.am): Likewise.
18297         * modules/same (Makefile.am): Likewise.
18298         * modules/save-cwd (Makefile.am): Likewise.
18299         * modules/savedir (Makefile.am): Likewise.
18300         * modules/setenv (Makefile.am): Likewise.
18301         * modules/settime (Makefile.am): Likewise.
18302         * modules/sha1 (Makefile.am): Likewise.
18303         * modules/sig2str (Makefile.am): Likewise.
18304         * modules/snprintf (Makefile.am): Likewise.
18305         * modules/stat-macros (Makefile.am): Likewise.
18306         * modules/stat-time (Makefile.am): Likewise.
18307         * modules/stdbool (Makefile.am): Likewise.
18308         * modules/stdint (Makefile.am): Likewise.
18309         * modules/stdlib-safer (Makefile.am): Likewise.
18310         * modules/stpcpy (Makefile.am): Likewise.
18311         * modules/stpncpy (Makefile.am): Likewise.
18312         * modules/strcase (Makefile.am): Likewise.
18313         * modules/strcasestr (Makefile.am): Likewise.
18314         * modules/strchrnul (Makefile.am): Likewise.
18315         * modules/strcspn (Makefile.am): Likewise.
18316         * modules/strdup (Makefile.am): Likewise.
18317         * modules/strerror (Makefile.am): Likewise.
18318         * modules/strftime (Makefile.am): Likewise.
18319         * modules/strndup (Makefile.am): Likewise.
18320         * modules/strnlen (Makefile.am): Likewise.
18321         * modules/strpbrk (Makefile.am): Likewise.
18322         * modules/strsep (Makefile.am): Likewise.
18323         * modules/strstr (Makefile.am): Likewise.
18324         * modules/strtod (Makefile.am): Likewise.
18325         * modules/strtoimax (Makefile.am): Likewise.
18326         * modules/strtok_r (Makefile.am): Likewise.
18327         * modules/strtol (Makefile.am): Likewise.
18328         * modules/strtoll (Makefile.am): Likewise.
18329         * modules/strtoul (Makefile.am): Likewise.
18330         * modules/strtoull (Makefile.am): Likewise.
18331         * modules/strtoumax (Makefile.am): Likewise.
18332         * modules/strverscmp (Makefile.am): Likewise.
18333         * modules/sys_socket (Makefile.am): Likewise.
18334         * modules/sys_stat (Makefile.am): Likewise.
18335         * modules/sysexits (Makefile.am): Likewise.
18336         * modules/time_r (Makefile.am): Likewise.
18337         * modules/timegm (Makefile.am): Likewise.
18338         * modules/timespec (Makefile.am): Likewise.
18339         * modules/tmpfile-safer (Makefile.am): Likewise.
18340         * modules/trim (Makefile.am): Likewise.
18341         * modules/unistd-safer (Makefile.am): Likewise.
18342         * modules/unlinkdir (Makefile.am): Likewise.
18343         * modules/unlocked-io (Makefile.am): Likewise.
18344         * modules/userspec (Makefile.am): Likewise.
18345         * modules/utime (Makefile.am): Likewise.
18346         * modules/utimecmp (Makefile.am): Likewise.
18347         * modules/utimens (Makefile.am): Likewise.
18348         * modules/vasnprintf (Makefile.am): Likewise.
18349         * modules/vasprintf (Makefile.am): Likewise.
18350         * modules/vsnprintf (Makefile.am): Likewise.
18351         * modules/xalloc (Makefile.am): Likewise.
18352         * modules/xgetcwd (Makefile.am): Likewise.
18353         * modules/xnanosleep (Makefile.am): Likewise.
18354         * modules/xreadlink (Makefile.am): Likewise.
18355         * modules/xstrtod (Makefile.am): Likewise.
18356         * modules/xstrtol (Makefile.am): Likewise.
18357         * modules/xstrtold (Makefile.am): Likewise.
18358         * modules/yesno (Makefile.am): Likewise.
18359         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
18360
18361 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18362
18363         * modules/error (Makefile.am): Distribute files through
18364         EXTRA_DIST, not lib_SOURCES.
18365
18366 2006-10-12  Eric Blake  <ebb9@byu.net>
18367
18368         * modules/error (Makefile.am): Distribute files in /lib.
18369         * modules/obstack (Makefile.am): Likewise.
18370
18371 2006-10-12  Bruno Haible  <bruno@clisp.org>
18372
18373         * modules/acl (Makefile.am): Distribute all files in lib/ through
18374         EXTRA_DIST.
18375         * modules/arcfour (Makefile.am): Likewise.
18376         * modules/arctwo (Makefile.am): Likewise.
18377         * modules/argmatch (Makefile.am): Likewise.
18378         * modules/argz (Makefile.am): Likewise.
18379         * modules/atexit (Makefile.am): Likewise.
18380         * modules/backupfile (Makefile.am): Likewise.
18381         * modules/c-strtod (Makefile.am): Likewise.
18382         * modules/c-strtold (Makefile.am): Likewise.
18383         * modules/calloc (Makefile.am): Likewise.
18384         * modules/canon-host (Makefile.am): Likewise.
18385         * modules/canonicalize (Makefile.am): Likewise.
18386         * modules/chdir-long (Makefile.am): Likewise.
18387         * modules/chdir-safer (Makefile.am): Likewise.
18388         * modules/check-version (Makefile.am): Likewise.
18389         * modules/chown (Makefile.am): Likewise.
18390         * modules/cloexec (Makefile.am): Likewise.
18391         * modules/close-stream (Makefile.am): Likewise.
18392         * modules/closeout (Makefile.am): Likewise.
18393         * modules/crc (Makefile.am): Likewise.
18394         * modules/cycle-check (Makefile.am): Likewise.
18395         * modules/des (Makefile.am): Likewise.
18396         * modules/dirfd (Makefile.am): Likewise.
18397         * modules/dirname (Makefile.am): Likewise.
18398         * modules/dup2 (Makefile.am): Likewise.
18399         * modules/euidaccess (Makefile.am): Likewise.
18400         * modules/exclude (Makefile.am): Likewise.
18401         * modules/exitfail (Makefile.am): Likewise.
18402         * modules/fcntl-safer (Makefile.am): Likewise.
18403         * modules/file-type (Makefile.am): Likewise.
18404         * modules/fileblocks (Makefile.am): Likewise.
18405         * modules/filemode (Makefile.am): Likewise.
18406         * modules/filenamecat (Makefile.am): Likewise.
18407         * modules/fnmatch (Makefile.am): Likewise.
18408         * modules/fopen-safer (Makefile.am): Likewise.
18409         * modules/fpending (Makefile.am): Likewise.
18410         * modules/fprintftime (Makefile.am): Likewise.
18411         * modules/free (Makefile.am): Likewise.
18412         * modules/fsusage (Makefile.am): Likewise.
18413         * modules/ftruncate (Makefile.am): Likewise.
18414         * modules/fts (Makefile.am): Likewise.
18415         * modules/gc (Makefile.am): Likewise.
18416         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
18417         * modules/getaddrinfo (Makefile.am): Likewise.
18418         * modules/getcwd (Makefile.am): Likewise.
18419         * modules/getdelim (Makefile.am): Likewise.
18420         * modules/getdomainname (Makefile.am): Likewise.
18421         * modules/getgroups (Makefile.am): Likewise.
18422         * modules/gethostname (Makefile.am): Likewise.
18423         * modules/gethrxtime (Makefile.am): Likewise.
18424         * modules/getline (Makefile.am): Likewise.
18425         * modules/getloadavg (Makefile.am): Likewise.
18426         * modules/getlogin_r (Makefile.am): Likewise.
18427         * modules/getopt (Makefile.am): Likewise.
18428         * modules/getpass (Makefile.am): Likewise.
18429         * modules/getpass-gnu (Makefile.am): Likewise.
18430         * modules/getsubopt (Makefile.am): Likewise.
18431         * modules/gettime (Makefile.am): Likewise.
18432         * modules/gettimeofday (Makefile.am): Likewise.
18433         * modules/getugroups (Makefile.am): Likewise.
18434         * modules/getusershell (Makefile.am): Likewise.
18435         * modules/glob (Makefile.am): Likewise.
18436         * modules/group-member (Makefile.am): Likewise.
18437         * modules/hard-locale (Makefile.am): Likewise.
18438         * modules/hash (Makefile.am): Likewise.
18439         * modules/hmac-md5 (Makefile.am): Likewise.
18440         * modules/hmac-sha1 (Makefile.am): Likewise.
18441         * modules/human (Makefile.am): Likewise.
18442         * modules/idcache (Makefile.am): Likewise.
18443         * modules/imaxabs (Makefile.am): Likewise.
18444         * modules/imaxdiv (Makefile.am): Likewise.
18445         * modules/inet_ntop (Makefile.am): Likewise.
18446         * modules/inet_pton (Makefile.am): Likewise.
18447         * modules/inttostr (Makefile.am): Likewise.
18448         * modules/isapipe (Makefile.am): Likewise.
18449         * modules/lchown (Makefile.am): Likewise.
18450         * modules/long-options (Makefile.am): Likewise.
18451         * modules/lstat (Makefile.am): Likewise.
18452         * modules/malloc (Makefile.am): Likewise.
18453         * modules/mathl (Makefile.am): Likewise.
18454         * modules/mbchar (Makefile.am): Likewise.
18455         * modules/md2 (Makefile.am): Likewise.
18456         * modules/md4 (Makefile.am): Likewise.
18457         * modules/md5 (Makefile.am): Likewise.
18458         * modules/memcasecmp (Makefile.am): Likewise.
18459         * modules/memchr (Makefile.am): Likewise.
18460         * modules/memcmp (Makefile.am): Likewise.
18461         * modules/memcoll (Makefile.am): Likewise.
18462         * modules/memcpy (Makefile.am): Likewise.
18463         * modules/memmem (Makefile.am): Likewise.
18464         * modules/memmove (Makefile.am): Likewise.
18465         * modules/mempcpy (Makefile.am): Likewise.
18466         * modules/memrchr (Makefile.am): Likewise.
18467         * modules/memset (Makefile.am): Likewise.
18468         * modules/memxor (Makefile.am): Likewise.
18469         * modules/mkancesdirs (Makefile.am): Likewise.
18470         * modules/mkdir (Makefile.am): Likewise.
18471         * modules/mkdir-p (Makefile.am): Likewise.
18472         * modules/mkdtemp (Makefile.am): Likewise.
18473         * modules/mkstemp (Makefile.am): Likewise.
18474         * modules/mktime (Makefile.am): Likewise.
18475         * modules/modechange (Makefile.am): Likewise.
18476         * modules/mountlist (Makefile.am): Likewise.
18477         * modules/nanosleep (Makefile.am): Likewise.
18478         * modules/openat (Makefile.am): Likewise.
18479         * modules/pagealign_alloc (Makefile.am): Likewise.
18480         * modules/physmem (Makefile.am): Likewise.
18481         * modules/poll (Makefile.am): Likewise.
18482         * modules/posixtm (Makefile.am): Likewise.
18483         * modules/posixver (Makefile.am): Likewise.
18484         * modules/putenv (Makefile.am): Likewise.
18485         * modules/quote (Makefile.am): Likewise.
18486         * modules/quotearg (Makefile.am): Likewise.
18487         * modules/raise (Makefile.am): Likewise.
18488         * modules/read-file (Makefile.am): Likewise.
18489         * modules/readline (Makefile.am): Likewise.
18490         * modules/readlink (Makefile.am): Likewise.
18491         * modules/readtokens (Makefile.am): Likewise.
18492         * modules/readutmp (Makefile.am): Likewise.
18493         * modules/realloc (Makefile.am): Likewise.
18494         * modules/regex (Makefile.am): Likewise.
18495         * modules/rename (Makefile.am): Likewise.
18496         * modules/rename-dest-slash (Makefile.am): Likewise.
18497         * modules/rijndael (Makefile.am): Likewise.
18498         * modules/rmdir (Makefile.am): Likewise.
18499         * modules/rpmatch (Makefile.am): Likewise.
18500         * modules/safe-read (Makefile.am): Likewise.
18501         * modules/safe-write (Makefile.am): Likewise.
18502         * modules/same (Makefile.am): Likewise.
18503         * modules/save-cwd (Makefile.am): Likewise.
18504         * modules/savedir (Makefile.am): Likewise.
18505         * modules/setenv (Makefile.am): Likewise.
18506         * modules/settime (Makefile.am): Likewise.
18507         * modules/sha1 (Makefile.am): Likewise.
18508         * modules/sig2str (Makefile.am): Likewise.
18509         * modules/snprintf (Makefile.am): Likewise.
18510         * modules/stdlib-safer (Makefile.am): Likewise.
18511         * modules/stpcpy (Makefile.am): Likewise.
18512         * modules/stpncpy (Makefile.am): Likewise.
18513         * modules/strcase (Makefile.am): Likewise.
18514         * modules/strcasestr (Makefile.am): Likewise.
18515         * modules/strchrnul (Makefile.am): Likewise.
18516         * modules/strcspn (Makefile.am): Likewise.
18517         * modules/strdup (Makefile.am): Likewise.
18518         * modules/strerror (Makefile.am): Likewise.
18519         * modules/strftime (Makefile.am): Likewise.
18520         * modules/strndup (Makefile.am): Likewise.
18521         * modules/strnlen (Makefile.am): Likewise.
18522         * modules/strpbrk (Makefile.am): Likewise.
18523         * modules/strsep (Makefile.am): Likewise.
18524         * modules/strstr (Makefile.am): Likewise.
18525         * modules/strtod (Makefile.am): Likewise.
18526         * modules/strtoimax (Makefile.am): Likewise.
18527         * modules/strtok_r (Makefile.am): Likewise.
18528         * modules/strtol (Makefile.am): Likewise.
18529         * modules/strtoll (Makefile.am): Likewise.
18530         * modules/strtoul (Makefile.am): Likewise.
18531         * modules/strtoull (Makefile.am): Likewise.
18532         * modules/strtoumax (Makefile.am): Likewise.
18533         * modules/strverscmp (Makefile.am): Likewise.
18534         * modules/time_r (Makefile.am): Likewise.
18535         * modules/timegm (Makefile.am): Likewise.
18536         * modules/tmpfile-safer (Makefile.am): Likewise.
18537         * modules/unistd-safer (Makefile.am): Likewise.
18538         * modules/unlinkdir (Makefile.am): Likewise.
18539         * modules/userspec (Makefile.am): Likewise.
18540         * modules/utime (Makefile.am): Likewise.
18541         * modules/utimecmp (Makefile.am): Likewise.
18542         * modules/utimens (Makefile.am): Likewise.
18543         * modules/vasnprintf (Makefile.am): Likewise.
18544         * modules/vasprintf (Makefile.am): Likewise.
18545         * modules/vsnprintf (Makefile.am): Likewise.
18546         * modules/xalloc (Makefile.am): Likewise.
18547         * modules/xgetcwd (Makefile.am): Likewise.
18548         * modules/xnanosleep (Makefile.am): Likewise.
18549         * modules/xreadlink (Makefile.am): Likewise.
18550         * modules/xstrtod (Makefile.am): Likewise.
18551         * modules/xstrtol (Makefile.am): Likewise.
18552         * modules/xstrtold (Makefile.am): Likewise.
18553         * modules/yesno (Makefile.am): Likewise.
18554
18555 2006-10-12  Jim Meyering  <jim@meyering.net>
18556
18557         * m4/getloadavg.m4: Revert the change below.
18558
18559         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
18560         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
18561         fail with a symlink, which is what coreutils' ./bootstrap now
18562         creates by default.
18563
18564 2006-10-12  Bruno Haible  <bruno@clisp.org>
18565
18566         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
18567         mingw.
18568         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
18569         MSVC and mingw explicitly.
18570
18571 2006-10-11  Simon Josefsson  <jas@extundo.com>
18572             Bruno Haible  <bruno@clisp.org>
18573
18574         Add support for multiple gnulib-tool invocations in the scope of a
18575         single configure.ac file.
18576         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
18577         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
18578         with the same contents as the _LIBADD variable.
18579         (func_emit_initmacro_start, func_emit_initmacro_end,
18580         func_emit_initmacro_done): New functions.
18581         (func_import, func_create_testdir): Invoke them. Allow the identifiers
18582         gl_LIBOBJS and gl_LTLIBOBJS.
18583
18584 2006-10-11  Bruno Haible  <bruno@clisp.org>
18585
18586         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
18587         (func_create_testdir): Don't create po/Makefile.am, don't invoke
18588         autoreconf. Instead, invoke autopoint explicitly but move back the
18589         *.m4 files from gnulib.
18590
18591 2006-10-11  Bruno Haible  <bruno@clisp.org>
18592
18593         * gnulib-tool (func_usage): Make module names after --create-testdir
18594         optional.
18595         (func_create_testdir): If no module was specified, use nearly all
18596         modules.
18597
18598 2006-10-12  Jim Meyering  <jim@meyering.net>
18599
18600         Big performance improvement for fts-based tools that use FTS_NOSTAT.
18601         Avoid spurious inode-mismatch problems on non-POSIX file systems.
18602         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
18603         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
18604         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
18605         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
18606         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
18607         (fts_set_stat_required): New function.
18608         (fts_open): Defer the calls to fts_stat, if possible or requested.
18609         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
18610         into fts_stat itself.
18611         (fts_read): Perform any required (deferred) fts_stat call.
18612         (fts_build): Likewise, for the directory we're about to open and read.
18613         In the readdir loop, carefully decide whether each entry will require
18614         an eventual call to fts_stat, using dirent.d_type info if available.
18615         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
18616         a command line argument into this function.  Update all callers.
18617         Map a return value of FTS_DOT to FTS_D for a command line argument.
18618         * modules/fts (Depends-on): Add d-type.  Alphabetize.
18619         Thanks to Miklos Szeredi for his tenacity and for the initial
18620         bug report about "find" failing on a FUSE-based file system.
18621
18622         * lib/fts.c (fts_open): Use consistent indentation.
18623
18624 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18625
18626         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
18627         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
18628         reported by Jim Meyering.  All uses of cache variables renamed
18629         to match Autoconf's.
18630         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
18631         the other one.
18632
18633         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18634         Fix misspelling in diagnostic.
18635
18636 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18637
18638         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
18639         defined.  Problem reported by Matthew Woehlke.
18640
18641         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
18642         Add support for Tandem NonStop R series.
18643         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
18644         Use new macro.
18645
18646         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
18647         (has_trailing_slash): Omit size arg; all callers changed.
18648         Omit 'inline', since it doesn't help performance and we'd
18649         need to configure it.
18650         Don't count //, ///, etc. as having a trailing slash.
18651         As a side effect, this removes a C99ism reported by Matthew Woehlke.
18652         (rpl_rename_dest_slash): On failure, use rename's errno rather
18653         than (in some cases) an incorrect or junk errno.
18654         Simplify code by removing need to compute length; this does
18655         cause it to make two passes instead of one over the file name,
18656         but it's worth it.
18657
18658         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
18659         change, since Autoconf's version may no longer be appropriate now
18660         that we are using CVS Autoconf's version.  Add support for Tandem.
18661
18662 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18663             Bruno Haible  <bruno@clisp.org>
18664
18665         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
18666         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
18667         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
18668         gl_AC_TYPE_LONG_LONG.
18669
18670         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
18671         instead of HAVE_LONG_LONG.
18672         * lib/printf-args.c (printf_fetchargs): Likewise.
18673         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18674         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18675         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
18676         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
18677         gl_AC_TYPE_LONG_LONG.
18678
18679 2006-10-11  Bruno Haible  <bruno@clisp.org>
18680
18681         * m4/longlong.m4: Add comments.
18682         * m4/ulonglong.m4: Likewise.
18683
18684 2006-10-10  Bruno Haible  <bruno@clisp.org>
18685
18686         Make it possible to #define stpcpy, strdup to aliases.
18687         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
18688         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
18689
18690 2006-10-10  Bruno Haible  <bruno@clisp.org>
18691
18692         Make it possible to #define gcd to an alias.
18693         * lib/gcd.c: Include config.h.
18694
18695 2006-10-10  Bruno Haible  <bruno@clisp.org>
18696
18697         Make it possible to #define c_isascii to an alias.
18698         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
18699         defined. Undefine the macros before defining them, to avoid gcc
18700         warnings.
18701         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
18702         define NO_C_CTYPE_MACROS early.
18703
18704 2006-10-10  Bruno Haible  <bruno@clisp.org>
18705
18706         Make it possible to #define set_program_name to an alias.
18707         * lib/progname.c: Don't undefine set_program_name; instead, undefine
18708         ENABLE_RELOCATABLE early.
18709
18710 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18711
18712         Port to Tandem NSK OSS, which has 64-bit signed int but at most
18713         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
18714         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
18715         More generally, don't assume that 64-bit signed int is available
18716         if unsigned int is, and vice versa.
18717         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
18718         unsigned symbols, not on their signed counterparts.
18719         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
18720         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
18721         (UINT64_C, UINTMAX_C):
18722         Likewise.
18723         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
18724         unsigned counterparts.
18725         (Have_long_long, Unsigned): New macros.
18726         (Int): Renamed from INT.
18727         (strtoimax): Use the new macros.
18728         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
18729         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
18730         * modules/inttypes (inttypes.h): Substitute
18731         HAVE_UNSIGNED_LONG_LONG_INT.
18732         * modules/stdint (stdint.h): Likewise.
18733         (Files): Add m4/ulonglong.m4.
18734
18735 2006-10-10  Bruno Haible  <bruno@clisp.org>
18736
18737         Fix a gcc -Wshadow warning.
18738         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
18739         to 'bucket'.
18740         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
18741         gl_linked_indexof_from_to): Likewise.
18742         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
18743         Likewise.
18744         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
18745         Likewise.
18746         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
18747         Reported by Eric Blake.
18748
18749 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
18750
18751         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
18752         for NetBSD.  Problem reported by Bruno Haible.
18753
18754 2006-10-09  Jim Meyering  <jim@meyering.net>
18755
18756         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
18757         Patch from Bruno Haible.
18758
18759 2006-10-09  Jim Meyering  <jim@meyering.net>
18760
18761         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
18762         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
18763         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
18764
18765 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18766
18767         Don't include <config.h> twice; this doesn't work in some cases,
18768         e.g., when config.h has "#define intmax_t long long int" and
18769         we include <config.h>, <inttypes.h>, <config.h> in that order.
18770         Problem reported by Matthew Woehlke in:
18771         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
18772         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
18773         * lib/fts-cycle.c: Don't include config.h.
18774         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
18775         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
18776         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
18777         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
18778         inttypes.h.
18779         * lib/xstrtoumax.c: Likewise.
18780         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
18781         __strtol and the like, so that this module is more like its siblings.
18782         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
18783         Remove; no longer needed now that we assume gnulib inttypes.h.
18784
18785 2006-10-08  Bruno Haible  <bruno@clisp.org>
18786
18787         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
18788         option.
18789
18790 2006-10-07  Jim Meyering  <jim@meyering.net>
18791
18792         * modules/inttypes (inttypes.h): Revert what seems to have been
18793         an inadvertent part of today's change: use "|", not "/" in the
18794         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
18795
18796 2006-10-07  Bruno Haible  <bruno@clisp.org>
18797
18798         * modules/sublist: New file.
18799
18800 2006-10-07  Bruno Haible  <bruno@clisp.org>
18801
18802         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
18803         * modules/argz (argz.h): Likewise.
18804         * modules/arpa_inet (arpa/inet.h): Likewise.
18805         * modules/byteswap (byteswap.h): Likewise.
18806         * modules/configmake (configmake.h): Likewise.
18807         * modules/fcntl (fcntl.h): Likewise.
18808         * modules/fnmatch (fnmatch.h): Likewise.
18809         * modules/getopt (getopt.h): Likewise.
18810         * modules/glob (glob.h): Likewise.
18811         * modules/inttypes (inttypes.h): Likewise.
18812         * modules/netinet_in (netinet/in.h): Likewise.
18813         * modules/poll (poll.h): Likewise.
18814         * modules/stdbool (stdbool.h): Likewise.
18815         * modules/stdint (stdint.h): Likewise.
18816         * modules/sys_select (sys/select.h): Likewise.
18817         * modules/sys_socket (sys/socket.h): Likewise.
18818         * modules/sys_stat (sys/stat.h): Likewise.
18819         * modules/sysexits (sysexits.h): Likewise.
18820         * modules/unistd (unistd.h): Likewise.
18821         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18822         Add a "DO NOT EDIT" comment to the generated file.
18823         (func_import): Likewise for gnulib-comp.m4.
18824
18825 2006-10-07  Bruno Haible  <bruno@clisp.org>
18826
18827         * lib/gl_sublist.h: New file.
18828         * lib/gl_sublist.c: New file.
18829
18830 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18831
18832         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
18833         name (relative to the original working directory) and the file
18834         name component (relative to the temporary working directory).  All
18835         callers changed.
18836         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
18837         * lib/mkdir-p.c (make_dir_parents): Likewise.
18838         * lib/mkdir-p.h (make_dir_parents): Likewise.
18839
18840 2006-10-06  Eric Blake  <ebb9@byu.net>
18841
18842         Define several macros for use by the clean-temp module.
18843         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
18844         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
18845         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
18846
18847         * lib/clean-temp.h (close_stream_temp): New declaration.
18848         * lib/clean-temp.c (includes): Pull in headers according to what
18849         other modules are in use.
18850         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
18851
18852 2006-10-06  Bruno Haible  <bruno@clisp.org>
18853
18854         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
18855         instead of fopen, fwriteerror.
18856
18857 2006-10-06  Bruno Haible  <bruno@clisp.org>
18858
18859         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
18860         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
18861         int.
18862         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
18863         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
18864         Return an error indicator.
18865         Suggested by Eric Blake.
18866
18867 2006-10-06  Bruno Haible  <bruno@clisp.org>
18868
18869         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
18870         Reported by Eric Blake.
18871
18872 2006-10-06  Bruno Haible  <bruno@clisp.org>
18873
18874         * modules/closeout (Description): Mention stderr too.
18875
18876 2006-10-06  Bruno Haible  <bruno@clisp.org>
18877         and Paul Eggert  <eggert@cs.ucla.edu>
18878
18879         * lib/closeout.c (close_stdout): Also close stderr.
18880         * lib/closeout.h: Update comment.
18881
18882 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18883
18884         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
18885         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
18886         * lib/dirchownmod.c: Include lchown.h.
18887         * lib/lchown.c: Don't include files that lchown.h now includes.
18888         Don't declare chown, since lchown.h now does that.
18889         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
18890         (lchown): Define to rpl_chown if lchown is declared but
18891         does not exist.  Declare using a prototype if lchown is not
18892         declared.  Add a copyright notice.
18893         * lib/mkstemp.h: Include <unistd.h>.
18894         * lib/openat.c: Include lchown.h.
18895
18896         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
18897         we now test for that separately.
18898         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
18899         rather than O_NOFOLLOW, when testing whether it's possible to
18900         avoid a race condition reliably.
18901         * lib/savewd.c (savewd_chdir): Likewise.
18902
18903         Remove macros that are no longer needed now that stdint.h is
18904         reliable.
18905         * lib/fsusage.c (UINTMAX_MAX): Remove.
18906         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
18907         * lib/utimecmp.c (SIZE_MAX): Remove.
18908
18909         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
18910
18911         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
18912         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
18913         O_NOATIME works.
18914
18915 2006-10-05  Bruno Haible  <bruno@clisp.org>
18916
18917         * lib/gl_list.h (gl_sortedlist_search_from_to,
18918         gl_sortedlist_indexof_from_to): New declarations.
18919         (gl_list_implementation): New fields sortedlist_search_from_to,
18920         sortedlist_indexof_from_to.
18921         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
18922         inline functions.
18923         * lib/gl_list.c (gl_sortedlist_search_from_to,
18924         gl_sortedlist_indexof_from_to): New functions.
18925         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
18926         function.
18927         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
18928         (gl_array_sortedlist_search_from_to): New function.
18929         (gl_array_list_implementation): Update.
18930         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
18931         function.
18932         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
18933         (gl_carray_sortedlist_search_from_to): New function.
18934         (gl_carray_list_implementation): Update.
18935         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
18936         gl_linked_sortedlist_indexof_from_to): New functions.
18937         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18938         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18939         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
18940         gl_tree_sortedlist_indexof_from_to): New functions.
18941         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18942         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18943         Update.
18944         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18945         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
18946         Update.
18947
18948 2006-10-05  Bruno Haible  <bruno@clisp.org>
18949
18950         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
18951         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
18952         (struct gl_list_implementation): Add fields search_from_to,
18953         indexof_from_to. Remove fields search, indexof.
18954         (gl_list_search): Use the search_from_to method.
18955         (gl_list_search_from, gl_list_search_from_to): New functions.
18956         (gl_list_indexof): Use the indexof_from_to method.
18957         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
18958         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
18959         (gl_list_search_from, gl_list_search_from_to): New functions.
18960         (gl_list_indexof): Use the indexof_from_to method.
18961         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
18962         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
18963         gl_array_indexof. Add start_index, end_index arguments.
18964         (gl_array_search_from_to): Renamed from gl_array_search. Add
18965         start_index, end_index arguments.
18966         (gl_array_remove, gl_array_list_implementation): Update.
18967         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
18968         gl_carray_indexof. Add start_index, end_index arguments.
18969         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
18970         start_index, end_index arguments.
18971         (gl_carray_remove, gl_carray_list_implementation): Update.
18972         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
18973         gl_linked_search. Add start_index, end_index arguments.
18974         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
18975         start_index, end_index arguments.
18976         (gl_linked_remove): Update.
18977         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18978         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18979         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
18980         field to 'size_t'.
18981         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
18982         gl_tree_search. Add start_index, end_index arguments.
18983         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
18984         start_index, end_index arguments.
18985         (gl_tree_remove): Update.
18986         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18987         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18988         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
18989         function.
18990         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
18991         gl_tree_search. Add start_index, end_index arguments.
18992         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
18993         start_index, end_index arguments.
18994         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18995         Update.
18996         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
18997
18998 2006-10-05  Bruno Haible  <bruno@clisp.org>
18999
19000         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
19001
19002         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
19003         fwriteerror_temp): New declarations.
19004         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
19005         (descriptors): New variable.
19006         (cleanup): First, close the descriptors.
19007         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
19008         fclose_temp, fwriteerror_temp): New functions.
19009
19010 2006-10-04  Jim Meyering  <jim@meyering.net>
19011
19012         * lib/fts.c (fts_open): Tiny comment change.
19013
19014 2006-10-04  Bruno Haible  <bruno@clisp.org>
19015
19016         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
19017         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
19018         gl_LOCK_BODY.
19019         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
19020         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
19021         gl_LOCK_EARLY_BODY.
19022         (gl_LOCK): Require gl_LOCK_BODY.
19023
19024 2006-10-04  Bruno Haible  <bruno@clisp.org>
19025
19026         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
19027         (gl_oset_search_atleast): New declaration.
19028         (struct gl_oset_implementation): Add field 'search_atleast'.
19029         (gl_oset_search_atleast): New inline function.
19030         * lib/gl_oset.c (gl_oset_search_atleast): New function.
19031         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
19032         (gl_array_oset_implementation): Update.
19033         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
19034         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
19035         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
19036
19037 2006-10-04  Bruno Haible  <bruno@clisp.org>
19038
19039         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
19040
19041 2006-10-03  Bruno Haible  <bruno@clisp.org>
19042
19043         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
19044         from gl_avltreehash_list_implementation.
19045
19046 2006-10-03  Bruno Haible  <bruno@clisp.org>
19047
19048         * lib/gl_oset.c (gl_oset_add): Fix return type.
19049
19050 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
19051
19052         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
19053
19054 2006-10-02  Eric Blake  <ebb9@byu.net>
19055
19056         * modules/strnlen (Depends-on): Add extensions.
19057
19058 2006-10-02  Eric Blake  <ebb9@byu.net>
19059
19060         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
19061         definition in 2.60+.
19062
19063 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
19064
19065         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
19066         checks.
19067
19068 2006-10-02  Bruno Haible  <bruno@clisp.org>
19069
19070         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
19071         to the AUTOMAKE_OPTIONS.
19072         Reported by Jim Meyering.
19073
19074 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
19075
19076         Work around bug in Solaris 10 /proc file system:
19077         /proc/self/fd/NNN/.. isn't the parent directory of
19078         the directory whose file descriptor is NNN.  This needs to
19079         be worked around at run time, not compile time, since a
19080         program might be built on Solaris 8, where things work, and
19081         run on Solaris 10.
19082         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
19083         to use the following interface instead:
19084         (OPENAT_BUFFER_SIZE): New macro.
19085         (openat_proc_name): New function.
19086         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
19087         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
19088         Likewise.
19089         * lib/openat-proc.c: New file.
19090         * modules/openat (Files): Add lib/openat-proc.c.
19091         (Depends-on): Add same-inode, stdbool.
19092         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
19093
19094 2006-09-29  Bruno Haible  <bruno@clisp.org>
19095
19096         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
19097         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
19098         argument. Set stdout_closed before testing for ferror, not after.
19099         (fwriteerror, fwriteerror_no_ebadf): New functions.
19100
19101 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19102
19103         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
19104
19105 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
19106
19107         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
19108         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
19109
19110 2006-09-28  Jim Meyering  <jim@meyering.net>
19111
19112         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
19113         Include <unistd.h>.
19114
19115 2006-09-28  Bruno Haible  <bruno@clisp.org>
19116
19117         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
19118         * modules/linkedhash-list (Depends-on): Likewise.
19119         * modules/rbtreehash-list (Depends-on): Likewise.
19120
19121 2006-09-28  Bruno Haible  <bruno@clisp.org>
19122
19123         * lib/strndup.h: Simplify the redefinition of strndup.
19124         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
19125         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
19126
19127 2006-09-28  Bruno Haible  <bruno@clisp.org>
19128
19129         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
19130         * lib/gl_linkedhash_list.c: Likewise.
19131         * lib/gl_rbtreehash_list.c: Likewise.
19132
19133 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
19134
19135         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
19136         getaddrinfo.
19137
19138         * lib/__fpending.h: Don't include <stdio_ext.h> unless
19139         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
19140         it causes <stdio_ext.h> to cause a compile-time error.
19141         Problem reported by Nelson H. F. Beebe.
19142         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
19143         of HAVE_DECL___PENDING.
19144
19145         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
19146         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
19147         declaration.
19148
19149 2006-09-27  Jim Meyering  <jim@meyering.net>
19150
19151         This file could end up with a definition for a function
19152         named __strndup, rather than rpl_strndup on a system with
19153         incomplete weak_alias support.
19154         * lib/strndup.c (strndup): Rename from __strndup.
19155         Remove #defines that used to map __strndup to strndup.
19156         Don't use K&R prototypes.
19157         Remove LIBC-related code, since this file is not sync'd with glibc.
19158         * lib/strndup.h: Revamp, accordingly.
19159         * m4/strndup.m4: Modernize.
19160
19161 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
19162
19163         * modules/savewd (Depends-on): Add 'raise'.
19164         * lib/savewd.c: Include <signal.h>, for 'raise'.
19165
19166 2006-09-26  Jim Meyering  <jim@meyering.net>
19167
19168         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
19169         when we detect Darwin 8.7.0's acl_get_file bug.
19170         Rearrange to perform the new (below) run-test while $LIBS
19171         contains any acl-related library.  Set USE_ACL at the end.
19172         (gl_ACL_GET_FILE): New function.
19173
19174 2006-09-26  Eric Blake  <ebb9@byu.net>
19175
19176         * lib/verror.c: Include <config.h> unconditionally.
19177
19178 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
19179
19180         * modules/clock-time (Maintainer): Add self.
19181         * modules/getlogin_r (Depends-on): Add extensions.
19182
19183 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19184
19185         * modules/clock-time: New module.
19186         * modules/nanosleep (Depends-on): Add clock-time.
19187         * modules/gethrxtime (Depends-on): Likewise.
19188         * modules/gettime (Depends-on): Likewise.
19189         * modules/settime (Depends-on): Likewise.
19190
19191         * modules/fts-lgpl: Depend on openat.
19192         * modules/mkancesdirs: Depend on savewd.
19193         * modules/mkdir-p: Likewise.
19194
19195 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19196
19197         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
19198
19199         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
19200         `gl_have_arbitrary_file_name_length_limit' to
19201         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
19202         actually works between configure runs.
19203
19204 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19205             Bruno Haible  <bruno@clisp.org>
19206
19207         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
19208
19209 2006-09-25  Jim Meyering  <jim@meyering.net>
19210
19211         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
19212         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
19213
19214 2006-09-25  Eric Blake  <ebb9@byu.net>
19215
19216         * gnulib-tool (func_import, func_create_testdir): Fix typos in
19217         exec's in 2006-09-18 patch when shuffling fds.
19218
19219 2006-09-25  Bruno Haible  <bruno@clisp.org>
19220
19221         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
19222         Reported by Jim Meyering.
19223
19224 2006-09-24  Jim Meyering  <jim@meyering.net>
19225
19226         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
19227         compare a pointer against a literal "0".  That caused failures with
19228         at least HP-UX's hpcc.
19229
19230 2006-09-22  Simon Josefsson  <jas@extundo.com>
19231
19232         * modules/gc-sha1:
19233         * modules/gc-md4:
19234         * modules/gc-hmac-sha1:
19235         * modules/gc-hmac-md5:
19236         * modules/gc-des:
19237         * modules/gc-arcfour: Distribute more files.
19238
19239 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19240
19241         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
19242         (gl_linked_iterator_from_to): Initialize struct completely.
19243         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
19244         (gl_tree_iterator_from_to): Likewise
19245         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
19246         * lib/gl_array_list.c [lint] (gl_array_iterator)
19247         (gl_array_iterator_from_to): Likewise.
19248         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
19249         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
19250         (gl_carray_iterator_from_to): Likewise.
19251
19252         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
19253         * lib/md4.c (md4_process_block): Remove unused variable.
19254         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
19255         parentheses for clarity.
19256
19257 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19258
19259         * modules/bison-i18n (Depends-on): Add gettext.
19260
19261 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19262
19263         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
19264         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
19265         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
19266         also add missing comma that caused broken test.
19267         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
19268         stdlib.h, for `abort'.
19269         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
19270         variables.
19271         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
19272         include unistd.h if present, for `rmdir'.
19273         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
19274         variables.
19275         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
19276         in the process include standard headers for prototypes.
19277         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
19278         gets declared on GNU/Linux.
19279         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
19280         unistd.h, for `rmdir'.
19281         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
19282
19283         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
19284         always true.
19285         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
19286
19287         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
19288
19289 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19290
19291         * gnulib-tool (func_version): Create output all at once.  This
19292         may help avoid triggering unnecessary SIGPIPEs, and at any
19293         rate it doesn't hurt.
19294
19295 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19296             Bruno Haible  <bruno@clisp.org>
19297
19298         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
19299         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19300         * m4/signed.m4 (bh_C_SIGNED): Likewise.
19301
19302         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
19303         (gl_FUNC_VASPRINTF): Invoke it.
19304
19305 2006-09-22  Bruno Haible  <bruno@clisp.org>
19306
19307         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
19308         getloadavg.c as first argument.
19309
19310 2006-09-22  Bruno Haible  <bruno@clisp.org>
19311
19312         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
19313         at the beginning of the gl_INIT macro.
19314         * modules/getloadavg (configure.ac): Pass $gl_source_base to
19315         gl_GETLOADAVG.
19316
19317 2006-09-22  Bruno Haible  <bruno@clisp.org>
19318
19319         * gnulib-tool (func_create_megatestdir): Don't include the config-h
19320         module.
19321         Suggested by Ralf Wildenhues.
19322
19323 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19324
19325         Import this patch from libc:
19326
19327         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
19328
19329         * lib/regex_internal.c (re_string_reconstruct): Handle
19330         offset < pstr->valid_raw_len && pstr->offsets_needed case.
19331         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
19332         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
19333         re_string_context_at.
19334
19335         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
19336         now requires it.
19337         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
19338         gl_REGEX now does it for us.
19339         (gl_REGEX): Add test taken from
19340         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
19341
19342         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
19343         Check that large offsets work.  Modernize Autoconf usages.
19344         Prefer "yes" to mean a good thing rather than a bad.
19345         Don't put "#define mkstemp" in config.h, as this might interfere
19346         with standard system headers that "#define mkstemp mkstemp64".
19347
19348         * modules/mkstemp (Depends-on): Add extensions, so that
19349         mkstemp is visible on some platforms.
19350         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
19351         (Include): Change to "mkstemp.h" from <stdlib.h>.
19352         (Files): Add mkstemp.h.
19353
19354         * lib/mkstemp.h: New file, since some standard headers
19355         #define mkstemp.
19356         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
19357         Include "mkstemp.h".
19358         Make the _LIBC code resemble glibc original more,
19359         e.g., use K&R style.
19360         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
19361         (mkstemp): Remove, since mkstemp.h does this for us.
19362         * lib/stdlib--.h: Include mkstemp.h.
19363
19364         Import this patch from libc:
19365
19366         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
19367
19368         * lib/tempname.c (__gen_tempname): Change attempts_min
19369         into a macro.  Use preprocessor to decide how to initialize
19370         attempts [Coverity CID 67].
19371
19372 2006-09-20  Bruno Haible  <bruno@clisp.org>
19373
19374         * lib/mkdtemp.c: Import from libc.
19375         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
19376                 * sysdeps/posix/tempname.c (__gen_tempname): Change
19377                 attempts_min into a macro.  Use preprocessor to decide how to
19378                 initialize attempts [Coverity CID 67].
19379         2001-11-27  Paul Eggert  <eggert@twinsun.com>
19380                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
19381                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
19382
19383 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19384
19385         * gnulib-tool (func_exit): New function, to allow to pass the
19386         exit status portably through the trap.  Use everywhere.
19387         (--help, --version): Signal a write error.
19388         (trap): catch SIGPIPE, for write errors.
19389         Exit at the end of the trap, with the correct exit status.
19390
19391 2006-09-19  Karl Berry  <karl@gnu.org>
19392
19393         * doc/gnulib.texi: note about the license texinfo files.
19394
19395 2006-09-19  Eric Blake  <ebb9@byu.net>
19396
19397         * gnulib-tool: Avoid space-tab.
19398
19399 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
19400
19401         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
19402         that prevented coreutils 6.1 from building.  Problem reported
19403         by Petter Reinholdtsen.
19404
19405 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
19406
19407         * gnulib-tool (avoidlist): Fix typo that broke options like
19408         --avoid=lock that are used by coreutils bootstrap.
19409
19410 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
19411
19412         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
19413         more systematically.
19414
19415 2006-09-18  Jim Meyering  <jim@meyering.net>
19416
19417         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
19418
19419 2006-09-18  Bruno Haible  <bruno@clisp.org>
19420
19421         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
19422
19423 2006-09-18  Bruno Haible  <bruno@clisp.org>
19424
19425         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
19426         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
19427         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
19428         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
19429         * m4/gettext.m4: Require autoconf >= 2.52.
19430         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
19431         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
19432         of gl_cv_header_inttypes_h.
19433
19434 2006-09-18  Bruno Haible  <bruno@clisp.org>
19435
19436         * lib/javaversion.c: Include configmake.h.
19437
19438 2006-09-18  Bruno Haible  <bruno@clisp.org>
19439
19440         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
19441         avoid that the while loops be executed in a subshell.
19442
19443 2006-09-18  Bruno Haible  <bruno@clisp.org>
19444
19445         * MODULES.html.sh (func_module): Break long lines.
19446         Suggested by Bruce Korb <bkorb@gnu.org>.
19447
19448 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19449
19450         Speed up by a factor of 1.12.
19451         * gnulib-tool (nl): New variable.
19452         (func_import): Rewrite include directive extraction to only read each
19453         directive once.
19454
19455 2006-09-17  Bruno Haible  <bruno@clisp.org>
19456
19457         * modules/javaversion (Makefile.am): Remove DEFS setting.
19458         (Depends-on): Add configmake, for PKGDATADIR definition.
19459
19460 2006-09-17  Bruno Haible  <bruno@clisp.org>
19461
19462         * gnulib-tool (func_create_testdir): Rewrite all files at once.
19463
19464 2006-09-17  Bruno Haible  <bruno@clisp.org>
19465
19466         * gnulib-tool (func_append): New function, stolen from libtool.m4.
19467         (func_modules_transitive_closure, func_modules_add_dummy,
19468         func_modules_to_filelist, func_import, func_create_testdir,
19469         func_create_megatestdir, ...): Use it wherever possible.
19470         Suggested by Ralf Wildenhues.
19471
19472 2006-09-16  Karl Berry  <karl@gnu.org>
19473
19474         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
19475         to avoid sectioning errors.
19476         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
19477         [ifinfo]: blank line after @center-ed titles.
19478         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
19479         Spell FSF address consistently with others.
19480         (These changes approved by rms.)
19481
19482 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19483
19484         Speed up by a factor of 1.61.
19485         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
19486         already checked module names again.
19487
19488 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19489
19490         Speed up by a factor of 1.13.
19491         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
19492         for new_files, and the input to func_add_or_update.
19493
19494 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19495
19496         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
19497         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
19498
19499 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19500
19501         * modules/mkancesdirs (Depends-on): Add fcntl.
19502         * modules/savewd: New file.
19503         * MODULES.html.sh (File system functions): Add savewd.
19504
19505         * modules/configmake (Makefile.am): Add support for the
19506         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
19507
19508 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19509
19510         * m4/savewd.m4: New file.
19511
19512 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19513
19514         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
19515         (dirchownmod): New arg FD.  All callers changed.
19516         Use FD rather than opening the directory ourself, as opening is
19517         now the caller's responsibility.
19518         * lib/dirchownmod.h: Likewise.
19519         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
19520         hosts that require <sys/types.h> before <sys/stat.h>.  Include
19521         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
19522         (test_dir): Remove.
19523         (mkancesdirs): Return length of prefix of FILE that has already
19524         been made, or -2 if there is a child doing the work.  Redo
19525         algorithm so that it is O(N) rather than O(N**2).  Optimize away
19526         ".", and treat ".." specially since it might stray back into
19527         already-created areas.  Use a subprocess if necessary.  New arg
19528         WD; all users changed.  MAKE_DIR function should now return 1
19529         if it creates a directory that is not readable.  Return -2 if
19530         a child process is spun off.
19531         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
19532         Adjust signature to match code.
19533         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
19534         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
19535         all users changed.
19536         * lib/savewd.c, lib/savewd.h: New files.
19537
19538 2006-09-15  Jim Meyering  <jim@meyering.net>
19539
19540         * modules/rename-dest-slash: New module.
19541         * MODULES.html.sh (posix_compat): Add it here.
19542
19543         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
19544
19545 2006-09-15  Jim Meyering  <jim@meyering.net>
19546
19547         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
19548         file.
19549
19550         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
19551
19552 2006-09-15  Jim Meyering  <jim@meyering.net>
19553
19554         * lib/rename-dest-slash.c (has_trailing_slash): Use
19555         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
19556         (rpl_rename_dest_slash): Perform the cheaper trailing slash
19557         test before testing whether SRC is a directory.
19558         Suggestions from Bruno Haible.
19559
19560         Avoid a warning about an unused variable.
19561         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
19562         into the #ifdef block where it's used.
19563
19564         * lib/rename-dest-slash.c: New file.
19565
19566 2006-09-14  Bruno Haible  <bruno@clisp.org>
19567
19568         * lib/allocsa.c: Include <config.h> unconditionally.
19569         * lib/asnprintf.c: Likewise.
19570         * lib/asprintf.c: Likewise.
19571         * lib/c-strcasecmp.c: Likewise.
19572         * lib/c-strcasestr.c: Likewise.
19573         * lib/c-strncasecmp.c: Likewise.
19574         * lib/c-strstr.c: Likewise.
19575         * lib/classpath.c: Likewise.
19576         * lib/clean-temp.c: Likewise.
19577         * lib/concatpath.c: Likewise.
19578         * lib/copy-file.c: Likewise.
19579         * lib/csharpcomp.c: Likewise.
19580         * lib/csharpexec.c: Likewise.
19581         * lib/execute.c: Likewise.
19582         * lib/fatal-signal.c: Likewise.
19583         * lib/findprog.c: Likewise.
19584         * lib/fwriteerror.c: Likewise.
19585         * lib/gl_array_list.c: Likewise.
19586         * lib/gl_array_oset.c: Likewise.
19587         * lib/gl_avltree_list.c: Likewise.
19588         * lib/gl_avltree_oset.c: Likewise.
19589         * lib/gl_avltreehash_list.c: Likewise.
19590         * lib/gl_carray_list.c: Likewise.
19591         * lib/gl_linked_list.c: Likewise.
19592         * lib/gl_linkedhash_list.c: Likewise.
19593         * lib/gl_list.c: Likewise.
19594         * lib/gl_oset.c: Likewise.
19595         * lib/gl_rbtree_list.c: Likewise.
19596         * lib/gl_rbtree_oset.c: Likewise.
19597         * lib/gl_rbtreehash_list.c: Likewise.
19598         * lib/imaxabs.c: Likewise.
19599         * lib/imaxdiv.c: Likewise.
19600         * lib/javacomp.c: Likewise.
19601         * lib/javaexec.c: Likewise.
19602         * lib/javaversion.c: Likewise.
19603         * lib/linebreak.c: Likewise.
19604         * lib/localcharset.c: Likewise.
19605         * lib/lock.c: Likewise.
19606         * lib/mbchar.c: Likewise.
19607         * lib/mbswidth.c: Likewise.
19608         * lib/mkdtemp.c: Likewise.
19609         * lib/pipe.c: Likewise.
19610         * lib/printf-args.c: Likewise.
19611         * lib/printf-parse.c: Likewise.
19612         * lib/progname.c: Likewise.
19613         * lib/progreloc.c: Likewise.
19614         * lib/readlink.c: Likewise.
19615         * lib/sh-quote.c: Likewise.
19616         * lib/stpcpy.c: Likewise.
19617         * lib/stpncpy.c: Likewise.
19618         * lib/strcasecmp.c: Likewise.
19619         * lib/strcasestr.c: Likewise.
19620         * lib/strcspn.c: Likewise.
19621         * lib/striconv.c: Likewise.
19622         * lib/strncasecmp.c: Likewise.
19623         * lib/strnlen1.c: Likewise.
19624         * lib/strstr.c: Likewise.
19625         * lib/strtok_r.c: Likewise.
19626         * lib/tls.c: Likewise.
19627         * lib/tmpdir.c: Likewise.
19628         * lib/unicodeio.c: Likewise.
19629         * lib/unsetenv.c: Likewise.
19630         * lib/vasnprintf.c: Likewise.
19631         * lib/vasprintf.c: Likewise.
19632         * lib/wait-process.c: Likewise.
19633         * lib/xallocsa.c: Likewise.
19634         * lib/xsetenv.c: Likewise.
19635         * lib/xstriconv.c: Likewise.
19636
19637 2006-09-13  Simon Josefsson  <jas@extundo.com>
19638
19639         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
19640         that internally, suggested by Ralf Wildenhues
19641         <Ralf.Wildenhues@gmx.de>.
19642
19643 2006-09-13  Simon Josefsson  <jas@extundo.com>
19644
19645         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
19646         @LIBOBJS@.
19647         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19648
19649 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19650
19651         * lib/_fpending.c: Include <config.h> unconditionally, since we no
19652         longer worry about uses that don't define HAVE_CONFIG_H.
19653         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
19654         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
19655         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
19656         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
19657         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
19658         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
19659         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
19660         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
19661         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
19662         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
19663         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
19664         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
19665         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
19666         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
19667         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
19668         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
19669         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
19670         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
19671         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
19672         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
19673         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
19674         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
19675         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
19676         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
19677         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
19678         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
19679         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
19680         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
19681         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
19682         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
19683         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
19684         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
19685         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
19686         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
19687         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
19688         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
19689         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
19690         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
19691         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
19692         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
19693         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
19694         Likewise.
19695
19696 2006-09-13  Eric Blake  <ebb9@byu.net>
19697
19698         * lib/getopt.c: Fix typo in last commit.
19699
19700 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19701
19702         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
19703         dgettext.
19704
19705 2006-09-12  Jim Meyering  <jim@meyering.net>
19706
19707         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
19708         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
19709         Reported by Nelson H. F. Beebe.
19710
19711 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
19712
19713         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
19714         program_invocation_name and program_invocation_short_name are
19715         initialized.
19716         * lib/argp-namefrob.h: Move declarations of program_invocation_name
19717         and program_invocation_short_name to argp.h, so they are visible
19718         to user programs.
19719         * lib/argp.h: Likewise
19720
19721 2006-09-10  Bruno Haible  <bruno@clisp.org>
19722
19723         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
19724         m4/inttypes_h.m4, m4/uintmax_t.m4.
19725
19726 2006-09-10  Bruno Haible  <bruno@clisp.org>
19727
19728         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
19729         gl_AC_TYPE_UINTMAX_T.
19730
19731 2006-09-10  Bruno Haible  <bruno@clisp.org>
19732
19733         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
19734
19735 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
19736
19737         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
19738         convention.  Text proposed by Bruno Haible.
19739         (struct argp_option): Document the use of N_() wrappers.
19740
19741         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
19742         '\v', and translate the two parts separately, instead of feeding
19743         the whole string to gettext.  This allows to exclude
19744         '\v' from the strings visible to the translator by writing doc
19745         strings as N_("..") "\v" N_("..").
19746
19747 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
19748
19749         * config/srclist.txt: Undo latest change; the bug was fixed.
19750
19751 2006-09-09  Bruno Haible  <bruno@clisp.org>
19752
19753         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
19754         assignments if building a library without libtool.
19755         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
19756         in func_emit_lib_Makefile_am.
19757         (func_import): When building a static library libfoo.a, arrange to
19758         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
19759         (func_create_testdir): Likewise.
19760         * modules/gc (configure.ac, Makefile.am): If building statically,
19761         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
19762         * modules/iconvme (configure.ac, Makefile.am): Likewise.
19763         * modules/striconv (configure.ac, Makefile.am): Likewise.
19764         Based on a suggestion by Ralf Wildenhues.
19765
19766 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19767
19768         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
19769         Check for unistd.h too, since Autoconf doesn't assume POSIX.
19770         Also:
19771
19772         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19773         Add year_2050_test to catch glibc bug 2821
19774         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19775
19776         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19777         Prefer #ifdef to #if.
19778
19779         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
19780         Return from 'main' instead of calling 'exit'.
19781
19782 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19783
19784         * lib/mktime.c (guess_time_tm): Fix bug where mktime
19785         returned the maximum time_t value rather than (time_t) -1.
19786         Problem originally reported by William Bardwell
19787         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19788
19789         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19790         Moved to here ...
19791         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19792         ... from here.
19793
19794 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19795
19796         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
19797         2821 is fixed.
19798
19799 2006-09-08  Jim Meyering  <jim@meyering.net>
19800
19801         Don't make generated files read-only.  That would bother too many
19802         people.  However, do retain the ability to work when targets are
19803         read-only: remove the destination and temporary files before writing
19804         them (when generated via sed or echo), or by using the -f option for
19805         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
19806         * modules/alloca-opt, modules/argz, modules/arpa_inet:
19807         * modules/byteswap, modules/configmake, modules/fcntl:
19808         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19809         * modules/localcharset, modules/netinet_in, modules/poll:
19810         * modules/stdbool, modules/stdint, modules/sys_select:
19811         * modules/sys_socket, modules/sys_stat, modules/sysexits:
19812
19813 2006-09-08  Jim Meyering  <jim@meyering.net>
19814
19815         Avoid new build failure on FreeBSD 6.0.
19816         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
19817         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
19818         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
19819
19820 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19821
19822         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
19823
19824 2006-09-07  Jim Meyering  <jim@meyering.net>
19825
19826         Fix global typo in last change: use chmod u-w, not chmod u-x.
19827         Spotted by Paul Eggert and Bruce Korb.
19828         * modules/alloca-opt, modules/argz, modules/arpa_inet:
19829         * modules/byteswap, modules/configmake, modules/fcntl:
19830         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19831         * modules/localcharset, modules/netinet_in, modules/poll:
19832         * modules/stdbool, modules/stdint, modules/sys_select:
19833         * modules/sys_socket, modules/sys_stat, modules/sysexits:
19834
19835 2006-09-06  Jim Meyering  <jim@meyering.net>
19836
19837         Make generated files be read-only.
19838         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
19839         Ensure that each generated file is now read-only.
19840         * modules/argz: Likewise.
19841         * modules/arpa_inet: Likewise.
19842         * modules/byteswap: Likewise.
19843         * modules/configmake: Likewise.
19844         * modules/fcntl: Likewise.
19845         * modules/fnmatch: Likewise.
19846         * modules/getopt: Likewise.
19847         * modules/glob: Likewise.
19848         * modules/inttypes: Likewise.
19849         * modules/netinet_in: Likewise.
19850         * modules/poll: Likewise.
19851         * modules/stdbool: Likewise.
19852         * modules/stdint: Likewise.
19853         * modules/sys_select: Likewise.
19854         * modules/sys_socket: Likewise.
19855         * modules/sys_stat: Likewise.
19856         * modules/sysexits: Likewise.
19857         * modules/localcharset: Same as above, but continue using temporary
19858         file named "t-$@" (why different?) rather than the "$@-t" used
19859         everywhere else.
19860
19861         * modules/sysexits (Makefile.am): Replace literal occurrences
19862         of "sysexit.h" more readable, and more consistent, "$@".
19863
19864 2006-09-06  Bruno Haible  <bruno@clisp.org>
19865
19866         * modules/striconv: New file.
19867         * modules/xstriconv: New file.
19868         * MODULES.html.sh (Internationalization functions): Add striconv,
19869         xstriconv.
19870
19871 2006-09-06  Bruno Haible  <bruno@clisp.org>
19872
19873         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
19874         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
19875         not using libtool correctly.
19876
19877 2006-09-06  Bruno Haible  <bruno@clisp.org>
19878
19879         * lib/striconv.h: New file.
19880         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
19881         iconvstring.c.
19882         * lib/xstriconv.h: New file.
19883         * lib/xstriconv.c: New file.
19884
19885 2006-09-06  Bruno Haible  <bruno@clisp.org>
19886
19887         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19888         lib_..._LDFLAGS.
19889
19890 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19891
19892         * lib/argz_.h: Sync from Libtool.
19893
19894         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
19895                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19896
19897         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
19898
19899 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
19900
19901         * modules/trim: New file.
19902
19903 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
19904
19905         * lib/trim.h: New file.
19906         * lib/trim.c: New file.
19907
19908 2006-09-05  Bruno Haible  <bruno@clisp.org>
19909
19910         * MODULES.html.sh (String handling): Add trim.
19911
19912 2006-09-04  Karl Berry  <karl@gnu.org>
19913
19914         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
19915         until next release.
19916
19917 2006-09-03  Bruno Haible  <bruno@clisp.org>
19918
19919         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
19920         correctly.
19921
19922 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19923
19924         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
19925         not gl_GETLOADAVG.  Omit unneeded semicolons.
19926         Problems reported by Ralf Wildenhues in
19927         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
19928         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
19929         at the end, which is the usual gnulib style.
19930
19931         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
19932         of doing all the work ourselves.
19933         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
19934         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
19935
19936 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19937
19938         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
19939         Problem reported by Ralf Wildenhues in
19940         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
19941
19942         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
19943         HAVE_STRUCT_STATFS_F_FSTYPENAME.
19944
19945 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19946
19947         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
19948         yesterday's patch by changing test -n to test -z.
19949
19950 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19951
19952         * modules/getloadavg (Files): Add m4/getloadavg.m4.
19953         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
19954         the former is now obsolescent.
19955
19956         * modules/chdir-long (Depends-on): Add fcntl.
19957
19958 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19959
19960         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
19961         obsolescent, and programs should use gnulib instead.
19962         * m4/getloadavg.m4: New file, with contents taken from Autoconf
19963         but with prefixes changed.
19964
19965 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19966
19967         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
19968         or stdbool.h, because they might not exist while configuring.
19969
19970         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
19971         Don't include unistd.h or limits.h; not needed, since chdir-long.h
19972         does that for us.
19973         (O_DIRECTORY): Remove.
19974
19975 2006-08-31  Eric Blake  <ebb9@byu.net>
19976
19977         * gnulib-tool: Don't let emacs change spaces to TAB.
19978
19979 2006-08-31  Bruno Haible  <bruno@clisp.org>
19980
19981         * gnulib-tool: When calling func_import more than once, do it in a
19982         subshell.
19983         Reported by Eric Blake <ebb9@byu.net>.
19984
19985 2006-08-31  Bruno Haible  <bruno@clisp.org>
19986
19987         * gnulib-tool (nl): Remove variable.
19988         (sed_transform_lib_file): Use more robust test for config-h module.
19989         (func_import): Fix typo in 2006-08-25 patch.
19990
19991 2006-08-31  Bruno Haible  <bruno@clisp.org>
19992
19993         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
19994         specified, augment Makefile.am variables instead of assigning them.
19995
19996 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
19997
19998         Work around a bug in both the Linux and SunOS 64-bit kernels:
19999         nanosleep mishandles sleeps for longer than 2**31 seconds.
20000         Problem reported by Frank v Waveren in
20001         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
20002         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
20003         Check for nanosleep bug.
20004         (LIB_NANOSLEEP): Append clock_gettime library if needed.
20005
20006 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
20007
20008         Work around a bug in both the Linux and SunOS 64-bit kernels:
20009         nanosleep mishandles sleeps for longer than 2**31 seconds.
20010         Problem reported by Frank v Waveren in
20011         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
20012         * lib/nanosleep.c (BILLION): New constant.
20013         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
20014         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
20015         implementation.
20016
20017 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
20018
20019         * modules/nanosleep (Depends-on): Add gettime.
20020
20021 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
20022         and Simon Josefsson  <jas@extundo.com>
20023         and Oskar Liljeblad  <oskar@osk.mine.nu>
20024
20025         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
20026         * gnulib-tool (func_import): New license type 'unmodifiable license
20027         text'.
20028         * modules/fdl: Use it.  Longer description.
20029         * module/gpl, module/lgpl: New files.
20030
20031 2006-08-30  Jim Meyering  <jim@meyering.net>
20032
20033         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
20034         shadowing the parameter.
20035
20036 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20037
20038         Sync from Libtool:
20039
20040         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20041
20042         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
20043         sharing with gnulib.  Report by Eric Blake.
20044
20045 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
20046
20047         * modules/isapipe: New file.
20048         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
20049
20050 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
20051
20052         * modules/configmake (Makefile.am): Add a comment, and omit
20053         the CONFIGMAKE_ prefix from generated macro names.  Suggested
20054         by Bruno Haible.
20055
20056 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
20057
20058         * m4/isapipe.m4: New file.
20059
20060 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
20061
20062         * lib/isapipe.c, lib/isapipe.h: New files.
20063
20064 2006-08-29  Jim Meyering  <jim@meyering.net>
20065
20066         * modules/configmake (Makefile.am): Make configmake.h depend on
20067         Makefile.  Otherwise, a stale configmake.h could hang around.
20068
20069 2006-08-29  Eric Blake  <ebb9@byu.net>
20070
20071         * lib/error.c (error_at_line, print_errno_message): Match libc, after
20072         resolution of upstream bug 3044.
20073
20074 2006-08-29  Bruno Haible  <bruno@clisp.org>
20075
20076         * modules/localcharset (Depends-on): Add configmake.
20077         (Makefile.am): Remove setting of LIBDIR through DEFS.
20078
20079 2006-08-29  Bruno Haible  <bruno@clisp.org>
20080
20081         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
20082         defined.
20083
20084 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
20085
20086         * modules/fcntl: New file.
20087         * modules/chdir-safer (Depends-on): Add fcntl.
20088         * modules/fts: Likewise.
20089         * modules/mkdir-p: Likewise.
20090
20091         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
20092         This undoes the most recent change, since we're now addressing the
20093         problem in a different way.
20094
20095         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
20096         into output, since the output might be called Makefile.am even
20097         if $makefile_name is something different.
20098         (func_import): Use $makefile_am rather than
20099         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
20100         empty.
20101
20102         * modules/inttypes (Files): Add m4/inttypes-h.m4.
20103
20104 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
20105
20106         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
20107         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
20108         recent change to stdint.m4, since we're now addressing the problem in a
20109         different way.
20110
20111 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
20112
20113         * m4/fcntl_h.m4: New file.
20114
20115 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
20116
20117         * lib/fcntl_.h: New file.
20118         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
20119         the fcntl module.
20120         * lib/dirchownmod.c: Likewise.
20121         * lib/fts.c: Likewise.
20122
20123         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
20124         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
20125         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
20126         just before including <inttypes.h>, to avoid circular inclusion.
20127
20128 2006-08-28  Jim Meyering  <jim@meyering.net>
20129
20130         * doc/visibility.texi: Actually read and correct the grammar of the
20131         sentence affected by yesterday's change.
20132
20133 2006-08-28  Eric Blake  <ebb9@byu.net>
20134
20135         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
20136         needs wrapper.
20137
20138 2006-08-28  Eric Blake  <ebb9@byu.net>
20139
20140         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
20141
20142 2006-08-28  Eric Blake  <ebb9@byu.net>
20143
20144         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
20145
20146 2006-08-28  Bruno Haible  <bruno@clisp.org>
20147
20148         * modules/c-strstr: New file, from GNU gettext.
20149         * MODULES.html.sh (String handling): Add c-strstr.
20150
20151 2006-08-28  Bruno Haible  <bruno@clisp.org>
20152
20153         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
20154         macros.
20155         Reported by Eric Blake.
20156
20157 2006-08-28  Bruno Haible  <bruno@clisp.org>
20158
20159         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
20160         (VASNPRINTF): Return a string of length > INT_MAX without failing.
20161         * lib/vasprintf.c: Include errno.h, limits.h.
20162         (EOVERFLOW): New fallback definition.
20163         (vasprintf): Test here whether the string length is > INT_MAX.
20164         * lib/vsnprintf.c: Include errno.h, limits.h.
20165         (EOVERFLOW): New fallback definition.
20166         (vsnprintf): Fix bug when generated string was too long for the buffer.
20167         Test here whether the string length is > INT_MAX.
20168
20169 2006-08-28  Bruno Haible  <bruno@clisp.org>
20170
20171         * lib/inttypes_.h (SCNX*): Remove definitions.
20172         Reported by Eric Blake.
20173
20174 2006-08-28  Bruno Haible  <bruno@clisp.org>
20175
20176         * lib/c-strstr.h: New file, from GNU gettext.
20177         * lib/c-strstr.c: New file, from GNU gettext.
20178
20179 2006-08-28  Bruno Haible  <bruno@clisp.org>
20180
20181         * gnulib-tool: Reorder some statements.
20182
20183 2006-08-28  Bruno Haible  <bruno@clisp.org>
20184
20185         * gnulib-tool: New option --makefile-name.
20186         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
20187         $makefile_name.
20188         (func_import): Write $makefile_name to the cache file, and read it from
20189         there unless explicitly specified. Use $makefile_name as file name
20190         instead of Makefile.am. Adjust the recommendations accordingly.
20191
20192 2006-08-28  Bruno Haible  <bruno@clisp.org>
20193
20194         * gnulib-tool (func_verify_module): Check against misapplying patch.
20195
20196 2006-08-28  Bruno Haible  <bruno@clisp.org>
20197
20198         * gnulib-tool (func_relativize, func_relconcat): New functions.
20199         Give an error if --local-dir is given with --update.
20200         Remove trailing slashes from $local_gnulib_dir.
20201         (func_import): Store the relativized $local_gnulib_dir in
20202         gnulib-cache.m4, and read it from there if not specified explicitly.
20203
20204 2006-08-28  Bruno Haible  <bruno@clisp.org>
20205
20206         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
20207         is the current directory. Respect also $local_gnulib_dir.
20208
20209 2006-08-28  Bruno Haible  <bruno@clisp.org>
20210             Simon Josefsson  <jas@extundo.com>
20211
20212         BeOS portability.
20213         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
20214
20215 2006-08-27  Jim Meyering  <jim@meyering.net>
20216
20217         * doc/visibility.texi: Remove duplicate word: "pointer".
20218
20219 2006-08-26  Bruno Haible  <bruno@clisp.org>
20220
20221         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
20222         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
20223         (Makefile.am): Create inttypes.h from inttypes_.h.
20224         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
20225
20226         * modules/imaxabs: New file.
20227
20228         * modules/imaxdiv: New file.
20229
20230 2006-08-26  Bruno Haible  <bruno@clisp.org>
20231
20232         * m4/inttypes.m4: New file.
20233         * m4/_inttypes_h.m4: Remove file.
20234         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
20235         PRI_MACROS_BROKEN.
20236         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
20237
20238         * m4/imaxabs.m4: New file.
20239
20240         * m4/imaxdiv.m4: New file.
20241
20242 2006-08-26  Bruno Haible  <bruno@clisp.org>
20243
20244         * lib/inttypes_.h: New file.
20245         * lib/inttypes.h: Remove file.
20246         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
20247
20248         * lib/imaxabs.c: New file.
20249
20250         * lib/imaxdiv.c: New file.
20251
20252 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
20253
20254         New config-h module, so that "make" output needn't be cluttered
20255         by -DHAVE_CONFIG_H.
20256         * MODULES.html.sh (Support for building libraries and executables):
20257         Add config-h.
20258         * modules/config-h: New file.
20259         * gnulib-tool (nl, sed_transform_lib_file): New vars.
20260         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
20261         the config-h module is used.
20262
20263         New configmake module, so that "make" output needn't be cluttered
20264         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
20265         * MODULES.html.sh (Support for building libraries and executables):
20266         Add configmake.
20267         * modules/configmake: New file.
20268
20269 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
20270
20271         * m4/config-h.m4: New file.
20272
20273 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20274
20275         * config/srclist.txt: Add elisp-comp.
20276
20277 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20278
20279         * MODULES.html.sh (Support for building libraries and executables):
20280         Add elisp-comp.
20281         * build-aux/elisp-comp: New file.
20282         * modules/elisp-comp: New file.
20283
20284 2006-08-24  Bruno Haible  <bruno@clisp.org>
20285
20286         * gnulib-tool (func_create_testdir): Use non-default values of
20287         sourcebase and m4base.
20288
20289 2006-08-24  Bruno Haible  <bruno@clisp.org>
20290
20291         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
20292         HTML structure.
20293
20294 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20295
20296         * modules/openat (Depends-on): Add lchown.
20297
20298 2006-08-23  Bruno Haible  <bruno@clisp.org>
20299
20300         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
20301         of gl_LOCK_EARLY instead of gl_LOCK.
20302
20303 2006-08-23  Bruno Haible  <bruno@clisp.org>
20304
20305         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
20306         on OSF/1 to no.
20307         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
20308
20309 2006-08-23  Bruno Haible  <bruno@clisp.org>
20310
20311         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
20312         as unusable.
20313
20314         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
20315         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
20316         (gl_LOCK): New macro.
20317
20318 2006-08-22  Simon Josefsson  <jas@extundo.com>
20319
20320         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
20321         to md5 module.
20322
20323 2006-08-22  Simon Josefsson  <jas@extundo.com>
20324
20325         * MODULES.html.sh: Add "Support for maintaining and release
20326         projects".
20327
20328         * build-aux/gnupload: New file, from coreutils.
20329
20330 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20331
20332         Avoid the need for AC_LIBSOURCES in m4 macros.
20333         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
20334         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
20335         * modules/check-version (EXTRA_DIST): Add check-version.h.
20336         * modules/crc (EXTRA_DIST): Add crc.h.
20337         * modules/des (EXTRA_DIST): Add des.h.
20338         * modules/gc (EXTRA_DIST): Add gc.h.
20339         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
20340         * modules/getline (EXTRA_DIST): Add getline.h.
20341         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
20342         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
20343         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
20344         * modules/md2 (EXTRA_DIST): Add md2.h.
20345         * modules/md4 (EXTRA_DIST): Add md4.h.
20346         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
20347         * modules/read-file (EXTRA_DIST): Add read-file.h.
20348         * modules/readline (EXTRA_DIST): Add readline.h.
20349         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
20350         rijndael-api-fst.h.
20351
20352 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20353
20354         * m4/rijndael.m4 (gl_ARCFOUR):
20355         * m4/arctwo.m4 (gl_ARCTWO):
20356         * m4/check-version.m4 (gl_CHECK_VERSION):
20357         * m4/crc.m4 (gl_CRC):
20358         * m4/des.m4 (gl_DES):
20359         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
20360         * m4/gc.m4 (gl_GC):
20361         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
20362         * m4/getline.m4 (gl_FUNC_GETLINE):
20363         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
20364         * m4/hmac-md5.m4 (gl_HMAC_MD5):
20365         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
20366         * m4/md2.m4 (gl_MD2):
20367         * m4/md4.m4 (gl_MD4):
20368         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
20369         * m4/read-file.m4 (gl_FUNC_READ_FILE):
20370         * m4/readline.m4 (gl_FUNC_READLINE):
20371         * m4/rijndael.m4 (gl_RIJNDAEL):
20372         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
20373         to get the necessary .h files and whatnot.
20374
20375 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20376
20377         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
20378         gnulib rather than the other way around.
20379         * config/srclistvars.sh (COREUTILS): Remove.
20380
20381 2006-08-22  Jim Meyering  <jim@meyering.net>
20382
20383         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
20384
20385         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
20386
20387 2006-08-22  Eric Blake  <ebb9@byu.net>
20388
20389         * modules/regexprops-generic: New file.
20390         * MODULES.html.sh (Support for building documentation): List it.
20391
20392 2006-08-22  Eric Blake  <ebb9@byu.net>
20393
20394         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
20395         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20396         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
20397         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20398
20399 2006-08-22  Bruno Haible  <bruno@clisp.org>
20400
20401         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
20402         and lib_LTLIBRARIES like the other lib_* variables.
20403
20404 2006-08-22  Bruno Haible  <bruno@clisp.org>
20405
20406         * build-aux/x-to-1.in: New file, from GNU gettext.
20407
20408 2006-08-22  Bruno Haible  <bruno@clisp.org>
20409
20410         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
20411         <utmpx.h> exists.
20412
20413 2006-08-22  Bruno Haible  <bruno@clisp.org>
20414
20415         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
20416         <utmpx.h> exists.
20417
20418 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20419
20420         BeOS portability.
20421         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
20422         exist.
20423         Problem reported by Bruno Haible.
20424
20425 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20426
20427         Avoid the need for AC_LIBSOURCES in m4 macros.
20428         * modules/acl (EXTRA_DIST): Add acl.h.
20429         * modules/argmatch (Files): Add m4/argmatch.m4.
20430         (configure.ac): Add gl_ARGMATCH.
20431         (EXTRA_DIST): Renamed from lib_SOURCES, for
20432         consistency with the other modules.  Remove argmatch.c.
20433         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
20434         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
20435         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
20436         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
20437         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
20438         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
20439         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
20440         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
20441         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
20442         * modules/closeout (EXTRA_DIST): Add closeout.h.
20443         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
20444         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
20445         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
20446         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
20447         dirname.h; remove basename.c and stripslash.c.
20448         * modules/exclude (EXTRA_DIST): Add exclude.h.
20449         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
20450         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
20451         * modules/file-type (EXTRA_DIST): Add file-type.h.
20452         * modules/filemode (EXTRA_DIST): Add filemode.h.
20453         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
20454         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20455         * modules/fpending (EXTRA_DIST): Add __fpending.h.
20456         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
20457         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
20458         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
20459         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
20460         * modules/getdate (EXTRA_DIST): Add getdate.c.
20461         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
20462         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
20463         * modules/getpass (EXTRA_DIST): Add getpass.h.
20464         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
20465         * modules/group-member (EXTRA_DIST): Add group-member.h.
20466         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
20467         * modules/hash (EXTRA_DIST): Add hash.h.
20468         * modules/human (EXTRA_DIST): Add human.h.
20469         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
20470         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
20471         * modules/lchown (EXTRA_DIST): Add lchown.h.
20472         * modules/long-options (EXTRA_DIST): Add long-options.h.
20473         * modules/lstat (EXTRA_DIST): Add lstat.h.
20474         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
20475         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
20476         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
20477         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
20478         * modules/memxor (EXTRA_DIST): Add memxor.h.
20479         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
20480         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
20481         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
20482         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
20483         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
20484         * modules/physmem (EXTRA_DIST): Add physmem.h.
20485         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
20486         * modules/posixver (EXTRA_DIST): Add posixver.h.
20487         * modules/quote (EXTRA_DIST): Add quote.h.
20488         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
20489         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
20490         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
20491         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
20492         regex_internal.h regexec.c.
20493         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
20494         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
20495         * modules/same (EXTRA_DIST): Add same.h.
20496         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
20497         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
20498         * modules/savedir (EXTRA_DIST): Add savedir.h.
20499         * modules/sha1 (EXTRA_DIST): Add sha1.h.
20500         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
20501         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
20502         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
20503         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
20504         * modules/strdup (EXTRA_DIST): Add strdup.h.
20505         * modules/strftime (EXTRA_DIST): Add strftime.h.
20506         * modules/strndup (EXTRA_DIST): Add strndup.h.
20507         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
20508         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
20509         * modules/time_r (EXTRA_DIST): Add time_r.h.
20510         * modules/timespec (EXTRA_DIST): Add timespec.h.
20511         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20512         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
20513         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
20514         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
20515         * modules/userspec (EXTRA_DIST): Add userspec.h.
20516         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
20517         * modules/utimens (EXTRA_DIST): Add utimens.h.
20518         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
20519         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
20520         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
20521         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
20522         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
20523         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
20524         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
20525         * modules/yesno (EXTRA_DIST): Add yesno.h.
20526
20527 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20528
20529         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
20530
20531         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
20532         * m4/dev-ino.m4, same-inode.m4: Remove.
20533
20534         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
20535         * m4/acl.m4 (AC_FUNC_ACL):
20536         * m4/backupfile.m4 (gl_BACKUPFILE):
20537         * m4/c-strtod.m4 (gl_C99_STRTOLD):
20538         * m4/canon-host.m4 (gl_CANON_HOST):
20539         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20540         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
20541         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
20542         * m4/cloexec.m4 (gl_CLOEXEC):
20543         * m4/close-stream.m4 (gl_CLOSE_STREAM):
20544         * m4/closeout.m4 (gl_CLOSEOUT):
20545         * m4/dirfd.m4 (gl_FUNC_DIRFD):
20546         * m4/dirname.m4 (gl_DIRNAME):
20547         * m4/exclude.m4 (gl_EXCLUDE):
20548         * m4/exitfail.m4 (gl_EXITFAIL):
20549         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
20550         * m4/file-type.m4 (gl_FILE_TYPE):
20551         * m4/filemode.m4 (gl_FILEMODE):
20552         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
20553         * m4/fpending.m4 (gl_FUNC_FPENDING):
20554         * m4/fprintftime.m4 (gl_FPRINTFTIME):
20555         * m4/fts.m4 (gl_FUNC_FTS):
20556         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
20557         * m4/getdate.m4 (gl_GETDATE):
20558         * m4/gethrxtime.m4 (gl_GETHRXTIME):
20559         * m4/getpagesize.m4 (gl_GETPAGESIZE):
20560         * m4/getpass.m4 (gl_FUNC_GETPASS):
20561         * m4/gettime.m4 (gl_GETTIME):
20562         * m4/getugroups.m4 (gl_GETUGROUPS):
20563         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
20564         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
20565         * m4/hard-locale.m4 (gl_HARD_LOCALE):
20566         * m4/hash.m4 (gl_HASH):
20567         * m4/idcache.m4 (gl_IDCACHE):
20568         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
20569         * m4/lchown.m4 (gl_FUNC_LCHOWN):
20570         * m4/long-options.m4 (gl_LONG_OPTIONS):
20571         * m4/lstat.m4 (gl_FUNC_LSTAT):
20572         * m4/md5.m4 (gl_MD5):
20573         * m4/memcasecmp.m4 (gl_MEMCASECMP):
20574         * m4/memcoll.m4 (gl_MEMCOLL):
20575         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
20576         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
20577         * m4/memxor.m4 (gl_MEMXOR):
20578         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
20579         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
20580         * m4/modechange.m4 (gl_MODECHANGE):
20581         * m4/mountlist.m4 (gl_MOUNTLIST):
20582         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20583         * m4/openat.m4 (gl_FUNC_OPENAT):
20584         * m4/pathmax.m4 (gl_PATHMAX):
20585         * m4/physmem.m4 (gl_PHYSMEM):
20586         * m4/posixtm.m4 (gl_POSIXTM):
20587         * m4/posixver.m4 (gl_POSIXVER):
20588         * m4/quote.m4 (gl_QUOTE):
20589         * m4/quotearg.m4 (gl_QUOTEARG):
20590         * m4/readtokens.m4 (gl_READTOKENS):
20591         * m4/readutmp.m4 (gl_READUTMP):
20592         * m4/regex.m4 (gl_REGEX):
20593         * m4/safe-read.m4 (gl_SAFE_READ):
20594         * m4/safe-write.m4 (gl_SAFE_WRITE):
20595         * m4/same.m4 (gl_SAME):
20596         * m4/save-cwd.m4 (gl_SAVE_CWD):
20597         * m4/savedir.m4 (gl_SAVEDIR):
20598         * m4/settime.m4 (gl_SETTIME):
20599         * m4/sha1.m4 (gl_SHA1):
20600         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
20601         * m4/stat-macros.m4 (gl_STAT_MACROS):
20602         * m4/stat-time.m4 (gl_STAT_TIME):
20603         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
20604         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
20605         * m4/strdup.m4 (gl_FUNC_STRDUP):
20606         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
20607         * m4/strndup.m4 (gl_FUNC_STRNDUP):
20608         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
20609         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
20610         * m4/time_r.m4 (gl_TIME_R):
20611         * m4/timespec.m4 (gl_TIMESPEC):
20612         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
20613         * m4/unlinkdir.m4 (gl_UNLINKDIR):
20614         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
20615         * m4/userspec.m4 (gl_USERSPEC):
20616         * m4/utimecmp.m4 (gl_UTIMECMP):
20617         * m4/utimens.m4 (gl_UTIMENS):
20618         * m4/xalloc.m4 (gl_XALLOC):
20619         * m4/xgetcwd.m4 (gl_XGETCWD):
20620         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
20621         * m4/xreadlink.m4 (gl_XREADLINK):
20622         * m4/xstrtod.m4 (gl_XSTRTOD):
20623         * m4/yesno.m4 (gl_YESNO):
20624         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
20625         to get the necessary .h files and whatnot.
20626
20627 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
20628             Bruno Haible  <bruno@clisp.org>
20629
20630         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
20631         /bin/sh understanding of '!' conditional negation.
20632
20633 2006-08-21  Jim Meyering  <jim@meyering.net>
20634
20635         * modules/openat (Depends-on): Really alphabetize.
20636
20637         * modules/acl (Depends-on): Add error and quote.
20638
20639         * check-module (find_included_lib_files): Add at-func.c to the
20640         ok-to-include-more-than-once white list.
20641
20642         * modules/openat (Depends-on): Add lstat.  Alphabetize.
20643
20644 2006-08-21  Bruno Haible  <bruno@clisp.org>
20645
20646         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20647         Emit a pkgdata_DATA variable only if some snippets add contents to it.
20648         Reported by Martin Lambers <marlam@marlam.de>.
20649
20650 2006-08-21  Bruno Haible  <bruno@clisp.org>
20651
20652         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
20653         specify an installation location, don't emit a noinst_LIBRARIES or
20654         noinst_LTLIBRARIES assignment.
20655
20656 2006-08-21  Bruno Haible  <bruno@clisp.org>
20657
20658         BeOS portability.
20659         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
20660         BeOS has mbrtowc() but no <wctype.h>.
20661
20662 2006-08-21  Bruno Haible  <bruno@clisp.org>
20663
20664         BeOS portability.
20665         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
20666         exist.
20667
20668 2006-08-21  Bruno Haible  <bruno@clisp.org>
20669
20670         BeOS portability.
20671         * lib/mbchar.h: Include <wctype.h> only if it exists.
20672
20673 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20674
20675         Remove files that are no longer needed by their respective modules.
20676         * m4/obstack.m4: Remove.
20677         * m4/strerror_r.m4: Remove.
20678         * m4/uint32_t.m4: Remove.
20679         * m4/uintptr_t.m4: Remove.
20680         * m4/ullong_max.m4: Remove.
20681         * m4/xstrtoimax.m4: Remove.
20682         * m4/xstrtoumax.m4: Remove.
20683
20684         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
20685         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
20686         dependencies now capture this.
20687
20688         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20689         Do not use AC_LIBSOURCES, since gnulib modules now do this.
20690         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
20691         * m4/human.m4 (gl_HUMAN): Likewise.
20692         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
20693         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
20694
20695         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
20696
20697         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
20698         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
20699         stdint.
20700         * m4/human.m4 (gl_HUMAN): Likewise.
20701         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
20702         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
20703         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20704         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20705         * m4/xstrtol (gl_XSTRTOL): Likewise.
20706
20707         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
20708         AC_TYPE_LONG_LONG_INT.
20709         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20710         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
20711         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
20712         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20713
20714         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
20715         on stdbool.
20716
20717         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
20718         (gl_PREREQ_XSTRTOUL): Remove.
20719
20720         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
20721
20722         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
20723         mode.
20724
20725 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20726
20727         Add and change modules to make it easier for coreutils to use
20728         gnulib-tool.
20729         * modules/backupfile (Files): Remove m4/d-ino.m4.
20730         (Depends-on): Add d-ino.
20731         * modules/cycle-check (Depends-on): Add stdint.
20732         (lib_SOURCES): Add cycle-check.h.
20733         * modules/d-ino: New module.
20734         * modules/d-type: New module.
20735         * modules/error (Files): Remove m4/strerror_r.m4.
20736         * modules/filemode (Files): Add m4/st_dm_mode.m4.
20737         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
20738         m4/inttypes_h.m4, m4/uintmax_t.m4.
20739         (Depends-on): Add stdint.
20740         (lib_SOURCES): Add fsusage.h.
20741         * modules/getcwd (Files): Remove d-ino.m4.
20742         (Depends-on): Add d-ino.
20743         * modules/getndelim2 (Depends-on): Add stdint.
20744         * modules/glob (Files): Remove m4/d-type.m4.
20745         (Depends-on): Add d-type.
20746         * modules/host-os: New module.
20747         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
20748         m4/inttypes_h.m4, m4/uintmax_t.m4.
20749         * Depends-on: Add stdint.
20750         (lib_SOURCES): Add human.h.
20751         * modules/inttostr (Files): Remove m4/intmax_t.m4,
20752         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
20753         m4/uintmax_t.m4, m4/ulonglong.m4.
20754         (Depends-on): Add stdint.
20755         (EXTRA_DIST): Add inttostr.h.
20756         * modules/lchmod: New module.
20757         * modules/link-follow: New module.
20758         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
20759         (Depends-on): Add lchmod.
20760         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
20761         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
20762         (Depends-on): Add stdint.
20763         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
20764         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
20765         (Depends-on): Add stdint.
20766         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
20767         * modules/perl: New module.
20768         * modules/regex (Depends-on): Add stdint.
20769         * modules/rmdir-errno: New module.
20770         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20771         m4/intmax_t.m4.
20772         (Depends-on): Add stdint.
20773         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20774         m4/uintmax_t.m4.
20775         (Depends-on): Add stdint.
20776         * modules/unlink-busy: New module.
20777         * modules/utimecmp (Depends-on): Add stdint.
20778         * modules/uptime: New module.
20779         * modules/winsz-ioctl: New module.
20780         * modules/winsz-termios: New module.
20781         * modules/xnanosleep (Depends-on): Add nanosleep.
20782         * modules/ullong_max: Remove.
20783         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
20784         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
20785         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
20786         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
20787         (Depends-on): Add inttypes.
20788         (lib_SOURCES): Add xstrtol.h.
20789         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
20790         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
20791         * MODULES.html.sh: Move 'assert' into the assert section.
20792         Move 'dummy' into the linking section.
20793         Remove ullong_max.
20794         Add section for compatibility checks for POSIX:2001 functions,
20795         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
20796         winsz-ioctl, and winsz-termios into it.
20797         Add lchmod.
20798         Add top-level Misc section and put host-os, perl, and uptime
20799         into it.
20800
20801 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20802
20803         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
20804         now assume the stdint module.  Do not include inttypes.h.
20805         * lib/fsusage.h: Likewise.
20806         * lib/getndelim2.c: Likewise.
20807         * lib/human.h: Likewise.
20808         * lib/inttostr.h: Likewise.
20809         * lib/obstack.c: Likewise.
20810         * lib/regex_internal.h: Likewise.
20811         * lib/tempname.c: Likewise.
20812         * lib/utimecmp.c: Likewise.
20813         * lib/xstrtol.h: Likewise.
20814
20815         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
20816
20817         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
20818         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
20819         * lib/xtime.h: Likewise.
20820
20821 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20822
20823         * modules/openat (Files): Add lib/fchmodat.c.
20824         Fixes problem reported by Jay Youngman.
20825
20826 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20827
20828         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
20829         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
20830
20831 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
20832             Bruno Haible  <bruno@clisp.org>
20833
20834         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
20835         and is a script that invokes bison. Tighten the code. Add comments.
20836
20837 2006-08-18  Jim Meyering  <jim@meyering.net>
20838
20839         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
20840         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
20841         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
20842         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
20843
20844 2006-08-18  Bruno Haible  <bruno@clisp.org>
20845
20846         * modules/bison-i18n: New file.
20847         * MODULES.html.sh (Internationalization functions): Add it.
20848
20849 2006-08-18  Bruno Haible  <bruno@clisp.org>
20850
20851         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
20852         sys/statvfs.h. When getmntinfo was found, check its declaration and
20853         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
20854
20855 2006-08-18  Bruno Haible  <bruno@clisp.org>
20856
20857         * m4/bison-i18n.m4: New file, from bison.
20858
20859 2006-08-18  Bruno Haible  <bruno@clisp.org>
20860
20861         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
20862         (ME_DUMMY): Treat "kernfs" as a dummy.
20863         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
20864
20865 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20866
20867         Update from coreutils.
20868
20869         2006-08-15  Jim Meyering  <jim@meyering.net>
20870
20871         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
20872
20873         2006-01-17  Jim Meyering  <jim@meyering.net>
20874
20875         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
20876
20877         2006-01-11  Jim Meyering  <jim@meyering.net>
20878
20879         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
20880         Check for the lchmod function.
20881
20882 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20883
20884         Update from coreutils.
20885
20886         * lib/__fpending.h: Add copyright notice.
20887         * lib/fprintftime.h: Likewise.
20888         * lib/savedir.c: Use (C) in copyright notice.
20889         * lib/savedir.h: Likewise.
20890
20891         2006-08-15  Jim Meyering  <jim@meyering.net>
20892
20893         * lib/at-func.c: New file, with the logic of all emulated at-functions.
20894         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
20895         in support of the EXPECTED_ERRNO macro.
20896         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
20897         definitions.  Instead, define the appropriate symbols and include
20898         "at-func.c".
20899         * lib/mkdirat.c (mkdirat): Likewise.
20900         * lib/fchmodat.c (fchmodat): Likewise.
20901         (ENOSYS): Remove definition.
20902         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
20903         it.  Don't include "unistd--.h" -- it wasn't ever used.
20904
20905         2006-01-17  Jim Meyering  <jim@meyering.net>
20906
20907         Rewrite fts.c not to change the current working directory,
20908         by using openat, fstatat, fdopendir, etc..
20909
20910         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
20911         (HAVE_OPENAT_SUPPORT): Define.
20912         [_LIBC] (fchdir): Don't undef or define; no longer used.
20913         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
20914         Now, this `function' always succeeds, and consumes its file descriptor
20915         parameter -- so callers must not close such FDs.  Update callers.
20916         (diropen_fd, opendirat, cwd_advance_fd): New functions.
20917         (diropen): Add parameter, SP.  Adjust all callers.
20918         Implement using diropen_fd, rather than open.
20919         (fts_open): Initialize new member, fts_cwd_fd.
20920         Remove fts_rft-setting code.
20921         (fts_close): Close fts_cwd_fd, if necessary.
20922         (__opendir2): Define in terms of opendir or opendirat,
20923         depending on whether the FST_NOCHDIR flag is set.
20924         (fts_build): Since fts_safe_changedir consumes its FD, and since
20925         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
20926         and close the dup'd file descriptor upon failure.
20927         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
20928         (fts_safe_changedir): Tweak semantics to reflect that this function
20929         now calls cwd_advance_fd and hence consumes its FD argument.
20930         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
20931         [struct FTS] (fts_rft): Remove now-unused member.
20932         [struct FTS] (fts_cycle.state): Improve comment.
20933
20934         * lib/openat.c (openat_needs_fchdir): New function.
20935         * lib/openat.h (openat_needs_fchdir): Declare it.
20936
20937 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
20938
20939         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
20940         Problem and fix reported by Pádraig Brady in
20941         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
20942
20943 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20944
20945         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
20946
20947 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20948
20949         * lib/memcoll.c (memcoll): Optimize for the common case where the
20950         arguments are bytewise equal.
20951
20952 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20953
20954         * doc/regexprops-generic.texi: Add a copyright notice.
20955
20956 2006-08-15  Bruno Haible  <bruno@clisp.org>
20957
20958         * modules/tmpdir (License): Change to LGPL.
20959
20960 2006-08-15  Bruno Haible  <bruno@clisp.org>
20961
20962         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
20963         module.
20964
20965 2006-08-14  Simon Josefsson  <jas@extundo.com>
20966
20967         * config/srclist.txt: Add gnupload.
20968
20969 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20970
20971         Change copyright notice from LGPL 2 to GPL 2, since that's the
20972         standard form used in the gnulib repository.
20973         * tests/test-lock.c: Likewise.
20974         * tests/test-stdint.c: Likewise.
20975         * tests/test-tls.c: Likewise.
20976
20977         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
20978         prelude-manager.  User shorter URLs for GNU projects, without '?'.
20979         Add copyright notice.
20980
20981         * check-module: Add copyright notice.  Output a copyright
20982         notice if "--version" is specified.
20983         * modules/COPYING: New file.
20984         * tests/test-getaddrinfo.c: Add copyright notice.
20985         * tests/test-verify.c: Likewise.
20986
20987 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20988
20989         Change copyright notice from LGPL 2 to GPL 2, since that's the
20990         standard form used in the gnulib repository.
20991         * lib/lock.c: LGPL -> GPL.
20992         * lib/lock.h: Likewise.
20993         * lib/strnlen1.c: Likewise.
20994         * lib/strnlen1.h: Likewise.
20995         * lib/tls.c: Likewise.
20996         * lib/tls.h: Likewise.
20997         * lib/tmpdir.c: Likewise.
20998
20999         * lib/TODO: Remove; this belongs only in coreutils.
21000
21001 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21002
21003         Add copyright notices to long-enough files that lack them, since
21004         otherwise the files aren't clearly free.  Use the same notice that
21005         getdate.texi already uses.
21006         * doc/alloca-opt.texi: Add copyright notice.
21007         * doc/alloca.texi: Likewise.
21008         * doc/ctime.texi: Likewise.
21009         * doc/functions.texi: Likewise.
21010         * doc/gcd.texi: Likewise.
21011         * doc/gnulib-tool.texi: Likewise.
21012         * doc/inet_ntoa.texi: Likewise.
21013         * doc/visibility.texi: Likewise.
21014
21015         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
21016         * doc/quote.texi: Add copyright notice.
21017
21018         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
21019         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
21020         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
21021         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
21022         is now obsolete, and give a pointer to the Sun list.
21023         Add copyright notice.
21024
21025 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21026
21027         * config/srclistvars.sh: Add copyright notice.
21028
21029 2006-08-14  Eric Blake  <ebb9@byu.net>
21030
21031         Import the following change from libc:
21032
21033         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
21034
21035         Upstream bug 2997.
21036         * lib/misc/error.c: Add space between program name and message if file
21037         name is missing.
21038
21039 2006-08-12  Karl Berry  <karl@gnu.org>
21040
21041         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
21042         remove, these originate in gnulib now.
21043
21044 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21045
21046         * doc/Makefile (standards.info standards.html standards.dvi):
21047         Also depend on make-stds.texi.
21048
21049 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21050
21051         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
21052         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
21053
21054         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
21055         in wchar_t.  Problem reported by Eric Blake.
21056
21057         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
21058         LEN is smaller than SIZE.  Suggested by Bruno Haible.
21059         Also, help the compiler to keep LEN in a register.
21060
21061 2006-08-11  Eric Blake  <ebb9@byu.net>
21062
21063         * users.txt: Sort.  Add tar.
21064
21065 2006-08-11  Bruno Haible  <bruno@clisp.org>
21066
21067         * users.txt: New file.
21068
21069 2006-08-11  Bruno Haible  <bruno@clisp.org>
21070
21071         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
21072         before <wchar.h>. Needed for OSF/1 and BSD/OS.
21073
21074 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21075
21076         * modules/snprintf (Depends-on): Remove minmax.
21077         (Maintainer): Add self and Bruno.
21078
21079 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21080
21081         * lib/.cppi-disable: Add snprintf.h, socket_.h.
21082         * lib/snprintf.c: Include <errno.h> and <limits.h>.
21083         (EOVERFLOW): Define if the system does not.
21084         Do not include "minmax.h"; it wasn't used.
21085         (snprintf): Don't assume size_t promotes to an unsigned type.
21086         Fix bug when generated string was too long for the buffer: the
21087         buffer's contents are supposed to be the initial prefix of the
21088         output.  Don't assume vasnprintf returns EOVERFLOW if the size
21089         exceeds INT_MAX; do the check ourselves.
21090
21091         Import the following changes from libc:
21092
21093         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
21094
21095         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
21096         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
21097         set wc to the byte which couldn't be converted.
21098         (re_string_reconstruct): Don't clear valid_raw_len before calling
21099         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
21100         tip_context using re_string_context_at.
21101
21102         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
21103
21104         * lib/posix/regex.h: g++ still cannot handled [restrict].
21105
21106         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
21107
21108         * lib/posix/regex.h: Remove special handling for VMS.
21109
21110 2006-08-10  Jim Meyering  <jim@meyering.net>
21111
21112         * modules/same-inode: New module.
21113         * modules/dev-ino: New module.
21114         * modules/cycle-check: Depend on these modules, rather than simply
21115         including their .h files.
21116         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
21117         required via m4/cycle-check.m4.
21118         * modules/same: Depend on new same-inode module, rather than
21119         including same-inode.h.
21120         * modules/chdir-safer: New file.
21121
21122         * modules/chown (Depends-on): Add stat-macros.
21123
21124 2006-08-10  Jim Meyering  <jim@meyering.net>
21125
21126         * m4/cycle-check.m4: New file.
21127         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
21128         * m4/dev-ino.m4, m4/same-inode.m4: New files.
21129
21130 2006-08-10  Eric Blake  <ebb9@byu.net>
21131
21132         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
21133         in from original proposal.
21134
21135 2006-08-10  Eric Blake  <ebb9@byu.net>
21136         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21137
21138         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
21139         namespace.
21140
21141 2006-08-10  Bruno Haible  <bruno@clisp.org>
21142
21143         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
21144         as well.
21145
21146 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21147
21148         Sync from coreutils.
21149
21150         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
21151
21152         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
21153         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
21154
21155 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21156
21157         * modules/restrict: Remove; no longer needed now that we assume
21158         Autoconf 2.59 or later.
21159         * MODULES.html.sh: Remove 'restrict'.
21160         * modules/argp (Depends-on): Remove 'restrict'.
21161         * modules/base64 (Depends-on): Likewise.
21162         * modules/gc (Depends-on): Likewise.
21163         * modules/getaddrinfo (Depends-on): Likewise.
21164         * modules/glob (Depends-on): Likewise.
21165         * modules/inet_ntop (Depends-on): Likewise.
21166         * modules/inet_pton (Depends-on): Likewise.
21167         * modules/memxor (Depends-on): Likewise.
21168         * modules/regex (Depends-on): Likewise.
21169         * modules/strtok_r (Depends-on): Likewise.
21170         * modules/time_r (Depends-on): Likewise.
21171
21172 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21173
21174         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
21175         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
21176         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
21177         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
21178         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21179         * m4/memxor.m4 (gl_MEMXOR): Likewise.
21180         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
21181         gl_C_RESTRICT replaced by AC_C_RESTRICT.
21182
21183         Merge from coreutils.
21184         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
21185         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
21186         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
21187         * m4/time_r.m4 (gl_TIME_R): Likewise.
21188
21189 2006-08-09  Karl Berry  <karl@gnu.org>
21190
21191         * config/srclist.txt: no more gettext-tools, per Bruno.
21192
21193 2006-08-08  Eric Blake  <ebb9@byu.net>
21194
21195         * modules/verror: New module.
21196         * MODULES.html.sh: Document it.
21197
21198 2006-08-08  Eric Blake  <ebb9@byu.net>
21199
21200         * lib/verror.h, lib/verror.c: New files.
21201
21202 2006-08-08  Eric Blake  <ebb9@byu.net>
21203
21204         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
21205         verror_at_line output complies with GNU Coding Standards even when
21206         file is NULL.
21207
21208 2006-08-07  Bruno Haible  <bruno@clisp.org>
21209
21210         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
21211         versions of AIX.
21212         Reported by Ralf Wildenhues.
21213
21214 2006-08-07  Bruno Haible  <bruno@clisp.org>
21215
21216         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
21217         in an AC_DEFUN. Needed so that the autoconf snippets can use
21218         AC_REQUIRE.
21219
21220 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21221
21222         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21223         Initialize pkgdata_DATA.
21224         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
21225         overriding it.
21226
21227 2006-08-06  Eric Blake  <ebb9@byu.net>
21228
21229         * lib/error.h: Fold in some upstream changes from glibc.
21230         * lib/error.c: Likewise.
21231
21232 2006-08-04  Bruno Haible  <bruno@clisp.org>
21233
21234         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21235         Make the mostlyclean-local rule depend on mostlyclean-generic.
21236         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
21237
21238 2006-07-31  Bruno Haible  <bruno@clisp.org>
21239
21240         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
21241         <stdlib.h>, <string.h>.
21242
21243 2006-07-30  Bruno Haible  <bruno@clisp.org>
21244
21245         * modules/readlink (License): Change to LGPL.
21246
21247 2006-07-30  Bruno Haible  <bruno@clisp.org>
21248
21249         * modules/javaversion (Makefile.am): Distribute javaversion.java and
21250         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
21251         set PKGDATADIR to point to it.
21252
21253 2006-07-30  Bruno Haible  <bruno@clisp.org>
21254
21255         * modules/csharpexec (configure.ac): Comment out macro invocation.
21256         * modules/javaexec (configure.ac): Likewise.
21257         * modules/javacomp-script (configure.ac): Likewise.
21258
21259         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
21260
21261 2006-07-30  Bruno Haible  <bruno@clisp.org>
21262
21263         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
21264         linked-list.
21265
21266 2006-07-30  Bruno Haible  <bruno@clisp.org>
21267
21268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
21269
21270 2006-07-30  Bruno Haible  <bruno@clisp.org>
21271
21272         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21273         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
21274         get removed.
21275
21276 2006-07-29  Bruno Haible  <bruno@clisp.org>
21277
21278         Make it possible for gnulib-tool to work with locally modified or
21279         augmented gnulib repositories.
21280         * gnulib-tool (func_usage): Document --local-dir option.
21281         (local_gnulib_dir): New variable.
21282         Handle --local-dir option.
21283         (func_lookup_file): New function.
21284         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
21285         (func_get_description, func_get_filelist, func_get_description,
21286         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
21287         func_get_automake_snippet, func_get_include_directive,
21288         func_get_license, func_get_maintainer): Use func_lookup_file.
21289         (func_import, func_create_testdir): Use func_lookup_file.
21290
21291 2006-07-29  Bruno Haible  <bruno@clisp.org>
21292
21293         * modules/setenv (Depends-on): Add unistd.
21294
21295 2006-07-29  Bruno Haible  <bruno@clisp.org>
21296
21297         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
21298
21299 2006-07-29  Bruno Haible  <bruno@clisp.org>
21300
21301         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
21302
21303 2006-07-29  Bruno Haible  <bruno@clisp.org>
21304
21305         * gnulib-tool (import, update): If there is no Makefile.am, look at
21306         aclocal.m4, instead of bailing out.
21307
21308 2006-07-29  Bruno Haible  <bruno@clisp.org>
21309
21310         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
21311         Categorize the options by when they are useful.
21312
21313 2006-07-29  Bruno Haible  <bruno@clisp.org>
21314
21315         * gnulib-tool (func_usage): Document option --no-libtool.
21316         Handle option --no-libtool.
21317         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
21318         for changed semantics of $libtool variable.
21319         (func_import): Likewise. If libtool is not used, show this through
21320         an option --no-libtool.
21321         (func_create_testdir): Update.
21322
21323 2006-07-29  Bruno Haible  <bruno@clisp.org>
21324
21325         * gnulib-tool (func_import): Extend error message about missing
21326         --doc-base.
21327
21328 2006-07-29  Bruno Haible  <bruno@clisp.org>
21329
21330         * gnulib-tool (func_import): Don't create the $docbase directory if
21331         there is no file to store there.
21332
21333 2006-07-29  Bruno Haible  <bruno@clisp.org>
21334
21335         * gnulib-tool (autoconf_minversion): If a --dir option is given and
21336         relevant, look for configure.ac there, not in the current directory.
21337         Also use a simple search for AC_PREREQ, not "autoconf --trace".
21338
21339 2006-07-29  Bruno Haible  <bruno@clisp.org>
21340
21341         * gnulib-tool (SORT): New variable.
21342         (func_usage): Undocument --assume-autoconf option.
21343         Remove --assume-autoconf option handling.
21344         (autoconf_minversion): Determine from the contents of configure.ac.
21345         (func_import): Remove autoconf_minversion handling.
21346         Suggested by Eric Blake.
21347
21348 2006-07-29  Bruno Haible  <bruno@clisp.org>
21349
21350         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
21351
21352 2006-07-29  Bruno Haible  <bruno@clisp.org>
21353
21354         * config/srclist.txt (*setenv.[ch]): Remove rules.
21355
21356 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21357
21358         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
21359
21360 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21361
21362         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
21363         arpa/inet.h.
21364
21365 2006-07-28  Simon Josefsson  <jas@extundo.com>
21366
21367         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
21368         * modules/inet_pton (Depends-on): Likewise.
21369
21370 2006-07-28  Simon Josefsson  <jas@extundo.com>
21371
21372         * m4/netinet_in_h.m4: New file.
21373
21374 2006-07-28  Simon Josefsson  <jas@extundo.com>
21375
21376         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
21377         #include's.
21378
21379 2006-07-28  Simon Josefsson  <jas@extundo.com>
21380
21381         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
21382         #include's.
21383
21384 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
21385
21386         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
21387         setgid on directories only if they set these bits.
21388         * lib/modechange.h: Remove obsolete comment about masks.
21389
21390 2006-07-28  Eric Blake  <ebb9@byu.net>
21391
21392         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
21393         macro expansion.
21394
21395 2006-07-28  Bruno Haible  <bruno@clisp.org>
21396
21397         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
21398
21399 2006-07-28  Bruno Haible  <bruno@clisp.org>
21400
21401         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
21402
21403 2006-07-28  Bruno Haible  <bruno@clisp.org>
21404
21405         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21406         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
21407         Define fallbacks.
21408         Avoids link error on FreeBSD 4.x.
21409         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21410
21411         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
21412         encoding.
21413         * lib/mbswidth.c (iswcntrl): Likewise.
21414
21415 2006-07-27  Bruno Haible  <bruno@clisp.org>
21416
21417         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
21418         test.
21419
21420 2006-07-27  Bruno Haible  <bruno@clisp.org>
21421
21422         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
21423         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
21424         defined.
21425
21426 2006-07-26  Eric Blake  <ebb9@byu.net>
21427
21428         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
21429
21430 2006-07-26  Eric Blake  <ebb9@byu.net>
21431
21432         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
21433         like mingw that lack mkstemp.
21434         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
21435         avoid compilation warning on mingw.
21436
21437 2006-07-26  Bruno Haible  <bruno@clisp.org>
21438
21439         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
21440         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
21441         INT_FAST*_MIN, INTPTR_MIN.
21442
21443 2006-07-25  Bruno Haible  <bruno@clisp.org>
21444
21445         * modules/version-etc (Depends-on): Add stdarg.
21446
21447 2006-07-25  Bruno Haible  <bruno@clisp.org>
21448
21449         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
21450         complex commands.
21451
21452 2006-07-25  Bruno Haible  <bruno@clisp.org>
21453
21454         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
21455         defined in <stdarg.h> or config.h.
21456
21457 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21458
21459         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
21460         (gl_STDIO_SAFER): Remove.
21461
21462 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21463
21464         * MODULES.html.sh (File stream based Input/Output):
21465         Add fopen-safer, tmpfile-safer; remove stdio-safer.
21466         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
21467         * modules/fopen-safer, modules/tmpfile-safer: New files.
21468         * modules/stdio-safer: Remove.
21469
21470 2006-07-24  Bruno Haible  <bruno@clisp.org>
21471
21472         * modules/tmpdir: New file.
21473         * MODULES.html.sh (File system functions): Add it.
21474
21475 2006-07-24  Bruno Haible  <bruno@clisp.org>
21476
21477         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
21478         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
21479
21480 2006-07-24  Bruno Haible  <bruno@clisp.org>
21481
21482         * modules/clean-temp: New file.
21483
21484 2006-07-24  Bruno Haible  <bruno@clisp.org>
21485
21486         * m4/tmpdir.m4: New file, from GNU gettext.
21487
21488 2006-07-24  Bruno Haible  <bruno@clisp.org>
21489
21490         * lib/tmpdir.h: New file, from GNU gettext.
21491         * lib/tmpdir.c: New file, from GNU gettext.
21492
21493 2006-07-24  Bruno Haible  <bruno@clisp.org>
21494
21495         * lib/clean-temp.h: New file, from GNU gettext.
21496         * lib/clean-temp.c: New file, from GNU gettext.
21497
21498 2006-07-23  Eric Blake  <ebb9@byu.net>
21499
21500         * modules/stdio-safer (Files): Add tmpfile-safer.c.
21501         (Depends-on): Add binary-io.
21502
21503 2006-07-23  Eric Blake  <ebb9@byu.net>
21504
21505         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
21506
21507 2006-07-23  Eric Blake  <ebb9@byu.net>
21508
21509         * lib/tmpfile-safer.c: New file.
21510         * lib/stdio-safer.h (fopen_safer): Add prototype.
21511         * lib/stdio--.h (tmpfile): Make safer.
21512
21513 2006-07-23  Bruno Haible  <bruno@clisp.org>
21514
21515         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
21516         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
21517         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
21518         gl_linked_remove_at): Use it.
21519
21520 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21521         and Simon Josefsson <jas@extundo.com>
21522
21523         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
21524
21525         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
21526
21527 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21528
21529         * modules/close-stream: New file.
21530         * modules/closeout (Description): Make it clear that it exits
21531         with a diagnostic on error.
21532         (Depends-on): Add close-stream.  Remove fpending, stdbool.
21533         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
21534
21535 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21536
21537         * m4/close-stream.m4: New file.
21538
21539 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21540
21541         * lib/close-stream.c, lib/close-stream.h: New files.
21542
21543 2006-07-22  Bruno Haible  <bruno@clisp.org>
21544
21545         Merge from GNU gettext 0.15.
21546
21547         2006-05-01  Bruno Haible  <bruno@clisp.org>
21548
21549                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
21550
21551         2006-07-22  Bruno Haible  <bruno@clisp.org>
21552
21553                 * modules/javaversion: New file.
21554                 * MODULES.html.sh (Java): Add javaversion.
21555
21556         2006-03-12  Bruno Haible  <bruno@clisp.org>
21557
21558                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
21559
21560         2005-12-04  Bruno Haible  <bruno@clisp.org>
21561
21562                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
21563                 (untested).
21564
21565         2006-06-21  Bruno Haible  <bruno@clisp.org>
21566
21567                 Avoid warnings from recent versions of mcs.
21568                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
21569                 -o, -L, -r any more. Use options documented since mcs-1.0
21570                 instead. Similarly for -g.
21571
21572         2005-12-04  Bruno Haible  <bruno@clisp.org>
21573
21574                 * build-aux/csharpcomp.sh.in: Suffix for resources is
21575                 .resources, not .resource.
21576
21577         2005-07-09  Bruno Haible  <bruno@clisp.org>
21578
21579                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
21580                 add a .dll suffix.
21581                 Reported by Mark Junker <mjscod@gmx.de>.
21582
21583         2006-07-22  Bruno Haible  <bruno@clisp.org>
21584
21585                 * modules/gettext: Upgrade to gettext-0.15.
21586                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
21587                 m4/visibility.m4.
21588                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
21589
21590 2006-07-22  Bruno Haible  <bruno@clisp.org>
21591
21592         Merge from GNU gettext 0.15.
21593
21594         2006-03-25  Bruno Haible  <bruno@clisp.org>
21595
21596                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
21597
21598         2006-07-21  Bruno Haible  <bruno@clisp.org>
21599
21600                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
21601                 "1.1".
21602
21603         2006-05-09  Bruno Haible  <bruno@clisp.org>
21604
21605                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
21606                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
21607                 for the conftestver execution.
21608
21609         2006-05-01  Bruno Haible  <bruno@clisp.org>
21610
21611                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
21612                 optional target-version argument. Verify that the compiler
21613                 groks source of the specified source-version, or add -source
21614                 option as necessary. Verify that the compiler produces
21615                 bytecode in the specified target-version, or add -target and
21616                 -source options as necessary. Make the result of the test
21617                 available as variable CONF_JAVAC. Also log error output in
21618                 config.log.
21619
21620         2006-03-11  Bruno Haible  <bruno@clisp.org>
21621
21622                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
21623
21624         2006-05-09  Bruno Haible  <bruno@clisp.org>
21625
21626                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
21627                 CLASSPATH_SEPARATOR to a semicolon.
21628
21629         2006-03-12  Bruno Haible  <bruno@clisp.org>
21630
21631                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
21632                 available as variable CONF_JAVA, for subsequent autoconf
21633                 tests. Also log error output in config.log.
21634
21635         2006-07-19  Bruno Haible  <bruno@clisp.org>
21636
21637                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
21638                 that getline works on glibc2 systems. Needed to avoid trouble
21639                 in relocatable.c.
21640                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
21641
21642         2005-12-04  Bruno Haible  <bruno@clisp.org>
21643
21644                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
21645                 launcher (untested).
21646
21647         2005-12-04  Bruno Haible  <bruno@clisp.org>
21648
21649                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
21650
21651         2006-07-22  Bruno Haible  <bruno@clisp.org>
21652
21653                 * gettext.m4: Update from GNU gettext-0.15.
21654                 * nls.m4: Likewise.
21655                 * po.m4: Likewise.
21656                 * inttypes-pri.m4: Likewise.
21657                 * inttypes-h.m4: Renamed from inttypes.m4.
21658                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
21659
21660 2006-07-22  Bruno Haible  <bruno@clisp.org>
21661
21662         Merge from GNU gettext 0.15.
21663
21664         2005-07-05  Bruno Haible  <bruno@clisp.org>
21665
21666                 * printf-args.c (printf_fetchargs): Work around broken
21667                 definition of wint_t on mingw.
21668
21669         2005-02-12  Bruno Haible  <bruno@clisp.org>
21670
21671                 * xallocsa.h: Add extern "C" for C++.
21672
21673         2006-05-17  Bruno Haible  <bruno@clisp.org>
21674
21675                 Cygwin portability.
21676                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
21677
21678         2006-04-30  Bruno Haible  <bruno@clisp.org>
21679
21680                 * progreloc.c: Include <mach-o/dyld.h> if available.
21681                 (find_executable): Use _NSGetExecutablePath when possible.
21682
21683         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21684
21685                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
21686                 function.
21687
21688         2005-12-29  Bruno Haible  <bruno@clisp.org>
21689
21690                 * progreloc.c (set_program_name_and_installdir): Fix
21691                 compilation error.
21692
21693         2005-12-04  Bruno Haible  <bruno@clisp.org>
21694
21695                 Cygwin portability.
21696                 * progreloc.c: Include <windows.h> also on Cygwin.
21697                 (find_executable): Add support for Cygwin.
21698                 (set_program_name_and_installdir): Handle also platforms with
21699                 nonempty EXEEXT.
21700
21701         2006-07-11  Bruno Haible  <bruno@clisp.org>
21702
21703                 * javacomp.c: Fix a comment.
21704                 Reported by Jim Meyering.
21705
21706         2006-04-30  Bruno Haible  <bruno@clisp.org>
21707
21708                 * javacomp.h (compile_java_class): Add source_version,
21709                 target_version arguments.
21710                 * javacomp.c: Rewritten to choose only a compiler that
21711                 respects the specified source_version and target_version.
21712
21713         2006-06-27  Bruno Haible  <bruno@clisp.org>
21714
21715                 Assume correct S_ISDIR macro.
21716                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
21717
21718         2006-07-22  Bruno Haible  <bruno@clisp.org>
21719
21720                 * javaversion.h: New file, from GNU gettext.
21721                 * javaversion.c: New file, from GNU gettext.
21722                 * javaversion.java: New file, from GNU gettext.
21723                 * javaversion.class: New file, from GNU gettext.
21724
21725         2006-05-17  Bruno Haible  <bruno@clisp.org>
21726
21727                 Cygwin portability.
21728                 * javaexec.c (execute_java_class): Test for jview program
21729                 also on Cygwin.
21730
21731         2006-04-09  Bruno Haible  <bruno@clisp.org>
21732
21733                 * fatal-signal.c: Don't include string.h.
21734                 (at_fatal_signal): Use a copying loop instead of memcpy.
21735
21736         2005-12-04  Bruno Haible  <bruno@clisp.org>
21737
21738                 * csharpexec.c: Add support for 'clix' launcher (untested).
21739                 (execute_csharp_using_sscli): New function.
21740                 (execute_csharp_program): Call it.
21741
21742         2006-06-21  Bruno Haible  <bruno@clisp.org>
21743
21744                 Avoid warnings from recent versions of mcs.
21745                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
21746                 -o, -L, -r any more. Use options documented since mcs-1.0
21747                 instead. Similarly for -g.
21748
21749         2005-07-09  Bruno Haible  <bruno@clisp.org>
21750
21751                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
21752                 add a .dll suffix.
21753                 Reported by Mark Junker <mjscod@gmx.de>.
21754
21755         2006-06-17  Bruno Haible  <bruno@clisp.org>
21756
21757                 * config.charset: Update for NetBSD 3.0.
21758
21759         2006-05-17  Bruno Haible  <bruno@clisp.org>
21760
21761                 Cygwin portability.
21762                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
21763
21764         2006-05-16  Bruno Haible  <bruno@clisp.org>
21765
21766                 * localcharset.c [CYGWIN]: Include <windows.h>.
21767                 (get_charset_aliases): For Cygwin, return the same CPxxx
21768                 aliases list as under WIN32.
21769                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
21770                 the environment variables. Fall back to GetACP().
21771
21772         2006-04-05  Bruno Haible  <bruno@clisp.org>
21773
21774                 * config.charset: Update Juan Manuel Guerrero's address.
21775
21776         2005-02-12  Bruno Haible  <bruno@clisp.org>
21777
21778                 * allocsa.h: Add extern "C" for C++.
21779
21780         2005-02-10  Bruno Haible  <bruno@clisp.org>
21781
21782                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
21783                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
21784
21785         2006-07-22  Bruno Haible  <bruno@clisp.org>
21786
21787                 * gettext.h: Update to GNU gettext-0.15.
21788
21789 2006-07-22  Bruno Haible  <bruno@clisp.org>
21790
21791         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
21792         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
21793         lib-prefix.m4, longdouble.m4, ssize_t.m4.
21794
21795 2006-07-21  Eric Blake  <ebb9@byu.net>
21796
21797         * modules/stdlib-safer: New file.
21798         * MODULES.html.sh (File stream based Input/Output): Add
21799         stdlib-safer.
21800
21801 2006-07-21  Eric Blake  <ebb9@byu.net>
21802
21803         * lib/stdlib-safer.h: New file from coreutils, required by
21804         stdlib--.h.
21805
21806 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
21807
21808         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
21809
21810 2006-07-20  Bruno Haible  <bruno@clisp.org>
21811
21812         * gnulib-tool: Recognize new option --assume-autoconf.
21813         (autoconf_minversion): New variable.
21814         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
21815
21816 2006-07-20  Bruno Haible  <bruno@clisp.org>
21817
21818         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
21819
21820 2006-07-19  Derek R. Price  <derek@ximbiot.com>
21821
21822         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
21823         Reindent and repaginate.
21824
21825 2006-07-19  Derek Price  <derek@ximbiot.com>
21826
21827         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
21828         Correct grammar.
21829
21830 2006-07-17  Bruno Haible  <bruno@clisp.org>
21831
21832         * modules/list: New file.
21833         * modules/array-list: New file.
21834         * modules/carray-list, modules/carray-list-tests: New files.
21835         * modules/linked-list, modules/linked-list-tests: New files.
21836         * modules/avltree-list, modules/avltree-list-tests: New files.
21837         * modules/rbtree-list, modules/rbtree-list-tests: New files.
21838         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
21839         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
21840         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
21841         * modules/oset: New file.
21842         * modules/array-oset: New file.
21843         * modules/avltree-oset, modules/avltree-oset-tests: New files.
21844         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
21845         * tests/test-carray_list.c: New file.
21846         * tests/test-linked_list.c: New file.
21847         * tests/test-avltree_list.c: New file.
21848         * tests/test-rbtree_list.c: New file.
21849         * tests/test-linkedhash_list.c: New file.
21850         * tests/test-avltreehash_list.c: New file.
21851         * tests/test-rbtreehash_list.c: New file.
21852         * tests/test-avltree_oset.c: New file.
21853         * tests/test-rbtree_oset.c: New file.
21854         * MODULES.html.sh (Container data structures): New section.
21855
21856 2006-07-17  Bruno Haible  <bruno@clisp.org>
21857
21858         * m4/gl_list.m4: New file.
21859
21860 2006-07-17  Bruno Haible  <bruno@clisp.org>
21861
21862         * lib/gl_list.h: New file.
21863         * lib/gl_list.c: New file.
21864         * lib/gl_array_list.h: New file.
21865         * lib/gl_array_list.c: New file.
21866         * lib/gl_carray_list.h: New file.
21867         * lib/gl_carray_list.c: New file.
21868         * lib/gl_linked_list.h: New file.
21869         * lib/gl_linked_list.c: New file.
21870         * lib/gl_anylinked_list1.h: New file.
21871         * lib/gl_anylinked_list2.h: New file.
21872         * lib/gl_avltree_list.h: New file.
21873         * lib/gl_avltree_list.c: New file.
21874         * lib/gl_anyavltree_list1.h: New file.
21875         * lib/gl_anyavltree_list2.h: New file.
21876         * lib/gl_rbtree_list.h: New file.
21877         * lib/gl_rbtree_list.c: New file.
21878         * lib/gl_anyrbtree_list1.h: New file.
21879         * lib/gl_anyrbtree_list2.h: New file.
21880         * lib/gl_anytree_list1.h: New file.
21881         * lib/gl_anytree_list2.h: New file.
21882         * lib/gl_linkedhash_list.h: New file.
21883         * lib/gl_linkedhash_list.c: New file.
21884         * lib/gl_anyhash_list1.h: New file.
21885         * lib/gl_anyhash_list2.h: New file.
21886         * lib/gl_avltreehash_list.h: New file.
21887         * lib/gl_avltreehash_list.c: New file.
21888         * lib/gl_rbtreehash_list.h: New file.
21889         * lib/gl_rbtreehash_list.c: New file.
21890         * lib/gl_anytreehash_list1.h: New file.
21891         * lib/gl_anytreehash_list2.h: New file.
21892
21893         * lib/gl_oset.h: New file.
21894         * lib/gl_oset.c: New file.
21895         * lib/gl_array_oset.h: New file.
21896         * lib/gl_array_oset.c: New file.
21897         * lib/gl_avltree_oset.h: New file.
21898         * lib/gl_avltree_oset.c: New file.
21899         * lib/gl_rbtree_oset.h: New file.
21900         * lib/gl_rbtree_oset.c: New file.
21901         * lib/gl_anytree_oset.h: New file.
21902
21903 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21904
21905         * m4/mkancesdirs.m4: New file.
21906         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
21907         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
21908         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
21909         it.
21910
21911 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21912
21913         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
21914         * lib/mkancesdirs.h: New files.
21915         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
21916         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
21917         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
21918         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
21919         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
21920         callers changed.  Revamp internals significantly, by not
21921         attempting to create directories that are temporarily more
21922         permissive than the final results.  Do not attempt to use
21923         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
21924         This removes some race conditions, fixes some bugs, and simplifies
21925         things.  Use new dirchownmod function to do owner and mode changes.
21926         * lib/mkdir-p.h: Likewise.
21927         * lib/modechange.c (octal_to_mode): New function.
21928         (struct mode_change): New member mentioned.
21929         (make_node_op_equals): New arg mentioned.  All callers changed.
21930         (mode_compile): Keep track of which mode bits the user has explicitly
21931         mentioned.
21932         (mode_adjust): New arg DIR, so that we implement the X op correctly.
21933         New arg PMODE_BITS, to keep track of which mode bits the user
21934         mentioned; it treats S_ISUID and S_ISGID speciall.
21935         All callers changed.
21936         * lib/modechange.h: Likewise.
21937
21938 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21939
21940         * MODULES.html.sh: Add mkancestors.
21941         * modules/mkancesdirs: New module.
21942         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
21943         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
21944         The chdir-safer and afs files are now orphans; I'll remove them
21945         unless someone speaks up.
21946         Add lib/dirchownmod.c, lib/dirchownmod.h.
21947         (Depends-on): Remove alloca, chown, save-cwd, dirname.
21948         Add lchown, mkancesdirs.
21949         (Maintainer): Add self.
21950
21951 2006-07-15  Karl Berry  <karl@gnu.org>
21952
21953         * gnulib-tool: help message wording/arrangement.
21954
21955 2006-07-14  Simon Josefsson  <jas@extundo.com>
21956
21957         * doc/gnulib.texi (Libtool and Windows): New section.
21958
21959 2006-07-12  Simon Josefsson  <jas@extundo.com>
21960
21961         * modules/gendocs (License): Fix license, approved by Karl.
21962
21963 2006-07-12  Eric Blake  <ebb9@byu.net>
21964
21965         * MODULES.html.sh: Add gendocs.
21966
21967 2006-07-11  Eric Blake  <ebb9@byu.net>
21968
21969         * modules/fdl: New module, to install doc/fdl.texi.
21970         * MODULES.html.sh: Add new section for documentation modules.
21971         * gnulib-tool: Avoid space-tab.
21972         (--doc-base): New option, to manage files from doc.
21973
21974 2006-07-11  Eric Blake  <ebb9@byu.net>
21975
21976         * m4/absolute-header.m4: Fix comments to match recent change.
21977
21978 2006-07-11  Eric Blake  <ebb9@byu.net>
21979
21980         * gnulib-tool: List --doc-base before --tests-base.
21981
21982 2006-07-11  Derek R. Price  <derek@ximbiot.com>
21983
21984         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
21985
21986 2006-07-11  Bruno Haible  <bruno@clisp.org>
21987
21988         * README: Mention where to put documentation.
21989
21990 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21991
21992         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
21993
21994 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21995
21996         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
21997         to stdint.m4.
21998
21999 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22000
22001         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
22002         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
22003         "no/such/file/stdint.h" when there is no such file, so that
22004         the resulting C code can be parsed by dodgy compilers.
22005         Problems reported by Bob Proulx.
22006
22007 2006-07-10  Derek R. Price  <derek@ximbiot.com>
22008
22009         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
22010         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
22011         macros into the GNU _D_EXACT_NAMLEN.
22012         * lib/savedir.c:  Likewise.
22013         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
22014
22015 2006-07-10  Derek R. Price  <derek@ximbiot.com>
22016         and Paul Eggert  <eggert@cs.ucla.edu>
22017
22018         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
22019         * m4/savedir.m4:
22020         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
22021         macros into the GNU _D_EXACT_NAMLEN.
22022
22023 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22024
22025         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
22026         around the absolute name, to work around a problem with the HP-UX
22027         11.23 native C compiler, reported by Bob Proulx.
22028
22029 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22030
22031         * doc/maintain.texi, make-stds.texi: Sync from
22032         <http://savannah.gnu.org/projects/gnustandards>.
22033
22034 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22035
22036         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
22037
22038 2006-07-09  Jim Meyering  <jim@meyering.net>
22039
22040         * m4/glob.m4: Remove a doubled word in a comment.
22041
22042 2006-07-09  Jim Meyering  <jim@meyering.net>
22043
22044         * lib/argp-pv.c: Remove a doubled word in a comment.
22045         * lib/check-version.c (check_version): Likewise.
22046         * lib/javacomp.c (compile_java_class): Likewise.
22047
22048 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22049
22050         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
22051         for the benefit of people using Autoconf 2.60.  If you want to
22052         support older Autoconf versions you can copy m4/onceonly_2_57.m4
22053         (or m4/onceonly.m4, if pre-2.57) manually.
22054
22055 2006-07-08  Jim Meyering  <jim@meyering.net>
22056
22057         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
22058         comment.
22059         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
22060         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
22061         comment.
22062
22063 2006-07-08  Jim Meyering  <jim@meyering.net>
22064
22065         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
22066
22067 2006-07-07  Simon Josefsson  <jas@extundo.com>
22068
22069         * tests/test-crc.c: Change expected crc value, the test vector
22070         were probably computed using the old broken crc.c?
22071
22072 2006-07-06  Simon Josefsson  <jas@extundo.com>
22073
22074         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
22075         now the canonical place for the M4 file).
22076
22077         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
22078         from the sys_socket dependency now.
22079
22080         * modules/inet_pton (Files): Ditto.
22081
22082         * modules/inet_ntop (Files): Ditto.
22083
22084 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
22085
22086         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
22087         not gl_PREREQ_GETUSERSHELL.
22088
22089 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22090
22091         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
22092         with only one argument, for Autoconf 2.60.
22093         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
22094         expand to nothing, so add a shell command to avoid syntax error.
22095         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
22096
22097 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22098
22099         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
22100
22101 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22102
22103         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
22104         no longer needed.  Check for isblank decl.
22105         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
22106         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
22107         of existence.
22108
22109 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22110
22111         * lib/getloadavg.c: Use __VMS, not VMS.
22112         * lib/getopt.c: Likewise.
22113         * lib/getpagesize.h: Likewise.
22114         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
22115         and probably does not work.
22116
22117 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22118
22119         * lib/.cppi-disable: Add wcwidth.
22120         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
22121         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
22122         (ISGRAPH): Remove.  All uses changed to isgraph.
22123         (FOLD) [!defined _LIBC]: Remove special case.
22124         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
22125         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
22126         HAVE_ISBLANK.
22127         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
22128         case.
22129
22130 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
22131
22132         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
22133         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
22134         brackets.  Other minor changes to suppress some compiler
22135         warnings.
22136
22137 2006-07-06  Derek R. Price  <derek@ximbiot.com>
22138         and Paul Eggert  <eggert@cs.ucla.edu>
22139
22140         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
22141         of invoking obsolescent AC_HEADER_DIRENT macro.
22142         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22143         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
22144         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22145         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
22146         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
22147         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
22148         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
22149         * m4/readdir.m4: Remove; no longer needed.
22150
22151 2006-07-06  Derek R. Price  <derek@ximbiot.com>
22152         and Paul Eggert  <eggert@cs.ucla.edu>
22153
22154         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
22155         Don't worry about this obsolete case any more.
22156         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
22157         directories.
22158         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
22159         worry about this obsolete case any more.
22160         * lib/fts.c: Likewise.
22161         * lib/getcwd.c: Likewise.
22162         * lib/glob.h: Likewise.
22163         * lib/savedir.c: Likewise.
22164
22165 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22166
22167         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
22168         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
22169         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
22170         needed.
22171         All uses removed.
22172         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
22173         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
22174         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
22175         needed.
22176         * m4/getdate.m4 (gl_GETDATE): Likewise.
22177         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
22178         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
22179         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22180         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
22181         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
22182         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
22183         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
22184         needed.
22185
22186 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22187
22188         * lib/memcasecmp.c: Include <limits.h>.
22189         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
22190         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
22191         Don't assume isdigit succeeds only on '0' through '9'.
22192
22193 2006-07-05  Eric Blake  <ebb9@byu.net>
22194
22195         * modules/getaddrinfo (Depends-on): Add snprintf.
22196
22197 2006-07-05  Eric Blake  <ebb9@byu.net>
22198
22199         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
22200         to avoid 'header present but could not be compiled' on cygwin.
22201
22202 2006-07-05  Eric Blake  <ebb9@byu.net>
22203
22204         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
22205         missing from netdb.h.
22206         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
22207
22208 2006-07-05  Derek R. Price  <derek@ximbiot.com>
22209
22210         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
22211         no longer needed.
22212         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
22213         * m4/getdate.m4 (gl_GETDATE): Likewise.
22214         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
22215         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
22216         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22217         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
22218         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
22219
22220 2006-07-05  Derek R. Price  <derek@ximbiot.com>
22221
22222         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
22223         All uses of is_space replaced by isspace.
22224         * lib/exit.h: Don't talk about STDC_HEADERS.
22225         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
22226         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
22227         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
22228         replaced by isprint etc.
22229         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
22230         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
22231         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
22232         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
22233         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
22234         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
22235
22236 2006-07-05  Bruno Haible  <bruno@clisp.org>
22237
22238         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
22239         the function exists, before testing against AIX.
22240         Reported by Martin Lambers <marlam@marlam.de>.
22241
22242 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
22243
22244         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
22245         From Mark D. Baushke.
22246
22247 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
22248
22249         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
22250         to the absolute name, not just one, to bypass Sun C 5.8's
22251         "warning: #include of /usr/include/... may be non-portable".
22252
22253 2006-07-04  Eric Blake  <ebb9@byu.net>
22254
22255         * modules/dirname-tests: New test module.
22256         * tests/test-dirname.c: New file, replacing dirname.c
22257         TEST_DIRNAME section that was recently deleted.
22258
22259 2006-07-04  Bruno Haible  <bruno@clisp.org>
22260
22261         Assume ANSI C header files and <ctype.h> functions.
22262         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
22263         (mbsnwidth): Use isprint, iscntrl instead.
22264
22265 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22266
22267         Merge from coreutils.
22268         * MODULES.html.sh: Add xstrtold.
22269         * modules/xstrtold: New file.
22270         * modules/cycle-check (Files): Add lib/same-inode.h.
22271         * modules/dirname (Files): Add m4/double-slash-root.m4.
22272         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
22273         * modules/mkdir-p (Files): Add lib/same-inode.h.
22274         * modules/same (Files): Add lib/same-inode.h.
22275
22276 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22277
22278         * m4/absolute-header.m4: Renamed from full-header-path.m4.
22279         This is to keep the terminology clean; POSIX talks about
22280         "absolute pathnames", not "full pathnames", but the GNU
22281         Coding Standards say to use "path" for something else;
22282         so use "absolute" to keep both sides happy.
22283         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
22284         Set gl_absolute_header, not gl_full_header_path.
22285         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
22286         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
22287         All uses changed.
22288
22289         Merge from coreutils.
22290
22291         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
22292
22293         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
22294         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
22295         want to require the building of c-strtod.o.
22296         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
22297         needs -lm directly.
22298         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
22299
22300         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
22301
22302         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
22303         --as-needed option if available.  Problem reported by Albert Chin in
22304         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
22305         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
22306         cc merely issues a bunch of annoying warnings for --as-needed
22307         (this problem was reported by Bob Proulx).  Also, try linking with
22308         -lm to detect a bug in binutils 2.16 (this problem was reported
22309         by Ralf Wildenhues).
22310
22311         2006-06-18  Jim Meyering  <jim@meyering.net>
22312
22313         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
22314         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
22315         macro.
22316         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
22317         also check for glibc-2.4's abort-inducing bug.
22318
22319         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
22320         Low-probability clean-up should be to use rmdir to get rid of
22321         the just-created directory, not unlink.
22322
22323         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
22324         configure fail, and request a bug report to inform us about it.
22325         Add a comment that, barring reports to the contrary, in 2007 we'll
22326         assume ftruncate is universally available.
22327
22328         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
22329
22330         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
22331
22332         2006-03-12  Jim Meyering  <jim@meyering.net>
22333
22334         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
22335         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
22336         * m4/same.m4 (gl_SAME): Likewise.
22337         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
22338
22339         2006-03-11  Eric Blake  <ebb9@byu.net>
22340
22341         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
22342         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
22343         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
22344         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
22345
22346 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22347
22348         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
22349         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
22350         reported by Mark D. Baushke, one in
22351         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
22352
22353         Merge from coreutils.
22354
22355         * lib/.cppi-disable: Add stdint_.h.
22356         * lib/.cvsignore: Add stdint.h.
22357
22358         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
22359
22360         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
22361         both double and long double versions.
22362         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
22363         * lib/xstrtold.c: New file.
22364         * lib/xstrtod.h (xstrtold): New decl.
22365
22366         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
22367
22368         * lib/filemode.c (setst): Remove.
22369         (strmode): Rewrite to avoid setst.  This makes the code shorter,
22370         (arguably) clearer, and the generated code is a bit smaller on my
22371         Debian GNU/Linux stable x86 host.
22372
22373         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
22374
22375         * lib/filemode.c: Include "filemode.h" first, to test the interface.
22376         Assume that filemode.h includes sys/types.h and sys/stat.h.
22377         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
22378         (ftypelet): Reorder to put common cases first, for efficiency.
22379         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
22380         to do 'M'.
22381         (strmode): Renamed from mode_string, and now stores 12 bytes instead
22382         of 10, for compatibility with FreeBSD.  All callers changed.
22383         (filemodestring): Now stores 12 bytes instead of 10, and sets file
22384         types that can't be deduced solely from st_mode.  First arg is now a
22385         const pointer.
22386         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
22387         (strmode): Renamed from mode_string.
22388         (filemodestring): New decl.
22389         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
22390         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
22391         needed.
22392         (S_ISPORT, S_ISWHT): New macros, if not already defined.
22393
22394         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
22395
22396         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
22397         fsusage.h now does that.  Include fsusage.h first, to test interface.
22398         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
22399         at most one method (the old code could have generated decls that
22400         didn't conform to C89, not that this was ever exercised).
22401         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
22402
22403         2006-03-19  Jim Meyering  <jim@meyering.net>
22404
22405         Work even in a chroot where d_ino values for entries in "/"
22406         don't match the stat.st_ino values for the same names.
22407         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
22408         number, iterate through all entries again, using lstat instead.
22409         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
22410         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
22411
22412         * lib/getcwd.c (__getcwd): Clarify a comment.
22413         Use memcpy in place of a call to strcpy.
22414
22415         2006-03-12  Jim Meyering  <jim@meyering.net>
22416
22417         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
22418         matches that of the current directory (which we're about to chdir ".."
22419         out of), then save the dev-ino of the parent, instead.
22420
22421         * lib/same-inode.h (SAME_INODE): New file/macro.
22422         * lib/chdir-safer.c (SAME_INODE): Remove definition.
22423         Include "same-inode.h", instead.
22424         * lib/same.c: Likewise.
22425         * lib/cycle-check.h: Include "same-inode.h".
22426         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
22427         * lib/cycle-check.c (SAME_INODE): Remove definition.
22428         * lib/root-dev-ino.h: Include "same-inode.h".
22429
22430         2006-03-11  Eric Blake  <ebb9@byu.net>
22431
22432         * lib/same.c (same_name): s/base_name/last_component/
22433         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
22434         * lib/filenamecat.c (file_name_concat): Likewise.
22435
22436         2006-03-11  Eric Blake  <ebb9@byu.net>,
22437                     Paul Eggert  <eggert@cs.ucla.edu>
22438
22439         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
22440         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
22441         drive prefix.
22442         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
22443         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
22444         (last_component): New method.
22445         * lib/dirname.c (dir_len): Determine when drive letters need a
22446         subsequent slash.  Preserve // when it is special.
22447         (dir_name): Don't append dot when drive letter is absolute.
22448         [TEST_DIRNAME]: Move into a full-blown gnulib test.
22449         * lib/basename.c (base_name): New semantics - malloc the result.
22450         Preserve // when it is special.  Preserve relative files that look
22451         like drive letters.
22452         (base_len): Preserve // when it is special.
22453         (last_component): New method, similar to old base_name semantics.
22454         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
22455         base_name.  Strip redundant slashes from ///.
22456
22457 2006-07-03  Jim Meyering  <jim@meyering.net>
22458
22459         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
22460         macro is used before the first cycle_check call.
22461
22462 2006-07-03  Eric Blake  <ebb9@byu.net>
22463
22464         * modules/dirname (Depends-on): Add xstrndup.
22465
22466 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22467
22468         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
22469         test cases, so that config.log is a bit easier to follow.
22470
22471 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22472
22473         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
22474         both are 64 bits, since this seems to be the tradition, and this
22475         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
22476         we ever run into a host that prefers long long to long in this
22477         case, we'll need another configure-time test.  Problem reported by
22478         Jim Meyering.
22479
22480 2006-07-02  Eric Blake  <ebb9@byu.net>
22481
22482         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
22483
22484 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22485
22486         * modules/inttypes (Depends-on): No longer depends on stdint.
22487         * modules/stdint (Description): Say more about assumptions.
22488         Say that the fast types might differ.  Say macros are used.
22489         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
22490         (Makefile.am): Revise list of substituted symbols to match
22491         new stdint.m4.
22492         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
22493         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
22494         * tests/test-stdint.c (verify_same_types)
22495         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
22496         the code conforms to C99/C89.
22497         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
22498         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
22499
22500 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22501
22502         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
22503         but fix a bug, by requiring at least 64 bits.
22504         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
22505         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
22506         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
22507         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
22508
22509         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
22510         changes.  Make 2.59 a prerequisite.  Check and substitute for
22511         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
22512         inttypes.h.  Do not use special include files; just use the
22513         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
22514         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
22515         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
22516         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
22517         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
22518         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
22519         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
22520         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
22521         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
22522         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
22523         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
22524         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
22525         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
22526         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
22527         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
22528         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
22529         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
22530         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
22531         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
22532         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
22533         WINT_MAX.  Check for C99 conformance more strictly, by detecting
22534         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
22535         not check for things that C99 does not require, e.g., int8_t.  If
22536         a test isn't needed unless <stdint.h> isn't working, and is
22537         unlikely to be needed for any other reason, then don't do it
22538         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
22539         size_t, since we assume C89 freestanding at least.  Do not check
22540         for sig_atomic_t, wchar_t, or wint_t, since the code now does
22541         the right thing even if the types are not defined.  Instead use:
22542         (gl_STDINT_TYPE_PROPERTIES): New macro.
22543         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
22544         testing whether <sys/types.h> clashes, as Autoconf does this for
22545         us now.  All uses removed.
22546         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
22547         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
22548         (gl_CHECK_TYPE_SAME):
22549         Remove; no longer needed.
22550         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
22551         exists, since we'll return 0 anyway in that case.
22552         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
22553
22554 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22555
22556         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
22557         possible collision with system files.
22558         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
22559         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
22560         WCHAR_MIN and WCHAR_MAX in this case.
22561         (<stddef.h>): Do not include; no longer needed.
22562         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
22563         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
22564         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
22565         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
22566         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
22567         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
22568         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
22569         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
22570         !defined(__c99))]: Include in this case too, since it's harmless
22571         now.
22572         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
22573         dangerous to do so.
22574         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
22575         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
22576         (_STDINT_MIN, _STDINT_MAX): New macros.
22577         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
22578         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
22579         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
22580         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
22581         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
22582         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
22583         macros, not typedefs; this simplifies things quite a bit.
22584         Use long int for all types narrower than int64_t.
22585         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
22586         Define in terms of long long int or int64_t or long int,
22587         not int64_t or int32_t.  This saves some compile-time testing.
22588         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
22589         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
22590         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
22591         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
22592         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
22593         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
22594         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
22595         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
22596         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
22597         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
22598         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22599         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22600         undef any previous version and define our own version, for
22601         simplicity and consistency with the new macros for types.
22602         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22603         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22604         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
22605         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
22606         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
22607         @WINT_T_SUFFIX@ to keep things simple here.
22608         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
22609         Simplify by assuming typical 8/16/32/64 host, since we're
22610         already doing that elsewhere anyway.
22611         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
22612         and assume long long int is 64 bits if available.  This
22613         speeds up 'configure'.
22614
22615 2006-07-01  Eric Blake  <ebb9@byu.net>
22616
22617         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
22618         Reported by Andreas Buening.
22619
22620 2006-07-01  Eric Blake  <ebb9@byu.net>
22621
22622         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
22623
22624 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
22625
22626         * lib/getaddrinfo.c: fixed typo
22627
22628 2006-06-29  Jim Meyering  <jim@meyering.net>
22629
22630         * modules/strftime (Maintainer): Add my name, since with the
22631         FPRINTFTIME changes strftime.c has forked from glibc.
22632
22633 2006-06-29  Eric Blake  <ebb9@byu.net>
22634
22635         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
22636
22637 2006-06-29  Eric Blake  <ebb9@byu.net>
22638
22639         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
22640
22641 2006-06-29  Eric Blake  <ebb9@byu.net>
22642
22643         * lib/stat_.h: New file.
22644
22645 2006-06-29  Eric Blake  <ebb9@byu.net>
22646
22647         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
22648         unused static function.
22649
22650 2006-06-29  Eric Blake  <ebb9@byu.net>
22651
22652         * doc/functions.texi (Function Portability): Document missing lstat
22653         on mingw.
22654
22655 2006-06-29  Eric Blake  <ebb9@byu.net>
22656
22657         * MODULES.html.sh: Add sys_stat.
22658         * modules/sys_stat: New module.
22659         * modules/mkstemp (Depends-on): Add sys_stat.
22660
22661 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22662
22663         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
22664
22665 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22666
22667         * m4/c-bs-a.m4: Removed.
22668
22669 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22670
22671         * lib/strftime.c: Assume strftime() exists.
22672
22673 2006-06-29  Derek Price  <derek@ximbiot.com>
22674
22675         * modules/c-bs-a: Removed - \a is C89.
22676         * MODULES.html.sh: Remove c-bs-a.
22677
22678 2006-06-29  Bruno Haible  <bruno@clisp.org>
22679
22680         * modules/wcwidth (License): Change to LGPL.
22681
22682 2006-06-28  Simon Josefsson  <jas@extundo.com>
22683
22684         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
22685         on _WIN32.
22686
22687         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
22688         getnameinfo.
22689
22690 2006-06-28  Simon Josefsson  <jas@extundo.com>
22691
22692         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
22693
22694 2006-06-28  Simon Josefsson  <jas@extundo.com>
22695
22696         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
22697         functions there.  It will succeed on Windows XP, but on Windows
22698         2000 and (presumably) earlier, it will fail, and use the internal
22699         re-implementation.
22700         (use_win32_p): New function.
22701         (getaddrinfo): Use strtoul on servname, to support numeric ports.
22702         Support AI_NUMERICSERV to disable getservbyname.
22703         (getnameinfo): New function, only supports
22704         NI_NUMERICHOST|NI_NUMERICSERV for now.
22705
22706         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
22707         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
22708         getnameinfo.
22709
22710 2006-06-28  Eric Blake  <ebb9@byu.net>
22711
22712         * modules/wcwidth: New file.
22713         * modules/mbchar (Depends-on): Add wcwidth.
22714         * modules/mbswidth (Depends-on): Add wcwidth.
22715         * MODULES.html.sh: Add wcwidth.
22716
22717 2006-06-28  Eric Blake  <ebb9@byu.net>
22718
22719         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
22720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
22721
22722 2006-06-28  Eric Blake  <ebb9@byu.net>
22723
22724         * lib/xvasprintf.h: Fix comments.
22725
22726 2006-06-28  Eric Blake  <ebb9@byu.net>
22727
22728         * lib/mbchar.h (wcwidth): Include wcwidth.h.
22729         * lib/mbswidth.c (wcwidth): Move from here...
22730         * lib/wcwidth.h: ...to this new file.
22731
22732 2006-06-28  Derek R. Price  <derek@ximbiot.com>
22733
22734         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
22735
22736         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
22737         it's obsolete.
22738         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
22739
22740 2006-06-28  Derek R. Price  <derek@ximbiot.com>
22741
22742         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
22743         Autoconf 2.60 says this stuff was obsolete.
22744
22745 2006-06-28  Bruno Haible  <bruno@clisp.org>
22746
22747         * modules/wcwidth (Files): Add m4/wchar_t.m4.
22748
22749 2006-06-28  Bruno Haible  <bruno@clisp.org>
22750
22751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
22752         gt_TYPE_WCHAR_T.
22753
22754 2006-06-28  Bruno Haible  <bruno@clisp.org>
22755
22756         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
22757         declaration for wcwidth.
22758         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
22759
22760 2006-06-28  Bruno Haible  <bruno@clisp.org>
22761
22762         * lib/mkdtemp.c [MINGW]: Include <io.h>.
22763         (mkdir): Define using _mkdir.
22764
22765 2006-06-28  Bruno Haible  <bruno@clisp.org>
22766
22767         * lib/getaddrinfo.h: Fix POSIX URL.
22768         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
22769         _WIN32.
22770         (use_win32_p): Make static.
22771         (getaddrinfo): Reject service name if it is empty or does not consist
22772         solely of decimal digits, or if its value is > 65535.
22773         (getnameinfo): Remove useless casts.
22774
22775 2006-06-27  Simon Josefsson  <jas@extundo.com>
22776
22777         * modules/sys_select: New file, suggested by Bruno Haible, Paul
22778         Eggert and Martin Lambers.
22779
22780 2006-06-27  Simon Josefsson  <jas@extundo.com>
22781
22782         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
22783         Eggert and Martin Lambers.
22784
22785 2006-06-27  Bruno Haible  <bruno@clisp.org>
22786
22787         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
22788         result to 0, not to empty.
22789         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
22790
22791 2006-06-27  Bruno Haible  <bruno@clisp.org>
22792
22793         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
22794
22795 2006-06-26  Simon Josefsson  <jas@extundo.com>
22796
22797         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
22798         present.
22799
22800 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
22801
22802         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
22803         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
22804         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
22805
22806 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
22807
22808         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
22809
22810 2006-06-26  Bruno Haible  <bruno@clisp.org>
22811
22812         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
22813
22814 2006-06-26  Bruno Haible  <bruno@clisp.org>
22815
22816         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
22817
22818 2006-06-26  Bruno Haible  <bruno@clisp.org>
22819
22820         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
22821         SGI C compiler in pre-C99 mode.
22822         Suggested by Mark D. Baushke and Larry Jones.
22823
22824 2006-06-26  Bruno Haible  <bruno@clisp.org>
22825
22826         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
22827         WCHAR_MAX.
22828         Reported by Mark D. Baushke and Larry Jones.
22829
22830 2006-06-26  Bruno Haible  <bruno@clisp.org>
22831
22832         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
22833         in pre-C99 mode.
22834         Suggested by Mark D. Baushke and Larry Jones.
22835
22836 2006-06-23  Simon Josefsson  <jas@extundo.com>
22837             Bruno Haible  <bruno@clisp.org>
22838
22839         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
22840         Emit mostlyclean-local rule.
22841         (func_emit_tests_Makefile_am): Likewise.
22842         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
22843
22844 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
22845
22846         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
22847
22848 2006-06-23  Bruno Haible  <bruno@clisp.org>
22849
22850         * tests/test-stdint.c: Update to match ISO C 99 Technical
22851         Corrigendum 1.
22852
22853 2006-06-23  Bruno Haible  <bruno@clisp.org>
22854
22855         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
22856
22857 2006-06-23  Bruno Haible  <bruno@clisp.org>
22858
22859         * lib/stdint_.h: Treat IRIX like OpenBSD.
22860
22861 2006-06-23  Bruno Haible  <bruno@clisp.org>
22862
22863         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
22864         ISO C 99 Technical Corrigendum 1.
22865
22866 2006-06-22  Simon Josefsson  <jas@extundo.com>
22867
22868         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
22869         MinGW.
22870
22871 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22872
22873         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
22874         needed.  Some compiler complained about some of them.  Problem reported
22875         by Larry Jones in
22876         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
22877
22878 2006-06-21  Simon Josefsson  <jas@extundo.com>
22879
22880         * tests/test-getaddrinfo.c: New file.
22881
22882         * modules/getaddrinfo-tests: New file.
22883
22884         * MODULES.html.sh: Add inet_pton.
22885
22886         * modules/inet_pton: New file.
22887
22888 2006-06-21  Simon Josefsson  <jas@extundo.com>
22889
22890         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
22891         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
22892         of using the (limited) gnulib implementation on Windows XP.
22893
22894         * m4/inet_pton.m4: New file.
22895
22896 2006-06-21  Simon Josefsson  <jas@extundo.com>
22897
22898         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
22899         variable.
22900
22901         * lib/socket_.h: Don't define WINVER.
22902
22903         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
22904         slightly modified to work in gnulib.
22905
22906 2006-06-21  Simon Josefsson  <jas@extundo.com>
22907
22908         * doc/gnulib.texi (Windows sockets): Add.
22909
22910 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22911
22912         * lib/read-file.c (fread_file): Start with buffer allocation of
22913         0 bytes rather than 1 byte; this simplifies the code.
22914         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
22915         code to free buffer and save/restore errno.
22916         (internal_read_file): Remove unused local.
22917
22918 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22919
22920         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
22921         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
22922         Problem reported by Denis Excoffier in
22923         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
22924
22925 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22926
22927         * modules/sys_socket, modules/socklen: Include sys/types since
22928         FreeBSD 4.x's sys/socket.h needs it.
22929
22930 2006-06-19  Simon Josefsson  <jas@extundo.com>
22931
22932         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
22933
22934 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
22935
22936         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
22937
22938 2006-06-19  Bruno Haible  <bruno@clisp.org>
22939
22940         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
22941         and FULL_PATH_INTTYPES_H in angle brackets.
22942         Reported by Mark D. Baushke <mdb@gnu.org>.
22943
22944 2006-06-17  Eric Blake  <ebb9@byu.net>
22945
22946         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
22947         errno.
22948
22949 2006-06-17  Bruno Haible  <bruno@clisp.org>
22950
22951         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
22952         <sys/inttypes.h>.
22953
22954 2006-06-17  Bruno Haible  <bruno@clisp.org>
22955
22956         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
22957         whether errno is declared. Assume <errno.h> declares errno.
22958
22959 2006-06-17  Bruno Haible  <bruno@clisp.org>
22960
22961         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
22962
22963 2006-06-17  Bruno Haible  <bruno@clisp.org>
22964
22965         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
22966         problem on Solaris 2.5.1.
22967
22968 2006-06-16  Eric Blake  <ebb9@byu.net>
22969
22970         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
22971         * lib/unicodeio.c [!defined errno]: Likewise.
22972         * lib/strtol.c [!defined errno]: Likewise.
22973         * lib/strtod.c [!defined errno]: Likewise.
22974
22975 2006-06-15  Eric Blake  <ebb9@byu.net>
22976
22977         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
22978
22979 2006-06-15  Eric Blake  <ebb9@byu.net>
22980
22981         * config/srclist.txt (ssize_t.m4): Lose sync.
22982
22983 2006-06-15  Bruno Haible  <bruno@clisp.org>
22984
22985         * modules/stdint (Files): Include m4/full-header-path.m4,
22986         m4/size_max.m4, m4/wchar_t.m4.
22987         (Makefile.am): Many more substitutions.
22988         * modules/stdint-tests: New file.
22989         * tests/test-stdint.c: New file.
22990
22991 2006-06-15  Bruno Haible  <bruno@clisp.org>
22992
22993         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
22994         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
22995         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
22996         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
22997         gl_CHECK_TYPE_SAME): New macros.
22998
22999 2006-06-15  Bruno Haible  <bruno@clisp.org>
23000
23001         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
23002
23003 2006-06-15  Bruno Haible  <bruno@clisp.org>
23004
23005         * lib/stdint_.h: Rewritten to be fully auto-configured.
23006         Fixes bug on HP-UX/IA64.
23007
23008 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
23009
23010         * lib/getdate.y (__attribute__): Don't define if already defined.
23011         Problem reported by Larry Jones.
23012         * lib/utimens.c (__attribute__): Likewise.
23013
23014 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
23015
23016         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
23017         reported by Andreas Schwab.
23018
23019 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23020             Bruno Haible  <bruno@clisp.org>
23021
23022         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
23023         check for the declaration of strnlen and a run test that exposes the
23024         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
23025         rpl_strndup.
23026
23027 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23028             Bruno Haible  <bruno@clisp.org>
23029
23030         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
23031
23032 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23033
23034         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
23035         compile test, for Tru64 4.0D.
23036
23037 2006-05-28  Karl Berry  <karl@gnu.org>
23038
23039         * config/srclist.txt (printf-args.c): lose sync.
23040
23041 2006-05-26  Martin Lambers  <marlam@marlam.de>
23042
23043         * lib/getpass.c: Updates the test for the native W32 API, and adds
23044         missing includes, thus fixing compilation warnings.
23045
23046 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23047
23048         * lib/exclude.c (exclude_fnmatch): New function.
23049         (excluded_file_name): Call exclude_fnmatch.
23050         * lib/exclude.h (excluded_file_name): New prototype
23051
23052 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
23053
23054         * lib/tempname.c (small_open, large_open): New macros.
23055         (__open, __open64) [!_LIBC]: Remove.
23056         (__gen_tempname): Use small_open and large_open instead of __open
23057         and __open64.  This fixes a portability bug on HP-UX 11.11i
23058         reported by Simon Wing-Tang in
23059         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
23060
23061 2006-05-24  Bruno Haible  <bruno@clisp.org>
23062
23063         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
23064         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
23065         Reported by Thorsten Maerz <torte@netztorte.de> via
23066         Aaron Stone <aaron@serendipity.cx>.
23067
23068 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23069
23070         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
23071         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
23072         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
23073         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
23074         not really conditional on the cache.
23075         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
23076
23077 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23078
23079         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
23080         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
23081         (my_usleep): Don't mishandle maximum value.
23082
23083 2006-05-19  Jim Meyering  <jim@meyering.net>
23084
23085         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
23086
23087 2006-05-17  Bruno Haible  <bruno@clisp.org>
23088
23089         Cygwin portability.
23090         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
23091
23092 2006-05-17  Bruno Haible  <bruno@clisp.org>
23093
23094         * lib/stdint_.h: Fix recognition of Cygwin.
23095
23096 2006-05-15  Bruno Haible  <bruno@clisp.org>
23097
23098         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
23099         on libtool patch by Ralf Wildenhues.
23100
23101 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23102
23103         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
23104         test for C99 conformance; (bool) 0.5 is an integer constant
23105         expression, but (bool) -0.5 is not.  Problem reported by Fedor
23106         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
23107
23108 2006-05-11  Simon Josefsson  <jas@extundo.com>
23109
23110         * m4/xvasprintf.m4: Fix obvious typo.
23111
23112 2006-05-11  Jim Meyering  <jim@meyering.net>
23113
23114         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
23115         James Lemley.
23116
23117 2006-05-10  Simon Josefsson  <jas@extundo.com>
23118
23119         * lib/md4.c: Typo fix, update copyright years.
23120         (K1, K2): Don't use L because it turn computations into 64-bit on
23121         64-bit platforms.
23122
23123 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
23124
23125         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
23126         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
23127         unwanted sign propagation, e.g., on hosts with 64-bit int.
23128         There still are some problems with reeelly weird theoretical hosts
23129         (e.g., 33-bit int) but it's not worth worrying about now.
23130         * lib/sha1.c (rol): Likewise.
23131         (K1, K2, K3, K4): Remove unnecessary L suffix.
23132
23133 2006-05-10  Bruno Haible  <bruno@clisp.org>
23134
23135         * lib/des.c: Cast to avoid warnings.
23136
23137 2006-05-09  Bruno Haible  <bruno@clisp.org>
23138
23139         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
23140         (Depends-on): Depend also on xsize, stdarg.
23141         (configure.ac): Add gl_XVASPRINTF.
23142
23143 2006-05-09  Bruno Haible  <bruno@clisp.org>
23144
23145         * m4/xvasprintf.m4: New file.
23146
23147 2006-05-09  Bruno Haible  <bruno@clisp.org>
23148
23149         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
23150         (EOVERFLOW): Define fallback value.
23151         (xstrcat): New function.
23152         (xvasprintf): Recognize the special case of a string concatenation.
23153
23154 2006-05-08  Eric Blake  <ebb9@byu.net>
23155
23156         * gnulib-tool (func_version): Base copyright year on CVS date.
23157         (func_emit_copyright_notice): New function.
23158         (func_emit_lib_Makefile_am): Use it.
23159         (func_emit_tests_Makefile_am): Likewise.
23160         (func_import): Likewise.
23161
23162 2006-05-08  Bruno Haible  <bruno@clisp.org>
23163
23164         * modules/stdarg: New file.
23165         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
23166
23167 2006-05-08  Bruno Haible  <bruno@clisp.org>
23168
23169         * m4/stdarg.m4: New file, from GNU gettext.
23170
23171 2006-05-08  Bruno Haible  <bruno@clisp.org>
23172
23173         * config/srclist.txt (build-aux/config.rpath): different from latest
23174         release.
23175
23176 2006-05-08  Bruno Haible  <bruno@clisp.org>
23177
23178         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
23179
23180 2006-05-05  Jim Meyering  <jim@meyering.net>
23181
23182         * m4/warning.m4: New file, derived from bison's file by the same name.
23183
23184 2006-05-03  Bruno Haible  <bruno@clisp.org>
23185
23186         * lib/stdint_.h: Shorter URL.
23187         * lib/inttypes.h: Likewise.
23188
23189 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23190
23191         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
23192
23193 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23194
23195         * lib/verify.h: Document the internals better.  Most of this change
23196         was written by Bruno Haible.
23197
23198 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23199
23200         * doc/verify.texi: New file, partly based on a proposal by
23201         Bruno Haible.
23202
23203 2006-05-02  Bruno Haible  <bruno@clisp.org>
23204
23205         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
23206         test from here...
23207         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
23208
23209 2006-04-29  Bruno Haible  <bruno@clisp.org>
23210
23211         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
23212         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
23213
23214 2006-04-29  Bruno Haible  <bruno@clisp.org>
23215
23216         * gnulib-tool: Make --update option actually work.
23217
23218 2006-04-29  Bruno Haible  <bruno@clisp.org>
23219
23220         * doc/gcd.texi: New file.
23221         * doc/gnulib.texi: Include it.
23222
23223 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
23224
23225         * lib/getdate.y (get_date): When adding relative date, start with the
23226         initial time, not with the result of the first mktime call.
23227
23228 2006-04-25  Bruno Haible  <bruno@clisp.org>
23229
23230         * gnulib-tool (func_import): Output the include directives in three
23231         blocks, sorted separately.
23232         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23233
23234 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
23235
23236         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
23237         to define main with arguments, for C++.  Reported by Eric Blake.
23238         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
23239         Prefer 'int main ()' to 'int main (void)', for C++.
23240         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23241         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
23242         for 'main', for C99 and C++.
23243
23244 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
23245
23246         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
23247         Don't assume that exit status -1 is valid.
23248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23249         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23250         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23251         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
23252         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
23253         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
23254         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
23255         functions can be used without declaring them, or that you can
23256         exit with status -1.
23257         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
23258
23259 2006-04-24  Karl Berry  <karl@gnu.org>
23260
23261         * config/srclist.txt (longdouble.m4): sync lost.
23262
23263 2006-04-24  Eric Blake  <ebb9@byu.net>
23264
23265         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
23266
23267 2006-04-24  Bruno Haible  <bruno@clisp.org>
23268
23269         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
23270         poll() implementation in AIX.
23271         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23272
23273 2006-04-24  Bruno Haible  <bruno@clisp.org>
23274
23275         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
23276         assigned exactly once.
23277
23278 2006-04-23  Claudio Fontana  <claudio@gnu.org>
23279             Bruno Haible  <bruno@clisp.org>
23280
23281         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
23282         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
23283         for AM_CPPFLAGS.
23284
23285 2006-04-23  Bruno Haible  <bruno@clisp.org>
23286
23287         * modules/copy-file: Depend on unistd.
23288         * modules/execute: Likewise.
23289         * modules/fatal-signal: Likewise.
23290         * modules/findprog: Likewise.
23291         * modules/mkdtemp : Likewise.
23292         * modules/pipe: Likewise.
23293         * modules/wait-process: Likewise.
23294
23295 2006-04-23  Bruno Haible  <bruno@clisp.org>
23296
23297         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
23298         condition was already detected.
23299         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23300
23301 2006-04-23  Bruno Haible  <bruno@clisp.org>
23302
23303         * lib/copy-file.c: Include <unistd.h> unconditionally.
23304         * lib/execute.c: Likewise.
23305         * lib/fatal-signal.c: Likewise.
23306         * lib/findprog.c: Likewise.
23307         * lib/mkdtemp.c: Likewise.
23308         * lib/pipe.h: Likewise.
23309         * lib/pipe.c: Likewise.
23310         * lib/wait-process.h: Likewise.
23311
23312 2006-04-23  Bruno Haible  <bruno@clisp.org>
23313
23314         * gnulib-tool (func_usage): Fix --import description. Document
23315         --update.
23316         (func_import): Create temporary file in a temporary directory, if
23317         --dry-run is specified. Silence errors from 'grep' when there are no
23318         m4 files in $m4dir.
23319         (func_create_testdir): Silence errors from 'grep' when there are no
23320         m4 files in $m4dir.
23321         Reported by Karl Berry <karl@freefriends.org>.
23322
23323 2006-04-20  Bruno Haible  <bruno@clisp.org>
23324
23325         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
23326         one argument, so that the code will be portable to Autoconf 2.60.
23327         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
23328         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
23329         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
23330
23331 2006-04-19  Derek Price  <derek@ximbiot.com>
23332             Eric Blake  <ebb9@byu.net>
23333
23334         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
23335         rather than "/full/path.h".  Update comment to match.  Shorten &
23336         generalize m4_translit call via AS_TR_CPP.
23337
23338 2006-04-19  Derek Price  <derek@ximbiot.com>
23339             Eric Blake  <ebb9@byu.net>
23340
23341         * lib/inttypes.h: Correct grammar in comment.
23342
23343 2006-04-18  Derek Price  <derek@ximbiot.com>
23344             Paul Eggert  <eggert@cs.ucla.edu>
23345
23346         * modules/inttypes: New file.
23347         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
23348
23349 2006-04-18  Derek Price  <derek@ximbiot.com>
23350             Paul Eggert  <eggert@cs.ucla.edu>
23351
23352         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
23353         New files.
23354
23355 2006-04-18  Derek Price  <derek@ximbiot.com>
23356             Paul Eggert  <eggert@cs.ucla.edu>
23357
23358         * lib/inttypes.h: New file.
23359         * lib/strtoimax.c: Assume <inttypes.h>.
23360
23361 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
23362
23363         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
23364         isn't mounted.  Problem reported by Kir Kolyshkin.
23365
23366 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
23367
23368         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
23369         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
23370         Derek R. Price.
23371         * lib/regex.h (RE_DUP_MAX): Update comment to match current
23372         implementation.
23373
23374 2006-04-12  Eric Blake  <ebb9@byu.net>
23375
23376         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
23377         is now done automatically by the corresponding Autoconf macro.
23378
23379 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
23380
23381         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
23382         time_r.h.
23383
23384 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23385
23386         Merge regex changes from libc, removing some of our
23387         POSIX-conformance changes that were rejected and redoing them in a
23388         less-intrusive way.
23389
23390         * lib/regcomp.c (re_compile_internal, init_dfa):
23391         Length arg is now size_t, not Idx.  All uses changed.
23392         (peek_token): Forward decl now says internal_function.
23393         (__re_error_msgid, __re_error_msgid_idx):
23394         Now static rather than extern with attribute_hidden.
23395         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
23396         For some reason libc prefers K&R style defns for external functions.
23397         (regerror) [!defined _LIBC]: Likewise.
23398         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
23399         (seek_collating_symbol_entry, lookup_collation_sequence_value):
23400         (build_range_exp, build_collating_symbol):
23401         Use K&R-style defn.
23402         (re_compile_fastmap): Use '\0' to memset, not 0.
23403         (utf8_sb_map): Make the calculations more obvious.
23404         (init_dfa, parse_bracket_exp, build_charclass_op):
23405         Call calloc and cast result, as glibc does.
23406         (init_word_char, fetch_token, peek_token, peek_token_bracket):
23407         (build_range_exp, build_collating_symbol):
23408         Now internal functions.
23409
23410         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
23411
23412         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
23413         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
23414         Don't depend on VMS; depend on __VMS instead, for POSIX
23415         namespace cleanness.
23416         (regoff_t): Define to ssize_t, not long int.
23417
23418         Remove the REG_ macros named below.  Instead, make the old names
23419         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
23420         __USE_GNU_REGEX.
23421         (REG_BACKSLASH_ESCAPE_IN_LISTS):
23422         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
23423         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
23424         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
23425         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
23426         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
23427         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
23428         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
23429         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
23430         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
23431         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
23432         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
23433         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
23434         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
23435         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
23436         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
23437         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
23438         (REG_NREGS):
23439         Remove.  All uses replaced by the old RE_* names.
23440         (RE_BACKSLASH_ESCAPE_IN_LISTS):
23441         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
23442         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
23443         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
23444         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
23445         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
23446         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
23447         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
23448         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
23449         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
23450         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
23451         Don't bother having these macros be independent of each others'
23452         values, since they no longer exist in the POSIX name space.
23453
23454         Rename the following member names back to their old names,
23455         unless !__USE_GNU_REGEX.  All uses changed back.
23456         (buffer): Renamed from re_buffer.
23457         (allocated): Renamed from re_allocated.
23458         (used): Renamed from re_used.
23459         (syntax): Renamed from re_syntax.
23460         (fastmap): Renamed from re_fastmap.
23461         (translate): Renamed from re_translate.
23462         (can_be_null): Renamed from re_can_be_null.
23463         (regs_allocated): Renamed from re_regs_allocated.
23464         (fastmap_accurate): Renamed from re_fastmap_accurate.
23465         (no_sub): Renamed from re_no_sub.
23466         (not_bol): Renamed from re_not_bol.
23467         (not_eol): Renamed from re_not_eol.
23468         (newline_anchor): Renamed from re_newline_anchor.
23469         (num_regs): Renamed from rm_num_regs.
23470         (start): Renamed from rm_start.
23471         (end): Renamed from rm_end.
23472
23473         (free_state): Move up a bit.
23474
23475         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
23476         #define to be empty.
23477         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
23478         when that is what is intended.
23479         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
23480         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
23481         (MAX): New macro.
23482         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
23483         All uses changed back to re_malloc, etc.  It's now the caller's
23484         responsibility to check for overflow; all callers changed.
23485         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
23486         (re_x2nrealloc): Remove.
23487         (free_state): Remove decl.
23488
23489         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
23490         (re_set_registers, re_exec):
23491         Use K&R-style defn.
23492
23493         2006-01-31  Roland McGrath  <roland@redhat.com>
23494
23495         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
23496         Reported by Mike Frysinger <vapier@gentoo.org>.
23497
23498         2006-01-15  Andreas Jaeger  <aj@suse.de>
23499
23500         [BZ #1950]
23501         * lib/regex_internal.c (re_string_reconstruct): Adjust for
23502         build_wcs_upper_buffer change.
23503         (build_wcs_upper_buffer): Change return type.
23504
23505         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
23506
23507         * lib/regex_internal.h: Include <stdint.h> if available.
23508
23509         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
23510
23511         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
23512
23513         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
23514
23515         * lib/regcomp.c: Adjust for changed secondary hash function.
23516
23517         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
23518
23519         * lib/regex.h: Pretty printing.
23520         Clean up namespace a bit.
23521
23522         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
23523
23524         * lib/regexec.c (update_cur_sifted_state, check_arrival,
23525         check_arrival_add_next_nodes): Avoid using uninitialized variable.
23526
23527         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23528                     Ulrich Drepper  <drepper@redhat.com>
23529
23530         [BZ #1302]
23531         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
23532         changed.
23533         (bitset_word_t): Renamed from bitset_word.  All uses changed.
23534
23535         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
23536
23537         [BZ #281]
23538         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
23539         * lib/regcomp.c: Remove unnecessary uses of
23540         unsigned RE_TRANSLATE_TYPE.
23541         * lib/regex_internal.h: Likewise.
23542         * lib/regex_internal.c: Likewise.
23543         * lib/regexec.c: Likewise.
23544         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
23545
23546         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
23547
23548         * lib/regexec.c (find_recover_state): Remove unnecessary
23549         initialization.
23550         (transit_state_bkref): Make DFA a const pointer.
23551         (get_subexp): Likewise.
23552         (check_arrival): Likewise.
23553         (update_cur_sifted_state): Likewise.
23554         (re_search_internal): Likewise.
23555         (prune_impossible_nodes): Likewise.
23556         (acquire_init_state_context): Likewise.
23557         (proceed_next_node): Likewise.
23558         (set_regs): Likewise.
23559         (free_fail_stack_return): Likewise.
23560         (check_arrival_expand_ecl): Mark DFA parameter as const.
23561         (check_arrival_expand_ecl_sub): Likewise.
23562         (check_subexp_limits): Likewise.
23563         (sub_epsilon_src_nodes):  Likewise.
23564         (add_epsilon_src_nodes):  Likewise.
23565         (merge_state_array): Likewise.
23566         (update_regs): Likewise.
23567         (build_trtable): Likewise.
23568         (sift_states_backward): Mark MCTX parameter as const.
23569         (build_sifted_states): Likewise.
23570         (update_cur_sifted_state): Likewise.
23571         (sift_states_mkref): Likewise.
23572         (check_arrival_expand_ecl): Mark eclosure as const.
23573         (check_dst_limits_calc_pos_1): Likewise.
23574         * lib/regex_internal.h (re_match_context_t): Make dfa a const
23575         pointer.
23576
23577         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
23578
23579         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
23580         (transit_state_sb): Likewise.
23581         (transit_state_mb): Likewise.
23582         (sift_states_iter_mb): Likewise.
23583         (check_arrival_add_next_nodes): Likewise.
23584         (check_node_accept_bytes): Change first parameter to pointer-to-const.
23585         [_LIBC] (re_search_2_stub): Use mempcpy.
23586
23587         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
23588         mbrtowc for very simple UTF-8 case.
23589
23590         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
23591         a pointer-to-const.
23592         (re_acquire_state_context): Likewise.
23593         * lib/regex_internal.h: Adjust prototypes.
23594
23595         * lib/regex.c: Prevent using C++ compilers.
23596
23597         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
23598         (re_acquire_state_context): Likewise.
23599
23600 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23601
23602         * modules/regex (Depends-on): Add ssize_t.
23603
23604 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23605
23606         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
23607         translation table.
23608
23609 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23610
23611         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
23612
23613 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
23614             Bruno Haible  <bruno@clisp.org>
23615
23616         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
23617         <sys/types.h> and <inttypes.h>.
23618
23619 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23620
23621         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
23622         `__error_t_defined', so argp.h will not typedef the former.
23623
23624 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
23625
23626         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
23627         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
23628         glibc names.  Even if glibc is changed to conform to POSIX, the
23629         traditional names will be available anyway, since regex depends on
23630         the extensions module.  Also, fix a longstanding typo in the
23631         implementation of Spencer ERE test #75 from grep 2.3.  Problems
23632         reported by Emanuele Giaquinta.  Also, change sense of cached
23633         variable, so that the message makes sense.
23634
23635 2006-03-24  Simon Josefsson  <jas@extundo.com>
23636
23637         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
23638         including some doc fixes.
23639         (base64_encode_alloc): Fix +1 bug on allocation failures.
23640
23641 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23642
23643         * lib/base64.c (base64_encode): Do not read past end of array with
23644         unsanitized input on systems with CHAR_BIT > 8.
23645
23646 2006-03-24  Eric Blake  <ebb9@byu.net>
23647
23648         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
23649
23650 2006-03-22  Karl Berry  <karl@gnu.org>
23651
23652         * config/srclist.txt (*setenv.[ch]): get from coreutils.
23653         * config/srclistvars.sh (COREUTILS): new var.
23654
23655 2006-03-17  Jim Meyering  <jim@meyering.net>
23656
23657         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
23658         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
23659
23660 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23661
23662         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
23663         no longer needs it.  Instead, check that regoff_t is as least
23664         as wide as ptrdiff_t.
23665
23666         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
23667         so that our regex.h stays compatible with the installed regex.
23668         This is helpful for installers who configure --without-included-regex.
23669         Problem reported by Emanuele Giaquinta.
23670
23671 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23672
23673         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
23674         Typedef to long int, not to off_, as POSIX will likely change
23675         in that direction.
23676
23677 2006-03-15  Eric Blake  <ebb9@byu.net>
23678
23679         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
23680
23681 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
23682
23683         * lib/argp-help.c (validate_uparams): Fix typo
23684         * lib/argp-parse.c (argp_default_options): Consistently begin help
23685         messages with a lowercase letter.
23686
23687 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
23688
23689         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
23690         overrun buffers and shouldn't be used (much as gets shouldn't be
23691         used).
23692         * lib/time_r.c (asctime_r, ctime_r): Likewise.
23693
23694 2006-03-08  Simon Josefsson  <jas@extundo.com>
23695
23696         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
23697         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23698
23699 2006-03-08  Simon Josefsson  <jas@extundo.com>
23700
23701         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
23702         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23703
23704 2006-03-08  Simon Josefsson  <jas@extundo.com>
23705
23706         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
23707         signal that configure disabled the device.
23708
23709 2006-03-08  Simon Josefsson  <jas@extundo.com>
23710
23711         * build-aux/maint.mk: Fix refresh-po, to handle no translated
23712         languages.
23713
23714 2006-03-07  Simon Josefsson  <jas@extundo.com>
23715
23716         * modules/getopt (Depends-on): Add unistd.
23717
23718         * modules/unistd: New file.
23719
23720 2006-03-07  Simon Josefsson  <jas@extundo.com>
23721
23722         * modules/gc-random: New file.
23723
23724 2006-03-07  Simon Josefsson  <jas@extundo.com>
23725
23726         * m4/unistd_h.m4: New file.
23727
23728 2006-03-07  Simon Josefsson  <jas@extundo.com>
23729
23730         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
23731         test to be side-effect free by storing the result in the cache
23732         variable gl_cv_lib_readline, and moving the assignment of
23733         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
23734         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23735
23736 2006-03-07  Simon Josefsson  <jas@extundo.com>
23737
23738         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
23739         error on missing devices (the functions will return an error).
23740
23741         * m4/gc.m4: Move random stuff to gc-random.m4
23742
23743 2006-03-07  Simon Josefsson  <jas@extundo.com>
23744
23745         * lib/unistd_.h: New file.
23746
23747 2006-03-07  Simon Josefsson  <jas@extundo.com>
23748
23749         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
23750
23751 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23752
23753         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
23754         Problem reported by Juan Manuel Guerrero.
23755
23756 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23757
23758         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
23759         the unistd module.
23760         * lib/getlogin_r.c: Likewise.
23761         * lib/getlogin_r.h: Likewise.
23762         * lib/glob.c: Likewise.
23763         * lib/pagealign_alloc.c: Likewise.
23764         * lib/unistd_.h: Remove; no longer needed.
23765
23766 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23767
23768         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23769         Add unistd.
23770         * modules/c-stack (Depends-on): Add unistd.
23771         * modules/getlogin_r: Likewise.
23772         * modules/glob: Likewise.
23773         * modules/pagealign_alloc: Likewise.
23774         * modules/unistd (Files): Remove lib/unistd_.h.
23775         (EXTRA_DIST): Remove.
23776         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
23777         need unistd_.h.
23778         (MOSTLYCLEANFILES): Remove unistd.h-t.
23779
23780 2006-03-03  Simon Josefsson  <jas@extundo.com>
23781
23782         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
23783
23784 2006-03-03  Simon Josefsson  <jas@extundo.com>
23785
23786         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
23787         libidn and bison.
23788
23789 2006-03-03  Simon Josefsson  <jas@extundo.com>
23790
23791         * build-aux/maint.mk: Add indent target.
23792
23793 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
23794
23795         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
23796         our replacement poll.h in any case, to avoid a differing
23797         declaration from a system header.  Seen on AIX.
23798
23799 2006-03-01  Simon Josefsson  <jas@extundo.com>
23800
23801         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
23802         <kasal@ucw.cz>.
23803
23804 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23805
23806         * modules/gettime (Depends-on): Add extensions module.
23807         * modules/nanosleep (Depends-on): Likewise.
23808         * modules/settime (Depends-on): Likewise.
23809
23810 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23811
23812         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
23813         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
23814         pedantically.
23815         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23816         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
23817
23818         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
23819         not "==".  Reported by Ralf Wildenhues.
23820
23821 2006-03-01  Karl Berry  <karl@gnu.org>
23822
23823         * doc/Copyright/request-*: new files, synced from gnuorg.
23824
23825 2006-03-01  Karl Berry  <karl@gnu.org>
23826
23827         * config/srclist.txt (Copyright/*): new entries.
23828
23829 2006-02-28  Simon Josefsson  <jas@extundo.com>
23830
23831         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
23832
23833 2006-02-27  Simon Josefsson  <jas@extundo.com>
23834
23835         * lib/base64.h: Indent #define's.  From Jim Meyering
23836         <jim@meyering.net>.
23837
23838 2006-02-27  Jim Meyering  <jim@meyering.net>
23839
23840         Revert the change of 2006-02-24, so these files can continue
23841         to be sync'd from gettext.
23842         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
23843         of `config.h'.
23844
23845 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
23846
23847         * modules/intprops: New file.
23848         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
23849         Add intprops.
23850         * modules/getloadavg (Files): Remove lib/intprops.h.
23851         (Depends-on): Add intprops.
23852         * modules/human: Likewise.
23853         * modules/inttostr: Likewise.
23854         * modules/openat: Likewise.
23855         * modules/sig2str: Likewise.
23856         * modules/userspec: Likewise.
23857         * modules/utimecmp: Likewise.
23858         * modules/xnanosleep: Likewise.
23859         * modules/xstrtol: Likewise.
23860
23861 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
23862
23863         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
23864         * modules/lock-tests (TESTS): Use $(EXEEXT).
23865         * modules/tls-tests: Likewise.
23866         * modules/argp-tests: Likewise.
23867         (check_PROGRAMS): New var, replacing...
23868         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
23869
23870 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23871
23872         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
23873         `config.h'.
23874
23875 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23876
23877         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
23878
23879 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23880
23881         Sync from coreutils.
23882         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
23883         gl_CHDIR_SAFER.
23884
23885 2006-02-22  Jim Meyering  <jim@meyering.net>
23886
23887         Sync from coreutils.
23888         * m4/chdir-safer.m4: New file.
23889
23890 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23891
23892         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
23893         AT_FDCWD exceeds INT_MAX.
23894         * lib/openat.h (AT_FDCWD): Likewise.
23895
23896 2006-02-17  Eric Blake  <address@hidden>
23897
23898         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
23899
23900 2006-02-16  Simon Josefsson  <jas@extundo.com>
23901
23902         * modules/getaddrinfo (Depends-on): Add sys_socket.
23903
23904 2006-02-15  Simon Josefsson  <jas@extundo.com>
23905
23906         * build-aux/maint.mk: Add dsyntax-check rule.
23907
23908 2006-02-15  Eric Blake  <ebb9@byu.net>
23909
23910         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
23911         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
23912         'present but cannot compile' warnings on cygwin.
23913         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
23914         use ws2tcpip.h if sys/socket.h works.
23915         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
23916         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
23917
23918 2006-02-14  Simon Josefsson  <jas@extundo.com>
23919
23920         * modules/maintainer-makefile (Files): Rename.
23921
23922         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
23923         and (the local) Makefile.cfg to maint-cfg.mk.
23924
23925         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
23926         to the latter.
23927
23928         * modules/maintainer-makefile: New module.
23929
23930         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
23931         severaly stripped to make it possible to build it up from scratch
23932         with reliable tests.
23933
23934         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
23935         fixes to permit overriding the default actions when configure and
23936         makefile are not available.
23937
23938 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
23939
23940         Sync from coreutils.
23941         * modules/lstat (Depends-on): Don't depend on xalloc.
23942         (License): Change from GPL to LGPL, since this is now simply a
23943         replacement for a libc function.
23944
23945 2006-02-14  Jim Meyering  <jim@meyering.net>
23946
23947         Sync from coreutils.
23948
23949         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
23950         failure on deficient systems, and simplify gnulib lgpl dependencies.
23951         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
23952         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
23953
23954         * lib/xalloc-die.c: Remove unused definition of N_.
23955
23956 2006-02-14  Jim Meyering  <jim@meyering.net>
23957
23958         Sync from coreutils.
23959         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
23960         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
23961         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
23962         double-quote uses of that variable, to accommodate the rare case in
23963         which getmntent is available in none of the libraries checked.  This
23964         happens at least on FreeBSD 5.0.
23965
23966 2006-02-13  Simon Josefsson  <jas@extundo.com>
23967
23968         * gnulib-tool (Usage): Fix --import, from
23969         karl@freefriends.org (Karl Berry).
23970
23971 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
23972
23973         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
23974
23975 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
23976
23977         * lib/argp-namefrob.h: Restore changes accidentally lost during the
23978         "autoupdate" on 2005-12-12.
23979
23980 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23981
23982         * modules/closeout (Depends-on): Remove atexit.
23983
23984 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
23985
23986         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
23987         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
23988
23989 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
23990
23991         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
23992         __EXTENSIONS__ if this causes compilation to fail.  Problem
23993         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
23994         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
23995
23996 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
23997
23998         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
23999         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
24000         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
24001         All uses changed.
24002
24003 2006-01-26  Simon Josefsson  <jas@extundo.com>
24004
24005         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
24006         prototype is visible on mingw32.
24007
24008         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
24009         for mingw32.
24010
24011         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
24012         mingw32).
24013
24014 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
24015
24016         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
24017         attempt to open for write; this always fails, at least on POSIX
24018         hosts.  This reinstates the 2006-01-09 change, which was
24019         inadvertently removed.
24020
24021 2006-01-26  Bruno Haible  <bruno@clisp.org>
24022
24023         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
24024         Reported by Paul Eggert.
24025
24026 2006-01-26  Bruno Haible  <bruno@clisp.org>
24027             Paul Eggert  <eggert@cs.ucla.edu>
24028
24029         * lib/stdbool_.h (_Bool)
24030         [(! (defined __cplusplus || defined __BEOS__)
24031           && !defined __GNUC__
24032           && !(defined __HP_cc || defined __xlc__
24033                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
24034                || defined __sgi))]:
24035         #define to signed char in these cases too; this simplifies
24036         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
24037         etc., separately) and makes it more conservative.
24038
24039 2006-01-25  Simon Josefsson  <jas@extundo.com>
24040
24041         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
24042         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
24043         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
24044
24045 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24046
24047         * lib/argp-namefrob.h: Bugfix. Remove stray #
24048
24049 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24050
24051         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
24052         so that we test the test.
24053         Check for yet another HP-UX cc bug involving *bool |= bool.
24054
24055 2006-01-25  Karl Berry  <karl@gnu.org>
24056
24057         * config/srclist.txt (vasnprintf.c): sync lost.
24058
24059 2006-01-25  Jim Meyering  <jim@meyering.net>
24060
24061         Sync from the stable (b5) branch of coreutils:
24062
24063         * lib/fts.c (fts_children): Don't let close() clobber errno from
24064         failed fchdir().
24065
24066         * lib/fts.c (fts_stat): When following a symlink-to-directory,
24067         don't necessarily interpret stat-fails+lstat-succeeds as indicating
24068         a dangling symlink.  That can also happen at least for ELOOP.
24069         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
24070         FYI, this bug predates the inclusion of fts.c in coreutils.
24071
24072         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
24073         in their own block, so pre-c99 compilers don't object.
24074
24075         Avoid the double-free (first in fts_read, second in fts_close) that
24076         would occur when an `active' directory is made inaccessible (e.g.,
24077         via chmod a-x) during a traversal.
24078         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
24079         before returning.  Reproduce this failure by
24080         mkdir -p a/b; cd a; chmod a-x . b
24081         Reported by Stavros Passas.
24082
24083 2006-01-25  Jim Meyering  <jim@meyering.net>
24084
24085         * lib/fileblocks.c: Remove more useless parentheses.
24086         * lib/readutmp.h: Likewise.
24087
24088 2006-01-25  Bruno Haible  <bruno@clisp.org>
24089
24090         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
24091         warnings.
24092         Reported by Paul Eggert.
24093
24094 2006-01-25  Bruno Haible  <bruno@clisp.org>
24095
24096         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
24097         rid of a trap command. For Solaris sh.
24098         Reported by Mark D. Baushke <mdb@gnu.org>.
24099
24100 2006-01-24  Simon Josefsson  <jas@extundo.com>
24101
24102         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
24103         Bruno.
24104
24105 2006-01-24  Karl Berry  <karl@gnu.org>
24106
24107         * config/srclist.txt (argp-namefrob.h): sync lost.
24108
24109 2006-01-24  Jim Meyering  <jim@meyering.net>
24110
24111         * modules/openat (Files): Add lib/intprops.h.
24112         From Mark D. Baushke.
24113
24114 2006-01-24  Jim Meyering  <jim@meyering.net>
24115
24116         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
24117         Reported by Mark D. Baushke.
24118
24119 2006-01-24  Jim Meyering  <jim@meyering.net>
24120
24121         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
24122
24123 2006-01-24  Bruno Haible  <bruno@clisp.org>
24124
24125         * modules/strnlen (Maintainer): Change from glibc to all.
24126
24127 2006-01-24  Bruno Haible  <bruno@clisp.org>
24128
24129         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
24130         Patch by Paul Eggert.
24131
24132 2006-01-24  Bruno Haible  <bruno@clisp.org>
24133
24134         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
24135         already has it.
24136         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
24137         2005-11-26.
24138
24139         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
24140         'signed char' to avoid problems with the built-in _Bool type.
24141         Reported by Paul Eggert on 2005-11-26.
24142
24143 2006-01-24  Bruno Haible  <bruno@clisp.org>
24144
24145         * gnulib-tool (func_import): Avoid constructing complicated sed
24146         expressions inside backquote.
24147         Report and solution by Mark D. Baushke <mdb@gnu.org>.
24148
24149 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
24150
24151         These changes imported from libc.
24152         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
24153         test and two separate function calls.
24154         * lib/strndup.c (__strndup): Add libc_hidden_def.
24155
24156 2006-01-23  Simon Josefsson  <jas@extundo.com>
24157
24158         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
24159         Remove the test_*_SOURCES variable: automake infers it by default.
24160         * modules/tls-tests: Likewise.
24161
24162 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24163
24164         Work around porting bugs reported by Dieter in
24165         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
24166         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
24167         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
24168         Include "getopt.h" first, to check interface.
24169         (getenv): Declare only if defined HAVE_DECL_GETENV &&
24170         !HAVE_DECL_GETENV.
24171         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
24172         (__strndup): Revert to K&R-style function dfns, the glibc style.
24173         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
24174         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
24175         Include strnlen.h first, to get prototype properly.
24176         (strnlen): Renamed from __strnlen.
24177         Remove weak alias.
24178
24179 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24180
24181         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
24182
24183 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24184
24185         * config/srclist.txt: Adjust to reflect glibc reorganization.
24186         This affects only comments.
24187
24188 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24189
24190          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
24191          Reported by Bruce Korb <bkorb@gnu.org>.
24192
24193 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
24194
24195         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
24196         to pacify gcc -Wswitch-default.
24197
24198 2006-01-22  Bruno Haible  <bruno@clisp.org>
24199
24200         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
24201         temporary buffer for sprintf, take into account the precision also
24202         for 'd', 'i', 'u', 'o', 'x', 'X'.
24203
24204 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
24205
24206         * modules/argp-tests: New module
24207         * tests/test-argp.c: New file
24208         * tests/test-argp-2.sh: New file
24209
24210 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
24211
24212         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
24213         (__argp_base_name): Removed
24214         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
24215         typo.
24216         (__argp_base_name): Provide macro definition or extern declaration
24217         depending on the configuration
24218
24219 2006-01-20  Simon Josefsson  <jas@extundo.com>
24220
24221         * modules/inet_ntop (Depends-on): Depend on sys_socket.
24222
24223 2006-01-20  Simon Josefsson  <jas@extundo.com>
24224
24225         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
24226
24227 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24228
24229         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
24230         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
24231         Suggested by Bruno Haible.
24232
24233 2006-01-20  Karl Berry  <karl@gnu.org>
24234
24235         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
24236         until changes propagate, I guess.
24237
24238 2006-01-19  Simon Josefsson  <jas@extundo.com>
24239
24240         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
24241
24242 2006-01-19  Simon Josefsson  <jas@extundo.com>
24243
24244         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
24245
24246 2006-01-19  Simon Josefsson  <jas@extundo.com>
24247
24248         * gnulib-tool: Set check_PROGRAMS.
24249
24250         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
24251         modules/des-tests, modules/gc-arcfour-tests,
24252         modules/gc-arctwo-tests, modules/gc-des-tests,
24253         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
24254         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
24255         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
24256         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
24257         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
24258         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
24259         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
24260         test_*_SOURCES.
24261
24262 2006-01-18  Simon Josefsson  <jas@extundo.com>
24263
24264         * modules/socklen (Depends-on): Depend on sys_socket.
24265
24266 2006-01-18  Simon Josefsson  <jas@extundo.com>
24267
24268         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
24269         modules/des-tests, modules/gc-arcfour-tests,
24270         modules/gc-arctwo-tests, modules/gc-des-tests,
24271         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
24272         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
24273         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
24274         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
24275         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
24276         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
24277         $(EXEEXT) to automake TESTS variable, for mingw32.
24278
24279 2006-01-17  Simon Josefsson  <jas@extundo.com>
24280
24281         * modules/socklen (Include): Need sys/socket.h.
24282
24283 2006-01-17  Bruno Haible  <bruno@clisp.org>
24284
24285         * modules/ssize_t (Include): Add <sys/types.h>.
24286
24287 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
24288
24289         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
24290         it's not portable and it doesn't work with cross-compiles.
24291         Problem reported by Bruno Haible.  Fix missing-$ typo in
24292         'test "gl_cv_ignore_unused_libraries" ...' that prevented
24293         -zignore from being used with Sun's C compiler.
24294
24295 2006-01-12  Simon Josefsson  <jas@extundo.com>
24296
24297         * lib/base64.c: Fix warning, reported by Bruno Haible
24298         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
24299
24300 2006-01-12  Bruno Haible  <bruno@clisp.org>
24301
24302         * modules/ldd: New file.
24303         * build-aux/ldd.sh.in: New file.
24304         * MODULES.html.sh (Support for building libraries and executables): Add
24305         ldd.
24306
24307 2006-01-12  Bruno Haible  <bruno@clisp.org>
24308
24309         * m4/ldd.m4: New file.
24310
24311 2006-01-12  Bruno Haible  <bruno@clisp.org>
24312
24313         * gnulib-tool (func_import, func_create_testdir): Don't go into an
24314         endless loop while replacing $auxdir with build-aux.
24315
24316 2006-01-11  Simon Josefsson  <jas@extundo.com>
24317
24318         * lib/stdint_.h (SIZE_MAX): Add missing (.
24319
24320 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24321
24322         Sync from coreutils.
24323         * lib/md5.c: Fix commentary typos.
24324         (alignof, UNALIGNED_P): No need for a GCC-specific version.
24325         * lib/md5.h (__attribute__): Remove; unused.
24326         * lib/sha1.c: Fix commentary to match md5 better.
24327         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
24328         so that we don't need to worry about alignment.  All uses changed.
24329         This merges the 2005-10-28 md5 change into sha1.
24330
24331 2006-01-11  Jim Meyering  <jim@meyering.net>
24332
24333         Sync from coreutils.
24334         * lib/md5.c (OP): Fix spacing.
24335
24336 2006-01-11  Bruno Haible  <bruno@clisp.org>
24337
24338         Ensure automatic ordering between gl_LOCK and gl_ARGP.
24339         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
24340         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
24341
24342 2006-01-11  Bruno Haible  <bruno@clisp.org>
24343
24344         Ensure automatic ordering between gl_LOCK and gl_ARGP.
24345         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
24346         the "early" section as well.
24347
24348 2006-01-11  Bruno Haible  <bruno@clisp.org>
24349
24350         Avoid "ar: no archive members specified" error on MacOS X.
24351         * gnulib-tool (func_modules_add_dummy): New function.
24352         (func_import, func_create_testdir): Invoke it.
24353
24354 2006-01-11  Bruno Haible  <bruno@clisp.org>
24355
24356         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
24357         with $auxdir in AC_CONFIG_FILES statements.
24358
24359 2006-01-11  Bruno Haible  <bruno@clisp.org>
24360
24361         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24362         Initialize also noinst_HEADERS to empty.
24363
24364 2006-01-11  Bruno Haible  <bruno@clisp.org>
24365
24366         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
24367         variables.
24368         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
24369         autoreconf.
24370
24371 2006-01-11  Bruno Haible  <bruno@clisp.org>
24372
24373         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
24374         overridable by the user.
24375         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24376
24377 2006-01-10  Simon Josefsson  <jas@extundo.com>
24378
24379         * modules/sys_socket: New file.
24380
24381 2006-01-10  Simon Josefsson  <jas@extundo.com>
24382
24383         * m4/sys_socket_h.m4: New file.
24384
24385 2006-01-10  Simon Josefsson  <jas@extundo.com>
24386
24387         * lib/socket_.h: New file.
24388
24389 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24390
24391         * modules/readutmp (Maintainer): Add myself.
24392
24393 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24394
24395         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
24396         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
24397         People who are still concerned with buggy memcmp implementations
24398         can invoke gl_FUNC_MEMCMP themselves.
24399
24400 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24401
24402         * lib/regex_internal.h (BITSET_WORD_BITS):
24403         Work around a bug in 64-bit PGC (before version 6.1-2), where the
24404         preprocessor mishandles large unsigned values as if they were signed.
24405         Problem reported by Claudio Fontana in
24406         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
24407
24408 2006-01-10  Jim Meyering  <jim@meyering.net>
24409
24410         Avoid the double-free (first in fts_read, second in fts_close) that
24411         would occur when an `active' directory is made inaccessible (e.g.,
24412         via chmod a-x) during a traversal.
24413         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
24414         before returning.  Reproduce this failure by
24415         mkdir -p a/b; cd a; chmod a-x . b
24416         Reported by Stavros Passas.
24417
24418         Sync from coreutils.
24419         * lib/sha1.c: Tweak grammar in a comment.
24420
24421 2006-01-10  Jim Meyering  <jim@meyering.net>
24422
24423         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
24424         Patch by Joerg Sonnenberger.
24425
24426 2006-01-10  Bruno Haible  <bruno@clisp.org>
24427
24428         * modules/readutmp: Depend on module free.
24429         * modules/strtok_r: Depend on module restrict.
24430
24431 2006-01-10  Bruno Haible  <bruno@clisp.org>
24432
24433         * modules/gettext (configure.ac): Add an invocation of
24434         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
24435
24436 2006-01-10  Bruno Haible  <bruno@clisp.org>
24437
24438         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
24439         Reported by Werner Lemberg <wl@gnu.org>.
24440
24441 2006-01-10  Bruno Haible  <bruno@clisp.org>
24442
24443         * lib/localcharset.c: Update from GNU gettext.
24444
24445 2006-01-10  Bruno Haible  <bruno@clisp.org>
24446
24447         * lib/argp.h (__const): Remove macro. Use const instead.
24448         * lib/argp-fmtstream.h (__const): Likewise.
24449         * lib/glob_.h (__const): Remove macro.
24450         * lib/glob-libc.h: Use const instead of __const.
24451
24452 2006-01-10  Bruno Haible  <bruno@clisp.org>
24453
24454         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
24455         variable.
24456         Needed to avoid an automake error regarding the 'gettext' module.
24457
24458 2006-01-09  Simon Josefsson  <jas@extundo.com>
24459
24460         * modules/inet_ntop (Depends-on): Add restrict.
24461
24462 2006-01-09  Simon Josefsson  <jas@extundo.com>
24463
24464         * modules/gc-rijndael-tests (License): Put under LGPL.
24465
24466         * modules/gc-des-tests (License): Likewise.
24467
24468         * modules/gc-arcfour-tests (License): Likewise.
24469
24470         * modules/gc-arctwo-tests (License): Likewise.
24471
24472         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
24473
24474         * modules/gc-hmac-sha1-tests (Files): Likewise.
24475
24476         * modules/gc-hmac-md5-tests (License): Likewise.
24477
24478         * modules/gc-sha1-tests (License): Likewise.
24479
24480         * modules/gc-md5-tests (License): Likewise.
24481
24482         * modules/gc-md4-tests (License): Likewise.
24483
24484         * modules/gc-md2-tests (License): Likewise.
24485
24486         * modules/gc-tests (License): Likewise.
24487
24488         * modules/des-tests (License): Likewise.
24489
24490         * modules/md4-tests (License): Likewise.
24491
24492         * modules/md2-tests (License): Likewise.
24493
24494 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24495
24496         Sync from coreutils:
24497
24498         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
24499         * modules/lib-ignore: New file.
24500         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
24501         chdir-safer.m4, lchmod.m4.
24502         * modules/openat: Add mkdirat.c, openat-priv.h.
24503
24504 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24505
24506         Sync from coreutils.
24507         * m4/lib-ignore.m4: New file.
24508         * m4/lchmod.m4: New file.
24509
24510 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24511
24512         Sync from coreutils.
24513         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
24514         for write access: POSIX says that must fail.
24515         * lib/fts.c (diropen): Likewise.
24516         * lib/save-cwd.c (save_cwd): Likewise.
24517         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
24518         well, for minor improvements on hosts that lack O_DIRECTORY.
24519         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
24520         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
24521         Fall back on chown if open failed with EACCES.
24522
24523         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
24524         Report an error at compile-time if only a 1-second nominal clock
24525         resolution is found.
24526
24527         * lib/lchmod.h: New file.
24528         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
24529         (make_dir_parents): Use lchown rather than chown, and
24530         lchmod rather than chmod.
24531
24532         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
24533         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
24534         "proc" reported by n0dalus.
24535
24536         * lib/mountlist.c: Include <limits.h>.
24537         (dev_from_mount_options)
24538         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
24539         New function.  It no longer assumes "dev=" has the System V meaning
24540         on Linux (since it doesn't).  It also parses "dev=" more carefully.
24541         (read_file_system_list)
24542         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
24543         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
24544         dev= in that case.
24545
24546         * lib/posixtm.h (PDS_PRE_2000): New macro.
24547         * lib/posixtm.c (year): Arg is now syntax_bits rather than
24548         allow_century.  All usages changed.  Reject dates outside the range
24549         1969-1999 if PDS_PRE_2000 is used.
24550
24551 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24552
24553         Sync from coreutils.
24554         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
24555         (Time of day items): Mention the possibility of leap seconds.
24556         Problem reported by Dr. David Alan Gilbert.
24557
24558 2006-01-09  Jim Meyering  <jim@meyering.net>
24559
24560         Sync from coreutils.
24561
24562         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
24563
24564         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
24565
24566         * lib/modechange.c (mode_compile): Reject an invalid mode string
24567         that starts with an octal digit.  From Andreas Gruenbacher.
24568
24569         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
24570         and dup to open_safer and dup_safer, respectively.
24571         (openat_permissive): Fix typo in comment.
24572
24573         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
24574         "gettext.h"; either no longer needed or are guaranteed by openat.h.
24575         (_): Remove; no longer needed.
24576         (openat): Renamed from rpl_openat; no need for rpl_openat
24577         since openat.h renames openat for us.
24578         Replace most of the body with a call to openat_permissive,
24579         to avoid duplicate code.
24580         Port to (probably hypothetical) environments were mode_t is
24581         wider than int.
24582         (openat_permissive): Require mode arg, so that we can check
24583         types better.  Put it just after flags.  Change cwd failure
24584         indicator from pointer-to-bool to pointer-to-errno-value.
24585         All callers changed.
24586         Invoke openat_save_fail and/or openat_restore_fail if
24587         cwd_errno is null, so that openat can call us.
24588         (openat_permissive, fdopendir, fstatat, unlinkat):
24589         Simplify errno handling to avoid some duplicate code,
24590         as it's OK to set errno on success.
24591         * lib/openat.h: Revamp code so that function macros depend on
24592         __OPENAT_PREFIX only, not also on AT_FDCWD.
24593         (openat_ro): Remove.  Caller changed to use openat_permissive.
24594         (openat_permissive): Now a macro, if not a function.
24595         (openat_restore_fail, openat_save_fail): Now always functions,
24596         since mkdirat needs them even if __OPENAT_PREFIX is defined.
24597
24598         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
24599         and openat.c.
24600         * lib/mkdirat.c: Include openat-priv.h.
24601         Remove definitions of macros defined therein.
24602         * lib/openat.c: Likewise.
24603
24604         * lib/mkdirat.c (mkdirat): New file and function.
24605         * lib/openat.h (mkdirat): Declare.
24606
24607         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
24608
24609         * lib/openat.h (openat_permissive): Declare.
24610         (openat_ro): Define.
24611
24612         * lib/openat.c (EXPECTED_ERRNO): New macro.
24613         (openat_permissive): New function -- used in remove.c rewrite.
24614         (all functions): Set errno just before returning, only if there
24615         was an actual failure.
24616         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
24617
24618         Emulate openat-family functions using Linux's procfs, if possible.
24619         Idea and some code based on Ulrich Drepper's glibc changes.
24620
24621         * lib/openat.c: (BUILD_PROC_NAME): New macro.
24622         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
24623         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
24624         before falling back on save_cwd and restore_cwd.
24625         (fdopendir, fstatat, unlinkat): Likewise.
24626
24627         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
24628         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
24629
24630         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
24631         as second argument to va_arg.  Otherwise, some versions of gcc
24632         warn that `if this code is reached, the program will abort'.
24633
24634 2006-01-09  Jim Meyering  <jim@meyering.net>
24635
24636         Sync from coreutils.
24637         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
24638         Require openat-priv.h.
24639
24640 2006-01-09  Bruno Haible  <bruno@clisp.org>
24641
24642         * modules/strnlen (Include): Use strnlen.h.
24643
24644 2006-01-09  Bruno Haible  <bruno@clisp.org>
24645
24646         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
24647
24648 2006-01-09  Bruno Haible  <bruno@clisp.org>
24649
24650         * lib/sysexit_.h (EX_OK): New macro.
24651         Suggested by Martin Lambers <marlam@marlam.de>.
24652
24653 2006-01-09  Bruno Haible  <bruno@clisp.org>
24654
24655         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
24656         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
24657
24658 2006-01-09  Bruno Haible  <bruno@clisp.org>
24659
24660         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
24661         numbers.
24662
24663 2006-01-09  Bruno Haible  <bruno@clisp.org>
24664
24665         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
24666         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
24667         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
24668         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
24669
24670 2006-01-09  Bruno Haible  <bruno@clisp.org>
24671
24672         * build-aux/javacomp.sh.in: New file, moved from lib/.
24673         * modules/javacomp-script (Files): Update.
24674         (configure.ac): Add AC_CONFIG_FILES invocation.
24675         (EXTRA_DIST): Remove variable.
24676
24677         * build-aux/javaexec.sh.in: New file, moved from lib/.
24678         * modules/javaexec (Files): Update.
24679         (configure.ac): Add AC_CONFIG_FILES invocation.
24680         (EXTRA_DIST): Remove javaexec.sh.in.
24681
24682         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
24683         * modules/csharpcomp-script (Files): Update.
24684         (configure.ac): Add AC_CONFIG_FILES invocation.
24685         (EXTRA_DIST): Remove variable.
24686
24687         * build-aux/csharpexec.sh.in: New file, moved from lib/.
24688         * modules/csharpexec (Files): Update.
24689         (configure.ac): Add AC_CONFIG_FILES invocation.
24690         (EXTRA_DIST): Remove csharpexec.sh.in.
24691
24692 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
24693
24694         Sync from coreutils.
24695
24696         Add POSIX ACL support
24697         * lib/acl.h (copy_acl, set_acl): Add declarations.
24698         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
24699         systems other than Linux.
24700         (chmod_or_fchmod): New function: use fchmod when possible,
24701         and chmod otherwise.
24702         (file_has_acl): Add a POSIX ACL implementation, with a
24703         Linux-specific subcase.
24704         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
24705         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
24706         acls are unsupported.
24707         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
24708         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
24709         are unsupported.
24710
24711 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
24712
24713         Sync from coreutils.
24714         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
24715
24716 2006-01-07  Bruno Haible  <bruno@clisp.org>
24717
24718         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
24719         gl_EARLY.
24720
24721 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24722
24723         * lib/strftime.c (tzname): Don't declare if it is already #defined.
24724         Problem reported for Mingw by Mark Junker.
24725
24726 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24727
24728         * README: Gnulib normally doesn't generate a tarball.
24729
24730 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
24731
24732         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
24733         long int, not int, for nanosecond counts, so that people who are
24734         used to POSIX struct timespec won't be surprised.  Reported by Jim
24735         Meyering.
24736
24737 2005-12-28  Bruno Haible  <bruno@clisp.org>
24738
24739         * build-aux/config.rpath: Update from GNU gettext.
24740
24741 2005-12-16  Jim Meyering  <jim@meyering.net>
24742
24743         * modules/fprintftime: New module.
24744         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
24745
24746 2005-12-16  Jim Meyering  <jim@meyering.net>
24747
24748         * m4/fprintftime.m4: New file.
24749
24750 2005-12-16  Jim Meyering  <jim@meyering.net>
24751
24752         * lib/fprintftime.c, lib/fprintftime.h: New files.
24753
24754 2005-12-15  Simon Josefsson  <jas@extundo.com>
24755
24756         * modules/socklen (configure.ac): Fix M4 macro name, to align with
24757         new m4/socklen.m4.
24758
24759 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24760
24761         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
24762         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
24763
24764 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24765
24766         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
24767         * lib/argp-help.c (fill_in_uparams): Check if the constructed
24768         struct uparams is valid. Fall back to the default values if it is
24769         not.
24770
24771 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24772
24773         * modules/argp (Files): Add argp-pin.c
24774         (Depends-on): dirname
24775         (lib_SOURCES): Add argp-pin.c
24776
24777 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24778
24779         * m4/argp.m4:  Check if program_invocation_name and
24780         program_invocation_short_name are declared and define appropriate
24781         macros if they are not.
24782
24783 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24784
24785         * lib/argp-help.c (__argp_base_name): New function
24786         (__argp_short_program_name): Rewrite using __argp_base_name
24787         * lib/argp-namefrob.h: Define program_invocation_name and
24788         program_invocation_short_name if requested
24789         (__argp_base_name): Add prototype
24790         * lib/argp-parse.c (argp_def): Use gettext wrappers
24791         (argp_default_parser): Use __argp_base_name
24792         * lib/argp-pin.c: New file. Defines program_invocation_name and
24793         program_invocation_short_name on systems that lack them.
24794
24795 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
24796
24797         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
24798         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24799         porting problem reported by Georg Schwarz in
24800         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24801
24802 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
24803
24804         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
24805         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24806         porting problem reported by Georg Schwarz in
24807         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24808
24809 2005-12-05  Bruno Haible  <bruno@clisp.org>
24810
24811         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
24812         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
24813         Reported by Mark Junker <mjscod@gmx.de>.
24814
24815 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
24816
24817         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
24818         Use implementation from Albert Chin, with some
24819         comments/corrections by Stepan Kasal and myself.
24820
24821 2005-12-02  Bruno Haible  <bruno@clisp.org>
24822
24823         * gnulib-tool (func_import): Accept GPLed build tool modules when
24824         --lgpl is given.
24825         * modules/csharpcomp-script: New file.
24826         * modules/csharpcomp: Depend on it.
24827         * modules/javacomp-script: New file.
24828         * modules/javacomp: Depend on it.
24829         Suggested by Simon Josefsson.
24830
24831 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24832
24833         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
24834         statement, to work around an HP-UX 10.20 compiler bug reported by
24835         Peter O'Gorman.
24836
24837 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
24838
24839         * modules/savedir (Depends-on): Add openat.
24840
24841 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
24842
24843         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
24844         (uintmax_t) [defined uintmax_t]: Do not declare.
24845         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
24846         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
24847         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
24848         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
24849         sake of portability to weird hosts that C allows (though we don't
24850         know of any practical examples).
24851
24852         * lib/savedir.h (fdsavedir): New decl.
24853         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
24854         contains most of the former guts of savedir.
24855         (savedir): Use savedirstream.
24856         Include "openat.h".
24857
24858 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24859
24860         * modules/obstack (Files): Add m4/ulonglong.m4.
24861         Problem reported by Davide Angelocola.
24862
24863 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24864
24865         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
24866         coreutils no longer futzes with rounding modes.
24867
24868 2005-11-14  Jim Meyering  <jim@meyering.net>
24869
24870         * lib/mkstemp-safer.c: Include <config.h>, required for possible
24871         replacement of mkstemp.
24872
24873 2005-11-10  Simon Josefsson  <jas@extundo.com>
24874
24875         * lib/readline.c: Remove EOL.
24876
24877 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24878
24879         * modules/gethrxtime (Depends-on): Add gettime.
24880
24881 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24882
24883         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
24884         or gettimeofday; no longer needed.
24885
24886 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24887
24888         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
24889         time business.
24890         (gethrxtime) [! (HAVE_NANOUPTIME
24891         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
24892         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
24893         our own approximation.
24894
24895 2005-11-08  Eric Blake  <ebb9@byu.net>
24896
24897         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
24898
24899 2005-11-08  Eric Blake  <ebb9@byu.net>
24900
24901         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
24902
24903 2005-11-04  Bruno Haible  <bruno@clisp.org>
24904
24905         * gnulib-tool: Implement --update mode.
24906
24907 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24908
24909         Fix porting problem reported by Theodoros V. Kalamatianos.
24910         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
24911         Don't assume that futimes failing means we must fail.
24912
24913 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24914
24915         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
24916         variables to suggest the intended function of the PATH_MAX check.
24917
24918 2005-10-30  Kean Johnston  <jkj@sco.com>
24919
24920         Trivial changes to support SCO systems.
24921         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
24922         as PATH_MAX.
24923         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
24924         where __ptr is null when no I/O is pending.
24925
24926 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
24927
24928         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
24929         leave errno alone.  Problem reported by Dmitry V. Levin.
24930
24931 2005-10-28  Simon Josefsson  <jas@extundo.com>
24932
24933         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
24934         Test more.
24935
24936         * tests/test-gc-md2.c, tests/test-md2.c: New files.
24937
24938         * modules/md2, modules/md2-tests: New files.
24939
24940 2005-10-28  Simon Josefsson  <jas@extundo.com>
24941
24942         * m4/inet_ntop.m4: More tests.
24943
24944         * m4/gc-md2.m4, md2.m4: New file.
24945
24946 2005-10-28  Simon Josefsson  <jas@extundo.com>
24947
24948         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
24949         "restrict" keywords, as per POSIX.  Protect the function
24950         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
24951         Don't use K&R prototypes.  Check the sprintf return values.
24952         Re-define EAFNOSUPPORT if not present.  Indent.
24953
24954         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
24955         suggested by Bruno Haible <bruno@clisp.org>.
24956
24957         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
24958
24959         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
24960
24961         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
24962         libgcrypt).
24963
24964         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
24965
24966         * lib/md2.h, lib/md2.c: New files.
24967
24968 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
24969
24970         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
24971         errno alone.  Problem reported by Frederic Jolliton.
24972
24973 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
24974
24975         * modules/verify (License): Change from GPL to LGPL.  This is a
24976         tiny module and there are apparently near-equivalents that are
24977         under the BSD license.
24978
24979 2005-10-24  Simon Josefsson  <jas@extundo.com>
24980
24981         * modules/sha1: Relicense to LGPL.
24982
24983 2005-10-24  Simon Josefsson  <jas@extundo.com>
24984
24985         * lib/md4.h: Shrink buffer size, now that we changed the type.
24986
24987 2005-10-23  Simon Josefsson  <jas@extundo.com>
24988
24989         * gnulib-tool (func_import): Fix --tests-base.
24990
24991 2005-10-22  Simon Josefsson  <jas@extundo.com>
24992
24993         * modules/arcfour (Depends-on): Need stdint.
24994
24995 2005-10-22  Simon Josefsson  <jas@extundo.com>
24996
24997         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
24998         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
24999
25000 2005-10-22  Simon Josefsson  <jas@extundo.com>
25001
25002         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
25003         suggested by Bruno Haible <bruno@clisp.org>.
25004
25005 2005-10-22  Simon Josefsson  <jas@extundo.com>
25006
25007         * lib/crc.h: Include stddef.h, for size_t.
25008
25009 2005-10-22  Simon Josefsson  <jas@extundo.com>
25010
25011         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
25012         arcfour_context struct (simplify test vector testing in GNU
25013         Shishi).
25014
25015 2005-10-21  Simon Josefsson  <jas@extundo.com>
25016
25017         * modules/des, modules/des-tests: New files.
25018
25019         * modules/gc-des, modules/gc-des-tests: New files.
25020
25021         * tests/test-des.c, tests/test-gc-des.c: New file.
25022
25023 2005-10-21  Simon Josefsson  <jas@extundo.com>
25024
25025         * modules/arctwo, modules/arctwo-tests: New files.
25026
25027         * tests/test-arctwo.c: New file.
25028
25029         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
25030
25031         * tests/test-gc-arctwo.c: New file.
25032
25033 2005-10-21  Simon Josefsson  <jas@extundo.com>
25034
25035         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
25036         Bruno Haible <bruno@clisp.org>.
25037
25038         * m4/gc-des.m4: New file.
25039
25040 2005-10-21  Simon Josefsson  <jas@extundo.com>
25041
25042         * m4/arctwo.m4: New file.
25043
25044         * m4/gc-arctwo.m4: New file.
25045
25046 2005-10-21  Simon Josefsson  <jas@extundo.com>
25047
25048         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
25049         block.
25050
25051 2005-10-21  Simon Josefsson  <jas@extundo.com>
25052
25053         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
25054         <bruno@clisp.org>.
25055
25056         * lib/hmac-sha1.c (hmac_sha1): Likewise.
25057
25058         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
25059         Bruno Haible <bruno@clisp.org>.
25060
25061         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
25062         <bruno@clisp.org>.
25063
25064 2005-10-21  Simon Josefsson  <jas@extundo.com>
25065
25066         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
25067
25068 2005-10-21  Simon Josefsson  <jas@extundo.com>
25069
25070         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
25071
25072 2005-10-21  Simon Josefsson  <jas@extundo.com>
25073
25074         * lib/des.h, lib/des.c: New files.
25075
25076         * lib/gc-gnulib.c: Support DES.c
25077
25078 2005-10-21  Simon Josefsson  <jas@extundo.com>
25079
25080         * lib/arctwo.h, lib/arctwo.c: New files.
25081
25082         * lib/gc-gnulib.c: Support ARCTWO.
25083
25084 2005-10-21  Simon Josefsson  <jas@extundo.com>
25085
25086         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
25087         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25088
25089 2005-10-21  Simon Josefsson  <jas@extundo.com>
25090
25091         * gnulib-tool (func_import, func_create_testdir): Define automake
25092         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
25093         Makefile.am snippet),
25094         suggested by Bruno Haible <bruno@clisp.org>.
25095
25096         * modules/gc (Makefile.am): Use it.
25097
25098 2005-10-21  Bruno Haible  <bruno@clisp.org>
25099
25100         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
25101         patch.
25102
25103 2005-10-19  Simon Josefsson  <jas@extundo.com>
25104
25105         * tests/test-gc-rijndael.c: New file.
25106
25107         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
25108
25109 2005-10-19  Simon Josefsson  <jas@extundo.com>
25110
25111         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
25112         interface too.
25113
25114 2005-10-19  Simon Josefsson  <jas@extundo.com>
25115
25116         * tests/test-gc-arcfour.c: New file.
25117
25118         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
25119
25120 2005-10-19  Simon Josefsson  <jas@extundo.com>
25121
25122         * modules/gc-md4, modules/gc-md4-tests: New file.
25123
25124         * tests/test-gc-md4.c: New file.
25125
25126 2005-10-19  Simon Josefsson  <jas@extundo.com>
25127
25128         * m4/gc-md4.m4: New file.
25129
25130 2005-10-19  Simon Josefsson  <jas@extundo.com>
25131
25132         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
25133         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
25134         <kasal@ucw.cz>.
25135
25136 2005-10-19  Simon Josefsson  <jas@extundo.com>
25137
25138         * m4/gc-arcfour.m4: New file.
25139
25140         * m4/gc-rijndael.m4: New file.
25141
25142 2005-10-19  Simon Josefsson  <jas@extundo.com>
25143
25144         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
25145
25146 2005-10-19  Simon Josefsson  <jas@extundo.com>
25147
25148         * lib/gc-gnulib.c: Support ARCFOUR.
25149
25150 2005-10-19  Simon Josefsson  <jas@extundo.com>
25151
25152         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
25153         support.
25154
25155         * lib/gc.h: Add ECB enum type.
25156
25157         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
25158
25159 2005-10-18  Simon Josefsson  <jas@extundo.com>
25160
25161         * tests/test-md5.c: New file.
25162
25163         * modules/md5-tests: New file.
25164
25165 2005-10-18  Simon Josefsson  <jas@extundo.com>
25166
25167         * tests/test-md4.c: New file.
25168
25169         * modules/md4, modules/md4-tests: New files.
25170
25171 2005-10-18  Simon Josefsson  <jas@extundo.com>
25172
25173         * m4/md4.m4: New file.
25174
25175 2005-10-18  Simon Josefsson  <jas@extundo.com>
25176
25177         * lib/md4.h, lib/md4.c: New files, based on md5.?.
25178
25179 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
25180
25181         * gnulib-tool (func_create_testdir): Omit the second check whether
25182         BUILT_SOURCES in nonempty.
25183
25184 2005-10-17  Simon Josefsson  <jas@extundo.com>
25185
25186         * tests/test-rijndael.c: New file.
25187
25188 2005-10-17  Simon Josefsson  <jas@extundo.com>
25189
25190         * modules/sha1: Depend on stdint instead of md5.
25191
25192         * modules/md5: Depend on stdint, remove uint32_t.
25193
25194 2005-10-17  Simon Josefsson  <jas@extundo.com>
25195
25196         * modules/gc-sha1-tests: New file.
25197
25198         * tests/test-gc-sha1.c: New file.
25199
25200 2005-10-17  Simon Josefsson  <jas@extundo.com>
25201
25202         * m4/md5.m4: Remove call to uint32_t.m4.
25203
25204 2005-10-17  Simon Josefsson  <jas@extundo.com>
25205
25206         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
25207
25208         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
25209         md5.h.
25210
25211         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
25212
25213         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
25214
25215 2005-10-17  Simon Josefsson  <jas@extundo.com>
25216
25217         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
25218
25219 2005-10-17  Simon Josefsson  <jas@extundo.com>
25220
25221         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
25222
25223 2005-10-17  Simon Josefsson  <jas@extundo.com>
25224
25225         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
25226
25227         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
25228
25229 2005-10-17  Bruno Haible  <bruno@clisp.org>
25230
25231         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
25232         that it can also be used in a test.
25233
25234 2005-10-16  Bruno Haible  <bruno@clisp.org>
25235
25236         * gnulib-tool (func_emit_tests_Makefile_am): Also define
25237         TESTS_ENVIRONMENT, so that individual tests can augment it.
25238
25239         * gnulib-tool (func_create_testdir): Use an intermediate target for
25240         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
25241         macros, like $(ALLOCA_H), which cannot be passed through the command
25242         line.
25243
25244 2005-10-15  Simon Josefsson  <jas@extundo.com>
25245
25246         * modules/rijndael-tests: New file.
25247
25248         * modules/rijndael: New file.
25249
25250 2005-10-15  Simon Josefsson  <jas@extundo.com>
25251
25252         * m4/rijndael.m4: New file.
25253
25254 2005-10-15  Simon Josefsson  <jas@extundo.com>
25255
25256         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
25257
25258         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
25259
25260 2005-10-14  Simon Josefsson  <jas@extundo.com>
25261
25262         * tests/test-arcfour.c: New file.
25263
25264         * modules/arcfour, modules/arcfour-tests: New files.
25265
25266 2005-10-14  Simon Josefsson  <jas@extundo.com>
25267
25268         * m4/arcfour.m4: New file.
25269
25270 2005-10-14  Simon Josefsson  <jas@extundo.com>
25271
25272         * lib/arcfour.h, lib/arcfour.c: New files.
25273
25274 2005-10-14  Roland McGrath  <roland@redhat.com>
25275
25276         Import from libc.  [BZ #1331]
25277         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
25278         macro argument.
25279         Reported by Matej Vela <vela@debian.org>.
25280
25281 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
25282
25283         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
25284         include <wchar.h>; no longer needed.
25285
25286 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
25287
25288         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
25289
25290 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
25291         and  Ulrich Drepper  <drepper@redhat.com>
25292
25293         Import from libc.
25294         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
25295         instead of inline stream orientation test and two separate
25296         function calls.  Pay no attention to USE_IN_LIBIO.
25297
25298 2005-10-13  Simon Josefsson  <jas@extundo.com>
25299
25300         * modules/gc-hmac-md5-tests: New file.
25301
25302         * tests/test-gc-hmac-sha1.c: New file.
25303
25304         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
25305
25306         * modules/gc-hmac-md5-tests: New file.
25307
25308         * tests/test-gc-md5.c: New file.
25309
25310         * modules/gc-md5-tests: New file.
25311
25312 2005-10-13  Simon Josefsson  <jas@extundo.com>
25313
25314         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
25315         Move memory allocation outside of loop.
25316
25317 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25318
25319         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
25320         intermediate directory is in a read-only file system.  Problem
25321         reported by Eric Blake.
25322
25323 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
25324
25325         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
25326
25327 2005-10-12  Simon Josefsson  <jas@extundo.com>
25328
25329         * tests/test-hmac-sha1.c: New file.
25330
25331         * modules/hmac-sha1-tests: New file.
25332
25333         * modules/hmac-sha1: New file.
25334
25335 2005-10-12  Simon Josefsson  <jas@extundo.com>
25336
25337         * modules/gc-sha1: New file.
25338
25339 2005-10-12  Simon Josefsson  <jas@extundo.com>
25340
25341         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
25342
25343         * tests/test-gc-pbkdf2-sha1.c: New file.
25344
25345 2005-10-12  Simon Josefsson  <jas@extundo.com>
25346
25347         * modules/gc-md5, modules/gc-hmac-md5: New files.
25348
25349         * modules/gc (Files): Remove md5, memxor and hmac files.
25350
25351 2005-10-12  Simon Josefsson  <jas@extundo.com>
25352
25353         * m4/gc-pbkdf2-sha1.m4: New file.
25354
25355         * m4/gc-hmac-sha1.m4: New file.
25356
25357         * m4/gc-sha1: New file.
25358
25359         * m4/hmac-sha1.m4: New file.
25360
25361 2005-10-12  Simon Josefsson  <jas@extundo.com>
25362
25363         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
25364
25365         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
25366
25367 2005-10-12  Simon Josefsson  <jas@extundo.com>
25368
25369         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
25370         suggested by Bruno Haible <bruno@clisp.org>.
25371
25372 2005-10-12  Simon Josefsson  <jas@extundo.com>
25373
25374         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
25375
25376 2005-10-12  Simon Josefsson  <jas@extundo.com>
25377
25378         * lib/gc-pbkdf2-sha1.c: New file.
25379
25380         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
25381
25382 2005-10-12  Simon Josefsson  <jas@extundo.com>
25383
25384         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
25385
25386         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
25387
25388 2005-10-12  Simon Josefsson  <jas@extundo.com>
25389
25390         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
25391         GC_USE_HMAC_MD5, respectively.
25392
25393         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
25394         (gc_md5): Fix typo.
25395
25396         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
25397
25398         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
25399
25400         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
25401
25402 2005-10-12  Bruno Haible  <bruno@clisp.org>
25403
25404         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
25405         Reported by Stepan Kasal <kasal@ucw.cz>.
25406
25407 2005-10-11  Simon Josefsson  <jas@extundo.com>
25408
25409         * tests/test-crc.c: New file.
25410
25411         * modules/crc, modules/crc-tests: New files.
25412
25413 2005-10-11  Simon Josefsson  <jas@extundo.com>
25414
25415         * m4/crc.m4: New file.
25416
25417 2005-10-11  Simon Josefsson  <jas@extundo.com>
25418
25419         * lib/gc.h: Add gc_hash and gc_hash_buffer.
25420
25421         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
25422
25423         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
25424
25425 2005-10-11  Simon Josefsson  <jas@extundo.com>
25426
25427         * lib/crc.h, lib/crc.c: New files.
25428
25429         * lib/gc.h (gc_hash_buffer): Add doc.
25430
25431 2005-10-11  Bruno Haible  <bruno@clisp.org>
25432
25433         * modules/c-strcasestr: New file.
25434         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
25435
25436 2005-10-11  Bruno Haible  <bruno@clisp.org>
25437
25438         * modules/c-strcase: New file.
25439         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
25440
25441 2005-10-11  Bruno Haible  <bruno@clisp.org>
25442
25443         * lib/strcasecmp.c: Include limits.h.
25444         (strcasecmp): Avoid integer overflow on exotic platforms.
25445         * lib/strncasecmp.c: Include limits.h.
25446         (strncasecmp): Avoid integer overflow on exotic platforms.
25447         Reported by Paul Eggert.
25448
25449 2005-10-11  Bruno Haible  <bruno@clisp.org>
25450
25451         * lib/c-strcasestr.h: New file, from GNU gettext.
25452         * lib/c-strcasestr.c: New file, from GNU gettext.
25453
25454 2005-10-11  Bruno Haible  <bruno@clisp.org>
25455
25456         * lib/c-strcase.h: New file, from GNU gettext.
25457         * lib/c-strcasecmp.c: New file, from GNU gettext.
25458         * lib/c-strncasecmp.c: New file, from GNU gettext.
25459
25460 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25461
25462         * modules/mempcpy (License): GPL -> LGPL.
25463         * modules/strchrnul (License): Likewise.
25464         * modules/sysexits (License): Likewise.
25465
25466 2005-10-08  Simon Josefsson  <jas@extundo.com>
25467
25468         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
25469
25470 2005-10-07  Simon Josefsson  <jas@extundo.com>
25471
25472         * m4/memxor.m4: Remove gl_C_RESTRICT call.
25473
25474 2005-10-06  Simon Josefsson  <jas@extundo.com>
25475
25476         * tests/test-hmac-md5.c: New file.
25477
25478         * modules/hmac-md5-tests: New file.
25479
25480         * modules/hmac-md5: New file.
25481
25482 2005-10-06  Simon Josefsson  <jas@extundo.com>
25483
25484         * m4/hmac-md5.m4: New file.
25485
25486         * m4/memxor.m4: Require gl_C_RESTRICT.
25487
25488 2005-10-06  Simon Josefsson  <jas@extundo.com>
25489
25490         * lib/memxor.c (memxor): Avoid casts and warnings.
25491
25492 2005-10-06  Simon Josefsson  <jas@extundo.com>
25493
25494         * lib/hmac-md5.c: New file.
25495
25496         * lib/hmac.h: New file.
25497
25498 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25499
25500         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
25501         promotes to int, not unsigned int, to catch the AIX 5.3
25502         compiler bug.
25503
25504 2005-10-05  Simon Josefsson  <jas@extundo.com>
25505
25506         * modules/memxor: New file.
25507
25508         * modules/iconv (Files): Move config.rpath to havelib, it is used
25509         there.
25510
25511         * modules/havelib (Files): Add config.rpath.
25512
25513 2005-10-05  Simon Josefsson  <jas@extundo.com>
25514
25515         * m4/memxor.m4: New file.
25516
25517 2005-10-05  Simon Josefsson  <jas@extundo.com>
25518
25519         * lib/memxor.c (memxor): Fix compiler error.
25520
25521         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
25522         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
25523
25524         * lib/memxor.h, lib/memxor.c: New files.
25525
25526         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
25527         we assume all systems have it, suggested by Jim Meyering
25528         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
25529         any systems lack sys/socket.h; mingw32 is known to lack it, but we
25530         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
25531         same reasons.
25532
25533 2005-10-05  Simon Josefsson  <jas@extundo.com>
25534
25535         * config/srclist.txt: Add glibc bug 1423 for md5.h.
25536
25537 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25538
25539         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
25540         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
25541         needed, since the source code now assumes these .h files.
25542
25543 2005-10-05  Derek Price  <derek@ximbiot.com>
25544
25545         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
25546
25547 2005-10-05  Bruno Haible  <bruno@clisp.org>
25548
25549         * modules/stdint (License): Change to LGPL.
25550
25551 2005-10-04  Simon Josefsson  <jas@extundo.com>
25552
25553         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
25554         D. Baushke" <mdb@gnu.org>.
25555
25556 2005-10-04  Bruno Haible  <bruno@clisp.org>
25557
25558         * lib/verify.h (verify_true): Provide alternative definition for C++.
25559
25560 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25561
25562         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
25563         (SSIZE_MAX): New macro, if not already defined.
25564         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
25565         than 2 GiB.
25566
25567 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25568
25569         Sync from coreutils.
25570         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
25571         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
25572         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
25573         ULLONG_MAX doesn't work with 2.7.2.1.
25574
25575 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25576
25577         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
25578         From Ben Pfaff.
25579
25580         * modules/exclude (Depends-on): Depend on verify.
25581         * modules/strtoimax (Depends-on): Likewise.
25582         * modules/utimecmp (Depends-on): Likewise.
25583
25584 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25585
25586         * lib/exclude.c: Include verify.h.
25587         (verify): Remove.  All callers changed to use verify.h's version.
25588         * lib/strtoimax.c: Likewise.
25589         * lib/utimecmp.c: Likewis.e
25590
25591         Sync from coreutils.
25592         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
25593         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
25594         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
25595         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
25596         bother returning ENOSYS if settimeofday or stime fails; just let
25597         them return whatever errno they want to return.
25598         * lib/utimens.c: Include unistd.h, for dup2.
25599         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
25600         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
25601
25602 2005-10-02  Jim Meyering  <jim@meyering.net>
25603
25604         Sync from coreutils.
25605         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
25606         from glibc-2.2.5 that fails for read-only files.
25607
25608 2005-10-02  Jim Meyering  <jim@meyering.net>
25609
25610         Sync from coreutils.
25611         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
25612         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
25613         `#if HAVE_CONFIG_H'.
25614         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
25615         Remove AT_FDCWD test.
25616         Do not consume the fd unless successful.
25617         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
25618         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
25619         block, so that we don't even try to compile it if settimeofday is
25620         available.  This works around a compilation failure on OSF1 V5.1,
25621         due to stime requiring a `long int*' while tv_sec is `int'.
25622
25623 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
25624
25625         Sync from coreutils.
25626         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
25627         against `yes', rather than just testing for nonempty.
25628
25629 2005-10-01  Simon Josefsson  <jas@extundo.com>
25630
25631         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
25632         and Darwin.
25633
25634         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
25635         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
25636         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
25637         freeaddrinfo and gai_strerror are declared by the POSIX headers.
25638         Check if struct addrinfo is declared.
25639
25640 2005-10-01  Simon Josefsson  <jas@extundo.com>
25641
25642         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
25643         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
25644         AI_* and EAI_* definitions.  Protect function declarations.
25645
25646 2005-10-01  Jim Meyering  <jim@meyering.net>
25647
25648         Sync from coreutils.
25649
25650         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
25651         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
25652         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
25653         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25654         in the inet and nsl libraries.  Required on Solaris 5.7.
25655
25656 2005-10-01  Jim Meyering  <jim@meyering.net>
25657
25658         Sync from coreutils.
25659         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25660         in the inet and nsl libraries.  Required on Solaris 5.7.
25661
25662 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
25663
25664         * lib/getdelim.c (getdelim): Remove unused variables.
25665
25666 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
25667
25668         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
25669         so that the code works even with ancient cpp.  Portability problem
25670         with GCC 2.7.2.1 reported by Thomas M.Ott.
25671
25672 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
25673
25674         * modules/regex (Depends-on): Add strcase.
25675
25676         * modules/gethostname (Licence): Change from GPL to LGPL, since
25677         gethostname.c is a trivial implementation of a standard library
25678         function.
25679         * modules/poll (License): Change from GPL to LGPL, since it's
25680         derived from LGPL code.
25681
25682 2005-09-27  Jim Meyering  <jim@meyering.net>
25683
25684         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
25685         HAVE_CONFIG_H.
25686
25687         * lib/intprops.h (signed_type_or_expr__): Define.
25688         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
25689         for unsigned types.
25690
25691 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25692
25693         * lib/verify.h (verify_expr): Remove, replacing with:
25694         (verify_true): New macro that returns true instead of void.
25695         (verify_type__): Remove.
25696         (verify): Use verify_true rather than verify_type__.
25697
25698 2005-09-26  Bruno Haible  <bruno@clisp.org>
25699
25700         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
25701         is necessary.
25702         (lib_SOURCES): Remove mbchar.c.
25703         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
25704         (Files): Add m4/mbrtowc.m4.
25705         * modules/mbiter: Likewise.
25706         * modules/mbuiter: Likewise.
25707
25708 2005-09-26  Bruno Haible  <bruno@clisp.org>
25709
25710         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
25711         compile mbchar.c if they are not both present.
25712         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
25713         * m4/mbiter.m4 (gl_MBITER): Likewise.
25714         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
25715         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
25716         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
25717
25718 2005-09-25  Jim Meyering  <jim@meyering.net>
25719
25720         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
25721         also uses socklen_t.
25722
25723 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
25724
25725         * lib/utimens.c (ENOSYS): Define if not already defined.
25726         (futimens): Support having a null PATH if the file descriptor
25727         is nonnegative.
25728
25729         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
25730         Remove.
25731         (__attribute): Define to empty unless GCC 3.1 or later.
25732         This works around a core dump on OpenBSD 3.4, which has GCC
25733         2.95.3, which dumps core when given __attribute__(()).  It also
25734         simplifies other tests, since we really don't want to bother with
25735         worrying about which ancient version of GCC supported what.
25736         Original problem reported by Yoann Vandoorselaere, with part of
25737         the fix suggested by Derek Price.
25738
25739 2005-09-24  Jim Meyering  <jim@meyering.net>
25740
25741         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
25742         so we can once again use a positive bitfield width of 1 -- now we
25743         don't have to explain why we were using a bitfield width of 2.
25744
25745 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25746
25747         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
25748         and similarly for the other external symbols.  Problem reported
25749         by James Gallager.
25750
25751         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
25752         bug reported by Jim Meyering.
25753
25754         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
25755         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
25756         not needed, since socklen is a prerequisite module.
25757
25758 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25759
25760         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
25761         Problem reported by Eric Blake.
25762         (getaddrinfo): Initialize se so that it's not garbage.
25763         Redo internal storage allocation so that it doesn't make unportable
25764         assumptions about alignment.
25765         Fix a memory leak.
25766
25767         * lib/utimens.c (futimens): Use futimesat if available.
25768         Prefer it to futimes since it doesn't have the futimes bug.
25769
25770         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
25771         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
25772         Instead, declare a function that returns a pointer to an array,
25773         and use verify_type__ to declare the size of the array.
25774         Problem and germ of a solution reported by Bruno Haible.
25775         (verify_type__): Use 2, not 1, for bitfield size, to avoid
25776         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
25777
25778 2005-09-23  Jim Meyering  <jim@meyering.net>
25779
25780         Sync from coreutils.
25781         Correct build failure (socklen_t not defined) on at least
25782         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
25783         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
25784
25785 2005-09-23  Jim Meyering  <jim@meyering.net>
25786
25787         * modules/getaddrinfo (Depends-on): Add socklen.
25788
25789 2005-09-23  Bruno Haible  <bruno@clisp.org>
25790
25791         * tests/test-verify.c: New file.
25792
25793 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25794
25795         Sync from coreutils.
25796
25797         * modules/argmatch (Depends-on): Add verify.
25798         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
25799         unistd-safer.
25800         * modules/save-cwd (Depends-on): Likewise.
25801
25802         * modules/openat (Files): Add lib/openat-die.c.
25803         (Depends-on): Remove error, exitfail.
25804         Add dirname.
25805
25806         * modules/verify: New file.
25807         * MODULES.html.sh (Diagnostics <assert.h>): New section,
25808         with "verify" module.
25809
25810 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25811
25812         Sync from coreutils.
25813
25814         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
25815         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
25816         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
25817         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
25818         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
25819         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
25820         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
25821         Don't bother checking for string.h, stdlib.h, unistd.h.
25822         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
25823         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
25824         module's job.
25825         * m4/jm-macros.m4 (gl_MACROS): Likewise.
25826         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
25827
25828         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
25829         (gl_GETDATE): Use it.
25830
25831         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
25832
25833 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25834
25835         Sync from coreutils.
25836
25837         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
25838         stat-time.h.
25839         * lib/argmatch.h: Include verify.h
25840         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
25841         (ARGMATCH_ASSERT): Remove; unused.
25842         * lib/canonicalize.c: Assume STDC_HEADERS.
25843         * lib/exclude.c: Include "strcase.h".
25844         * lib/regex_internal.h [!defined _LIBC]: Likewise.
25845         * lib/getusershell.c: Include stdio--.h rather than stdio.h
25846         and stdio-safer.h.
25847         (getusershell): Call fopen, not fopen_safer.
25848         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
25849         Do not include unistd-safer.h.
25850         (save_cwd): Don't call fd_safer; no longer needed
25851         now that we include fcntl--.h.
25852
25853         * lib/getdate.y (relative_time): New type.
25854         (RELATIVE_TIME_0): New constant.
25855         (parser_control): Use relative_time instead of doing it ourselves.
25856         (%union): Add new relative_time rel member.
25857         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
25858         Now typeless.
25859         (relunit, relunit_snumber): Now of type rel.
25860         (zone, rel, relunit, get_date): Adjust to above changes.
25861
25862         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
25863         Do not include unistd-safer.h.
25864         (getloadavg): Don't call fd_safer; no longer needed
25865         now that we include fcntl--.h.
25866
25867         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
25868         (make_dir_parents): Treat ENOSYS like EEXIST.
25869
25870         Improve quality of diagnostics on restore_cwd failure.
25871         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
25872         (make_dir_parents): Last arg is now int * (for errno), not bool *.
25873         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
25874         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
25875         each time through the loop.  Do not diagnose restore_cwd failure;
25876         that is the caller's job (and perhaps the caller does not care).
25877
25878         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
25879         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
25880         If the file already exists but is not a directory, don't bother
25881         to try to make its parents.
25882         Close potential file descriptor leak if we can't chdir("/") (!).
25883         Don't always return true if chdir($PWD) fails; return true only
25884         if the requested action was done successfully (except for the
25885         chdir($PWD)).
25886         Don't log final directory unless we actually made it.
25887         Refactor to avoid duplicate code to fix up permissions.
25888         Don't attempt to fix up parent permissions if chdir($PWD) fails.
25889
25890         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
25891         to make it a bit faster and (I hope) clearer.
25892         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
25893         Fix bug in formats like %2N.
25894
25895         * lib/verify.h: New file.
25896
25897 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25898
25899         Sync from coreutils.
25900         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
25901
25902 2005-09-22  Jim Meyering  <jim@meyering.net>
25903
25904         Sync from coreutils.
25905
25906         * m4/lstat.m4 (gl_FUNC_LSTAT):
25907         Use AC_LIBSOURCES to require lstat.c and lstat.h.
25908         Remove obsolete comment.
25909         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
25910         * m4/xstrtod.m4: Likewise.
25911
25912         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
25913
25914 2005-09-22  Jim Meyering  <jim@meyering.net>
25915
25916         Sync from coreutils.
25917
25918         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
25919
25920         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
25921         the .tm_year member, since otherwise gcc-4.0 would now warn about
25922         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
25923
25924         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
25925         order to avoid an unsuppressible warning from gcc on 64-bit systems.
25926
25927         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
25928         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
25929         when run in a time zone for which daylight savings time is in effect
25930         for the starting date.
25931
25932         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
25933         stop us from restricting permissions of just-created absolute-named
25934         directories.
25935         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
25936         to restore initial working directory.
25937         * lib/mkdir-p.c (make_dir_parents): New parameter:
25938         different_working_dir, to tell caller if/when we change the working
25939         directory and are unable to return to the initial one.
25940         * lib/mkdir-p.h (make_dir_parents): Update prototype.
25941         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
25942         `return false'.  This fixes a bug introduced on 2004-07-30.
25943
25944         * lib/openat.c (fdopendir): Be sure to close the supplied
25945         file descriptor before returning.  This makes our replacement
25946         implementation a little closer to Solaris's, where fdopendir
25947         ties the file descriptor to the returned DIR* pointer.
25948         * lib/openat.c (unlinkat): New function.
25949         * lib/openat.h (unlinkat): Add prototype.
25950         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
25951         (openat_restore_fail): Rename from openat_restore_die.
25952         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
25953
25954         Provide an alternative to exiting immediately upon save_cwd or
25955         restore_cwd failure.  Now, an application can arrange e.g.,
25956         to perform a longjump in that case.
25957         * lib/openat.c: Include dirname.h.
25958         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
25959         (rpl_openat, fdopendir, fstatat): Call openat_save_die
25960         and openat_restore_die rather than calling error directly.
25961         Don't include "error.h" or "exitfail.h"; they're no longer needed.
25962
25963         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
25964         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
25965         define.
25966
25967         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
25968         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
25969                             int utc, int nanoseconds);
25970         Background:
25971         date should not have to allocate a megabyte of virtual memory to
25972         handle a format argument like +%1048575T.  When implemented with
25973         strftime, it must allocate such a buffer, use strftime to fill it
25974         in, print it, then free it.
25975         With fprintftime, it simply prints everything and exits.
25976         With no need for memory allocation, that's one fewer way to fail.
25977         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
25978         optional field width, not before, so we accept %9:z, not %:9z.
25979         (my_strftime): Be sure to use L_('x') for literals.
25980
25981         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
25982         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
25983         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
25984         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
25985         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
25986         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
25987         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
25988         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
25989         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
25990         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
25991         * lib/xgethostname.c, lib/xreadlink.c:
25992         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
25993
25994         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
25995         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
25996         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
25997         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
25998         and don't include <sys/file.h>).
25999
26000 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
26001
26002         Sync from coreutils.
26003
26004         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
26005         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
26006         [!LDAV_DONE]: Avoid unused variable warning.
26007
26008 2005-09-21  Bruno Haible  <bruno@clisp.org>
26009
26010         * lib/unicodeio.h (unicode_to_mb): New declaration.
26011
26012 2005-09-20  Derek Price  <derek@ximbiot.com>
26013
26014         * lib/getaddrinfo.c: Don't include <netdb.h> included from
26015         getaddrinfo.h.
26016
26017 2005-09-20  Bruno Haible  <bruno@clisp.org>
26018
26019         * gnulib-tool: Remove trailing slashes from the values specified for
26020         --source-base, --m4-base, --tests-base, --aux-dir.
26021         Suggested by Simon Josefsson <jas@extundo.com>.
26022
26023 2005-09-20  Bruno Haible  <bruno@clisp.org>
26024
26025         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
26026         func_modules_to_filelist, func_import, func_create_testdir): Make all
26027         sorting results locale-independent, so that gnulib-cache.m4 doesn't
26028         change when gnulib-tool is invoked in a different locale.
26029
26030 2005-09-19  Simon Josefsson  <jas@extundo.com>
26031
26032         * m4/socklen.m4: Fix typo.
26033
26034 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26035
26036         Use a consistent style for including <config.h>.
26037         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
26038         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
26039         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
26040         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
26041         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
26042         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
26043         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
26044         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
26045         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
26046         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
26047         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
26048         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
26049         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
26050         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
26051         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
26052         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
26053         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
26054         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
26055         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
26056         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
26057         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
26058         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
26059         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
26060         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
26061         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
26062         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
26063         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
26064         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
26065         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
26066         lib/xstrtoumax.c, lib/yesno.c:
26067         Standardize inclusion of config.h.
26068         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
26069         lib/inttostr.h:  Removed inclusion of config.h from header files.
26070         * lib/inttostr.c:  Adjusted in-tree users.
26071         * lib/timespec.h: Remove superfluous warning to include config.h.
26072         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
26073         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
26074         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
26075         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
26076         config.h with HAVE_CONFIG_H.
26077
26078 2005-09-19  Jim Meyering  <jim@meyering.net>
26079
26080         * modules/pathmax (License): Change to LGPL.
26081
26082 2005-09-19  Derek Price  <derek@ximbiot.com>
26083
26084         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
26085
26086 2005-09-19  Bruno Haible  <bruno@clisp.org>
26087
26088         * gnulib-tool (import): Provide default for --tests-base.
26089
26090 2005-09-19  Bruno Haible  <bruno@clisp.org>
26091
26092         * doc/quote.texi: New file, extracted from gnulib.texi.
26093         * doc/ctime.texi: New file, extracted from gnulib.texi.
26094         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
26095         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
26096         * doc/gnulib.texi: Include them.
26097
26098 2005-09-18  Bruno Haible  <bruno@clisp.org>
26099
26100         Portability fix.
26101         * gnulib-tool (func_readlink): New function.
26102         (func_ln_if_changed): Use it.
26103
26104 2005-09-18  Bruno Haible  <bruno@clisp.org>
26105
26106         * gnulib-tool: Support --with-tests also with --import.
26107         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
26108         (func_import): Use variables $testsbase and $inctests. Emit a
26109         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
26110         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
26111         SUBDIRS += $testsdir.
26112         (func_create_testdir): Update.
26113
26114 2005-09-18  Bruno Haible  <bruno@clisp.org>
26115
26116         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
26117         instead of $dry_run.
26118         (func_cp_if_changed, func_mv_if_changed): Remove functions.
26119         (func_ln_if_changed): Don't handle dry-run here.
26120         (func_import): In dry-run mode, detect more precisely which actions
26121         would be performed, and don't use "...ing" verbs.
26122
26123 2005-09-18  Bruno Haible  <bruno@clisp.org>
26124
26125         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
26126         (func_import): Use join on two temporary files instead of three nested
26127         loops, in order to determine which files are new or old.
26128
26129 2005-09-18  Bruno Haible  <bruno@clisp.org>
26130
26131         * gnulib-tool (func_import): Comment out code that spits out the
26132         new files with --dry-run.
26133
26134 2005-09-18  Bruno Haible  <bruno@clisp.org>
26135
26136         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
26137
26138 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26139
26140         * lib/stat-time.h: New file.
26141         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
26142         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
26143         in a different way.
26144         (timespec_cmp): New function.
26145         * lib/utimecmp.c: Include stat-time.h.
26146         (SYSCALL_RESOLUTION): Depend on whether various struct stat
26147         members exist, not on the obsolescent ST_MTIM_NSEC.
26148         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
26149
26150 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26151
26152         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
26153
26154 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26155
26156         * MODULES.html.sh (File system functions): Add stat-time.
26157         * modules/stat-time: New file.
26158         * modules/timespec (Files): Remove m4/st_mtim.m4; this
26159         is now done in a different way, by the stat-time module.
26160         * modules/utimecmp (Depends-on): Add stat-time.
26161
26162 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
26163
26164         * m4/st_mtim.m4: Remove.  Superseded by...
26165         * m4/stat-time.m4: New file.
26166         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
26167         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
26168
26169 2005-09-15  Derek Price  <derek@ximbiot.com>
26170
26171         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
26172
26173 2005-09-15  Derek Price  <derek@ximbiot.com>
26174
26175         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
26176         * lib/regex_internal.c: Ditto, using this...
26177         (__GNUC_PREREQ): ...new macro.
26178         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
26179         using...
26180         (__GNUC_PREREQ): ...this new macro.
26181
26182         * lib/strstr.h: Include string.h. Define strstr as a macro here.
26183
26184 2005-09-15  Derek Price  <derek@ximbiot.com>
26185             Paul Eggert  <eggert@cs.ucla.edu>
26186
26187         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
26188         changes, consolidating in...
26189         * lib/regex_internal.h: ...this file.
26190
26191 2005-09-13  Jim Meyering  <jim@meyering.net>
26192
26193         * lib/canon-host.c: Filter through gnu indent and reword comments
26194         slightly.
26195         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
26196
26197 2005-09-13  Derek Price  <derek@ximbiot.com>
26198
26199         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
26200         failure.
26201         Reported by Jim Meyering  <jim@meyering.net>.
26202
26203 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26204
26205         * lib/base64.c: Typo.
26206         (base64_encode): Put b64str in initialized data section.
26207
26208 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26209
26210         Merge glibc and coreutils changes into gnulib, plus a few
26211         extra fixes.
26212         * lib/md5.c: Use #error rather than a string.
26213         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
26214         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
26215         (__attribute__): Define to empty for non recent-GCC.
26216         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
26217         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
26218         Renamed from their non-__ counterparts, with new macros replacing
26219         them if not _LIBC.  Add __THROW attribute.
26220         (rol): Remove.
26221         (struct md5_ctx): Align buffer if using GCC.
26222         * lib/sha1.h (struct sha1_ctx): Likewise.
26223         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
26224         The old name was backwards.
26225         (NOTSWAP): Remove; not used.
26226         (rol): New macro, moved here from md5.h.
26227         (sha1_process_block): Remove a FIXME that doesn't make sense.
26228
26229 2005-09-12  Derek Price  <derek@ximbiot.com>
26230
26231         Return usable errors from canon-host.
26232         * lib/canon-host.h: New file.
26233         * lib/canon-host.c (canon_host): Wrap...
26234         (canon_host_r): ...this new function, which now relies exclusively on
26235         getaddrinfo.
26236         (ch_strerror): New function.
26237         (last_cherror): New global.
26238         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
26239         interface.
26240         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
26241         void *.
26242         (freeaddrinfo): Free ai->ai_canonname when set.
26243
26244 2005-09-12  Derek Price  <derek@ximbiot.com>
26245
26246         Make canon-host require getaddrinfo.
26247         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
26248         AC_LIBSOURCE canon-host.h.  Call...
26249         (gl_PREREQ_CANON_HOST): ...this new function, which requires
26250         gl_GETADDRINFO.
26251         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
26252
26253 2005-09-12  Derek Price  <derek@ximbiot.com>
26254
26255         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
26256         LGPL.
26257         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
26258
26259 2005-09-12  Derek Price  <derek@ximbiot.com>
26260
26261         * lib/gai_strerror.c: Include config.h when available.  Include
26262         getaddrinfo.h before other headers to test interface.
26263         Reported by Larry Jones <lawrence.jones@ugs.com>.
26264
26265 2005-09-12  Derek Price  <derek@ximbiot.com>
26266             Paul Eggert  <eggert@cs.ucla.edu>
26267
26268         * modules/glob (Files): Add glob-libc.h.
26269
26270 2005-09-12  Derek Price  <derek@ximbiot.com>
26271             Paul Eggert  <eggert@cs.ucla.edu>
26272
26273         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
26274         glob_.h, glob-libc.h.
26275         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
26276
26277 2005-09-12  Derek Price  <derek@ximbiot.com>
26278             Paul Eggert  <eggert@cs.ucla.edu>
26279
26280         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
26281         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
26282         protecting things that should be done only in gnulib contexts.
26283         * lib/glob_.h: New file, containing only the glob things needed for
26284         gnulib.
26285         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
26286         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
26287         (glob, globfree, glob_pattern_p): Now defined simply in terms of
26288         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
26289         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
26290         and to respect the namespace rules better.
26291
26292 2005-09-08  Simon Josefsson  <jas@extundo.com>
26293
26294         * modules/socklen: New file.
26295
26296 2005-09-08  Simon Josefsson  <jas@extundo.com>
26297
26298         * m4/socklen.m4: New file.
26299
26300 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26301
26302         * modules/utimens (Files): Add m4/utimbuf.m4, since
26303         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
26304         Reported by Sergey Poznyakoff.
26305
26306 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26307
26308         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
26309         definitions, since that's the preferred style in glibc.
26310         Fix a minor spacing issue, and update copyright notice to match
26311         glibc's.
26312
26313 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26314
26315         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
26316
26317 2005-09-06  Simon Josefsson  <jas@extundo.com>
26318
26319         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
26320         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
26321
26322 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26323
26324         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
26325         warning.
26326
26327 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26328
26329         * config/srclist.txt: Add glibc bug 1302.
26330
26331 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
26332
26333         Change bitset word type from unsigned int to unsigned long int,
26334         as this has better performance on typical 64-bit hosts.
26335         Port bitset code to hosts with unusual word sizes.
26336         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
26337         (build_collating_symbol):
26338         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
26339         argument is a bitset.  This is merely a style issue, but it makes
26340         it clearer that an entire array is expected.
26341         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
26342         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
26343         Port to the case where bitset_word is not the same as unsigned int.
26344         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
26345         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
26346         Likewise.
26347         * lib/regexec.c (check_dst_limits_calc_pos_1,
26348         check_subexp_matching_top):
26349         (build_trtable, group_nodes_into_DFAstates):
26350         Likewise.
26351         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
26352         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
26353         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
26354         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
26355         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
26356         * lib/regcomp.c (optimize_subexps, lower_subexp):
26357         Work even if bitset_word has holes in its bitwise representation.
26358         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
26359         * lib/regexec.c (check_dst_limits_calc_pos_1,
26360         check_subexp_matching_top):
26361         Likewise.
26362         * lib/regex_internal.c (re_string_reconstruct):
26363         Don't assume UCHAR_MAX == 255.
26364         * lib/regex_internal.h (bitset_set_all): Likewise.
26365         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
26366         All uses changed.
26367         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
26368         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
26369         All uses changed.
26370         (BITSET_WORD_MAX): New macro.
26371         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
26372         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
26373         (bitset_empty, bitset_copy):
26374         Prefer sizeof (bitset) to multiplying it out ourselves.
26375         (bitset_not_merge): Remove; unused.
26376         (bitset_contain): Return bool, not unsigned int with one bit on.
26377         All callers changed.
26378         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
26379         alignment than re_node_set; do this by defining a new internal
26380         type struct dests_alloc and using it to allocate memory.
26381
26382 2005-09-05  Bruno Haible  <bruno@clisp.org>
26383
26384         * gnulib-tool (func_import): Fix comparison in handling of symbolic
26385         links.
26386
26387 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
26388
26389         * modules/size_max (Makefile.am): Add size_max.h
26390
26391 2005-09-04  Derek Price  <derek@ximbiot.com>
26392
26393         * gnulib-tool (func_import): Fix reversed $symbolic logic.
26394
26395 2005-09-03  Simon Josefsson  <jas@extundo.com>
26396
26397         * gnulib-tool: Fix typo.
26398
26399 2005-09-03  Simon Josefsson  <jas@extundo.com>
26400
26401         * config/srclist.txt: Add glibc bug 1293.
26402
26403 2005-09-03  Derek Price  <derek@ximbiot.com>
26404
26405         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
26406         From Larry Jones <lawrence.jones@ugs.com>.
26407
26408 2005-09-02  Simon Josefsson  <jas@extundo.com>
26409
26410         * modules/socklen: New file.
26411
26412 2005-09-02  Simon Josefsson  <jas@extundo.com>
26413
26414         * modules/havelib: New module.
26415
26416         * modules/gettext, modules/iconv, modules/lock, modules/readline:
26417         Use havelib.
26418
26419 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26420
26421         Check for arithmetic overflow when calculating sizes, to prevent
26422         some buffer-overflow issues.  These patches are conservative, in the
26423         sense that when I couldn't determine whether an overflow was possible,
26424         I inserted a run-time check.
26425         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
26426         macros.
26427         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
26428         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
26429         (re_xnrealloc, re_x2nrealloc): New inline functions.
26430         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
26431         parse_bracket_exp):
26432         (build_equiv_class, build_charclass): Check for arithmetic overflow
26433         in size expression calculations.
26434         * lib/regex_internal.c (re_string_realloc_buffers):
26435         (build_wcs_upper_buffer, re_node_set_add_intersect):
26436         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
26437         (re_dfa_add_node, register_state): Likewise.
26438         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
26439         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
26440         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
26441         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
26442
26443 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26444
26445         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
26446         m4/ulonglong.m4.  Problem reported by Martin Lambers.
26447
26448 2005-09-02  Bruno Haible  <bruno@clisp.org>
26449
26450         Support for lib vs. lib64 distinction on biarch platforms.
26451         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
26452         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
26453         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
26454
26455 2005-09-02  Bruno Haible  <bruno@clisp.org>
26456
26457         * gnulib-tool (import): In the other first-use case, provide defaults
26458         as well.
26459
26460 2005-09-02  Bruno Haible  <bruno@clisp.org>
26461
26462         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
26463         patches not yet found in the latest gettext release.
26464
26465 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26466
26467         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
26468         to avoid a collision with bits/local_lim.h in glibc.
26469         All uses changed.  Problem reported by Dmitry V. Levin in
26470         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
26471
26472         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
26473         bugs in int versus size_t comparisons.
26474         (re_string_context_at): Fix bug where the code assumed that
26475         Idx is signed.
26476
26477         Use bool where appropriate.
26478         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
26479         All callers changed.
26480         (calc_eclosure_iter): Likewise, for ROOT arg.
26481         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
26482         (build_charclass_op): Likewise, for NON_MATCH arg.
26483         * lib/regex_internal.c (re_string_allocate, re_string_construct):
26484         (re_string_construct_common): Likewise, for ICASE arg.
26485         * lib/regexec.c (re_search_2_stub, re_search_stub):
26486         Likewise, for RET_LEN arg.
26487         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
26488         (set_regs): Likewise, for FL_BACKTRACK arg.
26489         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
26490         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
26491         (calc_eclosure_iter, parse_bracket_exp):
26492         Use bool for internal variables that are booleans.
26493         * lib/regexec.c (re_search_internal, check_matching,
26494         proceed_next_node):
26495         (set_regs, build_sifted_states, sift_states_bkref):
26496         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
26497         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
26498         (find_collation_sequence_value):
26499         Likewise.
26500         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
26501         (re_node_set_compare):
26502         Return bool, not int. All callers changed.
26503         * lib/regexec.c (check_halt_node_context, check_dst_limits):
26504         (build_trtable, check_node_accept): Likewise.
26505         * lib/regex_internal.h: Include stdbool.h.
26506
26507         Fix bugs uncovered when converting to bool.
26508         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
26509         failure instead of charging ahead blindly.
26510         * lib/regex_internal.c (register_state): Likewise.
26511         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
26512         for freeing internal storage.
26513         (group_nodes_into_DFA_states): Use unsigned int, not int, for
26514         bitset pieces used as boolean, to avoid undefined behavior
26515         on hosts that do int overflow checking.
26516
26517 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26518
26519         * config/srclist.txt: Add glibc bugs 1285-1287.
26520
26521 2005-09-01  Jim Meyering  <jim@meyering.net>
26522
26523         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
26524         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
26525         Require gl_STAT_MACROS, too.
26526
26527 2005-09-01  Bruno Haible  <bruno@clisp.org>
26528
26529         * gnulib-tool (import): In the first-use case, provide defaults.
26530
26531 2005-09-01  Bruno Haible  <bruno@clisp.org>
26532
26533         * gnulib-tool (func_import): Remove the .tmp files.
26534
26535 2005-09-01  Bruno Haible  <bruno@clisp.org>
26536
26537         * gnulib-tool (func_import): Fix handling of symbolic links.
26538
26539 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26540
26541         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
26542         old glibc regex code mishandles strings longer than 2**31 bytes.
26543         This patch fixes this when the regex code is used in gnulib
26544         (i.e., outside glibc).
26545
26546         This patch should not affect the use of the regex code inside
26547         glibc.  No doubt this problem also needs to be handled for glibc
26548         as well, but the result will be an incompatible change to the
26549         glibc ABI, and the old ABI will have to be supported too.  That
26550         can be the the subject for another patch.
26551
26552         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
26553         governing whether the rest of this patch is active.  By default,
26554         the macro is disabled and the patch has no effect.
26555         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
26556         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
26557         (struct re_pattern_buffer, re_search, re_search_2, re_match):
26558         (re_match_2, re_set_registers): Use the new types.
26559         * lib/regex_internal.h (Idx, re_hashval_t): New types.
26560         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
26561         New macros.
26562         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
26563         (re_string_context_at, bin_tree_t, re_dfastate_t):
26564         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
26565         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
26566         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
26567         (re_string_char_size_at, re_string_wchar_at):
26568         (re_string_elem_size_at):
26569         Use the new types and macros to port to 64-bit hosts.
26570         Use unsigned types for internal values, so that the code
26571         mostly works even for arrays larger than SSIZE_MAX.
26572         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
26573         (search_duplicated_node, calc_eclosure_iter, fetch_number):
26574         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
26575         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
26576         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
26577         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
26578         (calc_inveclosure, parse_dup_op, build_range_exp):
26579         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
26580         (fetch_number, create_token_tree, mark_opt_subexp):
26581         Likewise.
26582         * lib/regex_internal.c (re_string_construct_common,
26583         create_ci_newstate):
26584         (create_cd_newstate, re_string_allocate, re_string_construct):
26585         (re_string_realloc_buffers, build_wcs_upper_buffer):
26586         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
26587         (re_string_reconstruct, re_string_peek_byte_case):
26588         (re_string_fetch_byte_case, re_string_context_at):
26589         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
26590         (re_node_set_init_copy, re_node_set_add_intersect):
26591         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26592         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26593         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
26594         (re_acquire_state, re_acquire_state_context, register_state):
26595         Likewise.
26596         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
26597         search_cur_bkref_entry):
26598         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
26599         (re_search_internal, re_search_2_stub, re_search_stub)
26600         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
26601         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
26602         (update_cur_sifted_state, check_dst_limits):
26603         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26604         (check_subexp_limits, sift_states_bkref, merge_state_array):
26605         (check_subexp_matching_top, get_subexp, get_subexp_sub):
26606         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
26607         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
26608         (expand_bkref_cache, check_node_accept_bytes):
26609         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
26610         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
26611         (acquire_init_state_context, check_halt_node_context):
26612         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
26613         (sift_states_backward, clean_state_log_if_needed):
26614         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
26615         (find_recover_state, transit_state_sb, transit_state_mb):
26616         (transit_state_bkref, build_trtable, match_ctx_clean):
26617         Likewise.
26618         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
26619         to work around an assumption that REG_MISSING is negative.
26620
26621         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
26622         (seek_collating_symbol_entry) [defined _LIBC]:
26623         (lookup_collation_sequence_value) [defined _LIBC]:
26624         (build_range_exp, build_collating_symbol) [defined _LIBC]:
26625         Use prototypes rather than old-style function definitions.
26626         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
26627         (transit_state_sb) [0]:
26628         (find_collation_sequence_value) [defined _LIBC]: Likewise.
26629
26630         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
26631         rm_eo.
26632
26633         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
26634         (optimize_subexps, lower_subexp):
26635         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
26636         since the signed shift might overflow.  Use 1u<<31 instead.
26637         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
26638         Likewise.
26639         * lib/regexec.c (check_dst_limits_calc_pos_1,
26640         check_subexp_matching_top): Likewise.
26641
26642         * lib/regcomp.c (optimize_subexps, lower_subexp):
26643         Use CHAR_BIT rather than 8, for clarity.
26644         * lib/regexec.c (check_dst_limits_calc_pos_1):
26645         (check_subexp_matching_top): Likewise.
26646         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
26647         have to worry about portability issues when shifting it left.
26648         Remove no-longer-needed test for table_size > 0.
26649         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
26650         in a word, as the resulting behavior is undefined.
26651         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
26652         in one case, a <= should have been an <, and in another case the
26653         whole test was missing.
26654         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
26655         the standard name CHAR_BIT.
26656         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
26657         this is not true on one's complement and signed-magnitude hosts.
26658
26659         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
26660         next_last_offset.
26661         (struct re_dfa_t): Remove unused member states_alloc.
26662         * lib/regcomp.c (init_dfa): Don't initialize unused members.
26663
26664 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26665
26666         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
26667         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
26668         and large-file glibc and in 32-bit large-file Solaris.
26669
26670 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26671
26672         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
26673         lengths fit in regoff_t; this isn't true if regoff_t is the same
26674         width as size_t.
26675         * lib/regex.c (re_search_internal): 5th arg is LAST_START
26676         (= START + RANGE) instead of RANGE.  This avoids overflow
26677         problems when regoff_t is the same width as size_t.
26678         All callers changed.
26679         (re_search_2_stub): Check for overflow when adding the
26680         sizes of the two strings.
26681         (re_search_stub): Check for overflow when adding START
26682         to RANGE; if it occurs, substitute the extreme value.
26683
26684 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26685
26686         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
26687
26688 2005-08-31  Jim Meyering  <jim@meyering.net>
26689
26690         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
26691         a pointer-to-const.
26692         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
26693         (register_state): Likewise.
26694         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
26695         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26696         (group_nodes_into_DFAstates): Likewise.
26697
26698 2005-08-31  Jim Meyering  <jim@meyering.net>
26699
26700         * check-module: Add a FIXME comment.
26701
26702 2005-08-31  Eric Blake  <ebb9@byu.net>
26703
26704         * modules/unistd-safer (Files): Add unistd--.h.
26705         * modules/stdio-safer (Files): Add stdio--.h.
26706
26707 2005-08-31  Derek Price  <derek@ximbiot.com>
26708
26709         * lib/getdelim.c (getdelim): Return EOF on EOF.
26710         Reported by Larry Jones <lawrence.jones@ugs.com>.
26711
26712 2005-08-31  Bruno Haible  <bruno@clisp.org>
26713
26714         Avoid unnecessary diffs in the generated lib/Makefile.am.
26715         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
26716         the generated files.
26717         (func_import): Don't set cmd.
26718
26719 2005-08-31  Bruno Haible  <bruno@clisp.org>
26720
26721         * lib/strstr.c: Include <stddef.h>, for NULL.
26722         * lib/strcasestr.c: Likewise.
26723         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26724
26725 2005-08-31  Bruno Haible  <bruno@clisp.org>
26726
26727         * gnulib-tool: New option --macro-prefix.
26728         (func_import): Use macro_prefix.
26729         (import): Handle option --macro-prefix.
26730
26731 2005-08-31  Bruno Haible  <bruno@clisp.org>
26732
26733         * gnulib-tool (import): Rename most ac_* variables to cached_*.
26734         Also use new variables cached_lgpl, cached_libtool.
26735
26736 2005-08-31  Bruno Haible  <bruno@clisp.org>
26737
26738         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
26739         always instantiating them.
26740
26741 2005-08-31  Bruno Haible  <bruno@clisp.org>
26742
26743         * gnulib-tool (func_import): Read the previous cached settings
26744         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
26745         earlier added by gnulib but are now dropped. Warn when a gnulib file
26746         overwrites a non-gnulib file.
26747
26748 2005-08-31  Bruno Haible  <bruno@clisp.org>
26749
26750         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
26751         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
26752         projects that don't keep autogenerated files in CVS. Put into
26753         actioncmd only the specified modules, not the transitive closure.
26754
26755 2005-08-31  Bruno Haible  <bruno@clisp.org>
26756
26757         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
26758         Create directories that shall be filled.
26759         (import): Don't look for gl_* macros in configure.ac. Recurse across
26760         all directories containing a gnulib-cache.m4 files, if meaningful.
26761
26762 2005-08-31  Bruno Haible  <bruno@clisp.org>
26763
26764         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
26765         (import): Set seen_libtool when we see gl_LIBTOOL.
26766
26767 2005-08-31  Bruno Haible  <bruno@clisp.org>
26768
26769         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
26770         declaration macro definitions from generated gnulib.m4.
26771
26772 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
26773
26774         * lib/iconvme.h: Add prototype for iconv_alloc.
26775
26776 2005-08-29  Simon Josefsson  <jas@extundo.com>
26777
26778         * lib/iconvme.c: Fix errno.
26779
26780 2005-08-29  Bruno Haible  <bruno@clisp.org>
26781
26782         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
26783         that it works when the directory contains spaces.
26784
26785 2005-08-29  Bruno Haible  <bruno@clisp.org>
26786
26787         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
26788
26789 2005-08-29  Bruno Haible  <bruno@clisp.org>
26790
26791         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
26792         Emit more advice.
26793
26794 2005-08-29  Bruno Haible  <bruno@clisp.org>
26795         and Stepan Kasal  <kasal@ucw.cz>
26796
26797         * check-module: If more parameters are given, check each of them
26798         separately; add more exceptions, as noted by Jim Meyering.
26799         (check_module): New procedure.
26800         (%exempt_header): Now contains all exceptions.
26801
26802 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
26803
26804         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
26805
26806 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
26807
26808         * lib/iconvme.c: Split iconv_string into iconv_alloc.
26809
26810 2005-08-28  Bruno Haible  <bruno@clisp.org>
26811
26812         * m4/gnulib-tool.m4: New file.
26813
26814 2005-08-27  Jim Meyering  <jim@meyering.net>
26815
26816         * modules/unistd-safer (Files): Add pipe-safer.c.
26817         * modules/fcntl-safer (Files): Add creat-safer.c.
26818
26819 2005-08-27  Jim Meyering  <jim@meyering.net>
26820
26821         * m4/stdlib-safer.m4: New file.  From coreutils.
26822         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
26823         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
26824         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
26825         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
26826         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
26827
26828 2005-08-27  Jim Meyering  <jim@meyering.net>
26829
26830         * lib/fopen-safer.c: Merge minor changes from coreutils.
26831         * lib/dup-safer.c: Likewise.
26832         * lib/fd-safer.c: Likewise.
26833
26834         Merge from coreutils.
26835         * lib/stdio--.h: New file.
26836         * lib/stdlib--.h: New file.
26837         * lib/mkstemp-safer.c: New file.
26838
26839         GNU tar needs these.
26840         * lib/pipe-safer.c: New file.
26841         * lib/creat-safer.c: New file.
26842         * lib/fcntl--.h (creat): Define to creat_safer.
26843         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
26844         * lib/unistd--.h (pipe): Define to pipe_safer.
26845         * lib/unistd-safer.h: Declare pipe_safer.
26846
26847 2005-08-26  Simon Josefsson  <jas@extundo.com>
26848
26849         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
26850         Haible <bruno@clisp.org>.
26851
26852 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
26853
26854         * lib/regex_internal.h: Remove all references to
26855         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
26856         or better.
26857         (bitset_not, bitset_merge, bitset_not_merge):
26858         (bitset_mask, re_string_allocate, re_string_construct):
26859         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
26860         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
26861         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
26862         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
26863         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26864         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26865         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
26866         (re_acquire_state_context):
26867         Remove unnecessary forward decls.
26868         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
26869         Put __attribute at function definition,
26870         now that the function decl has been removed.
26871         * lib/regex_internal.c (re_string_peek_byte_case):
26872         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
26873         Likewise.
26874
26875 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
26876
26877         * m4/regex.m4: Add AC_PREREQ(2.50).
26878         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
26879
26880 2005-08-25  Simon Josefsson  <jas@extundo.com>
26881
26882         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
26883         __fsetlocking.
26884
26885 2005-08-25  Simon Josefsson  <jas@extundo.com>
26886
26887         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
26888         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
26889         GLIBC specific code.
26890
26891 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26892
26893         Make regex safe for g++.  This fixes one real bug (an "err"
26894         that should have been "*err").  g++ problem reported by
26895         Sam Steingold.
26896         * lib/regex_internal.h (re_calloc): New macro, consistent with
26897         re_malloc etc.  All callers of calloc changed to use re_calloc.
26898         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
26899         not int.  All callers changed.
26900         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
26901         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
26902         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
26903         (find_recover_state): Change "err" to "*err"; this fixes what
26904         appears to be a real bug.
26905         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
26906         versus int.
26907
26908 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26909
26910         * modules/regex (Depends-on): Add malloc, since the code
26911         assumes that !malloc(0) means failure.
26912
26913 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26914
26915         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
26916
26917         alloca modernization/simplification for regex.
26918         * lib/regex.c: Remove portability cruft for alloca.  This no longer
26919         needs to be at the start of the file, and can be moved into
26920         regex_internal.h and simplified.
26921         * lib/regex_internal.h: Include <alloca.h>.
26922         (__libc_use_alloca) [!defined _LIBC]: New macro.
26923         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
26924         now works outside glibc.
26925
26926 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
26927
26928         * config/srclist.txt: Add glibc bugs 1241, 1245.
26929
26930 2005-08-25  Jim Meyering  <jim@meyering.net>
26931
26932         * lib/open-safer.c: Include <config.h>.
26933         Otherwise, we'd lose LARGEFILE support in any file using
26934         e.g. "fcntl--.h"
26935
26936 2005-08-25  Bruno Haible  <bruno@clisp.org>
26937
26938         * m4/minmax.m4: Require autoconf 2.52.
26939         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
26940         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
26941         alternatives of translit over the alphabet.
26942         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
26943
26944 2005-08-24  Simon Josefsson  <jas@extundo.com>
26945
26946         * tests/test-getpass.c: New file.
26947
26948 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26949
26950         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
26951         for GNU regex features.
26952
26953 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26954
26955         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
26956         * lib/regex.h (regerror): Likewise.
26957
26958         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
26959         requires this.  (The code never needed it.)
26960
26961         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
26962         All uses of recently-renamed identifiers changed to use the new,
26963         POSIX-compliant names.  The code will build and run just fine
26964         without these changes, but it's better to eat our own dog food
26965         and use the standard-conforming names.
26966
26967         * lib/regex.h: Fix a multitude of POSIX name space violations.
26968         These changes have an effect only for programs that define
26969         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
26970         do not change anything for programs compiled in the normal way.
26971         Also, there is no effect on the ABI.
26972
26973         (_REGEX_SOURCE): New macro.
26974         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
26975         defined and _GNU_SOURCE is not; this fixes a name space violation.
26976
26977         Rename the following macros to obey POSIX requirements.
26978         The old names are still visible as macros if _REGEX_SOURCE is defined.
26979         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
26980         RE_BACKSLASH_ESCAPE_IN_LISTS.
26981         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
26982         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
26983         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
26984         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
26985         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
26986         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
26987         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
26988         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
26989         (REG_INTERVALS): renamed from RE_INTERVALS.
26990         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
26991         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
26992         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
26993         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
26994         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
26995         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
26996         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
26997         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
26998         RE_UNMATCHED_RIGHT_PAREN_ORD.
26999         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
27000         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
27001         (REG_DEBUG): renamed from RE_DEBUG.
27002         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
27003         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
27004         unusual, since we can't clash with the POSIX REG_ICASE.
27005         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
27006         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
27007         (REG_NO_SUB): renamed from RE_NO_SUB.
27008         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
27009         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
27010         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
27011         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
27012         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
27013         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
27014         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
27015         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
27016         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
27017         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
27018         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
27019         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
27020         RE_SYNTAX_POSIX_MINIMAL_BASIC.
27021         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
27022         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
27023         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
27024         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
27025         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
27026         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
27027         (REG_FIXED): Renamed from REGS_FIXED.
27028         (REG_NREGS): Renamed from RE_NREGS.
27029
27030         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
27031         of other REG_* macros, since POSIX says the user is allowed to
27032         #undef these macros selectively.
27033
27034         (reg_errcode_t): Update comment stating what other tables need
27035         to be consistent.
27036
27037         Rename the following enum values to obey POSIX requirements.
27038         The old names are still visible as macros.
27039         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
27040         is not defined, since GNU is supposed to be a superset of POSIX as
27041         much as possible, and since we want reg_errcode_t to be a signed
27042         type for implementation consistency.
27043         (_REG_NOERROR): Renamed from REG_NOERROR.
27044         (_REG_NOMATCH): Renamed from REG_NOMATCH.
27045         (_REG_BADPAT): Renamed from REG_BADPAT.
27046         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
27047         (_REG_ECTYPE): Renamed from REG_ECTYPE.
27048         (_REG_EESCAPE): Renamed from REG_EESCAPE.
27049         (_REG_ESUBREG): Renamed from REG_ESUBREG.
27050         (_REG_EBRACK): Renamed from REG_EBRACK.
27051         (_REG_EPAREN): Renamed from REG_EPAREN.
27052         (_REG_EBRACE): Renamed from REG_EBRACE.
27053         (_REG_BADBR): Renamed from REG_BADBR.
27054         (_REG_ERANGE): Renamed from REG_ERANGE.
27055         (_REG_ESPACE): Renamed from REG_ESPACE.
27056         (_REG_BADRPT): Renamed from REG_BADRPT.
27057         (_REG_EEND): Renamed from REG_EEND.
27058         (_REG_ESIZE): Renamed from REG_ESIZE.
27059         (_REG_ERPAREN): Renamed from REG_ERPAREN.
27060         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
27061         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
27062         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
27063         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
27064
27065         (_REG_RE_NAME, _REG_RM_NAME): New macros.
27066         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
27067         changed.  But support the old name if the new one is not defined
27068         and if _REGEX_SOURCE.
27069
27070         Change the following member names in struct re_pattern_buffer.
27071         The old names are still supported if !_REGEX_SOURCE.
27072         The new names are always supported, regardless of _REGEX_SOURCE.
27073         (re_buffer): Renamed from buffer.
27074         (re_allocated): Renamed from allocated.
27075         (re_used): Renamed from used.
27076         (re_syntax): Renamed from syntax.
27077         (re_fastmap): Renamed from fastmap.
27078         (re_translate): Renamed from translate.
27079         (re_can_be_null): Renamed from can_be_null.
27080         (re_regs_allocated): Renamed from regs_allocated.
27081         (re_fastmap_accurate): Renamed from fastmap_accurate.
27082         (re_no_sub): Renamed from no_sub.
27083         (re_not_bol): Renamed from not_bol.
27084         (re_not_eol): Renamed from not_eol.
27085         (re_newline_anchor): Renamed from newline_anchor.
27086
27087         Change the following member names in struct re_registers.
27088         The old names are still supported if !_REGEX_SOURCE.
27089         The new names are always supported, regardless of _REGEX_SOURCE.
27090         (rm_num_regs): Renamed from num_regs.
27091         (rm_start): Renamed from start.
27092         (rm_end): Renamed from end.
27093
27094         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
27095         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
27096         Prepend __ to parameter names.
27097
27098         Undo yesterday's changes.
27099
27100 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27101
27102         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
27103         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
27104         lib/regex.c.
27105
27106 2005-08-24  Jim Meyering  <jim@meyering.net>
27107
27108         Sync from coreutils.
27109         * m4/fcntl-safer.m4: New file.
27110
27111         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
27112         and object files for this module.
27113
27114 2005-08-24  Jim Meyering  <jim@meyering.net>
27115
27116         Sync from coreutils.
27117         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
27118
27119 2005-08-24  Jim Meyering  <jim@meyering.net>
27120
27121         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
27122         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
27123
27124 2005-08-24  Jim Meyering  <jim@meyering.net>
27125
27126         * modules/fcntl-safer: New module.
27127         * modules/fts (Depends-on): Add fcntl-safer.
27128         * MODULES.html.sh (File descriptor based Input/Output):
27129         Add fcntl-safer.
27130
27131 2005-08-24  Bruno Haible  <bruno@clisp.org>
27132
27133         Support for unit test modules.
27134         * modules/README: Mention tests modules.
27135         * modules/TEMPLATE-TESTS: New file.
27136         * gnulib-tool: New options --extract-tests-module, --with-tests and
27137         --tests-base (unused for the moment).
27138         (testsbase, inctests): New variables.
27139         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
27140         (func_verify_module): Exclude TEMPLATE-TESTS.
27141         (func_verify_nontests_module, func_verify_tests_module): New functions.
27142         (func_get_dependencies): Add implicit dependency for tests modules.
27143         (func_get_tests_module): New function.
27144         (func_modules_transitive_closure): When --with-tests was specified,
27145         include the unit tests as well, unless explicitly avoided.
27146         (func_emit_lib_Makefile_am): Ignore the tests modules here.
27147         (func_emit_tests_Makefile_am): New function.
27148         (func_create_testdir): When --with-tests was specified, emit a
27149         tests/ directory.
27150         * MODULES.html.sh (Future developments): Update.
27151
27152 2005-08-24  Bruno Haible  <bruno@clisp.org>
27153
27154         * modules/tls-tests: New file.
27155         * tests/test-tls.c: New file, from GNU gettext.
27156
27157 2005-08-24  Bruno Haible  <bruno@clisp.org>
27158
27159         * modules/lock-tests: New file.
27160         * tests/test-lock.c: New file, from GNU gettext.
27161
27162 2005-08-24  Bruno Haible  <bruno@clisp.org>
27163
27164         * lib/lock.h: Add multiple inclusion guard.
27165         * lib/tls.h: Add multiple inclusion guard.
27166
27167 2005-08-24  Bruno Haible  <bruno@clisp.org>
27168
27169         * gnulib-tool: Add support for the --aux-dir option to
27170         --create-testdir, --create-megatestdir, --test, --megatest.
27171         (func_create_testdir, func_create_megatestdir): Optionally emit a
27172         AC_CONFIG_AUX_DIR directive.
27173         (create-testdir, create-megatestdir, test, megatest): Provide a
27174         default value for $auxdir.
27175
27176 2005-08-24  Bruno Haible  <bruno@clisp.org>
27177
27178         * gnulib-tool (import): Use compound statement instead of subshell
27179         where possible.
27180
27181 2005-08-24  Bruno Haible  <bruno@clisp.org>
27182
27183         * gnulib-tool (import): Change --aux-dir default to "build-aux".
27184
27185 2005-08-24  Bruno Haible  <bruno@clisp.org>
27186
27187         * gnulib-tool (func_version): Update.
27188
27189 2005-08-24  Bruno Haible  <bruno@clisp.org>
27190
27191         * gnulib-tool (func_import, func_create_testdir,
27192         func_create_megatestdir): Quote all autoconf macro arguments.
27193
27194 2005-08-24  Bruno Haible  <bruno@clisp.org>
27195
27196         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
27197         option --force, because --force causes the aclocal.m4 of each
27198         subdirectory to be newer than the corresponding config.h.in.
27199
27200 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27201
27202         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
27203         All contents moved to gl_REGEX.
27204         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
27205         assume that it does.
27206
27207 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27208
27209         * lib/regex.h (REG_NOSYS)
27210         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
27211         Define, since POSIX requires it as of 2001.
27212         (_REG_ENOSYS)
27213         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
27214         New private symbol, used to keep the enum signed in all cases.
27215         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
27216         Youngman in
27217         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
27218
27219         * lib/regex_internal.c (re_string_skip_chars, register_state):
27220         (calc_state_hash):
27221         Remove forward decls; no longer needed now that we use prototypes.
27222         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
27223         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
27224         (clean_state_log_if_needed): Likewise.
27225
27226 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27227
27228         * config/srclist.txt: Add glibc bugs 1231-1233.
27229
27230 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27231
27232         Fix problems reported by Sam Steingold in
27233         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
27234         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
27235         assumed that reg_errcode_t is a signed type, which is not
27236         necessarily true if _XOPEN_SOURCE is not defined.
27237         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
27238         since some compilers warn about it otherwise.
27239
27240 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27241
27242         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
27243         (init_word_char, create_initial_state, duplicate_node_closure):
27244         (fetch_token, peek_token_bracket, build_range_exp):
27245         (build_collating_symbol): Remove forward decls; no longer needed
27246         now that we use prototypes.
27247
27248         * lib/regcomp.c:
27249         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
27250         (re_compile_fastmap_iter, regcomp, regerror, regfree):
27251         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
27252         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
27253         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
27254         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
27255         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
27256         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
27257         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
27258         (build_range_exp, build_collating_symbol, parse_bracket_exp):
27259         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
27260         (build_charclass, build_charclass_op, fetch_number, create_tree):
27261         (create_token_tree, mark_opt_subexp, duplicate_tree):
27262         Use prototypes rather than old-style definitions.
27263
27264         * lib/regex_internal.c:
27265         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
27266         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
27267         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
27268         (re_string_reconstruct, re_string_peek_byte_case):
27269         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
27270         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
27271         (re_node_set_init_copy, re_node_set_add_intersect):
27272         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
27273         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
27274         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
27275         (re_acquire_state, re_acquire_state_context, register_state):
27276         (create_ci_newstate, create_cd_newstate, free_state):
27277         Likewise.
27278         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
27279         re_search_2):
27280         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
27281         (re_search_internal, prune_impossible_nodes):
27282         (acquire_init_state_context, check_matching, static):
27283         (check_halt_node_context, check_halt_state_context, proceed_next_node):
27284         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
27285         (update_regs, sift_states_backward, build_sifted_states):
27286         (clean_state_log_if_needed, merge_state_array):
27287         (update_cur_sifted_state, add_epsilon_src_nodes):
27288         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
27289         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
27290         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
27291         (find_recover_state, check_subexp_matching_top, transit_state_mb):
27292         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
27293         (check_arrival, check_arrival_add_next_nodes):
27294         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
27295         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
27296         (check_node_accept_bytes, check_node_accept, extend_buffers):
27297         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
27298         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
27299         (sift_ctx_init):
27300         Likewise.
27301
27302         * lib/regex_internal.h:
27303         (re_string_allocate, re_string_construct, re_string_reconstruct):
27304         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
27305         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
27306         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
27307         (re_string_context_at, re_string_peek_byte_case):
27308         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
27309         is defined, since we now use prototypes always.
27310
27311         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
27312         C89 or better.  All uses removed.
27313
27314 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27315
27316         * config/srclist.txt: Add glibc bugs 1220-1227.
27317
27318 2005-08-20  Jim Meyering  <jim@meyering.net>
27319
27320         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
27321         of unused local, dfa.
27322
27323 2005-08-20  Bruno Haible  <bruno@clisp.org>
27324
27325         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
27326
27327 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27328
27329         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
27330         (re_node_set_insert_last, re_dfa_add_node):
27331         Rename local variables to avoid GCC shadowing warnings.
27332
27333 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27334
27335         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
27336         [defined lint]: Suppress bogus uninitialized-variable warnings.
27337
27338         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
27339         and let the caller return REG_ESPACE if out of space.  This
27340         removes an uninitialied-variable warning with GCC 4.0.1, and also
27341         avoids taking the address of a local variable.  All callers
27342         changed.
27343
27344 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27345
27346         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
27347         $LIBCSRC/posix/regexec.c.
27348         Add glibc bug 1217 for regcomp.c.
27349
27350 2005-08-19  Jim Meyering  <jim@meyering.net>
27351
27352         * lib/regexec.c (proceed_next_node): Redo local variables to
27353         avoid GCC shadowing warnings.
27354
27355 2005-08-18  Bruno Haible  <bruno@clisp.org>
27356
27357         * lib/strstr.c (strstr): Fix return value in multibyte case.
27358         * lib/strcasestr.c (strcasestr): Likewise.
27359
27360 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27361
27362         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
27363
27364 2005-08-17  Jim Meyering  <jim@meyering.net>
27365
27366         Make the %s format (seconds since the epoch) work for a negative
27367         number and when used with a zero-padded field width, e.g. %015s.
27368
27369         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
27370         label so that it precedes the code to set `digits'.  Otherwise,
27371         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
27372         print `00-22'.  Now, it prints `-0022', as it should.
27373
27374 2005-08-17  Bruno Haible  <bruno@clisp.org>
27375
27376         * modules/strstr (Files): Add m4/mbrtowc.m4.
27377         (Depends-on): Add mbuiter.
27378
27379 2005-08-17  Bruno Haible  <bruno@clisp.org>
27380
27381         * modules/strcasestr: New file.
27382         * MODULES.html.sh (String handling, based on ANSI C 89): Add
27383         strcasestr.
27384
27385 2005-08-17  Bruno Haible  <bruno@clisp.org>
27386
27387         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
27388
27389 2005-08-17  Bruno Haible  <bruno@clisp.org>
27390
27391         * modules/mbuiter: New file.
27392         * MODULES.html.sh (Extended multibyte and wide character utilities):
27393         Add mbuiter.
27394
27395 2005-08-17  Bruno Haible  <bruno@clisp.org>
27396
27397         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
27398         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
27399
27400 2005-08-17  Bruno Haible  <bruno@clisp.org>
27401
27402         * m4/strcasestr.m4: New file.
27403
27404 2005-08-17  Bruno Haible  <bruno@clisp.org>
27405
27406         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
27407         * lib/strstr.c: Completely rewritten, with multibyte locale support.
27408
27409 2005-08-17  Bruno Haible  <bruno@clisp.org>
27410
27411         * lib/strcasestr.h: New file.
27412         * lib/strcasestr.c: New file.
27413
27414 2005-08-17  Bruno Haible  <bruno@clisp.org>
27415
27416         * lib/strcasecmp.c: Use mbuiter.h.
27417
27418 2005-08-17  Bruno Haible  <bruno@clisp.org>
27419
27420         * lib/mbuiter.h: New file.
27421
27422 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
27423
27424         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
27425         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
27426         and gl_GETOPT are both invoked via different paths (as happens
27427         with GNU tar CVS because it uses both argp and getopt), the former
27428         wins.
27429
27430 2005-08-16  Bruno Haible  <bruno@clisp.org>
27431
27432         * modules/tls: New file.
27433         * MODULES.html.sh (Multithreading): Add tls.
27434
27435 2005-08-16  Bruno Haible  <bruno@clisp.org>
27436
27437         * modules/strnlen1: New file.
27438         * MODULES.html.sh (String handling): Add strnlen1.
27439
27440 2005-08-16  Bruno Haible  <bruno@clisp.org>
27441
27442         * modules/strcase (Files): Add m4/mbrtowc.m4.
27443         (Depends-on): Add strnlen1, mbchar.
27444
27445 2005-08-16  Bruno Haible  <bruno@clisp.org>
27446
27447         * modules/mbiter: New file.
27448         * MODULES.html.sh (Extended multibyte and wide character utilities):
27449         Add mbiter.
27450
27451 2005-08-16  Bruno Haible  <bruno@clisp.org>
27452
27453         * modules/mbfile: New file.
27454         * MODULES.html.sh (Extended multibyte and wide character utilities):
27455         Add mbfile.
27456
27457 2005-08-16  Bruno Haible  <bruno@clisp.org>
27458
27459         * modules/mbchar: New file.
27460         * MODULES.html.sh (Extended multibyte and wide character utilities):
27461         New section.
27462
27463 2005-08-16  Bruno Haible  <bruno@clisp.org>
27464
27465         * m4/tls.m4: New file, from GNU gettext.
27466
27467 2005-08-16  Bruno Haible  <bruno@clisp.org>
27468
27469         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
27470         always.
27471         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
27472
27473 2005-08-16  Bruno Haible  <bruno@clisp.org>
27474
27475         * m4/mbiter.m4: New file.
27476
27477 2005-08-16  Bruno Haible  <bruno@clisp.org>
27478
27479         * m4/mbfile.m4: New file.
27480
27481 2005-08-16  Bruno Haible  <bruno@clisp.org>
27482
27483         * m4/mbchar.m4: New file.
27484
27485 2005-08-16  Bruno Haible  <bruno@clisp.org>
27486
27487         * lib/tls.h: New file, from GNU gettext.
27488         * lib/tls.c: New file, from GNU gettext.
27489
27490 2005-08-16  Bruno Haible  <bruno@clisp.org>
27491
27492         * lib/strnlen1.h: New file.
27493         * lib/strnlen1.c: New file.
27494
27495 2005-08-16  Bruno Haible  <bruno@clisp.org>
27496
27497         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
27498         (mbi_init): Update.
27499         (mbi_avail, mbi_advance): Let the iteration end before the terminating
27500         NUL byte, not after it.
27501
27502 2005-08-16  Bruno Haible  <bruno@clisp.org>
27503
27504         * lib/strcase.h (strcasecmp): Add note in comments.
27505         * lib/strncasecmp.c: Use code from strcasecmp.c.
27506         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
27507         (strcasecmp): Work correctly in multibyte locales.
27508
27509 2005-08-16  Bruno Haible  <bruno@clisp.org>
27510
27511         * lib/mbiter.h: New file.
27512
27513 2005-08-16  Bruno Haible  <bruno@clisp.org>
27514
27515         * lib/mbfile.h: New file.
27516
27517 2005-08-16  Bruno Haible  <bruno@clisp.org>
27518
27519         * lib/mbchar.h: New file.
27520         * lib/mbchar.c: New file.
27521
27522 2005-08-16  Bruno Haible  <bruno@clisp.org>
27523
27524         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
27525         the valid ones. Makes the comparison operations transitive:
27526         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
27527         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
27528
27529 2005-08-15  Simon Josefsson  <jas@extundo.com>
27530
27531         * modules/ssize_t (License): Change to 'unlimited'.
27532
27533         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
27534
27535 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
27536
27537         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
27538         Add comments for each pending glibc patch.
27539
27540 2005-08-15  Bruno Haible  <bruno@clisp.org>
27541
27542         * lib/regex.h (__restrict_arr): Don't define to __restrict if
27543         __cplusplus is defined.
27544
27545 2005-08-14  Jim Meyering  <jim@meyering.net>
27546
27547         Sync from coreutils.
27548
27549         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
27550         Use the hash-table-based cycle-detection code not just when
27551         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
27552         Reported by James Youngman in
27553         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
27554         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
27555         FTS_TIGHT_CYCLE_CHECK.
27556         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
27557         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
27558         once again.
27559         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
27560         * lib/fts.c (fd_safer): Remove decl.
27561         Include fcntl--.h rather than unistd-safer.h
27562         (fts_safe_changedir): Don't call fd_safer; no longer needed
27563         now that we include fcntl--.h.
27564
27565 2005-08-12  Simon Josefsson  <jas@extundo.com>
27566
27567         * modules/getndelim2: Use ssize_t module.
27568         * modules/getnline: Likewise.
27569         * modules/safe-read: Likewise.
27570         * modules/xreadlink: Likewise.
27571
27572         * modules/ssize_t: New file.
27573
27574 2005-08-12  Simon Josefsson  <jas@extundo.com>
27575
27576         * m4/readline.m4: Look for termcap, curses or ncurses if required.
27577
27578 2005-08-12  Simon Josefsson  <jas@extundo.com>
27579
27580         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27581         ssize_t.
27582
27583 2005-08-12  Simon Josefsson  <jas@extundo.com>
27584
27585         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
27586         readline, getdelim and check_version.
27587         (Support for systems lacking ISO C 99: Sizes of integer types):
27588         Add size_max.
27589
27590 2005-08-12  Bruno Haible  <bruno@clisp.org>
27591
27592         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
27593
27594 2005-08-11  Simon Josefsson  <jas@extundo.com>
27595
27596         * modules/readline: New file.
27597
27598         * modules/strnlen (Files): Add strnlen.h.
27599
27600 2005-08-11  Simon Josefsson  <jas@extundo.com>
27601
27602         * m4/readline.m4: New file.
27603
27604 2005-08-11  Simon Josefsson  <jas@extundo.com>
27605
27606         * lib/readline.h, readline.c: New file.
27607
27608 2005-08-11  Simon Josefsson  <jas@extundo.com>
27609
27610         * doc/gnulib.texi (Initial import, Finishing touches): Mention
27611         gl_AVOID.
27612
27613 2005-08-11  Bruno Haible  <bruno@clisp.org>
27614
27615         * lib/strnlen.h (strnlen): Change parameter name to match comment.
27616
27617 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
27618
27619         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
27620
27621 2005-08-10  Simon Josefsson  <jas@extundo.com>
27622
27623         * tests/test-iconvme.c: New file.
27624
27625 2005-08-10  Simon Josefsson  <jas@extundo.com>
27626
27627         * m4/strnlen.m4: New file.
27628
27629         * m4/strndup.m4: Don't check for strnlen declaration, done in
27630         strnlen.m4.
27631
27632 2005-08-10  Simon Josefsson  <jas@extundo.com>
27633
27634         * lib/strndup.c: Use strnlen.h.
27635
27636         * lib/strnlen.h: New file.
27637
27638 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
27639
27640         * README: Typos.
27641
27642 2005-08-02  Simon Josefsson  <jas@extundo.com>
27643
27644         * modules/readline: New file.
27645
27646 2005-08-02  Simon Josefsson  <jas@extundo.com>
27647
27648         * modules/getdelim: New file.
27649
27650         * modules/getline: Rewrite, don't use getndelim2.
27651
27652 2005-08-02  Simon Josefsson  <jas@extundo.com>
27653
27654         * m4/getline.m4: Separate out getdelim stuff into separate module.
27655
27656         * m4/getdelim.m4: New file.
27657
27658 2005-08-02  Simon Josefsson  <jas@extundo.com>
27659
27660         * lib/getline.h, getline.c: Rewrite.
27661
27662         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
27663
27664 2005-07-31  Bruno Haible  <bruno@clisp.org>
27665
27666         * lib/lock.h (gl_lock_initializer): New macro.
27667         (gl_lock_define_initialized): Use it.
27668         (gl_rwlock_initializer): New macro.
27669         (gl_rwlock_define_initialized): Use it.
27670         (gl_recursive_lock_initializer): New macro.
27671         (gl_recursive_lock_define_initialized): Use it.
27672
27673 2005-07-30  Karl Berry  <karl@gnu.org>
27674
27675         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
27676         Report from Ben Pfaff, regarding getopt.
27677
27678 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
27679
27680         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
27681         normal way.
27682         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
27683         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
27684         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
27685         (gl_GETOPT): Use the new macros.  Most of the implementation
27686         is moved to the new macros.  This is for programs like Emacs
27687         that don't want all the functionality of gl_GETOPT.
27688
27689 2005-07-26  Bruno Haible  <bruno@clisp.org>
27690
27691         * m4/lock.m4: Update from GNU gettext.
27692
27693 2005-07-26  Bruno Haible  <bruno@clisp.org>
27694
27695         * lib/lock.h: Update from GNU gettext.
27696         * lib/lock.c: Update from GNU gettext.
27697
27698 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
27699
27700         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
27701         obsolescent AC_TRY_RUN.  Include the default includes files, for
27702         'exit'.
27703
27704 2005-07-24  Bruno Haible  <bruno@clisp.org>
27705
27706         * modules/visibility: New file.
27707         * MODULES.html.sh (Misc): Add visibility.
27708
27709 2005-07-24  Bruno Haible  <bruno@clisp.org>
27710
27711         * m4/visibility.m4: New file.
27712
27713 2005-07-24  Bruno Haible  <bruno@clisp.org>
27714
27715         * doc/visibility.texi: New file.
27716
27717 2005-07-22  Bruno Haible  <bruno@clisp.org>
27718
27719         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
27720         $(ALLOCA_H), redundant through BUILT_SOURCES.
27721         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
27722         redundant through BUILT_SOURCES.
27723         * modules/byteswap (Makefile.am): Remove explicit dependency on
27724         $(BYTESWAP_H), redundant through BUILT_SOURCES.
27725         * modules/fnmatch (Makefile.am): Remove explicit dependency on
27726         $(FNMATCH_H), redundant through BUILT_SOURCES.
27727         * modules/getopt (Makefile.am): Remove explicit dependency on
27728         $(GETOPT_H), redundant through BUILT_SOURCES.
27729         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
27730         redundant through BUILT_SOURCES.
27731         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
27732         redundant through BUILT_SOURCES.
27733         * modules/stdbool (Makefile.am): Remove explicit dependency on
27734         $(STDBOOL_H), redundant through BUILT_SOURCES.
27735         * modules/stdint (Makefile.am): Remove explicit dependency on
27736         $(STDINT_H), redundant through BUILT_SOURCES.
27737         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
27738         Remove explicit dependency on $(SYSEXITS_H).
27739         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
27740
27741 2005-07-18  Simon Josefsson  <jas@extundo.com>
27742
27743         * lib/check-version.c (check_version): Accept identical versions too.
27744
27745 2005-07-18  Bruno Haible  <bruno@clisp.org>
27746
27747         * modules/lock: New file.
27748         * MODULES.html.sh (Multithreading): New section.
27749
27750 2005-07-18  Bruno Haible  <bruno@clisp.org>
27751
27752         * m4/lock.m4: New file, from GNU gettext.
27753
27754 2005-07-18  Bruno Haible  <bruno@clisp.org>
27755
27756         * lib/lock.h: New file, from GNU gettext.
27757         * lib/lock.c: New file, from GNU gettext.
27758
27759 2005-07-18  Bruno Haible  <bruno@clisp.org>
27760
27761         * lib/lock.h (gl_once_t): New type.
27762         (gl_once_define, gl_once): New macros.
27763         * lib/lock.c (fresh_once): New variable.
27764         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
27765         functions.
27766
27767 2005-07-16  Simon Josefsson  <jas@extundo.com>
27768
27769         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
27770         workaround, suggested by Bruno.
27771
27772 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27773
27774         * modules/xalloc (Depends-on): Add xalloc-die.
27775         * modules/xvasprintf (Depends-on): Add xalloc-die.
27776
27777 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27778
27779         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
27780         with a minor change.
27781
27782 2005-07-15  Bruno Haible  <bruno@clisp.org>
27783
27784         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
27785         When using lib/poll.c, define poll as rpl_poll.
27786
27787 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
27788
27789         * modules/argp (Depends-on): Remove unlocked-io.
27790
27791 2005-07-14  Derek Price  <derek@ximbiot.com>
27792
27793         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
27794         for glob symlink bug.
27795
27796 2005-07-14  Bruno Haible  <bruno@clisp.org>
27797
27798         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
27799         Instead, test for *_unlocked function declarations directly.
27800
27801 2005-07-11  Simon Josefsson  <jas@extundo.com>
27802
27803         * modules/size_max: New file.
27804
27805         * modules/xsize: Depend on size_max module for size_max.m4.
27806
27807 2005-07-11  Simon Josefsson  <jas@extundo.com>
27808
27809         * lib/size_max.h: New file.
27810
27811 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
27812
27813         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
27814         copyright symbol and the year.
27815         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
27816         (version_etc_va): Use parameterized copyright notice.
27817         Reword to conform to the current GNU coding standards.
27818
27819 2005-07-11  Karl Berry  <karl@gnu.org>
27820
27821         * doc/gnulib.texi (Quoting): new node.
27822         (Initial import): more info, from Patrice.
27823
27824 2005-07-11  Bruno Haible  <bruno@clisp.org>
27825
27826         * gnulib-tool (func_usage): Document option --avoid.
27827         (Command line options): Handle --avoid.
27828         (func_acceptable): New function.
27829         (func_modules_transitive_closure): Use it.
27830
27831 2005-07-11  Bruno Haible  <bruno@clisp.org>
27832
27833         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
27834         Reported by Jim Meyering.
27835
27836 2005-07-10  Bruno Haible  <bruno@clisp.org>
27837
27838         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
27839         Needed when size_t is smaller than 'unsigned int'.
27840         Reported by Paul Eggert.
27841
27842 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27843
27844         * modules/argp (Depends-on): Add unlocked-io
27845
27846 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27847
27848         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
27849         block of defines.
27850
27851 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27852
27853         * config/srclist.txt: Comment out regcomp.c, since we have a porting
27854         fix now.
27855
27856 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
27857         and Paul Eggert  <eggert@cs.ucla.edu>
27858
27859         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
27860         in wint_t, not wchar_t.  Remove now-unnecessary cast.
27861
27862 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27863
27864         * modules/regex (Files): Add lib/regex_internal.c,
27865         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
27866         (Depends-on): Add extensions.
27867         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
27868
27869 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27870
27871         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
27872         pathconf.
27873         * m4/same.m4 (gl_SAME): Likewise.
27874         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
27875
27876         * m4/regex.m4: Adjust to new libc regex implementation.
27877         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
27878         all the .c and .h parts of (the new) regex.
27879         Quote the m4 stuff better.
27880         Check for RE_ICASE bug of old gnulib.
27881         Check for REG_STARTEND of recent libc.
27882         Rename local variables from jm_* to gl_*.
27883         Quote operand of "test -f".
27884         Say "recent enough" version of libc, not "version 2".
27885         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
27886         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
27887         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
27888         Remove check for btowc, isascii.
27889         Require AM_LANGINFO_CODESET.
27890
27891 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27892
27893         * lib/regex.c, regex.h: Sync from libc.
27894         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
27895         * lib/regexec.c:
27896         New files, synced from libc, except that regex_internal.h
27897         currently has a small porting fix.
27898
27899 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27900
27901         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
27902         regex_internal.c, regexec.c.
27903         Add regex_internal.h too, but as a comment, since the libc version
27904         is currently broken in gnulib mode.
27905
27906 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
27907
27908         Support programs like Emacs that use gnulib but not gettext.
27909         * MODULES.html.sh (Internationalization functions): Add gettext-h.
27910         * modules/gettext-h: New file.
27911         * modules/gettext (Files): Remove lib/gettext.h.
27912         (Depends-on): Add gettext-h.
27913         (Makefile.am): Remove lib_SOURCES.
27914         * modules/argmatch, modules/c-stack, modules/closeout:
27915         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
27916         * modules/execute, modules/file-type, modules/getaddrinfo:
27917         * modules/getopt, modules/human, modules/javacomp:
27918         * modules/javaexec, modules/mkdir-p, modules/obstack:
27919         * modules/openat, modules/pagealign_alloc, modules/pipe:
27920         * modules/quotearg, modules/regex, modules/rpmatch:
27921         * modules/unicodeio, modules/userspec, modules/version-etc:
27922         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
27923         * modules/xsetenv:
27924         Depend on gettext-h, not gettext.
27925
27926 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
27927
27928         * gnulib-tool (func_import): Add support for 'public domain' license.
27929         * modules/alloca, modules/atexit, modules/memmove:
27930         Now public domain, not GPL.
27931         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
27932         * modules/realloc, modules/strerror, modules/strtod:
27933         Now LGPL, not GPL.
27934
27935 2005-07-05  Bruno Haible  <bruno@clisp.org>
27936
27937         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
27938         autoconf CVS. Needed for mingw.
27939
27940 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27941
27942         Remove the dependency of the strftime module on the tzset module.
27943         * modules/strftime (Depends-on): Remove dependency on tzset.
27944
27945 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27946
27947         Remove the dependency of the strftime module on the tzset module.
27948         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
27949         gl_FUNC_TZSET_CLOBBER.
27950
27951 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27952
27953         Remove the dependency of the strftime module on the tzset module.
27954         * lib/strftime.c (my_strftime)
27955         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
27956         Copy the input structure, to work around some of the bug with
27957         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
27958         Solaris releases, you should also use the tzset module, but we won't
27959         require it as a dependency any more since we don't want LGPLed code
27960         to depend on GPLed code.
27961
27962 2005-07-02  Jim Meyering  <jim@meyering.net>
27963
27964         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
27965         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
27966         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
27967         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
27968
27969 2005-07-02  Jim Meyering  <jim@meyering.net>
27970
27971         * lib/backupfile.c (backup_args): Change a `0' to NULL.
27972
27973 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
27974
27975         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
27976         declares only 'struct timespec;' (!).
27977
27978 2005-07-01  Jim Meyering  <jim@meyering.net>
27979
27980         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
27981         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
27982         * lib/save-cwd.c, tempname.c:
27983         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
27984         and don't include <sys/file.h>).
27985
27986 2005-06-29  Jim Meyering  <jim@meyering.net>
27987
27988         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
27989         type name.  Use the variable name instead.
27990         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
27991         Likewise.
27992
27993 2005-06-28  Simon Josefsson  <jas@extundo.com>
27994
27995         * modules/check-version (Files): Add check-version.m4.
27996
27997 2005-06-28  Simon Josefsson  <jas@extundo.com>
27998
27999         * m4/check-version.m4: New file, suggested by Jim Meyering
28000         <jim@meyering.net>.
28001
28002 2005-06-28  Simon Josefsson  <jas@extundo.com>
28003
28004         * lib/check-version.h, lib/check-version.c: New files.
28005
28006 2005-06-28  Simon Josefsson  <jas@extundo.com>
28007
28008         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
28009         collision with global variable.  Better indentation.  Don't
28010         increment buffer pointer beyond buffer end.  Based on comments
28011         from Paul Eggert <eggert@cs.ucla.edu>.
28012
28013         * lib/base64.h: Indent.
28014
28015 2005-06-28  Simon Josefsson  <jas@extundo.com>
28016
28017         * doc/gnulib.texi (Library version handling): New section.
28018
28019 2005-06-28  Jim Meyering  <jim@meyering.net>
28020
28021         * check-module (find_included_lib_files): Hard-code another
28022         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
28023         but modules/fts-lgpl (correctly) does not list those files.
28024
28025         * modules/canonicalize (Files): Add lib/pathmax.h.
28026
28027 2005-06-25  Simon Josefsson  <jas@extundo.com>
28028
28029         * modules/check-version: New file.
28030
28031 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
28032
28033         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
28034         initializer of struct addrinfo, as an indication that we don't
28035         care how many members the structure has.
28036
28037 2005-06-24  Derek Price  <derek@ximbiot.com>
28038         and Bruno Haible  <bruno@clisp.org>
28039
28040         Remove stat module & update lstat.
28041         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
28042         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28043         * m4/stat.m4: Remove this file.
28044
28045 2005-06-24  Derek Price  <derek@ximbiot.com>
28046         and Bruno Haible  <bruno@clisp.org>
28047
28048         Remove stat module & update lstat.
28049         * lib/stat.c: Remove this file...
28050         (slash_aware_lstat): ...moving this content and its support...
28051         * lib/lstat.c (rpl_lstat): ...into here.
28052         * lib/lstat.h: New file.
28053
28054 2005-06-24  Derek Price  <derek@ximbiot.com>
28055         and Bruno Haible  <bruno@clisp.org>
28056
28057         Remove stat module & update lstat.
28058         * config/srclist.txt (libc sources): Remove stat.
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         * MODULES.html.sh (stat): Remove.
28065         * MODULES.html: Regenerated.
28066         * modules/lstat (Description): Correct function name.
28067         (Files): Add "lstat.h".
28068         (Depends-on): Remove stat, add xalloc, stat-macros.
28069         * modules/stat: Remove this file.
28070         (Include): Add "lstat.h", remove <sys/stat.h>.
28071
28072 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
28073
28074         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
28075         (ranged_convert): Don't save conversion in a temporary struct.
28076         This causes a warning with GCC 4.0.0, and anyway in the typical
28077         case it's not worth the extra 100 bytes or so of code.
28078         (ranged_convert, __mktime_internal): When calling a function via a
28079         pointer P, use P () rather than (*P) (), as we now assume C89 or
28080         better.
28081
28082 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28083
28084         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
28085         "who -r" failed to give output.  Problem reported by Tim Waugh.
28086
28087         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
28088         (xcalloc): Use it to avoid needless tests.
28089         Problem reported by Jim Meyering.
28090
28091 2005-06-20  Derek Price  <derek@ximbiot.com>
28092
28093         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
28094         unnecessary for Autoconfs > 2.59c.
28095
28096 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28097
28098         * lib/argp.h (__option_is_short): Check upper limit of
28099         __key. Isprint() requires its argument to have the value
28100         of an unsigned char or EOF.
28101
28102 2005-06-16  Jim Meyering  <jim@meyering.net>
28103
28104         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
28105         when either N or S is zero.
28106
28107 2005-06-16  Derek Price  <derek@ximbiot.com>
28108
28109         * m4/bison.m4: Declare YACC & YFLAGS precious.
28110
28111 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
28112
28113         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
28114         multibyte string or pattern, fall back on unibyte matching.
28115         Problem reported by James Youngman.
28116
28117 2005-06-08  Bruno Haible  <bruno@clisp.org>
28118
28119         * modules/csharpcomp: New file.
28120         * MODULES.html.sh (C#): Add csharpcomp.
28121
28122 2005-06-08  Bruno Haible  <bruno@clisp.org>
28123
28124         * m4/csharpcomp.m4: New file, from GNU gettext.
28125
28126 2005-06-08  Bruno Haible  <bruno@clisp.org>
28127
28128         * lib/csharpcomp.h: New file, from GNU gettext.
28129         * lib/csharpcomp.c: New file, from GNU gettext.
28130         * lib/csharpcomp.sh.in: New file, from GNU gettext.
28131
28132 2005-06-08  Bruno Haible  <bruno@clisp.org>
28133
28134         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
28135         warning on mingw.
28136
28137 2005-06-07  Derek Price  <derek@ximbiot.com>
28138
28139         Sync from CVS.
28140         * lib/glob_.h: Indent nested #ifdef.
28141
28142 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
28143
28144         Sync from coreutils.
28145         Use "file name" when talking about file names, instead of "filename"
28146         or "path", as per the GNU coding standards.
28147         * lib/mkdir-p.c: Renamed from makepath.c.
28148         (make_dir_parents): Renamed from make_path.  All callers changed.
28149         * lib/mkdir-p.h: Likewise.  All includers changed.
28150         * lib/filenamecat.c: Renamed from path-concat.c.
28151         (file_name_concat): Renamed from path_concat.  All callers changed.
28152         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
28153         * lib/filenamecat.h: Likewise.  All includers changed.
28154         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
28155         in comments or local variable names.
28156         * lib/basename.c: Likewise.
28157         * lib/canonicalize.c, canonicalize.h: Likewise.
28158         * lib/dirname.c, dirname.h: Likewise.
28159         * lib/euidaccess.c: Likewise.
28160         * lib/exclude.c: Likewise
28161         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
28162         * lib/fsusage.c, fsuage.h: Likewise.
28163         * lib/fts.c, fts_.h: Likewise.
28164         * lib/getcwd.c: Likewise.
28165         * lib/getloadavg.c: Likewise.
28166         * lib/mkstemp.c: Likewise.
28167         * lib/mountlist.c, mountlist.h: Likewise.
28168         * lib/openat.c, openat.h: Likewise.
28169         * lib/readlink-stub.c: Likewise.
28170         * lib/readutmp.c, readutmp.h: Likewise.
28171         * lib/rename.c: Likewise.
28172         * lib/rmdir.c: Likewise.
28173         * lib/same.c: Likewise.
28174         * lib/savedir.c: Likewise.
28175         * lib/stripslash.c: Likewise.
28176         * lib/tempname.c: Likewise.
28177         * lib/xreadlink.c: Likewise.
28178         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
28179         All uses changed.
28180         * lib/exclude.h: Likewise.
28181
28182         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
28183         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
28184         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
28185         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
28186         * lib/pathmax.h: Include <limits.h> unconditionally, since other
28187         files have been getting away with it for years (MORE/BSD 4.3
28188         is extinct now).
28189         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
28190         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
28191
28192         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
28193         Define to 256, not 255, as per modern POSIX.
28194
28195 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
28196
28197         Sync from coreutils.
28198         Use "file name" when talking about file names, instead of "filename"
28199         or "path", as per the GNU coding standards.
28200         * MODULES.html.sh: mkdir-p renamed from makepath.
28201         filenamecat renamed from path-concat.
28202         * modules/filenamecat: Renamed from modules/path-concat.
28203         (Files): filenamecat.h and filenamecat.c renamed from
28204         path-concat.h and path-concat.c.
28205         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
28206         (Include): filenamecat.h, not path-concat.h.
28207         * modules/mkdir-p: Renamed from modules/makepath.
28208         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
28209         makepath.c.
28210         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
28211         (Include): mkdir-p.h, not makepath.h.
28212
28213 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
28214
28215         Sync from coreutils.
28216         * m4/mkdir-p.m4: Renamed from makepath.m4.
28217         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
28218         Rename files from makepath.c to mkdir-p.c, and from
28219         makepath.h to mkdir-p.h.
28220         * m4/filenamecat.m4: Renamed from path-concat.m4.
28221         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
28222         Rename files from path-concat.c to filenamecat.c,
28223         and from path-concat.h to filenamecat.h.
28224         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
28225         "file name" in local variables or comments.
28226         * m4/rename.m4: Likewise.
28227
28228 2005-06-01  Bruno Haible  <bruno@clisp.org>
28229
28230         * modules/csharpexec: New file.
28231         * MODULES.html.sh (C#): New section.
28232
28233 2005-06-01  Bruno Haible  <bruno@clisp.org>
28234
28235         * m4/csharp.m4: New file, from GNU gettext.
28236         * m4/csharpexec.m4: New file, from GNU gettext.
28237
28238 2005-06-01  Bruno Haible  <bruno@clisp.org>
28239
28240         * lib/csharpexec.h: New file, from GNU gettext.
28241         * lib/csharpexec.c: New file, from GNU gettext.
28242         * lib/csharpexec.sh.in: New file, from GNU gettext.
28243
28244 2005-05-31  Derek Price  <derek@ximbiot.com>
28245             Paul Eggert  <eggert@cs.ucla.edu>
28246
28247         Sync from cvs.
28248         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
28249
28250 2005-05-31  Derek Price  <derek@ximbiot.com>
28251             Paul Eggert  <eggert@cs.ucla.edu>
28252
28253         Sync from cvs.
28254         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
28255
28256 2005-05-29  Derek Price  <derek@ximbiot.com>
28257
28258         * config/srclist.txt (glob_.h, glob.c): Add these files.
28259
28260 2005-05-29  Derek Price  <derek@ximbiot.com>
28261
28262         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
28263         * modules/glob: New file.
28264         * modules/getlogin_r: Add link to POSIX spec in description.
28265
28266 2005-05-29  Derek Price  <derek@ximbiot.com>
28267             Paul Eggert  <eggert@cs.ucla.edu>
28268
28269         * m4/glob.m4: New file.
28270
28271 2005-05-29  Derek Price  <derek@ximbiot.com>
28272             Paul Eggert  <eggert@cs.ucla.edu>
28273
28274         * lib/glob_.h, lib/glob.c: New files.
28275
28276 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
28277
28278         * modules/fts (Files): Remove m4/inttypes-pri.m4.
28279         * modules/fts-lgpl (Depends-on): Remove gettext.
28280
28281 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
28282
28283         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
28284         and don't require gt_INTTYPES_PRI.
28285
28286 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
28287
28288         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
28289
28290         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
28291         the configuration hassle isn't worth it.
28292         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
28293         (LONGEST_MODIFIER, PRIuMAX): Remove.
28294
28295 2005-05-27  Bruno Haible  <bruno@clisp.org>
28296
28297         * lib/getlogin_r.h: Remove second include of <stddef.h>.
28298
28299 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
28300
28301         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
28302         _POSIX_PTHREAD_SEMANTICS for Solaris.
28303
28304 2005-05-25  Derek Price  <derek@ximbiot.com>
28305
28306         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
28307
28308 2005-05-25  Derek Price  <derek@ximbiot.com>
28309             Paul Eggert  <eggert@cs.ucla.edu>
28310
28311         * modules/getlogin_r, m4/getlogin_r.m4: New files.
28312         * lib/getlogin_r.c, getlogin_r.h: New files.
28313
28314 2005-05-25  Bruno Haible  <bruno@clisp.org>
28315             Derek Price  <derek@ximbiot.com>
28316
28317         * lib/getlogin_r.h: Simplify API documentation.
28318
28319 2005-05-23  Derek Price  <derek@ximbiot.com>
28320
28321         * modules/minmax (Files): Add m4/minmax.m4.
28322         (configure.ac): Add gl_MINMAX.
28323
28324 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
28325
28326         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
28327         so that unistd-safer.h (GPL'ed code) need not be included.
28328
28329 2005-05-22  Bruno Haible  <bruno@clisp.org>
28330
28331         * m4/minmax.m4: New file.
28332         Based on a patch by Derek Price <derek@ximbiot.com>.
28333
28334 2005-05-22  Bruno Haible  <bruno@clisp.org>
28335
28336         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
28337         (INT64_MIN): Fix definition.
28338         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
28339
28340         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
28341         NEED_SIGNED_INT_TYPES.
28342
28343         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
28344         HAVE_SYSTEM_INTTYPES.
28345
28346 2005-05-22  Bruno Haible  <bruno@clisp.org>
28347
28348         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
28349         Also include <sys/param.h> if it defines MIN, MAX.
28350         Based on a patch by Derek Price <derek@ximbiot.com>.
28351
28352 2005-05-21  Jim Meyering  <jim@meyering.net>
28353
28354         * modules/fts (Files): Add m4/inttypes-pri.m4.
28355         (Depends-on): Add lstat and remove gettext.  Alphabetize.
28356
28357 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28358
28359         New fts module.
28360         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
28361         (setup_dir, free_dir): New functions.
28362         (enter_dir, leave_dir): Define trivial
28363         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
28364         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
28365         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
28366         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
28367         Move to fts-cycle.c.
28368         (fts_open): Use setup_dir.
28369         (fts_close): Use free_dir.
28370         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
28371         This adds a label and some gotos, but the alternatives were messier.
28372         Check for memory allocation failure when entering a dir.
28373         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
28374         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
28375         (FTS): New member fts_cycle, that is a union that contains the
28376         old active_dir_ht and cycle_state.  All uses changed to mention
28377         fts_cycle.ht and fts_cycle.state.
28378         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
28379         fts.c, with the following changes:
28380         (setup_dir, free_dir): New functions.
28381         (enter_dir): Now returns bool.  Return true if successful, false
28382         if memory exhausted.  All callers changed.
28383         Do not bother partly cleaning up on
28384         memory allocation failure; that is free_dir's job.
28385         However, free ad if hash_insert fails, to avoid memory leak.
28386         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
28387         fts->fts_options to see which union member to use.
28388
28389 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28390
28391         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
28392         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
28393
28394 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28395
28396         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
28397
28398 2005-05-20  Jim Meyering  <jim@meyering.net>
28399
28400         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
28401         Now a macro, to pacify GCC.
28402
28403 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
28404
28405         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
28406         of -1.
28407
28408 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
28409
28410         * lib/chown.c (rpl_chown): Return -1 on failure.
28411
28412 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
28413
28414         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
28415         Don't check for stddef.h.
28416         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
28417         don't use its results.
28418         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
28419         since we include them unconditionally.  Don't require
28420         AM_STDBOOL_H, since stdbool is a prerequisite.
28421         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
28422         since we assume C89 or better.
28423         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
28424         as we don't use their results.
28425         Don't check for fchdir, memmove, memset, strrchr, as we use
28426         them unconditionally.
28427         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
28428         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
28429
28430 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
28431
28432         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
28433         Include <stddef.h> unconditionally, since we assume C89 now.
28434         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
28435         * lib/fts.c: Include fts_.h first, to check interface.
28436         Do not include intprops.h; no longer needed.
28437         Include cycle-check.h and hash.h, since fts_.h no longer does.
28438         Remove unnecessary casts of closedir to void.
28439         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
28440         decide whether to decrement nlinks.
28441         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
28442         (FTS): Use struct hash_table * instead of Hash_table, so that
28443         we no longer need to include hash.h here.
28444
28445 2005-05-18  Jim Meyering  <jim@meyering.net>
28446
28447         * modules/dirfd (License): Change to LGPL.  Most of the code
28448         is already in the public domain.
28449
28450 2005-05-18  Jim Meyering  <jim@meyering.net>
28451
28452         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
28453         Reported by Yoann Vandoorselaere.
28454
28455 2005-05-17  Jim Meyering  <jim@meyering.net>
28456
28457         * m4/fts.m4: New file, from coreutils.
28458
28459 2005-05-17  Jim Meyering  <jim@meyering.net>
28460
28461         * lib/fts.c, lib/fts_.h: New files, from coreutils.
28462
28463 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28464
28465         Sync from coreutils.
28466         * m4/unlinkdir.m4: New file.
28467
28468 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28469
28470         Sync from coreutils.
28471         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
28472         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
28473         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
28474         White space changes only.
28475         * lib/makepath.c (make_path): Port to hosts where leading "//" is
28476         special.
28477         * lib/yesno.c: Include getline.h, not ctype.h.
28478         (yesno): Don't remove leading white space; POSIX doesn't allow it.
28479         Use getline to remove arbitrary restriction on response length.
28480
28481 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28482
28483         * config/srclist-update: Spell out "Street" in FSF postal
28484         mail address; this is the style the FSF seems to prefer.
28485
28486         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
28487         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
28488         this updates FSF postal mail address.
28489
28490         Sync from coreutils.
28491         * modules/unlinkdir: New file.
28492         * modules/yesno (Depends-on): Add getline.
28493         * MODULES.html.sh (File system functions): Add unlinkdir.
28494
28495 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28496
28497         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
28498         lib/strsep.h:
28499         Change the initial comment to refer to GPL, not LGPL.
28500         gnulib-tool will change it to LGPL as needed.
28501
28502         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
28503         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
28504         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
28505         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
28506         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
28507         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
28508         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
28509         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
28510         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
28511         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
28512         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
28513         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
28514         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
28515         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
28516         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
28517         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
28518         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
28519         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
28520         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
28521         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
28522         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
28523         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
28524         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
28525         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
28526         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
28527         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
28528         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
28529         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
28530         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
28531         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
28532         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
28533         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
28534         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
28535         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
28536         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
28537         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
28538         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
28539         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
28540         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
28541         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
28542         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
28543         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
28544         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
28545         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
28546         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
28547         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
28548         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
28549         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
28550         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
28551         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
28552         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
28553         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
28554         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
28555         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
28556         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
28557         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
28558         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
28559         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
28560         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
28561         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
28562         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
28563         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
28564         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
28565         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
28566         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
28567         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
28568         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
28569         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
28570         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
28571         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
28572         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
28573         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
28574         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
28575         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
28576         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
28577         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
28578         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
28579         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
28580         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
28581         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
28582         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
28583         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
28584         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
28585         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
28586         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
28587         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
28588         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
28589         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
28590         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
28591         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
28592         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
28593         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
28594         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
28595         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
28596         lib/yesno.c, lib/yesno.h:
28597         Update FSF postal mail address.
28598
28599 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28600
28601         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
28602         tests/test-memmem.c, tests/test-stpncpy.c:
28603         Update FSF postal mail address.
28604
28605 2005-05-13  Bruno Haible  <bruno@clisp.org>
28606
28607         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
28608         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
28609         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
28610         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
28611         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
28612         Add support for 64-bit integers in the MSVC compiler.
28613
28614 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28615
28616         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
28617
28618 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
28619
28620         * gnulib-tool (func_import): Sort and uniquify recommended includes.
28621
28622 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
28623
28624         * doc/getdate.texi (General date syntax): Don't say that date
28625         date --iso-8601=ns generates acceptable dates; it doesn't yet.
28626         Problem reported by Nic Ferrier.
28627
28628 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28629
28630         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
28631         specified in ai_socktype. Fix invalid ai_protocol
28632         check. ai_protocol is usually set to 0 or depending on
28633         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
28634         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
28635         ai_socktype / ai_protocol in the returned addrinfo structure.
28636
28637 2005-05-10  Simon Josefsson  <jas@extundo.com>
28638
28639         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
28640         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28641
28642 2005-05-10  Karl Berry  <karl@gnu.org>
28643
28644         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
28645         (from http://www.gnu.org/licenses).
28646         * doc/COPYING.LIB: also rename to COPYING.LESSER.
28647         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
28648         fdl.texi suffices.
28649
28650 2005-05-10  Karl Berry  <karl@gnu.org>
28651
28652         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
28653         (COPYING.DOC): remove.
28654
28655         * config/srclist-update: new FSF address.
28656
28657 2005-05-10  Derek Price  <derek@ximbiot.com>
28658
28659         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
28660         possible.
28661
28662 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28663             Bruno Haible  <bruno@clisp.org>
28664
28665         * modules/inet_ntop: New file.
28666         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28667         inet_ntop.
28668
28669 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28670             Bruno Haible  <bruno@clisp.org>
28671
28672         * m4/inet_ntop.m4: New file.
28673
28674 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28675             Bruno Haible  <bruno@clisp.org>
28676
28677         * lib/inet_ntop.h: New file.
28678         * lib/inet_ntop.c: New file, from glibc with modifications.
28679
28680 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
28681
28682         * modules/time_r (License): Change to LGPL.
28683         * modules/extensions (License): Change to LGPL.  Actually,
28684         the license is more permissive than that, but currently gnulib-tool
28685         doesn't know how to handle more-permissive licenses.
28686
28687         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
28688         Problem reported by Dave Love.
28689
28690 2005-05-08  Jim Meyering  <jim@meyering.net>
28691
28692         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
28693         blank.
28694
28695 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
28696
28697         * modules/argmatch (Depends-on): Add stdbool.
28698         * modules/backupfile (Depends-on): Likewise.
28699         * modules/chdir-long (Depends-on): Likewise.
28700         * modules/closeout (Depends-on): Likewise.
28701         * modules/cycle-check (Depends-on): Likewise.
28702         * modules/dirname (Depends-on): Likewise.
28703         * modules/fnmatch (Depends-on): Likewise.
28704         * modules/fsusage (Depends-on): Likewise.
28705         * modules/fwriteerror (Depends-on): Likewise.
28706         * modules/getcwd (Depends-on): Likewise.
28707         * modules/getloadavg (Depends-on): Likewise.
28708         * modules/hard-locale (Depends-on): Likewise.
28709         * modules/makepath (Depends-on): Likewise.
28710         * modules/mountlist (Depends-on): Likewise.
28711         * modules/nanosleep (Depends-on): Likewise.
28712         * modules/posixtm (Depends-on): Likewise.
28713         * modules/quotearg (Depends-on): Likewise.
28714         * modules/readtokens (Depends-on): Likewise.
28715         * modules/readtokens0 (Depends-on): Likewise.
28716         * modules/readutmp (Depends-on): Likewise.
28717         * modules/save-cwd (Depends-on): Likewise.
28718         * modules/strftime (Depends-on): Likewise.
28719         * modules/userspec (Depends-on): Likewise.
28720         * modules/utimecmp (Depends-on): Likewise.
28721         * modules/xgetcwd (Depends-on): Likewise.
28722         * modules/xnanosleep (Depends-on): Likewise.
28723         * modules/xstrtod (Depends-on): Likewise.
28724         * modules/yesno (Depends-on): Likewise.
28725
28726 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28727
28728         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
28729         needless checks.
28730
28731 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28732
28733         Merge from coreutils.  Among other things,
28734         add bulletproofing for cases where stdin, stdout, or stderr are closed.
28735         * lib/fd-safer.c: New file.
28736         * lib/fcntl-safer.h, open-safer.c: Remove.
28737         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
28738         * lib/dup-safer.c: Include unistd-safer.h first.
28739         Don't include errno.h.
28740         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
28741         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
28742         * lib/file-type.c: Rely on file-type.h change.
28743         * lib/getloadavg.c: Include unistd-safer.h.
28744         (getloadavg): Use safer open.
28745         * lib/getusershell.c: Include "stdio-safer.h".
28746         (getusershell): Use safer fopen.
28747         * lib/long-options.c (long_options): Use NULL rather than 0.
28748         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
28749         'free'.
28750         * lib/modechange.c: Likewise.
28751         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
28752         (MODE_DONE): New constant.
28753         (struct mode_change): Remove 'next' member.
28754         (make_node_op_equals): New function; like the old one of the
28755         same name, except it allocates an array.
28756         (mode_compile, mode_create_from_ref): Use it.
28757         (mode_compile): Allocate result as an array, not a linked list.
28758         Parse octal string ourself, so that we catch mistakes like "+0".
28759         (mode_adjust): Arg is an array, not a linked list.
28760         * lib/modechange.c: Include stat-macros.h, xalloc.h.
28761         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
28762         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
28763         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
28764         Remove.  This is now stat-macros.h's job.
28765         (talloc): Remove.  All callers replaced by xalloc, so that
28766         our invokers don't have to worry about reporting memory failures.
28767         (make_node_op_equals): Remove.
28768         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28769         New constants.
28770         (struct mode_change): Moved here from modechange.h.
28771         (mode_append_entry): Remove.
28772         (mode_compile): Remove MASKED_OPS arg, since it encouraged
28773         apps to have incorrect behavior.  Use simpler algorithm for head
28774         and tail.  Don't futz with umask; that's now the job of mode_adjust.
28775         Detect more invalid usages rather than having somewhat-random behavior.
28776         Don't insert an "a=" action, as that leads to incorrect behavior.
28777         (mode_compile, mode_create_from_ref): Return NULL on error instead
28778         of an enum, since now there's only one way to have an error.  All
28779         callers changed.
28780         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
28781         at the correct time.  Simplify calculation of "+u" and its ilk.
28782         Don't mishandle "+X".
28783         (mode_free): Remove "register" and localize decls.
28784         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28785         (struct mode_change): Move to modechange.c; callers don't
28786         need to see this stuff.
28787         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
28788         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
28789         (mode_change, mode_adjust): Reflect the new signatures noted above.
28790         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
28791         that might redefine system include files.
28792         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
28793         (my_usleep): Use NULL rather than (void *) 0.
28794         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
28795         Use siginterrupt to specify that system calls should be interrupted.
28796         (rpl_nanosleep): Move initialization of suspended closer to call of
28797         my_usleep.
28798         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
28799         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
28800         (desirable_utmp_entry): New function.
28801         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
28802         using x2nrealloc, to simplify logic.
28803         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
28804         size calculation.  Do not assume utmp file is a regular file.
28805         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
28806         (READ_UTMP_CHECK_PIDS): New constant.
28807         * lib/save-cwd.c: Include unistd-safer.h.
28808         (save_cwd): Use fd_safer.
28809         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
28810         [!_LIBC] Include "stat-macros.h" instead.
28811         * lib/unistd-safer.h (fd_safer): New decl.
28812
28813 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28814
28815         * modules/getloadavg (Depends-on): Add unistd-safer.
28816         * modules/getusershell (Depends-on): Add stdio-safer.
28817         * modules/lstat (Depends-on): Remove xalloc.
28818         * modules/mkstemp (Depends-on): Add stat-macros.
28819         * modules/modechange (Depends-on): Remove xstrtol.
28820         Add stat-macros, xalloc.
28821         * modules/save-cwd (Depends-on): Add unistd-safer.
28822         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
28823         * modules/unistd-safer (Files): Add lib/fd-safer.c
28824         (Makefile.am): Remove lib_SOURCES.
28825
28826         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
28827         Remove fcntl-safer; unistd-safer supersedes it.
28828
28829 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28830
28831         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
28832         AC_HEADER_STAT.
28833         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
28834         (gl_PREREQ_CHOWN): Remove.
28835         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
28836         it.  Don't require AC_HEADER_STAT.
28837         (gl_PREREQ_LSTAT): Remove.
28838         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
28839         Don't require AC_HEADER_STAT.
28840         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
28841         (gl_PREREQ_RMDIR): Remove.
28842         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
28843         mention stat-macros.h or AC_HEADER_STAT, since we'll make
28844         the stat-macros module a prerequisite.
28845         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
28846         * m4/filemode.m4 (gl_FILEMODE): Likewise.
28847         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
28848         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
28849         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
28850         variable names.
28851         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
28852         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
28853         variable prefixes.
28854         * m4/fcntl-safer.m4: Remove.
28855         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
28856         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
28857         Invoke gl_PREREQ_FD_SAFER.
28858         (gl_PREREQ_FD_SAFER): New macro.
28859         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
28860         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
28861         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
28862         Remove duplicate call to AC_LIBOBJ(readutmp).
28863         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
28864
28865         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
28866         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
28867
28868 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28869
28870         * MODULES.html.sh (Misc): Add byteswap.
28871
28872 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28873
28874         * modules/getcwd (Depends-on): Add extensions.
28875         * modules/openat (Depends-on): Likewise.
28876
28877 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28878
28879         * modules/byteswap: New file.
28880
28881 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28882
28883         * m4/byteswap.m4: New file.
28884
28885 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28886
28887         * lib/byteswap_.h: New file.
28888
28889 2005-04-25  Karl Berry  <karl@gnu.org>
28890
28891         * m4/gettext.m4: Update from GNU gettext 0.14.4.
28892
28893 2005-04-25  Albert Chin  <china@thewrittenword.com>
28894
28895         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
28896         Toolkit C bug.
28897
28898 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
28899
28900         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
28901         (func_ln_if_changed) Remove forcibly for no error message
28902         in case file does not exist.
28903
28904 2005-04-19  Simon Josefsson  <jas@extundo.com>
28905
28906         * gnulib-tool (Options): Make --symlink mean --symbolic.
28907
28908 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
28909
28910         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
28911
28912 2005-04-16  Simon Josefsson  <jas@extundo.com>
28913
28914         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
28915
28916 2005-04-15  Simon Josefsson  <jas@extundo.com>
28917
28918         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
28919
28920 2005-04-15  Simon Josefsson  <jas@extundo.com>
28921
28922         * gnulib-tool: Rename --symlink to --symbolic.
28923
28924 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
28925
28926         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
28927         symbolic links to files instead of copying/moving.  Add --aux-dir,
28928         specifying directory relative --dir where auxiliary build tools
28929         are placed.
28930
28931 2005-04-14  Bruno Haible  <bruno@clisp.org>
28932
28933         * modules/allocsa (License): Change to LGPL.
28934         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28935
28936 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
28937
28938         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
28939         that "UTC +1 second" continues to work.  Problem reported
28940         by Dmitry V. Levin.
28941         (relunit_snumber): New rule.
28942         (relunit): Use it.
28943
28944 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
28945
28946         * lib/getdate.y (universal_time_zone_table): New constant.
28947         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
28948         universal_time_zone_table.
28949         (lookup_zone): Prefer universal_time_zone_table to
28950         local_time_zone_table, so that "GMT" time stamps are allowed in
28951         London during the summer.  Problem reported by Ian Abbott.
28952
28953 2005-04-12  Jim Meyering  <jim@meyering.net>
28954
28955         * lib/human.c (humblock): Set *options even when returning due to
28956         xstrtoumax conversion failure.  Thanks to a used-uninitialized
28957         warning from gcc-4.
28958
28959 2005-04-09  Jim Meyering  <jim@meyering.net>
28960
28961         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
28962         -Wuninitialized: initialize tm0.tm_year.
28963
28964 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
28965
28966         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
28967         count, since there's no maximum.  All uses changed.
28968         Add member dsts_seen.
28969         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
28970         not being INT_MAX.
28971         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
28972         Use pc_rels_seen to decide whther a date is absolute.
28973
28974         * lib/getdate.y (number): Don't overwrite year.
28975         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
28976         check.
28977
28978 2005-04-02  Simon Josefsson  <jas@extundo.com>
28979
28980         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
28981         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
28982
28983 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
28984
28985         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
28986         where no absolute path name can be longer than PATH_MAX.
28987
28988 2005-03-27  Jim Meyering  <jim@meyering.net>
28989
28990         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
28991
28992 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
28993
28994         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
28995         "one's complement" -> "ones' complement" in comment, as per Knuth.
28996         "value of type" -> "type or expression" in comment.
28997         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
28998
28999 2005-03-26  Jim Meyering  <jim@meyering.net>
29000
29001         Comment nits.
29002         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
29003         Correct typos: s/or/of/.
29004
29005 2005-03-26  Jim Meyering  <jim@meyering.net>
29006
29007         * modules/check-include-files: Move to ../ and rename to...
29008         * check-module: ...this.
29009
29010 2005-03-25  Jim Meyering  <jim@meyering.net>
29011
29012         * modules/xvasprintf (Files): Add xalloc.h.
29013
29014 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
29015
29016         * modules/gettext (Files): config/config.rpath ->
29017         build-aux/config.rpath
29018         * modules/iconv (Files): Likewise.
29019         Problem reported by Oskar Liljeblad.
29020
29021 2005-03-23  Jim Meyering  <jim@meyering.net>
29022
29023         * modules/check-include-files: New script to check for
29024         missing dependencies, multiple includes, etc.
29025
29026         * modules/c-strtold (Depends-on): Add xalloc.
29027         * modules/c-strtod (Depends-on): Add xalloc.
29028         * modules/hash (Depends-on): Add xalloc.
29029         (Files): Remove lib/xalloc.h.
29030
29031         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
29032         * modules/userspec (Files): Add lib/inttostr.h.
29033
29034 2005-03-23  Jim Meyering  <jim@meyering.net>
29035
29036         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
29037
29038 2005-03-22  Jim Meyering  <jim@meyering.net>
29039
29040         * modules/stat-macros: New module.
29041         * modules/canonicalize, modules/euidaccess, modules/file-type,
29042         * modules/filemode, modules/lchown, modules/makepath,
29043         * modules/rmdir, modules/stat: Depend on new stat-macros module
29044         rather than listing lib/stat-macros.h manually.
29045         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
29046
29047 2005-03-22  Jim Meyering  <jim@meyering.net>
29048
29049         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
29050
29051 2005-03-22  Bruno Haible  <bruno@clisp.org>
29052
29053         * config/srclist.txt: Replace target directory 'config' with
29054         'build-aux'.
29055         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
29056         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
29057         ../build-aux/.
29058
29059 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
29060
29061         * modules/chdir-long (Depends-on): Add mempcpy.
29062
29063         * modules/acl, modules/backupfile, modules/c-strtod,
29064         modules/c-strtold, modules/canon-host, modules/canonicalize,
29065         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
29066         modules/exclude, modules/exitfail, modules/file-type,
29067         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
29068         modules/getdate, modules/getline, modules/getpagesize,
29069         modules/getpass, modules/getugroups, modules/group-member,
29070         modules/hard-locale, modules/hash, modules/human, modules/idcache,
29071         modules/inttostr, modules/long-options, modules/makepath,
29072         modules/md5, modules/memcasecmp, modules/memcoll,
29073         modules/modechange, modules/mountlist, modules/path-concat,
29074         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
29075         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
29076         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
29077         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
29078         modules/strftime, modules/strndup, modules/strverscmp,
29079         modules/timespec, modules/unlocked-io, modules/userspec,
29080         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
29081         modules/yesno:
29082         Remove lib_SOURCES line from Makefile.am section, as this is now
29083         done automatically by the corresponding Autoconf macro.
29084
29085 2005-03-21  Jim Meyering  <jim@meyering.net>
29086
29087         Changes imported from coreutils.
29088
29089         * lib/cycle-check.c: Don't include xalloc.h.
29090
29091         * lib/path-concat.c: Don't include assert.h.
29092         (path_concat): Remove assertion that would have triggered
29093         for ABASE starting with more than one slash.
29094         Reported by Andreas Schwab.
29095
29096         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
29097         properly when ABASE is an absolute file name.
29098         Correct the description of this function.
29099         Include <assert.h>.
29100         Add an assertion and a test driver.
29101         This fixes a bug introduced on 2004-07-02.
29102         Andreas Schwab reported the resulting failure of cp --parents:
29103         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
29104
29105 2005-03-21  Jim Meyering  <jim@meyering.net>
29106
29107         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
29108         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
29109
29110 2005-03-21  Jim Meyering  <jim@meyering.net>
29111         and  Paul Eggert  <eggert@cs.ucla.edu>
29112
29113         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
29114         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
29115         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
29116         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
29117         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
29118         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
29119         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
29120         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
29121         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
29122         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
29123         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
29124         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
29125         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
29126         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
29127         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
29128         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
29129         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
29130         for these modules.
29131
29132 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
29133
29134         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
29135         (which shouldn't happen), generate nothing instead of returning 0
29136         immediately, so that nstrftime (NULL, ...) doesn't return 0.
29137
29138 2005-03-16  Bruno Haible  <bruno@clisp.org>
29139
29140         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
29141         HAVE_LONGLONG_64BIT.
29142
29143 2005-03-16  Bruno Haible  <bruno@clisp.org>
29144
29145         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
29146         HAVE_LONGLONG_64BIT.
29147
29148 2005-03-16  Bruno Haible  <bruno@clisp.org>
29149
29150         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
29151         HAVE_LONGLONG_64BIT.
29152
29153 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
29154
29155         * lib/strftime.c (my_strftime): Prepend space to format so that we can
29156         reliably distinguish strftime failure from empty output on POSIX
29157         hosts.
29158
29159 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
29160
29161         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
29162         (iconv_string): Don't guess a size-zero buffer, as that might cause
29163         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
29164         result would be 'too large', where 'too large' is (heuristically)
29165         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
29166         overflow concerns.  This will prevent some unwanted malloc failures
29167         when the inputs are very large.
29168
29169 2005-03-15  Karl Berry  <karl@gnu.org>
29170
29171         * config/srclist.txt (config.rpath): from gettext.
29172         * config/config.rpath: update.
29173
29174 2005-03-15  Bruno Haible  <bruno@clisp.org>
29175
29176         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
29177         to 'negate'.
29178
29179         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
29180         variable.
29181
29182         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
29183         results.
29184
29185 2005-03-14  Simon Josefsson  <jas@extundo.com>
29186
29187         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
29188         <fx@gnu.org>.
29189
29190 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
29191
29192         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
29193         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
29194         intprops.h.
29195         * lib/strtol.c: Likewise.
29196
29197 2005-03-14  Jim Meyering  <jim@meyering.net>
29198
29199         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
29200         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
29201         to be nonzero so that we (and caller) can detect the difference
29202         between a valid zero-length expansion and an error return, even
29203         when the underlying strftime fails before writing anything into
29204         that location.
29205
29206 2005-03-14  Bruno Haible  <bruno@clisp.org>
29207
29208         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
29209         Update from GNU gettext 0.14.3.
29210
29211 2005-03-10  Jim Meyering  <jim@meyering.net>
29212
29213         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
29214
29215 2005-03-10  Jim Meyering  <jim@meyering.net>
29216
29217         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
29218         so that this module works on systems without fchdir.
29219
29220 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
29221
29222         Factor int-properties macros into a single file, except for
29223         glibc-related files.
29224         * lib/intprops.h: New file.
29225         * lib/getloadavg.c: Include it instead of limits.h.
29226         (INT_STRLEN_BOUND): Remove.
29227         * lib/human.c: Include intprops.h.
29228         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
29229         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
29230         302/1000.
29231         * lib/inttostr.h: Include intprops.h instead of limits.h.
29232         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
29233         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
29234         for consistency with intprops.h.
29235         (time_t_is_integer, twos_complement_arithmetic): Use them.
29236         * lib/sig2str.h: Include <signal.h>, intprops.h.
29237         (INT_STRLEN_BOUND): Remove.
29238         * lib/strftime.c (TYPE_SIGNED): Remove.
29239         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
29240         * lib/strtol.c: Adjust comments to match intprops.h.
29241         * lib/userspec.c: Include intprops.h.
29242         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
29243         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
29244         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
29245         instead of rolling our own expressions.
29246         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
29247
29248         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
29249         instead of int.
29250         (my_strftime): Do not mishandle years close to INT_MAX, by doing
29251         the right thing even if adding 1900 would overflow.  Similarly
29252         for tm_mon + 1 and tm_yday + 1.
29253         Make %Y always equivalent to %C%y, and similarly for %G and %g.
29254         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
29255         (DO_SIGNED_NUMBER): New macro.
29256         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
29257
29258 2005-03-07  Bruno Haible  <bruno@clisp.org>
29259
29260         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
29261
29262 2005-03-07  Bruno Haible  <bruno@clisp.org>
29263
29264         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
29265
29266 2005-03-04  Derek R. Price  <derek@ximbiot.com>
29267
29268         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
29269         (func_import): Only replace files via --import when they have actually
29270         changed.
29271
29272 2005-03-03  Derek R. Price  <derek@ximbiot.com>
29273
29274         * m4/mmap-anon.m4: New file.
29275         * m4/pagealign_alloc.m4: New file.
29276
29277 2005-03-03  Derek R. Price  <derek@ximbiot.com>
29278             Bruno Haible  <bruno@clisp.org>
29279
29280         * modules/pagealign_alloc: New file.
29281         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
29282
29283 2005-03-03  Derek R. Price  <derek@ximbiot.com>
29284             Bruno Haible  <bruno@clisp.org>
29285
29286         * lib/pagealign_alloc.h: New file.
29287         * lib/pagealign_alloc.c: New file.
29288
29289 2005-03-03  Bruno Haible  <bruno@clisp.org>
29290
29291         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
29292         Use an all-permissive copyright notice, recommended by RMS.
29293
29294 2005-03-02  Bruno Haible  <bruno@clisp.org>
29295
29296         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
29297         of AIX, the replacement has to be done only after <string.h> is
29298         included, therefore not in config.h. stpncpy.h does the replacement,
29299         and stpncpy.c uses it.
29300
29301 2005-03-02  Bruno Haible  <bruno@clisp.org>
29302
29303         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
29304         stpncpy.c uses it.
29305
29306 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
29307
29308         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
29309         The workaround isn't strictly needed for POSIX conformance, and
29310         it's too much of a pain to configure and maintain.  We'll ask
29311         people to fix their kernels instead.
29312         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
29313         (NANOSLEEP_BUG_WORKAROUND): Remove.
29314         (xnanosleep): Remove the workaround.
29315
29316 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
29317
29318         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
29319         Reported by Derek Price.
29320         (Include): Add "timespec.h".
29321
29322         * modules/xnanosleep (Depends-on): Remove gethrxtime.
29323
29324 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
29325
29326         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
29327         to detect nanosleep bug.
29328
29329 2005-03-01  Bruno Haible  <bruno@clisp.org>
29330
29331         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
29332
29333 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
29334
29335         * modules/gethrxtime: New file.
29336         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
29337         (Depends-on): Add gethrxtime.
29338         (configure.ac): Add gl_XNANOSLEEP.
29339         (Makefile.am): Remove lib_SOURCES line.
29340
29341 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
29342
29343         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
29344         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
29345
29346 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
29347
29348         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
29349         * lib/timespec.h (gettime): Return void, since it always
29350         succeeds now.  All uses changed.
29351         * lib/gettime.c (gettime) Likewise.
29352         [HAVE_NANOTIME]: Prefer nanotime.
29353         Assume gettimeofday succeeds, as POSIX requires.
29354         Assime time () succeeds, since other code already does.
29355         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
29356         (timespec_subtract): Remove.
29357         (NANOSLEEP_BUG_WORKAROUND): New constant.
29358         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
29359         things considerably.  Use it only on GNU/Linux hosts, since the
29360         workaround shouldn't be needed elsewhere.
29361
29362 2005-02-24  Bruno Haible  <bruno@clisp.org>
29363
29364         * modules/gettext (Files): Add m4/glibc2.m4.
29365
29366 2005-02-24  Bruno Haible  <bruno@clisp.org>
29367
29368         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
29369         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
29370         * m4/progtest.m4:
29371         Update from GNU gettext 0.14.2.
29372         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
29373
29374 2005-02-24  Bruno Haible  <bruno@clisp.org>
29375
29376         * lib/localcharset.c: Update from GNU gettext 0.14.2.
29377         * lib/config.charset: Update from GNU gettext 0.14.2.
29378
29379 2005-02-24  Bruno Haible  <bruno@clisp.org>
29380
29381         * lib/gettext.h: Update from GNU gettext 0.14.2.
29382
29383 2005-02-23  Simon Josefsson  <jas@extundo.com>
29384
29385         * m4/iconvme.m4: New file.
29386
29387 2005-02-23  Jim Meyering  <jim@meyering.net>
29388
29389         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
29390         change.
29391         Thanks to Bruno Haible for catching it.
29392
29393 2005-02-22  Simon Josefsson  <jas@extundo.com>
29394
29395         * modules/iconvme: New file.
29396
29397         * MODULES.html.sh: Add iconvme.
29398
29399 2005-02-22  Simon Josefsson  <jas@extundo.com>
29400
29401         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
29402
29403 2005-02-22  Simon Josefsson  <jas@extundo.com>
29404
29405         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
29406
29407 2005-02-22  Jim Meyering  <jim@meyering.net>
29408
29409         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
29410         s/ifndef/ifdef/.
29411
29412 2005-02-20  Neil Conway  <neilc@samurai.com>
29413
29414         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
29415         returned by OSX/Darwin if the specified buffer is not large
29416         enough for the hostname.
29417
29418 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29419
29420         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
29421         pass it to _help, otherwise the latter coredumps trying to
29422         dereference state.root_argp.
29423
29424 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
29425
29426         * modules/chdir-long (Depends-on): Add memrchr.
29427         * modules/memrchr (Files): Add lib/memrchr.h.
29428         (Include): "memrchr.h".
29429
29430 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
29431
29432         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
29433
29434 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
29435
29436         * lib/memrchr.h: New file.
29437         * lib/chdir-long.c: Include it.
29438         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
29439         Don't bother including stddef.h.
29440
29441 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
29442
29443         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
29444         inclusion.
29445         Include <sys/types.h>, for dev_t.
29446         (ME_DUMMY, ME_REMOTE): Move from here....
29447         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
29448         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
29449         Dmitry V. Levin.
29450         Include mountlist.h first, to test the interface.
29451
29452 2005-01-29  Bruno Haible  <bruno@clisp.org>
29453
29454         * lib/progname.c (program_name): Initialize.
29455         Needed when linking statically on MacOS X.
29456
29457 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
29458
29459         Sync from coreutils.
29460         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
29461         (Depends-on): Add c-strtod.
29462         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
29463
29464 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
29465
29466         Sync from coreutils.
29467         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
29468
29469         Remove files that are specific to coreutils.
29470         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
29471
29472 2005-01-28  Bruno Haible  <bruno@clisp.org>
29473
29474         * modules/javacomp: New file.
29475         * MODULES.html.sh (Java): Add javacomp.
29476
29477 2005-01-28  Bruno Haible  <bruno@clisp.org>
29478
29479         * m4/javacomp.m4: New file, from GNU gettext.
29480
29481 2005-01-28  Bruno Haible  <bruno@clisp.org>
29482
29483         * lib/javacomp.sh.in: New file, from GNU gettext.
29484         * lib/javacomp.h: New file, from GNU gettext.
29485         * lib/javacomp.c: New file, from GNU gettext.
29486
29487 2005-01-26  Simon Josefsson  <jas@extundo.com>
29488
29489         * lib/gai_strerror.c: Use GPL in header.
29490
29491 2005-01-26  Bruno Haible  <bruno@clisp.org>
29492
29493         * modules/javaexec: New file.
29494         * MODULES.html.sh (Java): Add javaexec.
29495
29496 2005-01-26  Bruno Haible  <bruno@clisp.org>
29497
29498         * m4/javaexec.m4: New file, from GNU gettext.
29499
29500 2005-01-26  Bruno Haible  <bruno@clisp.org>
29501
29502         * lib/javaexec.sh.in: New file, from GNU gettext.
29503         * lib/javaexec.h: New file, from GNU gettext.
29504         * lib/javaexec.c: New file, from GNU gettext.
29505
29506 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29507
29508         * modules/lchown (Depends-on): Remove lchown.h
29509
29510 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29511
29512         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
29513         must be defined if the header file was not found, in order
29514         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
29515
29516 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29517
29518         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
29519         initializers for struct pentry_state.
29520         (__argp_error): Check return value of __asprintf
29521         (__argp_failure): Translate error message
29522
29523         * lib/argp-parse.c: Removed braces around the expansion of N_()
29524
29525 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29526
29527         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
29528         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
29529         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
29530         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
29531         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
29532         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
29533         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
29534         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
29535         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
29536         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
29537         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
29538         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
29539         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
29540         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
29541         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
29542         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
29543         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
29544         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
29545         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
29546         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
29547         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
29548         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
29549         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
29550         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
29551         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
29552         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
29553         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
29554         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
29555         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
29556         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
29557         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
29558         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
29559         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
29560         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
29561         xstrtol.m4, xstrtoumax.m4, yesno.m4:
29562         Use an all-permissive copyright notice, recommended by RMS.
29563
29564 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
29565
29566         * modules/chdir-long (Depends-on): Remove mempcpy.
29567
29568 2005-01-21  Jim Meyering  <jim@meyering.net>
29569
29570         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
29571         same value as for Solaris 9.
29572
29573         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
29574         component length.  This included changing the parameter to be
29575         of type `char *' rather than `char const *'.
29576         * lib/chdir-long.h (chdir_long): Update prototype.
29577
29578         * lib/openat.c (fdopendir, fstatat): New functions.
29579         * lib/openat.h: Include headers required for use of DIR and struct
29580         stat.
29581         [AT_SYMLINK_NOFOLLOW]: Define.
29582         (fdopendir, fstatat): Add prototypes.
29583
29584 2005-01-21  Bruno Haible  <bruno@clisp.org>
29585
29586         * modules/classpath: New file.
29587         * MODULES.html.sh (Java): Add classpath.
29588
29589 2005-01-21  Bruno Haible  <bruno@clisp.org>
29590
29591         * lib/classpath.h: New file, from GNU gettext.
29592         * lib/classpath.c: New file, from GNU gettext.
29593
29594 2005-01-20  Simon Josefsson  <jas@extundo.com>
29595
29596         * modules/version-etc-fsf: New file.
29597
29598 2005-01-20  Simon Josefsson  <jas@extundo.com>
29599
29600         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
29601         * lib/version-etc.c: Remove version_etc_copyright.
29602         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
29603         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
29604
29605 2005-01-20  Simon Josefsson  <jas@extundo.com>
29606
29607         * lib/base64.h (isbase64): Add.
29608
29609         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
29610         using a unsigned prototype, don't inline.
29611         (base64_decode): Use it.
29612
29613 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29614
29615         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
29616         it.
29617
29618 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29619
29620         * lib/save-cwd.c (save_cwd): Remove code to support the case
29621         where fchdir is missing or flaky.
29622
29623 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29624
29625         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
29626
29627 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
29628
29629         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
29630         AC_LIBSOURCES now does this.
29631         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
29632         with new ullong_max module.
29633
29634 2005-01-19  Bruno Haible  <bruno@clisp.org>
29635
29636         * modules/sh-quote: New file.
29637         * MODULES.html.sh (Executing programs): Add sh-quote.
29638
29639 2005-01-19  Bruno Haible  <bruno@clisp.org>
29640
29641         * lib/sh-quote.h: New file, from GNU gettext.
29642         * lib/sh-quote.c: New file, from GNU gettext.
29643
29644 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29645
29646         Merge from coreutils.
29647         * m4/ullong_max.m4: New file.
29648         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
29649         (gl_MACROS): Assume localeconv exists.
29650
29651 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29652
29653         Merge changes from coreutils, as described below in several
29654         changelogs dated today.
29655
29656         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
29657         (O_DIRECTORY): Remove; not needed here, since "." must be
29658         a directory.  All uses removed.
29659         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
29660         universal on Suns, and we also need to test for IRIX.
29661         Revamp code to use 'if' rather than '#if'.
29662         Avoid unnecessary comparison of cwd->desc to 0.
29663
29664         * lib/utimens.c (futimens): Robustify the previous patch, by checking
29665         for known valid error numbers rather than observed invalid ones.
29666
29667 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29668
29669         * modules/ullong_max: New file.
29670
29671         * modules/chdir-long, modules/openat: New files.
29672         * modules/save-cwd (Depends-on): Depend on chdir-long.
29673         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
29674
29675 2005-01-18  Jim Meyering  <jim@meyering.net>
29676
29677         Merge from coreutils.
29678         * m4/chdir-long.m4, m4/openat.m4: New files.
29679         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
29680         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
29681         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
29682         is sane and DOES follow symlinks.  Besides, testing 20 different
29683         systems found no broken chown implementations.
29684         Prompted by a change in rsync's copy of this macro.
29685         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
29686
29687         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
29688
29689         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
29690         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
29691         NULL-means-set-to-current-time semantics.
29692         Remove temporary file immediately, rather than waiting
29693         for configure's at-exit trap code to do it.
29694
29695 2005-01-18  Jim Meyering  <jim@meyering.net>
29696
29697         * lib/version-etc.c (version_etc_copyright): Update copyright date.
29698
29699         * lib/utimens.c (futimens): Account for the fact that futimes
29700         can also fail with errno == ENOSYS or errno == ENOENT.
29701         Patch from Dmitry V. Levin.
29702
29703         Change the name of the robust chdir function from chdir to chdir_long.
29704         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
29705         (restore_cwd): Use chdir_long, not chdir.
29706         * lib/chdir-long.c: Renamed from chdir.c.
29707         * lib/chdir-long.h: Renamed from chdir.h.
29708         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
29709         Hurd.
29710
29711 2005-01-18  Bruno Haible  <bruno@clisp.org>
29712
29713         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
29714         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
29715         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
29716         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
29717         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
29718         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
29719         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
29720         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
29721         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
29722         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
29723         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
29724         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
29725         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
29726         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
29727         Use an all-permissive copyright notice, recommended by RMS.
29728
29729 2005-01-18  Bob Proulx  <bob@proulx.com>
29730
29731         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
29732         simplify offsetof() macro construct to avoid compile failure with
29733         native HP-UX 11.0 ANSI C compiler.
29734
29735 2005-01-17  Bruno Haible  <bruno@clisp.org>
29736
29737         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
29738         redundant because stpncpy.m4 takes care of it.
29739
29740 2005-01-17  Bruno Haible  <bruno@clisp.org>
29741
29742         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
29743
29744 2005-01-17  Bruno Haible  <bruno@clisp.org>
29745
29746         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
29747         used.
29748
29749 2005-01-17  Bruno Haible  <bruno@clisp.org>
29750
29751         * lib/fwriteerror.h (fwriteerror): Change specification to include
29752         fclose.
29753         * lib/fwriteerror.c: Include <stdbool.h>.
29754         (fwriteerror): At the end, close the file stream. Record whether
29755         stdout was already closed.
29756
29757 2005-01-17  Bruno Haible  <bruno@clisp.org>
29758
29759         * lib/execute.c (environ): Declare if needed.
29760         * lib/pipe.c (environ): Likewise.
29761         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
29762
29763 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29764
29765         * modules/argp: Depend on vsnprintf
29766
29767 2005-01-10  Jim Meyering  <jim@meyering.net>
29768
29769         * modules/closeout (Depends-on): Add atexit.
29770
29771 2005-01-06  Bruno Haible  <bruno@clisp.org>
29772
29773         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
29774
29775 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29776
29777         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
29778         definitions to be after all include files, to avoid collisions.
29779         Problem reported by Bob Proulx.
29780
29781 2005-01-04  Jim Meyering  <jim@meyering.net>
29782
29783         Changes imported from coreutils.
29784         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
29785         as the mkstemp template, use a temporary directory and an
29786         8.3-friendly template to avoid trouble on systems like DJGPP.
29787         Reported by Juan M. Guerrero via Stepan Kasal.
29788         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
29789         close. Remove the temporary directory right away, rather than waiting
29790         for configure's at-exit trap code to do it.
29791         Suggestion from Stepan Kasal.
29792
29793 2005-01-01  Simon Josefsson  <jas@extundo.com>
29794
29795         * gnulib-tool: Print #include directives when --import'ing.
29796
29797 2004-12-28  Simon Josefsson  <jas@extundo.com>
29798
29799         * tests/test-base64.c: Include required header files.  Remove
29800         unused variables.
29801
29802 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29803
29804         * modules/error (Depends-on): Remove gettext.
29805
29806 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29807
29808         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
29809         not needed.  This removes a dependency on the gettext module.
29810         [defined _LIBC]: Do not include <libintl.h>; not needed.
29811
29812 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
29813
29814         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
29815         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
29816
29817 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
29818
29819         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
29820         HAVE_DECL_STRTOLD.
29821
29822 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29823
29824         * modules/getdate (Depends-on): Remove alloca-opt.
29825
29826 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29827
29828         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
29829
29830 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29831
29832         * lib/argp-parse.c: Include <stddef.h>.
29833         (alignof, alignto): New macros.
29834         (parser_init): Don't assume that void * is aligned sufficiently
29835         for struct option.
29836
29837         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
29838         need to extend the stack.
29839         (YYINITDEPTH): New macro, so that the initial stack isn't overly
29840         large.
29841
29842 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29843
29844         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
29845
29846 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
29847
29848         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
29849         (2004-10-24) change.  Apparently this was a false alarm.
29850
29851         * modules/getdate: Depend on alloca-opt, not alloca.
29852
29853 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
29854
29855         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
29856         Remove now-obsolete comment about AIX.
29857         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
29858         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
29859         (YYMAXDEPTH): New macro.
29860
29861 2004-12-18  Simon Josefsson  <jas@extundo.com>
29862
29863         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
29864
29865 2004-12-18  Bruno Haible  <bruno@clisp.org>
29866
29867         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
29868
29869 2004-12-18  Bruno Haible  <bruno@clisp.org>
29870
29871         * lib/fatal-signal.c (fatal_signals): Make non-const.
29872         (init_fatal_signals): New function.
29873         (uninstall_handlers, install_handlers): Ignore signals that were set to
29874         SIG_IGN.
29875         (at_fatal_signal): Call init_fatal_signals.
29876         (init_fatal_signal_set): Likewise. Ignore signals that were set to
29877         SIG_IGN.
29878         Reported by Paul Eggert.
29879
29880 2004-12-18  Bruno Haible  <bruno@clisp.org>
29881
29882         * doc/alloca.texi: New file.
29883         * doc/alloca-opt.texi: New file.
29884
29885 2004-12-17  Jim Meyering  <jim@meyering.net>
29886
29887         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
29888         Otherwise, install-sh could exit with improper exit status when
29889         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
29890
29891 2004-12-16  Simon Josefsson  <jas@extundo.com>
29892
29893         * tests/test-base64.c: Add license.
29894
29895 2004-12-15  Stepan Kasal  <address@hidden>
29896
29897         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
29898
29899 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
29900
29901         * modules/getcwd (Files): Add m4/d-ino.m4.
29902         Suggested by Mark D. Baushke.
29903
29904 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
29905
29906         * lib/getdate.y (textint): New member "negative".
29907         (time_zone_hhmm): New function.
29908         Expect 14 shift-reduce conflicts, not 13.
29909         (o_colon_minutes): New rule.
29910         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
29911         (yylex): Set the "negative" member of signed numbers.
29912
29913 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
29914
29915         * doc/getdate.texi (Time of day items, Time zone items):
29916         Describe new formats +00:00, UTC+00:00.
29917
29918 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29919
29920         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
29921         spurious "-l"s.  Problem reported by Stepan Kasal.
29922
29923 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
29924
29925         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
29926         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
29927
29928 2004-12-04  Simon Josefsson  <jas@extundo.com>
29929
29930         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
29931         Vandoorselaere <yoann@prelude-ids.org>.
29932
29933 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29934
29935         Changes imported from coreutils.
29936         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
29937         exist.
29938         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
29939
29940 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29941
29942         Changes imported from coreutils.
29943         * lib/hard-locale.c: Assume <locale.h> exists.
29944         Include "strdup.h".
29945         (GLIBC_VERSION): New macro.
29946         (hard_locale): Assume setlocale exists.
29947         Rewrite to avoid #ifdef.
29948         Use strdup rather than malloc + strcpy.
29949         * lib/human.c: Assume <locale.h> exists.
29950         (human_readable): Assume localeconv exists.
29951
29952 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
29953
29954         * modules/hard-locale (Depends-on): Add strdup.
29955
29956 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
29957
29958         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
29959         convert T2, not T.  (Imported from libc.)
29960
29961 2004-11-30  Simon Josefsson  <jas@extundo.com>
29962
29963         * modules/restrict (License): Change to LGPL.
29964
29965 2004-11-30  Simon Josefsson  <jas@extundo.com>
29966
29967         * m4/restrict.m4: Add copyright and copying conditions.
29968
29969 2004-11-30  Simon Josefsson  <jas@extundo.com>
29970
29971         * m4/base64.m4: New file.
29972
29973 2004-11-30  Simon Josefsson  <jas@extundo.com>
29974
29975         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
29976         base64.
29977
29978         * tests/test-base64.c: New file.
29979
29980         * modules/base64: New file.
29981
29982 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
29983
29984         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
29985         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
29986
29987         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
29988
29989 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
29990
29991         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
29992         (__getcwd.c): Don't restore errno; glibc doesn't.
29993         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
29994         first, falling back to our code only if its results look suspicious.
29995         Ensure that the resulting buffer is only as large as necessary.
29996
29997         * lib/readutmp.c: Include readutmp.h first.
29998         Include <errno.h>, since readutmp.h no longer does that.
29999         * lib/readutmp.h: Don't include <errno.h>,
30000         <sys/param.h>, <time.h>; not needed to establish interface.
30001         (errno): Remove decl.
30002         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
30003         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
30004         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
30005
30006 2004-11-28  Simon Josefsson  <jas@extundo.com>
30007
30008         * lib/base64.h, base64.c: New file.
30009
30010 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
30011
30012         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
30013
30014 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
30015
30016         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
30017         (Depends-on): Remove pathmax, same.  Add mempcpy.
30018         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
30019         (Makefile.am): Append getcwd.h to lib_SOURCES.
30020         (Include): Add getcwd.h.
30021         (Maintainer): Change from Jim Meyering to "all, glibc",
30022         since getdate now uses intended-for-glibc code.
30023         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
30024         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
30025
30026 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
30027
30028         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
30029         HP's ANSI C compiler.
30030         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
30031         Declaring int functions causes warnings on some modern systems and
30032         shouldn't be needed to compile on ancient ones.
30033         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
30034         defined.
30035
30036         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
30037         with the following changes.
30038         (__set_errno): Parenthesize properly.
30039         Include <stdbool.h>.
30040         (MIN, MAX, MATCHING_INO): New macros.
30041         (__getcwd): Define with prototype, not K&R form.
30042         Use heuristics to allocate default buffer on stack if possible.
30043         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
30044         behavior, and to avoid the PATH_MAX limit when computing
30045         ../../../../...
30046         Use MATCHING_INO to compare inode number to file.
30047         Check for arithmetic overflow in size calculations.
30048         Fix bug in reallocation of dot array that caused getcwd to fail
30049         on directories nested deeper than 75.
30050         Be more careful about saving errno on error.
30051         Do not use realloc; use only free+malloc, as this is a bit
30052         more flexible and avoids a needless copy operation.
30053         Do not inspect st_dev and st_ino for symbolic links; POSIX
30054         doesn't specify the latter.
30055         Check for closedir errors.
30056         Avoid needless casts.
30057         Use "#ifdef weak_alias" around weak_alias, to be like other
30058         glibc code.
30059         The following changes to getcwd.c have effect only when used in
30060         gnulib; they have no effect inside glibc proper.
30061         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
30062         as alloca isn't used.
30063         (alloca, __alloca): Likewise.
30064         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
30065         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
30066         unconditionally, as gnulib assumes C89 or better.
30067         Do not include <sys/param.h>.
30068         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
30069         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
30070         better.
30071         (NULL) [!defined NULL]: Remove; we assume C89 or better.
30072         Include <dirent.h> in a way that is compatible with modern Autoconf.
30073         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
30074         New macros, if not already defined.
30075         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
30076         Use "_LIBC", not "defined _LIBC", for consistency.
30077         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
30078         a mempcpy module.
30079         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
30080         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
30081         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
30082         credit only to Jim Meyering and adjust the copyright dates.
30083         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
30084         <stdlib.h>, <unistd.h>, "pathmax.h".
30085         Instead, include "xgetcwd.h" (first) and "getcwd.h".
30086         (INITIAL_BUFFER_SIZE): Remove.
30087         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
30088
30089 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
30090
30091         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
30092         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
30093         Use the _ONCE methods, for efficiency.
30094         Check for fcntl.h.  In test program, include <errno.h>
30095         and <fcntl.h> if available.  Remove old K&R cruft from
30096         test program.  Check for common errors in GNU/Linux,
30097         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
30098         don't do AC_LIBOBJ, as that's getcwd.m4's job.
30099         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
30100         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
30101         name accordingly.
30102         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
30103         accommodate new getcwd.c.
30104         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
30105         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
30106         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
30107         that's all we need now.
30108
30109 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30110
30111         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
30112         argp-parse.c depends on getopt internals, that means we should
30113         always use our getopt, to be on the safe side.
30114         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
30115         order not to spoil the result of an eventual previous invocation
30116         of gl_GETOPT_SUBSTITUTE.
30117
30118 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30119
30120         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
30121         redefinition warnings. To avoid them, include the defines
30122         in `#if !defined __need_getopt ... #endif'. The only place
30123         where __getopt_argv_const is used is in definitions
30124         of getopt_long and getopt_long_only below, which are as well
30125         protected by `#ifndef __need_getopt'.
30126         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
30127         __need_getopt after including <stdio.h> and <unistd.h> These
30128         headers might have defined it.
30129
30130 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
30131
30132         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
30133
30134 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
30135
30136         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
30137         (futimens): New function, which uses futimes if available.
30138         (futimens, utimens): Support timespec==NULL, with same semantics
30139         as utime and utimens.
30140         * lib/utimens.h (futimens): New decl.
30141
30142 2004-11-23  Jim Meyering  <jim@meyering.net>
30143
30144         * lib/getopt_.h: Remove trailing blanks.
30145
30146 2004-11-23  Jim Meyering  <jim@meyering.net>
30147
30148         * lib/__fpending.c: Add comment.
30149
30150 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
30151
30152         * modules/canonicalize (Depends-on): Add xreadlink.
30153         Problem reported by James Youngman.
30154
30155 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
30156
30157         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
30158         New macros.
30159         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
30160         optopt): Use them instead of invoking ## directly; otherwise, the
30161         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
30162
30163 2004-11-19  Bruno Haible  <bruno@clisp.org>
30164
30165         * lib/strtok_r.c: Move comments from here...
30166         * lib/strtok_r.h: ... to here.
30167
30168 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
30169
30170         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
30171         implementations that mishandle size_t overflow.
30172
30173 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
30174
30175         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
30176         might fail.  Problem reported by Yoann Vandoorselaere.
30177         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
30178         implementations that mishandle size_t overflow.
30179
30180 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30181
30182         * modules/canon-host (Depends-on): Add strdup.
30183
30184 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30185
30186         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
30187
30188 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30189
30190         * lib/canon-host.c: Include "strdup.h".
30191         (canon_host): Use getaddrinfo if available, so that IPv6 works.
30192         Use strdup instead of malloc/strcpy to duplicate strings.
30193
30194         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
30195         (human_space_before_unit): New constant.
30196         * lib/human.c (human_readable): Support it.
30197
30198         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
30199         (xgetcwd): Set errno correctly when failing.
30200         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
30201         the failure is actually due to a PATH_MAX problem.
30202
30203         Further getopt changes to make it more likely that glibc will
30204         buy the changes back.
30205         * lib/getopt.c (POSIXLY_CORRECT): New constant.
30206         (getopt): Use it, so to preserve glibc semantic
30207         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
30208         when compiling for libc.
30209         * lib/getopt_.h (__getopt_argv_const): Bring it back.
30210         (getopt_long, getopt_long_only): Use it.
30211
30212         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
30213         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
30214         (getopt): Argv is now char * const *, as per standard.
30215         (_getopt_internal_r, _getopt_internal): Argv is now char **,
30216         not char *__getopt_argv_const *.
30217         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
30218         _getopt_long_only_r): Likewise.
30219         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
30220         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
30221         _getopt_long_r, _getopt_long_only_r): Likewise.
30222         * lib/getopt_.h (__getopt_argv_const): Remove.
30223         (getopt): Argv is now char * const *, as per standard.
30224
30225         * lib/getdate.y (tORDINAL): New token.
30226         (day, relunit): Allow it for relative times.
30227         (relative_time_table): Use tORDINAL for ordinals.
30228
30229 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30230
30231         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
30232         Document that "second" isn't allowed as an ordinal number.
30233
30234 2004-11-16  Jim Meyering  <jim@meyering.net>
30235
30236         * modules/closeout (Depends-on): Add fpending.
30237
30238 2004-11-15  Jim Meyering  <jim@meyering.net>
30239
30240         * lib/closeout.c: Include "__fpending.h" once again.
30241         Include <stdbool.h>.
30242         (close_stdout): Don't fail just because stdout was closed initially,
30243         since some programs don't write to stdout in the normal course of
30244         operation (other than --version and --help), and we don't want this
30245         function to make e.g. `touch file >&-' fail.
30246         But do fail if it was closed and someone has tried to write to it.
30247         E.g., `printf foo >&-' must fail.
30248
30249 2004-11-13  Jim Meyering  <jim@meyering.net>
30250
30251         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
30252
30253 2004-11-12  Simon Josefsson  <jas@extundo.com>
30254
30255         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
30256         small doc fix is still pending.
30257
30258 2004-11-11  Simon Josefsson  <jas@extundo.com>
30259
30260         * modules/strtok_r: New file.
30261
30262         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30263         strtok_r.
30264
30265 2004-11-11  Simon Josefsson  <jas@extundo.com>
30266
30267         * m4/strtok_r.m4: New file.
30268
30269         * m4/getopt.m4: Replace opterr.
30270
30271 2004-11-11  Simon Josefsson  <jas@extundo.com>
30272
30273         * lib/strtok_r.h, strtok_r.c: New file.
30274
30275 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
30276
30277         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
30278         of replacing opterr, getopt, etc.  This should handle the
30279         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
30280
30281 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
30282
30283         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
30284         we can stop lying to compilers about the constness of argv when we
30285         are compiled outside glibc.
30286         (getopt, getopt_long, getopt_long_only): Use it.
30287         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
30288         _getopt_internal, getopt): Likewise.
30289         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
30290         _getopt_long_only_r): Likewise.
30291         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
30292         _getopt_long_r, _getopt_long_only_r): Likewise.
30293
30294         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
30295         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
30296         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
30297         the other external symbols.
30298         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
30299         declaration, since the above renaming now works around collisions.
30300
30301 2004-11-11  Jim Meyering  <jim@meyering.net>
30302
30303         * lib/linebreak.c: Remove trailing blanks.
30304         * lib/alloca_.h: Likewise.
30305         * lib/acosl.c: Likewise.
30306         * lib/euidaccess.c: Likewise.
30307         * lib/allocsa.h: Likewise.
30308
30309 2004-11-10  Simon Josefsson  <jas@extundo.com>
30310
30311         * m4/getaddrinfo.m4: New file.
30312
30313 2004-11-10  Simon Josefsson  <jas@extundo.com>
30314
30315         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
30316
30317 2004-11-10  Simon Josefsson  <jas@extundo.com>
30318
30319         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30320         getaddrinfo.
30321
30322         * modules/getaddrinfo: New file.
30323
30324 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30325
30326         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
30327
30328 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30329
30330         * lib/mktime.c (SHR): New macro, which is a portable
30331         substitute for >> that should work even on Crays.
30332         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
30333         Problem reported by Mark D. Baushke in
30334         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
30335         * lib/getdate.y (SHR): Likewise.
30336         (tm_diff): Use it.
30337         * lib/strftime.c (SHR): Likewise.
30338         (tm_diff): Use it.
30339         * lib/quotearg.c (struct quoting_options): Use unsigned int for
30340         quote_these_too, so that right shifts are well defined.  All uses
30341         changed.
30342
30343 2004-11-10  Jim Meyering  <jim@meyering.net>
30344
30345         Ensure that no close failure goes unreported.
30346         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
30347         return early when it seems there's nothing to flush.
30348         Don't include __fpending.h.
30349
30350 2004-11-10  Jim Meyering  <jim@meyering.net>
30351
30352         * modules/closeout (Depends-on): Remove fpending.
30353
30354 2004-11-10  Jim Meyering  <jim@meyering.net>
30355
30356         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
30357
30358 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30359
30360         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
30361         gl_FUNC_STRFTIME.
30362         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
30363         and AC_REQUIRE when possible, to avoid duplicate checks.
30364         Check for <wchar.h>.
30365
30366 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30367
30368         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
30369
30370 2004-11-09  Bruno Haible  <bruno@clisp.org>
30371
30372         * m4/sockpfaf.m4: New file.
30373
30374 2004-11-05  Bruno Haible  <bruno@clisp.org>
30375
30376         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
30377         Reported by Mark D. Baushke <mdb@cvshome.org>.
30378
30379 2004-11-04  Bruno Haible  <bruno@clisp.org>
30380
30381         2004-09-11  Bruno Haible  <bruno@clisp.org>
30382                 * allocsa.valgrind: New file.
30383         2004-02-06  Bruno Haible  <bruno@clisp.org>
30384                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
30385                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
30386                 Reported by Christopher Seip <chris.seip@hp.com>.
30387
30388 2004-11-04  Bruno Haible  <bruno@clisp.org>
30389
30390         * modules/allocsa (Files): Add lib/allocsa.valgrind.
30391         (Makefile.am): Distribute it.
30392
30393 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30394
30395         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
30396         with errno == ERANGE if the buffer is too small.
30397         Problem reported by Mark D. Baushke.
30398
30399 2004-11-03  Albert Chin  <china@thewrittenword.com>
30400             Paul Eggert  <eggert@cs.ucla.edu>
30401
30402         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
30403         equivalent, substitute $ac_type for equivalent type rather than
30404         blindly using uint32_t *always* which won't work if uint32_t is not
30405         available.  Define _UINT32_T to work around typedef of uint32_t if
30406         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
30407         2.5.1.
30408
30409 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30410
30411         * m4/jm-macros.m4: Sync from coreutils.
30412         (gl_MACROS): Check for mbrlen, for pathchk.
30413         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
30414
30415 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30416
30417         * lib/xreadlink.c (MAXSIZE): New macro.
30418         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
30419         size does not exceed MAXSIZE.  Avoid cast.
30420         As suggested by Mark D. Baushke in
30421         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
30422         if readlink fails with buffer size just under MAXSIZE, try again
30423         with MAXSIZE.
30424
30425 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30426
30427         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
30428
30429 2004-11-02  Derek R. Price  <derek@ximbiot.com>
30430         and  Paul Eggert  <eggert@cs.ucla.edu>
30431
30432         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
30433         (get_date): Overparenthesize to avoid GCC warning.
30434
30435 2004-11-02  Bruno Haible  <bruno@clisp.org>
30436
30437         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
30438         returns void.
30439
30440 2004-11-02  Bruno Haible  <bruno@clisp.org>
30441
30442         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
30443         function returns void.
30444
30445 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30446
30447         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
30448         fflush_unlocked, flockfile, funlockfile, funlockfile,
30449         fputs_unlocked, putc_unlocked.
30450
30451 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30452
30453         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30454         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
30455         already declared.
30456
30457 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30458
30459         * modules/getdate (Files): Add doc/getdate.texi.
30460         (Depends-on): Add setenv, xalloc.
30461
30462 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30463
30464         * lib/getdate.y: Add support for TZ="foo" within a date string.
30465         Fix some bugs near time_t boundaries.  Reject dates with
30466         out-of-range components, e.g., "Sept 31".
30467         Include <stdlib.h>, "setenv.h", "xalloc.h".
30468         (ISDIGIT_LOCALE): Remove; unused.
30469         Note that the TZ and time functions used here are not reentrant.
30470         (mktime_ok, get_tz): New functions.
30471         (TZBUFSIZE): New constant.
30472         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
30473         This requires that we sometimes generate our own TZ="XXX..." setting.
30474
30475 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30476
30477         * doc/getdate.texi: New file, from coreutils with modifications for
30478         the new TZ parsing.
30479
30480 2004-10-27  Derek R. Price  <derek@ximbiot.com>
30481
30482         * lib/mktime.c (not_equal_tm): Remove redundant check.
30483
30484 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30485
30486         * modules/regex (lib_SOURCES): Add regex.c.
30487         Reported by James Youngman in
30488         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
30489
30490 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30491
30492         * lib/getdate.y: Use Bison 1.875 features, and some minor
30493         code cleanups.  This change does not affect semantics.
30494         Don't include <stdlib.h>; no longer needed.
30495         Don't include unlocked-io.h; only the "#if TEST" code uses
30496         stdio, and performance isn't crucial there.
30497         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
30498         Bison 1.875 features as described below.
30499         All uses of "PC." replaced by "pc->".
30500         (YYSTYPE): Add a forward declaration.
30501         (yylex, yyerror): Use full prototypes in forward decls.
30502         Use "%pure-parser" rather than obsolescent "%pure_parser".
30503         Use %parse-param and %lex-param instead of obsolescent
30504         YYPARSE_PARAM and YYLEX_PARAM.
30505         (meridian_table, month_and_day_table, time_units_table,
30506         relative_time_table, time_zone_table, military_table,
30507         lookup_zone, lookup_word, get_date):
30508         Use NULL instead of 0 where appropriate.
30509         (to_hour): Avoid abort (), to avoid a dependency on
30510         stdlib.h.
30511         (yyerror, yylex): Now accepts parser_control * arg.
30512         (main) [TEST]: Use '\0' rather than 0 for char.
30513
30514 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30515
30516         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
30517
30518 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30519
30520         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
30521         It's now the caller's responsibility to handle the case where
30522         !HAVE_GETPAGESIZE && !defined getpagesize.
30523
30524         * lib/mktime.c (leapyear): Arg is long int, not int.
30525
30526 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30527
30528         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
30529
30530 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30531
30532         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
30533         missing.  Problem reported by James Youngman.
30534
30535 2004-10-16  Simon Josefsson  <jas@extundo.com>
30536
30537         * gnulib-tool: Fix comments.  Fix parse problem.
30538         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
30539
30540 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
30541
30542         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
30543         implementation of getopt_long.  Problem reported by Alexander Taler in:
30544         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
30545
30546 2004-10-15  Bruno Haible  <bruno@clisp.org>
30547
30548         * gnulib-tool: Untabify. Initialize supplied_libname.
30549         (func_usage): More homogenous output.
30550         (func_modules_transitive_closure, func_modules_to_filelist,
30551         func_emit_lib_Makefile_am): New functions.
30552         (func_import): New function, extracted from big case statement. Use
30553         func_get_license, func_modules_transitive_closure,
30554         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
30555         opt_lgpl. Don't use test -a, as it's not portable.
30556         (func_create_testdir): Use func_modules_transitive_closure,
30557         func_modules_to_filelist, func_emit_lib_Makefile_am.
30558
30559 2004-10-15  Bruno Haible  <bruno@clisp.org>
30560
30561         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
30562
30563 2004-10-15  Bruno Haible  <bruno@clisp.org>
30564
30565         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
30566         the portions belonging to each module.
30567         Suggested by Derek Robert Price <derek@ximbiot.com>.
30568
30569 2004-10-12  Simon Josefsson  <jas@extundo.com>
30570
30571         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30572         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
30573         to real functions.
30574
30575 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30576
30577         * modules/vsnprintf: New file.
30578
30579 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30580
30581         * m4/vsnprintf.m4: New file.
30582
30583 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30584
30585         * lib/vsnprintf.h: New file.
30586         * lib/vsnprintf.c: New file.
30587
30588 2004-10-11  Bruno Haible  <bruno@clisp.org>
30589
30590         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
30591         vsnprintf.
30592
30593 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30594
30595         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
30596
30597 2004-10-07  Bruno Haible  <bruno@clisp.org>
30598
30599         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
30600         fits into the provided buffer.
30601
30602 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30603
30604         * lib/diacrit.c, diacrit.h: Add GPL notice.
30605
30606         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
30607         notice.
30608         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
30609         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
30610         This avoids a potential constant-folding bug.
30611
30612 2004-10-05  Bruno Haible  <bruno@clisp.org>
30613
30614         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
30615         for the declaration of strsep.
30616
30617 2004-10-05  Bruno Haible  <bruno@clisp.org>
30618
30619         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
30620
30621 2004-10-04  Simon Josefsson  <jas@extundo.com>
30622
30623         * modules/memmem: New file.
30624         * tests/test-memmem.c: New file.
30625         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
30626
30627 2004-10-04  Simon Josefsson  <jas@extundo.com>
30628
30629         * m4/memmem.m4: New file.
30630
30631 2004-10-04  Simon Josefsson  <jas@extundo.com>
30632
30633         * lib/memmem.h: New file.
30634         * lib/memmem.c: New file, taken from glibc.
30635
30636 2004-10-04  Simon Josefsson  <jas@extundo.com>
30637
30638         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
30639         '#ifdef USE_UNLOCKED_IO'.
30640
30641 2004-10-04  Simon Josefsson  <jas@extundo.com>
30642
30643         * config/srclist.txt: Add memmem from glibc.
30644
30645 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30646
30647         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
30648
30649         * modules/argmatch, modules/argp, modules/closeout, modules/error,
30650         modules/exclude, modules/getdate, modules/getline,
30651         modules/getndelim2, modules/getpass, modules/getpass-gnu,
30652         modules/getusershell, modules/linebuffer, modules/md5,
30653         modules/mountlist, modules/posixtm, modules/readtokens,
30654         modules/readutmp, modules/regex, modules/sha1,
30655         modules/version-etc, modules/yesno:
30656         Remove dependency on unlocked-io.
30657
30658 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30659
30660         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
30661
30662         * m4/unlocked-io.m4: Add copyright notice.
30663         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
30664
30665 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30666
30667         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
30668         * lib/xmalloc.c (xmemdup): Likewise.
30669         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
30670         XFREE): Remove these long-obsolescent macros.
30671         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
30672         * lib/xstrdup.c: Remove.
30673
30674         * lib/regex.c (re_comp): Cast gettext return value to char *,
30675         Problem reported by Martin Neitzel via Mark D. Baushke.
30676
30677 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30678
30679         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
30680         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
30681         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
30682         regex.c, sha1.c, version-etc.c, yesno.c:
30683         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
30684         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
30685         the includer's responsibility.
30686
30687         Sync from coreutils.
30688
30689         * lib/modechange.c (mode_compile): Don't decrement a pointer that
30690         points to the start of a string, as the C Standard says the
30691         resulting behavior is undefined.
30692
30693         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
30694         simple -> simple_backups, numbered_existing ->
30695         numbered_existing_backups, numbered -> numbered_backups
30696         to avoid shadowing problems.  All uses changed.
30697         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
30698         * lib/backupfile.c (check_extension, numbered_backup):
30699         Rename locals to avoid shadowing 'basename'.
30700         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
30701         once.
30702
30703         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
30704         * lib/.cvsignore: Add getopt.h.
30705
30706 2004-10-04  Bruno Haible  <bruno@clisp.org>
30707
30708         * modules/README: New file.
30709         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
30710         not a module.
30711
30712 2004-10-02  Jim Meyering  <jim@meyering.net>
30713
30714         * lib/dirfd.h, getpagesize.h: Add copyright notice.
30715
30716 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30717
30718         * modules/strsep: New file.
30719
30720 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30721
30722         * m4/strsep.m4: New file.
30723
30724 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30725
30726         * lib/strsep.h: New file.
30727         * lib/strsep.c: New file.
30728
30729 2004-10-01  Simon Josefsson  <jas@extundo.com>
30730
30731         * lib/snprintf.c (snprintf): Handle size==0.
30732
30733 2004-10-01  Simon Josefsson  <jas@extundo.com>
30734             Bruno Haible  <bruno@clisp.org>
30735
30736         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
30737         (snprintf): Declare 'args'.
30738
30739 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
30740
30741         * lib/snprintf.c: Remove comments as to why each header is needed.
30742
30743 2004-10-01  Bruno Haible  <bruno@clisp.org>
30744
30745         * MODULES.html.sh: Add strsep.
30746
30747 2004-09-30  Simon Josefsson  <jas@extundo.com>
30748
30749         * modules/snprintf: New file.
30750
30751 2004-09-30  Simon Josefsson  <jas@extundo.com>
30752
30753         * m4/snprintf.m4: New file.
30754
30755 2004-09-30  Simon Josefsson  <jas@extundo.com>
30756
30757         * lib/snprintf.h, lib/snprintf.c: New files.
30758
30759 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30760
30761         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
30762         (hol_entry_help): Never translate an empty string.
30763         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
30764         * lib/argp.h (OPTION_NO_TRANS): New option.
30765
30766 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30767
30768         * modules/argp (Maintainer): Replace Simon Josefsson
30769         by Sergey Poznyakoff.
30770
30771 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30772
30773         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
30774         changes merged back into glibc.
30775
30776 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30777
30778         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
30779
30780 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
30781
30782         * lib/xvasprintf.c: Include xalloc.h.
30783         (xvasprintf): Use xalloc_die, not xmalloc_die.
30784
30785 2004-09-29  Bruno Haible  <bruno@clisp.org>
30786
30787         * modules/alloca-opt: New file, derived from modules/alloca.
30788         * modules/allocsa: Depend on alloca-opt instead of alloca.
30789         * modules/setenv: Likewise.
30790         * modules/vasnprintf: Likewise.
30791         * MODULES.html.sh: Add alloca-opt.
30792
30793 2004-09-28  Simon Josefsson  <jas@extundo.com>
30794
30795         * gnulib-tool: New parameter --lgpl, to asseert that modules are
30796         LGPL, and to replace license template from GPL to LGPL.
30797
30798 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
30799
30800         * modules/dummy: Change license to LGPL.
30801
30802 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
30803
30804         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
30805
30806 2004-09-24  Simon Josefsson  <jas@extundo.com>
30807
30808         * modules/minmax (License): Change from GPL to LGPL.
30809
30810 2004-09-23  Simon Josefsson  <jas@extundo.com>
30811
30812         * gnulib-tool (--import): Typo.
30813
30814 2004-09-23  Simon Josefsson  <jas@extundo.com>
30815
30816         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
30817
30818 2004-09-22  Bruno Haible  <bruno@clisp.org>
30819
30820         * modules/*: Add 'License' field.
30821         * gnulib-tool: Accept --extract-license option.
30822         (func_get_license): New function.
30823
30824 2004-09-21  Bruno Haible  <bruno@clisp.org>
30825
30826         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
30827         Reported by Simon Josefsson.
30828
30829 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30830
30831         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
30832         gl_AC_TYPE_LONG_LONG.
30833
30834 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30835
30836         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
30837
30838 2004-09-18  Simon Josefsson  <jas@extundo.com>
30839         and  Paul Eggert  <eggert@cs.ucla.edu>
30840
30841         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
30842         calls with autoreconf.  Define GL_LIB.
30843
30844 2004-09-14  Karl Berry  <karl@gnu.org>
30845
30846         * config/srclist.txt: unsync setenv.c, sigh.
30847
30848 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30849
30850         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
30851         Problem reported by Bruno Haible in:
30852         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
30853
30854 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30855
30856         * config/srclist.txt: Comment out argp-pvh.c.
30857
30858 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
30859
30860         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
30861         in case some system header has #define'd it.  Problem reported by
30862         Soeren D. Schulze in
30863         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
30864
30865 2004-09-09  Karl Berry  <karl@gnu.org>
30866
30867         * regex.[ch]: delete from the root.  These were supposed to be
30868                 synced with emacs cvs, but this has not happened for about
30869                 a year, and anyway nothing else uses emacs regex.[ch].
30870                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
30871                 lib/regex[.ch] is untouched.
30872
30873 2004-09-09  Bruno Haible  <bruno@clisp.org>
30874
30875         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
30876
30877 2004-09-09  Bruno Haible  <bruno@clisp.org>
30878
30879         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
30880         modifications.
30881         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
30882
30883 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
30884
30885         * modules/xvasprintf: New file.
30886         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
30887
30888 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
30889
30890         * lib/xvasprintf.h: New file.
30891         * lib/xvasprintf.c: New file.
30892         * lib/xasprintf.c: New file.
30893
30894 2004-09-08  Bruno Haible  <bruno@clisp.org>
30895
30896         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
30897
30898 2004-09-08  Bruno Haible  <bruno@clisp.org>
30899
30900         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
30901         length is > INT_MAX.
30902         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
30903         more.
30904
30905 2004-09-08  Bruno Haible  <bruno@clisp.org>
30906
30907         * lib/stdint_.h: New file, taken from GNU clisp.
30908
30909 2004-09-08  Bruno Haible  <bruno@clisp.org>
30910             Oskar Liljeblad  <oskar@osk.mine.nu>
30911
30912         * modules/stdint: New file.
30913         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
30914
30915 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30916
30917         Import from coreutils.
30918         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
30919         strings on unbounded length.  alloca's performance benefits aren't
30920         that important here.
30921         (V_STRDUP): Remove.
30922         (parse_with_separator): New function, with most of the internals
30923         of the old parse_user_spec.  Allow user to omit both user and group,
30924         for compatibility with FreeBSD.
30925         Clone only the user name, not the entire spec.
30926         Do not set *uid, *gid unless entirely successful.
30927         Avoid memory leak in some failing cases.
30928         Fix regression for USER.GROUP reported by Dmitry V. Levin in
30929         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
30930         (parse_user_spec): Rewrite to use parse_with_separator.
30931
30932 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30933
30934         * modules/userspec: Don't depend on alloca.
30935
30936 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30937
30938         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
30939
30940 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30941
30942         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
30943         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
30944         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
30945
30946 2004-08-16  Simon Josefsson  <jas@extundo.com>
30947
30948         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
30949         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
30950         Add --dry-run for --import.
30951         Let user provided command line parameters override configure.ac
30952         settings.
30953
30954 2004-08-12  Simon Josefsson  <jas@extundo.com>
30955
30956         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
30957         as discussed with Paul Eggert in threads rooted at
30958         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
30959         and
30960         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
30961         Before, the test was empty, and relied on ELIDE_CODE in source
30962         code.)
30963         (gl_PREREQ_GETOPT): New macro.
30964         (gl_GETOPT): Use them.
30965
30966 2004-08-12  Simon Josefsson  <jas@extundo.com>
30967
30968         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
30969         * lib/getopt_.h: Renamed from getopt.h.
30970
30971 2004-08-12  Simon Josefsson  <jas@extundo.com>
30972
30973         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
30974         Change default library name from libfoo to libgnu.
30975         Now, if you have a configure.ac that says:
30976                 gl_SOURCE_BASE(gl)
30977                 gl_M4_BASE(gl/m4)
30978                 gl_MODULES(error getopt etcetera)
30979                 gl_INIT
30980         you can import all you need by running:
30981                 ../gnulib/gnulib-tool --import
30982
30983         * modules/getopt (Files): Rename getopt.h to getopt_.h.
30984         (Makefile.am): Rewrite, use logic from argz.
30985         (Include): Use <getopt.h> instead of "getopt.h".
30986
30987 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30988
30989         * modules/argp (Files): Add m4/unlocked-io.m4.
30990         (Depends-on): Add extensions.
30991
30992 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
30993
30994         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
30995         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
30996         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
30997         Check for program_invocation_name, program_invocation_short_name,
30998         flockfile, funlockfile, features.h, _getopt_long_only_r.
30999
31000 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31001
31002         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
31003         its complicated substitute.
31004         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
31005         and program_invocation_name.
31006         (__argp_basename) [!_LIBC]: Remove; the only use was
31007         replaced by its body.
31008         (__argp_short_program_name): Change condition from
31009         !defined __argp_short_program_name to
31010         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
31011         to match argp-namefrob.h.
31012         (__argp_failure): Don't assume strerror_r returns char *.
31013         * lib/argp-parse.c (N_): Define unconditionally.
31014         (argp_default_options): Fill out initializers with 0 to avoid
31015         gcc warnings.
31016
31017 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31018
31019         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
31020         getopt1.c.
31021
31022 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31023
31024         Merge from coreutils.
31025
31026         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
31027
31028         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
31029         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
31030
31031 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31032
31033         Merge from coreutils.
31034
31035         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
31036         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
31037         for Reliant Unix 5.43.
31038
31039         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
31040         (union fooround): Use uintmax_t, not long int.
31041         The rest is a merge from libc:
31042         [defined _LIBC]: Include <shlib-compat.h>.
31043         (_obstack) [defined _LIBC]: Remove after 2.3.4.
31044
31045         * lib/settime.c (settime): Recode to avoid warning with
31046         Sun Forte C 6U2.
31047
31048         * lib/strverscmp.c: Convert to UTF-8.
31049
31050 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31051
31052         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
31053         m4/uintmax_t.m4.
31054
31055 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31056
31057         * modules/xalloc-die: New file.
31058         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
31059
31060         * modules/md5 (Files): Add m4/uint32_t.m4.
31061         * modules/sha1: Renamed from modules/sha.
31062         (Files):
31063         Rename lib/sha.h to lib/sha1.h.
31064         Rename lib/sha.c to lib/sha1.c.
31065         Rename m4/sha.m4 to m4/sha1.m4.
31066         (lib_SOURCES): Likewise.
31067         (configure.ac): Rename gl_SHA to gl_SHA1.
31068         (Include): sha.h -> sha1.h.
31069
31070 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31071
31072         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
31073         * m4/sha1.m4: Renamed from sha.m4.
31074         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
31075
31076 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31077
31078         * lib/obstack.h (obstack_empty_p):
31079         Don't assume that chunk->contents is suitably aligned.
31080         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
31081         Likewise. Problem reported by Benno in
31082         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
31083
31084         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
31085         readable.  This could be improved further but it'd take some work.
31086
31087 2004-08-08  Simon Josefsson  <jas@extundo.com>
31088
31089         * modules/xgethostname (Depends-on): Remove exit and error (not
31090         used).
31091
31092         * modules/getpass-gnu: Add getpass.h.
31093         (Depends-on): Add stdbool.
31094         * modules/getpass: Add getpass.h.
31095
31096 2004-08-08  Simon Josefsson  <jas@extundo.com>
31097
31098         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
31099         Check getpass declaration.
31100
31101 2004-08-08  Simon Josefsson  <jas@extundo.com>
31102
31103         * lib/xgethostname.c: Don't include error.h (not used).
31104
31105         * lib/getpass.h: Add.
31106         * lib/getpass.c: Include getpass.h first.
31107
31108 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
31109
31110         * lib/xalloc-die.c: New file.
31111         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
31112         All uses removed.
31113         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
31114         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
31115         xalloc-die.c.
31116         (_, N_, xalloc_die): Move to xalloc-die.c.
31117         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
31118         so that we needn't mess with xalloc_msg_memory_exhausted.
31119
31120         * lib/sha1.h: Renamed from sha.h.
31121         (SHA1_H): Renamed from _SHA_H.
31122         (sha1_ctx): Renamed from sha_ctx.
31123         (sha1_init_ctx): Renamed from sha_init_ctx.
31124         (sha1_process_block): Renamed from sha_process_block.
31125         (sha1_process_bytes): Renamed from sha_process_bytes.
31126         (sha1_finish_ctx): Renamed from sha_finish_ctx.
31127         (sha1_read_ctx): Renamed from sha_read_ctx.
31128         (sha1_stream): Renamed from sha_stream.
31129         (sha1_buffer): Renamed from sha_buffer.
31130         * lib/sha1.c: Likewise; renamed from sha.c.
31131         Do not include <sys/types.h>.
31132         Include <stddef.h> rather than <stdlib.h>.
31133
31134 2004-08-08  Bruno Haible  <bruno@clisp.org>
31135
31136         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
31137         FILESYSTEM_PREFIX_LEN.
31138         * lib/progreloc.c: Likewise.
31139         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
31140
31141 2004-08-06  Simon Josefsson  <jas@extundo.com>
31142
31143         * modules/progname (Depends-on): Don't depend on stdbool.
31144
31145 2004-08-06  Simon Josefsson  <jas@extundo.com>
31146
31147         * modules/getsubopt: New file.
31148         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31149         getsubopt.
31150
31151 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31152
31153         More merge from coreutils.
31154
31155         * m4/utimens.m4, m4/utimecmp.m4: New files.
31156         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
31157         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
31158         prereq.m4, sha.m4: Import changes from coreutils.
31159
31160 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31161
31162         More merge from coreutils.
31163         * modules/raise, modules/readtokens0, modules/utimens:
31164         * modules/utimecmp, module/xnanosleep: New files.
31165         * modules/strftime: Add lib/strftime.h.
31166         Change include from <time.h> to "strftime.h".
31167         * modules/yesno: Add lib/yesno.h.
31168         * modules/backupfile: Remove lib/addext.c.
31169         * modules/euidaccess: Add stat-macros.h.
31170         * modules/canonicalize, modules/euidaccess,
31171         modules/filemode, modules/lchown, modules/makepath,
31172         modules/rmdir, modules/stat: Likewise.
31173
31174 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31175
31176         Merge from tar.
31177         * lib/argp-help.c (make_hol, hol_append): Don't assume that
31178         SIZE_MAX is a valid preprocessor constant.
31179         (__argp_basename): Change from "#ifndef _LIBC"
31180         to "#ifndef __argp_short_program_name", so that
31181         we don't compile these functions for tar.
31182
31183         More merges from coreutils.
31184         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
31185         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
31186         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
31187         * lib/addext.c: Remove; no longer needed.
31188         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
31189         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
31190         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
31191         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
31192         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
31193         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
31194         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
31195         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
31196         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
31197         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
31198         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
31199         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
31200         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
31201         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
31202         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
31203         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
31204         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
31205         Import changes from coreutils.
31206
31207 2004-08-05  Simon Josefsson  <jas@extundo.com>
31208
31209         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
31210
31211 2004-08-05  Simon Josefsson  <jas@extundo.com>
31212
31213         * m4/getsubopt.m4: New file.
31214
31215 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31216
31217         Merge from coreutils.
31218
31219         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
31220         * m4/getcwd-path-max.m4: New files.
31221
31222         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
31223         FILESYSTEM_PREFIX_LEN ->
31224         FILE_SYSTEM_PREFIX_LEN.
31225         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
31226         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
31227         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
31228         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
31229
31230         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
31231         prerequisite modules now handle the DOS stuff.
31232         Don't check for unistd.h.
31233
31234 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31235
31236         Merge from coreutils.
31237
31238         * lib/.gdb-history: Remove; this doesn't belong here.
31239
31240         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
31241         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
31242         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
31243         * lib/getcwd.c: New files.
31244
31245         * lib/dirname.h: Include <stdbool.h>.
31246         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
31247         for consistency with POSIX terminology.  All uses changed.
31248         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
31249         (strip_trailing_slashes): Use bool for booleans.
31250         * lib/stripslash.c (strip_trailing_slashes): Likewise.
31251
31252         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
31253         sometimes returns a positive errno value even when it succeeds.
31254         (print_errno_message) [!LIBC]: Fall back on strerror if
31255         __strerror_r fails.
31256
31257         * lib/path-concat.c (mempcpy): Don't define if a system header defines
31258         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
31259         (longest_relative_suffix): New function.
31260         (path_concat): Use it.  Assume first argument is not NULL.
31261         Port to DOS.  Omit redundant separators.
31262         Report an error instead of returning NULL.
31263         Use mempcpy instead of memcpy.
31264         (xpath_concat): Remove: not declared or used.
31265
31266         * lib/same.h: Include <stdbool.h>
31267         (same_name): Return bool, not int.
31268         * lib/same.c (same_name): Likewise.
31269         (errno): Don't declare; we assume C89 or better now.
31270
31271         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
31272         if not already defined.
31273
31274         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
31275         * lib/dup-safer.c (errno): Likewise.
31276
31277 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31278
31279         Merge from coreutils.
31280         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
31281         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
31282         * modules/path-concat: Don't depend on strdup.
31283
31284 2004-08-03  Simon Josefsson  <jas@extundo.com>
31285
31286         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
31287         * lib/progname.h: Don't include stdbool.h.
31288
31289 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
31290
31291         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
31292         * MODULES.html.sh (func_all_modules): Remove fatal.
31293
31294 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
31295
31296         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
31297
31298 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
31299
31300         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
31301         working.
31302
31303 2004-08-02  Simon Josefsson  <jas@extundo.com>
31304
31305         * lib/getsubopt.h: New file, with comments from Bruno Haible.
31306         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
31307         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
31308
31309 2004-08-01  Simon Josefsson  <jas@extundo.com>
31310
31311         * lib/xgetdomainname.c: Include stdlib.h, for free().
31312
31313 2004-07-19  Bruno Haible  <bruno@clisp.org>
31314
31315         * MODULES.html.sh (func_all_modules): Add dummy.
31316
31317 2004-07-16  Simon Josefsson  <jas@extundo.com>
31318
31319         * modules/dummy: New file.
31320
31321 2004-07-16  Simon Josefsson  <jas@extundo.com>
31322
31323         * lib/dummy.c: New file.
31324
31325 2004-07-16  Bruno Haible  <bruno@clisp.org>
31326
31327         * lib/backupfile.h: Add extern "C" for C++.
31328         * lib/closeout.h: Likewise.
31329         * lib/copy-file.h: Likewise.
31330         * lib/findprog.h: Likewise.
31331         * lib/full-write.h: Likewise.
31332         * lib/pathname.h: Likewise.
31333         * lib/progname.h: Likewise.
31334         * lib/stpcpy.h: Likewise.
31335         * lib/stpncpy.h: Likewise.
31336         * lib/strcase.h: Likewise.
31337         * lib/strstr.h: Likewise.
31338         * lib/xalloc.h: Likewise.
31339
31340         * lib/mbswidth.h: Add extern "C" for C++.
31341         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
31342
31343 2004-07-13  Robert Millan  <robertmh@gnu.org>
31344
31345         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
31346
31347 2004-07-09  Simon Josefsson  <jas@extundo.com>
31348
31349         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
31350         failed without this.)
31351
31352 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31353
31354         * modules/chown (Files): Add lib/fchown-stub.c, since
31355         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
31356
31357 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31358
31359         * lib/fchown-stub.c: New file.
31360
31361 2004-06-24  Jim Meyering  <jim@meyering.net>
31362
31363         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
31364
31365 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31366
31367         * modules/argz: Omit "#include".
31368
31369         * MODULES.html.sh (func_all_modules): Add calloc, to match
31370         2004-06-01 addition of calloc module.
31371
31372 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31373
31374         * m4/argz.m4: New file, which is autoupdated from libtool.
31375
31376 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31377
31378         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
31379         libtool.
31380
31381 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31382
31383         * config/srclist-update: Don't insist on "USA." before the
31384         close-comment, as libtool omits the period and puts the */ on a
31385         separate line.
31386         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
31387         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
31388
31389 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
31390
31391         * modules/argz: New file.
31392         * MODULES.html.sh (func_all_modules): Add argz.
31393
31394 2004-06-12  Jim Meyering  <jim@meyering.net>
31395         and  Paul Eggert  <eggert@cs.ucla.edu>
31396
31397         * modules/hash (Files): Add lib/xalloc.h.
31398         * modules/pipe (Depends-on): Add wait-process.
31399         * modules/stat (Depends-on): Add xalloc.
31400         * modules/userspec (Files): Add lib/userspec.h.
31401         * modules/xstrto
31402
31403         Upgrade from gettext-0.13.
31404         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
31405         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
31406         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
31407
31408 2004-06-10  Jim Meyering  <jim@meyering.net>
31409
31410         * lib/calloc.c: New file.
31411
31412 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
31413
31414         * lib/getdate.y (yylex): Allow space between sign and number.
31415         Problem reported by Dan Jacobson.
31416
31417 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
31418
31419         Merge from coreutils CVS.
31420
31421         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
31422         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
31423         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
31424         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
31425         xstrtol.m4: Fix copyright date and/or serial number.
31426
31427         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
31428         See if we need an fchown replacement.
31429         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
31430         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
31431         and use the replacement function if we detect either defect.
31432
31433         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
31434         gl_UTIMECMP.
31435
31436 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
31437         and  Jim Meyering  <jim@meyering.net>
31438
31439         Merge from coreutils CVS.
31440
31441         * lib/stat-macros.h: New file, with contents from file-type.h
31442         and coreutils' system.h.
31443         * lib/file-type.c: Include "stat-macros.h".
31444         * lib/file-type.h (file_type): Move all macro definitions to new file,
31445         stat-macros.h.
31446
31447         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
31448         Wrap old code with this conditional.
31449         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
31450         function that does not dereference symlinks.
31451         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
31452
31453         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
31454         dependency problems.
31455         (xreadlink): Accept new arg SIZE, for efficiency.
31456         All decls and uses changed.
31457         * lib/xreadlink.h: Include <stddef.h>, for size_t.
31458
31459         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
31460         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
31461
31462         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
31463         sysexits.h.
31464
31465 2004-06-01  Jim Meyering  <jim@meyering.net>
31466
31467         * m4/calloc.m4: New file.
31468
31469 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
31470
31471         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
31472         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
31473         Also, fix a typo in a diagnostic.
31474
31475 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
31476
31477         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
31478         or AC_FUNC_REALLOC.
31479
31480 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
31481
31482         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
31483         macros to be defined.
31484         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
31485         the allocator returns NULL because the requested size is zero.
31486
31487 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31488
31489         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
31490         var.  Add comment explaining why libc still defines it.  This
31491         merges the following patch from glibc:
31492         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
31493
31494 2004-05-20  Andreas Schwab  <schwab@suse.de>
31495
31496         * m4/free.m4: Replace free if it not known to work, not the other
31497         way round.
31498
31499 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31500
31501         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
31502         present in glibc since revision 1.1 of this file.
31503         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
31504         obstack_alignment_mask, obstack_alloc, obstack_base,
31505         obstack_blank, obstack_blank_fast, obstack_chunk_size,
31506         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
31507         obstack_grow0, obstack_init, obstack_int_grow,
31508         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
31509         obstack_next_free, obstack_object_size, obstack_ptr_grow,
31510         obstack_ptr_grow_fast, obstack_room): Remove declarations of
31511         nonexistent functions.
31512
31513 2004-05-18  Karl Berry  <karl@gnu.org>
31514
31515         * config/srclist.txt: break link for vasnprintf.c.
31516
31517 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31518
31519         Port obstack to the AS/400, where pointers are 16 bytes wide and
31520         you cannot cast an integer to a valid pointer.  This patch is
31521         currently waiting to be integrated into glibc; see
31522         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
31523
31524         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
31525         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
31526         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
31527         (struct obstack): temp member is now a union of a pointer and
31528         an integer, instead of an integer.  All integer uses changed.
31529         This does not affect the physical layout of struct obstack,
31530         except on hosts (like the AS/400) where the size or alignment of
31531         void * is greater than that of ptrdiff_t.
31532         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
31533         __STDC__)]: Store temporary in pointer member of union, not
31534         integer member.
31535         * lib/obstack.c: Include <stddef.h>, for offsetof.
31536         (struct fooalign): Remove; it doesn't need a name.
31537         (union fooround): Change double to long double, and add void *.
31538         (DEFAULT_ALIGNMENT): Use offsetof to compute.
31539         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
31540         not a macro.  Hence the values are always int; so remove all
31541         casts-to-int in uses.
31542
31543 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31544
31545         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
31546         we can get this patch merged into glibc.
31547
31548 2004-05-17  Derek R. Price  <derek@ximbiot.com>
31549             Paul Eggert  <eggert@cs.ucla.edu>
31550
31551         * m4/argp: Depend on alloca.
31552
31553 2004-05-17  Derek R. Price  <derek@ximbiot.com>
31554             Paul Eggert  <eggert@cs.ucla.edu>
31555
31556         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
31557         freecoding.
31558
31559 2004-05-17  Bruno Haible  <bruno@clisp.org>
31560
31561         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
31562         precision that consists of a '.' followed by an empty digit string.
31563         Patch by Tor Lillqvist <tml@iki.fi>.
31564
31565 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31566
31567         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
31568         for backward compatibility with older code.  We need our own
31569         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
31570         it under some other name, and our alloca.h will define it.
31571
31572 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31573             Derek Price  <derek@ximbiot.com>
31574
31575         * lib/alloca.c: Include <alloca.h>, to get our interface.
31576         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
31577         include <alloca.h> first.  Use C89 prototype for alloca; this
31578         requires including <stddef.h> for size_t.  Use extern "C" if C++.
31579         Use #elif for simplicity, since we can assume C89 now.
31580         Don't try to source the system alloca.h since it will not be found
31581         and to prevent recursively including its replacement.
31582         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
31583         * lib/regex.c: Likewise.
31584
31585 2004-05-16  Derek Price  <derek@ximbiot.com>
31586             Paul Eggert  <eggert@cs.ucla.edu>
31587
31588         getline cleanup.  This changes the getndelim2 API: both order of
31589         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
31590         no delimiter).
31591
31592         * lib/getline.c: Don't include stddef.h or stdio.h, since our
31593         interface does that.
31594         (getline): Always use getdelim, so that we don't have two
31595         copies of this code.
31596         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
31597         if available.
31598         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
31599         (GETNDELIM2_MAXIMUM): New macro.
31600         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
31601         instead of the old practice of delim2==0.  All callers changed.
31602         Return -1 on overflow, instead of returning junk.
31603         Do not set *linesize unless allocation succeeds.
31604         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
31605         that we include sys/types.h.
31606         * lib/getnline.h: Likewise.
31607         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
31608         (getndelim2): Reorder arguments.
31609         * lib/getnline.c (getnline, getndelim):
31610         Don't discard the NMAX argument.
31611         (getnline): Invoke getndelim, to avoid code duplication.
31612         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
31613         of (size_t) -1 by callers of the getnline family.
31614
31615 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31616
31617         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
31618         Check for gettimeofday.
31619         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
31620         Check for settimeofday, stime.
31621
31622 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31623
31624         * lib/nanosleep.c (suspended): Change its type from int to
31625         sig_atomic_t volatile.
31626         (first_call): Make it private to rpl_nanosleep, and have it
31627         be zero initially as that's a bit faster.
31628         (my_usleep): Round up fractional times instead of truncating them,
31629         as this is the usual meaning for 'sleep'.
31630
31631         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
31632         doesn't work.
31633         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
31634         (ENOSYS): Define if not defined.
31635         (settime): Fall back on stime if it exists and settimeofday fails.
31636         But don't bother with fallbacks if a method fails with errno == EPERM.
31637
31638 2004-05-11  Jim Meyering  <jim@meyering.net>
31639
31640         Prior to this change, the save_cwd caller required read access to the
31641         current directory on most systems (ones with the fchdir function).
31642
31643         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
31644         fails, try write-only, and finally, resort to using xgetcwd.
31645
31646 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31647
31648         * lib/obstack.c, obstack.h: Import changes from libc.
31649
31650 2004-04-28  Bruno Haible  <bruno@clisp.org>
31651
31652         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
31653         also implicitly appends .exe to executables.
31654         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
31655         accepts Windows pathnames.
31656         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31657         Treat Cygwin like Windows, since it now accepts Windows pathnames.
31658         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31659         Treat Cygwin like Windows, since it now accepts Windows pathnames.
31660         Reported by Derek Robert Price <derek@ximbiot.com>.
31661
31662 2004-04-21  Karl Berry  <karl@gnu.org>
31663
31664         * config/srclist.txt (localcharset.c): break sync.
31665
31666 2004-04-20  Paul Eggert  <eggert@twinsun.com>
31667
31668         * m4/host-os.m4: Add a copyright notice.
31669
31670 2004-04-20  Jim Meyering  <jim@meyering.net>
31671
31672         Change UTILS_ to gl_ in AC_DEFINE'd names.
31673         Change utils_- and jm_-prefixed variables, too.
31674         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
31675         UTILS_FUNC_MKDIR_TRAILING_SLASH.
31676         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
31677
31678         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
31679         Don't emit trailing blanks.
31680         Also rename jm_-prefixed variables to have gl_ prefix.
31681
31682         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
31683         Also rename jm_-prefixed variables to have gl_ prefix.
31684
31685         * m4/jm-macros.m4: Reflect the renamings.
31686         * m4/prereq.m4: Likewise.
31687
31688 2004-04-20  Jim Meyering  <jim@meyering.net>
31689
31690         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
31691         memory.
31692
31693 2004-04-20  Jim Meyering  <jim@meyering.net>
31694             Bruno Haible  <bruno@clisp.org>
31695
31696         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
31697         memory when realloc fails.
31698
31699 2004-04-19  Jim Meyering  <jim@meyering.net>
31700
31701         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
31702         now that readutmp.c may call `free (0)'.
31703
31704 2004-04-19  Bruno Haible  <bruno@clisp.org>
31705
31706         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
31707         * m4/inttypes_h.m4: Likewise.
31708         * m4/stdint_h.m4: Likewise.
31709         * m4/intmax_t.m4: Likewise.
31710         * m4/uintmax_t.m4: Likewise.
31711
31712 2004-04-18  Jim Meyering  <jim@meyering.net>
31713
31714         * m4/prereq.m4: Don't forbid jm_ prefix.
31715
31716         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
31717         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
31718         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
31719         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
31720         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
31721         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
31722         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
31723         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
31724         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
31725         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
31726         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
31727         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
31728         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
31729         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
31730         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
31731         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
31732         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
31733         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
31734         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
31735
31736 2004-04-18  Jim Meyering  <jim@meyering.net>
31737
31738         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
31739         failure, don't leak memory and do call END_UTMP_ENT.
31740
31741 2004-04-16  Jim Meyering  <jim@meyering.net>
31742
31743         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
31744         coreutils' stat program.
31745         (gl_PREREQ): Don't require jm_PREREQ_STAT.
31746
31747 2004-04-11  Paul Eggert  <eggert@twinsun.com>
31748
31749         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
31750         C89.
31751         (CHAR_BIT): Remove, since we assume C89.
31752         Include <stdint.h> if available, as per current Autoconf CVS advice.
31753
31754 2004-03-31  Jim Meyering  <jim@meyering.net>
31755
31756         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
31757         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
31758         * m4/xalloc.m4: Likewise.
31759
31760 2004-03-30  Paul Eggert  <eggert@twinsun.com>
31761
31762         Merge from coreutils.
31763
31764         * m4/inttostr.m4: New file.
31765         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
31766         Require AM_STDBOOL_H and gl_TIMESPEC instead.
31767         Require gl_CLOCK_TIME.
31768         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
31769
31770 2004-03-30  Paul Eggert  <eggert@twinsun.com>
31771
31772         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
31773         not bool, to be more consistent with Unix conventions.
31774         Suggested by Bruno Haible.
31775
31776         Merge from coreutils.
31777
31778         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
31779         * lib/umaxtostr.c: New files.
31780
31781         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
31782         the usual <time.h> dance.
31783         (get_date): Change signature to support fractional time stamps.
31784         All callers changed.
31785         * lib/getdate.y: Include "getdate.h" first, as we can now
31786         assume C89 and don't need to worry about 'const'.
31787         Similarly, include "unlocked-io.h" near start, not in middle.
31788         Include <limits.h>.
31789         (textint.value): Use long int rather than int.
31790         (textint.digits): Use size_t rather than int.
31791         (BILLION, LOG10_BILLION): New constants.
31792         (parser_control): New member rel_ns.  Members day_ordinal,
31793         time_zone, month, day, hour, minutes, rel_year, rel_month,
31794         rel_day, rel_hour, rel_minutes, rel_seconds
31795         are now long int, not int.  Member seconds is now struct timespec,
31796         not int.  New member timespec_seen.  Members dates_seen, days_seen,
31797         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
31798         not int.
31799         (%union.intval): Now long int, not int.
31800         New member timespec.
31801         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
31802         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
31803         (spec): Now is a timespec or an item list.
31804         (timespec, items): New nonterminals.
31805         (time, rel, relunit, number, get_date):
31806         Add support for fractional seconds.
31807         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
31808         (gmtime, localtime, mktime): Remove decls; not needed with C89.
31809         (to_hour): First arg is now long int, not int.
31810         (to_year): Returns long int, not int.
31811         Don't treat year -70 like 70.
31812         (tm_diff): Returns long int, not int.
31813         (lookup_word): Use bool instead of int when appropriate.
31814         (yylex): Use size_t for count, not int.
31815         Detect overflow when parsing large integer constants.
31816         Add support for fractions.
31817         (get_date): Make pointers 'const' if possible.
31818         Use more-portable code to detect integer overflow.
31819         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
31820         Don't use ctime; it's not reliable if the year has >4 digits.
31821
31822         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
31823         This is for compatibility with BSD.
31824
31825         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
31826         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
31827         From coreutils' system.h.
31828
31829         * lib/userspec.c: Don't include "posixver.h".
31830         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
31831         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
31832         compatible extension.  Simplify code by removing a boolean int
31833         that was always nonzero if a string was nonnull.
31834
31835 2004-03-30  Jim Meyering  <jim@meyering.net>
31836
31837         Merge from coreutils.
31838
31839         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
31840         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
31841         on some systems one must include <grp.h> before it.
31842         Reported by Christian Krackowizer.
31843
31844 2004-03-30  Jim Meyering  <jim@meyering.net>
31845
31846         Merge from coreutils.
31847
31848         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
31849
31850         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
31851         an empty input stream.
31852
31853         * lib/readtokens.c: Include <stdbool.h>.
31854         (readtoken): Use `size_t' rather than int/long.
31855         All callers adjusted.
31856         Use `bool' rather than `int' where appropriate.
31857         Use memset rather than an explicit loop.
31858         Use x2nrealloc rather than xrealloc.
31859         Allow the use of `\0' as a delimiter.
31860         (readtokens): Likewise.
31861         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
31862
31863 2004-03-30  Jim Meyering  <jim@meyering.net>
31864
31865         * m4/realloc.m4: Remove file, since now it does no more than
31866         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
31867         the `configure.ac' section of module/realloc.
31868         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
31869
31870 2004-03-30  Bruno Haible  <bruno@clisp.org>
31871
31872         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
31873         nonnull.
31874
31875 2004-03-29  Paul Eggert  <eggert@twinsun.com>
31876
31877         Merge changes to getloadavg.c from coreutils and Emacs.
31878
31879         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
31880         Define to an expression, not to the empty string.
31881         Include cloexec.h and xalloc.h.
31882         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
31883         Use set_cloexec_flag rather than rolling our own.
31884         * lib/cloexec.c, lib/cloexec.h: New files.
31885
31886 2004-03-29  Paul Eggert  <eggert@twinsun.com>
31887
31888         * m4/cloexec.m4: New file.
31889
31890 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31891
31892         * lib/getopt.h: Sync with libc CVS.
31893
31894 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31895             Bruno Haible  <bruno@clisp.org>
31896
31897         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
31898         mbswidth.
31899
31900 2004-03-18  Paul Eggert  <eggert@twinsun.com>
31901             Bruno Haible  <bruno@clisp.org>
31902
31903         * lib/mbswidth.h: Include <wchar.h> only if
31904         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
31905         <wchar.h>.
31906         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
31907
31908 2004-03-09  Paul Eggert  <eggert@twinsun.com>
31909
31910         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
31911         Sync with libc CVS.
31912         * lib/getopt_int.h: New file, also synced from libc.
31913
31914 2004-03-09  Paul Eggert  <eggert@twinsun.com>
31915
31916         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
31917         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
31918         Bring back getopt.c, getopt.h, getopt1.c.
31919
31920 2004-03-07  Paul Eggert  <eggert@twinsun.com>
31921
31922         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
31923         All uses changed.  Check for sa_sigaction member; this fixes
31924         a bug first reported by Jason Andrade in
31925         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
31926
31927 2004-03-07  Paul Eggert  <eggert@twinsun.com>
31928
31929         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
31930         '#if' expressions.  Unlike the code it replaces, it does not
31931         depend on (defined _SC_PAGESIZE).  However, it does depend on
31932         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
31933         first reported by Jason Andrade in
31934         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
31935
31936 2004-02-25  Simon Josefsson  <jas@extundo.com>
31937
31938         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
31939
31940 2004-02-25  Simon Josefsson  <jas@extundo.com>
31941
31942         * lib/strdup.h: New file.
31943         * lib/strdup.c: Include it.
31944         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
31945         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
31946
31947 2004-02-23  Karl Berry  <karl@gnu.org>
31948
31949         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
31950         (from fencepost.gnu.org:/gd/gnuorg).
31951
31952 2004-02-23  Karl Berry  <karl@gnu.org>
31953
31954         * config/srclistvars.sh (GNUORG) [karl]: redefine.
31955         * config/srclist.txt: add maintain/standards documents.
31956
31957 2004-02-18  Bruno Haible  <bruno@clisp.org>
31958
31959         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
31960         Reported by Derek Robert Price <derek@ximbiot.com>.
31961
31962 2004-02-16  Karl Berry  <karl@gnu.org>
31963
31964         * config/mkinstalldirs, install-sh: update from automake.
31965
31966 2004-02-06  Karl Berry  <karl@gnu.org>
31967
31968         * m4/po.m4: update from gettext 0.14.1.
31969
31970 2004-02-06  Karl Berry  <karl@gnu.org>
31971
31972         * lib/config.charset: update from gettext 0.14.1.
31973
31974 2004-02-05  Paul Eggert  <eggert@twinsun.com>
31975
31976         Add comments and code, prompted by suggestions from Bruno Haible
31977         for sh-quote.
31978         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
31979         describing the enum quoting_style values.
31980         * lib/quotearg.c (quotearg_alloc): New function.
31981         (quotearg_buffer_restyled): Treat lone { and } as special.
31982         Treat = as special.  Work around bug with older shells
31983         that "see" a '\' that is really the 2nd byte of a multibyte char.
31984         Quote empty string with shell_quoting_style.
31985
31986 2004-02-03  Bruno Haible  <bruno@clisp.org>
31987
31988         * m4/pipe.m4: New file, from GNU gettext.
31989
31990 2004-02-03  Bruno Haible  <bruno@clisp.org>
31991
31992         * lib/pipe.h: New file, from GNU gettext.
31993         * lib/pipe.c: New file, from GNU gettext.
31994
31995 2004-01-27  Bruno Haible  <bruno@clisp.org>
31996
31997         * m4/execute.m4: New file, from GNU gettext.
31998
31999 2004-01-27  Bruno Haible  <bruno@clisp.org>
32000
32001         * lib/execute.h: New file, from GNU gettext.
32002         * lib/execute.c: New file, from GNU gettext.
32003         * lib/w32spawn.h: New file, from GNU gettext.
32004
32005 2004-01-24  Paul Eggert  <eggert@twinsun.com>
32006
32007         Merge from diffutils.
32008
32009         * lib/file-type.c (file_type): Add typed memory objects.
32010         * lib/file-type.h (S_TYPEISTMO): New macro.
32011
32012         * lib/c-stack.h (c_stack_action): Remove argv argument.
32013         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
32014         (die): Don't calculate message unless segv_action returns.
32015         (get_stack_location, min_address_from_argv, max_address_from_argv,
32016         volatile stack_base, volatile_stack_size): Remove.
32017         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
32018         that every segmentation violation is a stack overflow.  (Ouch!)
32019         See Debian bug 136249 (still outstanding) for more info about why
32020         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
32021
32022 2004-01-24  Paul Eggert  <eggert@twinsun.com>
32023
32024         Exit-status fix from coreutils.
32025
32026         Use exit_failure consistently in place of EXIT_FAILURE,
32027         so that program exit statuses are consistent on failure.
32028
32029         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
32030         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
32031         * lib/argmatch.h: Comment fix to match the above.
32032         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
32033         Now a macro referring to exit_failure, instead of a separate
32034         variable.  Include "exitfail.h" to get it.
32035         * lib/xstrtol.h: Include "exitfail.h".
32036         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
32037
32038         * lib/long-options.c (parse_long_options): Use prototype
32039         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
32040         for clarity.
32041
32042 2004-01-21  Jim Meyering  <jim@meyering.net>
32043
32044         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
32045         so as not to conflict with a different-sized __mktime_internal
32046         function in GNU libc.
32047         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
32048         Problem building statically-linked `ls' reported by Michael Brunnbauer.
32049
32050 2004-01-20  Karl Berry  <karl@gnu.org>
32051
32052         * config/config.guess: update from config.
32053
32054         * config/srclistvars.sh: GNUWWWLICENSES for karl.
32055
32056 2004-01-20  Bruno Haible  <bruno@clisp.org>
32057
32058         Safer stack allocation.
32059         * lib/setenv.c: Include allocsa.h.
32060         (alloca): Remove fallback definition.
32061         (freea): Remove macro.
32062         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
32063         instead of freea.
32064
32065 2004-01-20  Bruno Haible  <bruno@clisp.org>
32066
32067         * m4/eealloc.m4: New file, from GNU gettext.
32068
32069 2004-01-20  Bruno Haible  <bruno@clisp.org>
32070
32071         * m4/allocsa.m4: New file, from GNU gettext.
32072
32073 2004-01-20  Bruno Haible  <bruno@clisp.org>
32074
32075         * lib/xallocsa.h: New file, from GNU gettext.
32076         * lib/xallocsa.c: New file, from GNU gettext.
32077
32078 2004-01-20  Bruno Haible  <bruno@clisp.org>
32079
32080         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
32081
32082 2004-01-20  Bruno Haible  <bruno@clisp.org>
32083
32084         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
32085         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
32086         specially.
32087
32088 2004-01-20  Bruno Haible  <bruno@clisp.org>
32089
32090         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
32091         patch.
32092
32093 2004-01-20  Bruno Haible  <bruno@clisp.org>
32094
32095         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
32096
32097 2004-01-20  Bruno Haible  <bruno@clisp.org>
32098
32099         * lib/eealloc.h: New file.
32100
32101 2004-01-20  Bruno Haible  <bruno@clisp.org>
32102
32103         * lib/binary-io.h: Avoid warnings on Cygwin.
32104
32105 2004-01-20  Bruno Haible  <bruno@clisp.org>
32106
32107         * lib/allocsa.h: New file, from GNU gettext.
32108         * lib/allocsa.c: New file, from GNU gettext.
32109
32110 2004-01-18  Karl Berry  <karl@gnu.org>
32111
32112         * doc/gpl.texi, doc/lgpl.texi: new files.
32113
32114 2004-01-18  Karl Berry  <karl@gnu.org>
32115
32116         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
32117         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
32118
32119 2004-01-15  Paul Eggert  <eggert@twinsun.com>
32120
32121         Merge from coreutils.
32122
32123         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
32124         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
32125         (gl_DEFAULT_POSIX2_VERSION): Move
32126         the documentation from 'configure' into 'config.hin',
32127         so that 'configure --help' isn't burdened by it and
32128         we don't have to worry about its formatting there.
32129         Reword the documentation so that it's more succinct
32130         and can be run together into a single paragraph.
32131         * m4/same.m4 (gl_SAME): Check for pathconf.
32132
32133 2004-01-15  Paul Eggert  <eggert@twinsun.com>
32134
32135         Merge from coreutils.
32136
32137         * lib/posixver.c: Include posixver.h.
32138
32139         * lib/same.c: Include <stdbool.h>, <limits.h>.
32140         (_POSIX_NAME_MAX): Define if not defined.
32141         (MIN): New macro.
32142         (same_name): If file names are silently truncated, report
32143         that the file names are the same if they are the same after
32144         the silent truncation.
32145
32146         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
32147         conversion function.
32148         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
32149         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
32150         longer needed.
32151
32152 2004-01-15  Jim Meyering  <jim@meyering.net>
32153
32154         Merge from coreutils.
32155
32156         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
32157         if no library is required.
32158         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
32159         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
32160         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
32161         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
32162         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
32163         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
32164         value, $ac_cv_search_crypt, if it's "none required".
32165         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
32166         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
32167         not gl_FUNC_GETLOADAVG.
32168         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
32169         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
32170
32171 2004-01-15  Jim Meyering  <jim@meyering.net>
32172
32173         Merge from coreutils.
32174
32175         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
32176         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
32177         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
32178
32179         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
32180         optional configure-time default.
32181
32182         * lib/version-etc.c (version_etc_copyright): Update copyright date.
32183
32184         * lib/xreadlink.c (xreadlink): Correct outdated comment.
32185
32186 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
32187
32188         Merge from coreutils.
32189
32190         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
32191         value, $ac_cv_search_nanosleep, if it's "none required".
32192
32193 2004-01-14  Paul Eggert  <eggert@twinsun.com>
32194
32195         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
32196         with like-named macro in fnmatch.c.
32197         (EXT): Use an internal constant instead.
32198
32199         Merge fnmatch patches from glibc.
32200         * lib/fnmatch.c (mbsinit): Remove define.
32201         Add libc_hidden_ver (__fnmatch, fnmatch).
32202         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
32203         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
32204
32205 2004-01-14  Karl Berry  <karl@gnu.org>
32206
32207         * config/install-sh: update from automake.
32208
32209 2004-01-13  Karl Berry  <karl@gnu.org>
32210
32211         * config/install-sh: update from automake.
32212
32213 2004-01-09  Karl Berry  <karl@gnu.org>
32214
32215         * config/install-sh: update from automake.
32216
32217 2004-01-05  Karl Berry  <karl@gnu.org>
32218
32219         * config/config.{sub,guess}: update from config.
32220
32221 2003-12-31  Karl Berry  <karl@gnu.org>
32222
32223         * config/depcomp: update from automake.
32224
32225 2003-12-14  Karl Berry  <karl@gnu.org>
32226
32227         * lib/config.charset: update from gettext-runtime.
32228
32229 2003-12-03  Paul Eggert  <eggert@twinsun.com>
32230
32231         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
32232         Bug reported by Alfred M. Szmidt.
32233
32234 2003-12-03  Bruno Haible  <bruno@clisp.org>
32235
32236         * m4/gettext.m4: Upgrade from gettext-0.13.
32237         * m4/po.m4: Upgrade from gettext-0.13.
32238         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
32239         * m4/intmax.m4: New file, from gettext-0.13.
32240         * m4/printf-posix.m4: New file, from gettext-0.13.
32241
32242 2003-11-29  Karl Berry  <karl@gnu.org>
32243
32244         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
32245
32246 2003-11-25  Paul Eggert  <eggert@twinsun.com>
32247             Bruno Haible  <bruno@clisp.org>
32248
32249         * lib/printf-parse.h: Don't include sys/types.h.
32250         (ARG_NONE): New macro.
32251         (char_directive): Change type of *arg_index fields to size_t.
32252         * lib/printf-parse.c: Don't include sys/types.h.
32253         (SSIZE_MAX): Remove macro.
32254         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
32255         Remove unnecessary overflow check.
32256         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
32257         fields.
32258
32259 2003-11-25  Bruno Haible  <bruno@clisp.org>
32260
32261         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
32262
32263 2003-11-25  Bruno Haible  <bruno@clisp.org>
32264
32265         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
32266         gt_TYPE_SSIZE_T.
32267
32268 2003-11-24  Paul Eggert  <eggert@twinsun.com>
32269
32270         * modules/alloca: Remove dependency on xalloc.
32271
32272 2003-11-24  Paul Eggert  <eggert@twinsun.com>
32273
32274         * lib/alloca.c: Remove dependency on xalloc module.
32275         (xalloc_die): Remove.
32276         (memory_full) [!defined emacs]: New macro.
32277         [!defined emacs]: Don't include xalloc.h.
32278         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
32279         address arithmetic overflows.  Change datatypes a bit to avoid
32280         unnecessary casts.
32281
32282 2003-11-22  Jim Meyering  <jim@meyering.net>
32283
32284         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
32285         s/size/size_t/.
32286
32287 2003-11-21  Karl Berry  <karl@gnu.org>
32288
32289         * config/config.{sub,guess}: update from config.
32290
32291 2003-11-18  Karl Berry  <karl@gnu.org>
32292
32293         * config/config.{sub,guess}: update from config.
32294
32295         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
32296
32297 2003-11-17  Paul Eggert  <eggert@twinsun.com>
32298
32299         * README: Mention that S+T cannot overflow if S is the size of
32300         an existing object and T is sufficiently small.
32301
32302 2003-11-17  Jim Meyering  <jim@meyering.net>
32303
32304         On systems without utime and without a utimes function capable of
32305         dealing with a NULL struct utimbuf* argument, this utime replacement
32306         could -- in unusual circumstances -- leak a file descriptor.
32307         * lib/utime.c: Include <unistd.h> and <errno.h>.
32308         (utime_null): Be sure to close `fd' and to preserve errno.
32309         Reported by Geoff Collyer via Arnold Robbins.
32310
32311 2003-11-17  Bruno Haible  <bruno@clisp.org>
32312
32313         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
32314         (Depends-on): Add xsize.
32315
32316 2003-11-17  Bruno Haible  <bruno@clisp.org>
32317
32318         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
32319
32320 2003-11-17  Bruno Haible  <bruno@clisp.org>
32321
32322         * lib/vasnprintf.c (alloca): Remove fallback definition.
32323         (freea): Remove definition.
32324         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
32325         Reported by Paul Eggert.
32326
32327 2003-11-16  Paul Eggert  <eggert@twinsun.com>
32328             Bruno Haible  <bruno@clisp.org>
32329
32330         Protect against address arithmetic overflow.
32331         * lib/printf-args.h: Include stddef.h.
32332         (arguments): Change type of field 'count' to size_t.
32333         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
32334         'unsigned int' where appropriate.
32335         * lib/printf-parse.h: Include sys/types.h.
32336         (char_directive): Change type of *arg_index fields to ssize_t.
32337         (char_directives): Change type of fields 'count', max_*_length to
32338         size_t.
32339         * lib/printf-parse.c: Include sys/types.h and xsize.h.
32340         (SSIZE_MAX): Define fallback value.
32341         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
32342         instead of 'int' where appropriate. Check a_allocated, d_allocated
32343         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
32344         * lib/vasnprintf.c: Include xsize.h.
32345         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
32346         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
32347         overflow. Avoid wraparound when converting a width or precision from
32348         decimal to binary.
32349
32350 2003-11-16  Bruno Haible  <bruno@clisp.org>
32351
32352         Update from GNU gettext.
32353         * lib/printf-parse.c: Generalize to it can be compiled for wide
32354         strings.
32355         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
32356         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
32357         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
32358         SNPRINTF): New macros.
32359         Don't include <alloca.h> if the file is used inside libintl.
32360         (local_wcslen): New function, for Solaris 2.5.1.
32361         (VASNPRINTF): Use it instead of wcslen.
32362
32363 2003-11-16  Bruno Haible  <bruno@clisp.org>
32364
32365         * lib/xsize.h (xmax): New function.
32366         (xsum, xsum3, xsum4): Declare as "pure" functions.
32367
32368 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32369
32370         * modules/xalloc (Files): Undo latest change, since xalloc.h
32371         no longer needs SIZE_MAX or PTRDIFF_MAX.
32372
32373 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32374
32375         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
32376         gl_PTRDIFF_MAX.
32377
32378 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32379
32380         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
32381         "return", to pacify some unknown compiler.  Problem reported
32382         by Joerg Schilling.
32383
32384 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32385
32386         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
32387         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
32388         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
32389         heuristic is just as accurate as far as we know, and it removes a
32390         dependency on size_max.m4 and ptrdiff_max.m4.
32391
32392 2003-11-11  Bruno Haible  <bruno@clisp.org>
32393
32394         * modules/xsize (Files): Add m4/size_max.m4.
32395         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
32396
32397 2003-11-11  Bruno Haible  <bruno@clisp.org>
32398
32399         * m4/size_max.m4: New file.
32400         * m4/ptrdiff_max.m4: New file.
32401         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
32402         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
32403         (gl_XALLOC): Invoke it.
32404
32405 2003-11-11  Bruno Haible  <bruno@clisp.org>
32406
32407         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
32408         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
32409         defined.
32410
32411 2003-11-10  Paul Eggert  <eggert@twinsun.com>
32412
32413         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
32414         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
32415         rejected some allocations of exactly SIZE_MAX - 2 bytes.
32416         From Bruno Haible.
32417         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
32418         not (size_t) -1, since it's defined here.
32419
32420 2003-11-09  Karl Berry  <karl@gnu.org>
32421
32422         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
32423
32424 2003-11-06  Paul Eggert  <eggert@twinsun.com>
32425
32426         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
32427         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
32428         Reject sizes of exactly SIZE_MAX bytes.
32429         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
32430         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
32431
32432 2003-11-05  Bruno Haible  <bruno@clisp.org>
32433
32434         * lib/xsize.h: Include limits.h, to avoid a possible collision with
32435         SIZE_MAX defined in <limits.h> on Solaris.
32436
32437 2003-11-04  Jim Meyering  <jim@meyering.net>
32438
32439         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
32440         variable names, rather than @VAR@.
32441         * modules/poll: Likewise.
32442
32443 2003-11-04  Bruno Haible  <bruno@clisp.org>
32444
32445         * modules/xsize: New file.
32446         * modules/linebreak: Depend on xsize.
32447         * MODULES.html.sh (func_all_modules): Add xsize.
32448
32449 2003-11-04  Bruno Haible  <bruno@clisp.org>
32450
32451         * m4/xsize.m4: New file.
32452
32453 2003-11-04  Bruno Haible  <bruno@clisp.org>
32454
32455         * lib/xsize.h: New file.
32456         * lib/linebreak.c: Include xsize.h.
32457         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
32458         argument for overflow.
32459         Suggested by Paul Eggert.
32460
32461 2003-11-03  Karl Berry  <karl@gnu.org>
32462
32463         * config/config.{guess,sub}: update from config.
32464
32465 2003-11-03  Jim Meyering  <jim@meyering.net>
32466
32467         * modules/userspec (lib_SOURCES): Add userspec.h.
32468         (Include): Add "userspec.h".
32469         Improve description.
32470
32471 2003-11-03  Jim Meyering  <jim@meyering.net>
32472
32473         * lib/userspec.c: Include "userspec.h".
32474         * lib/userspec.h: New file.
32475
32476 2003-11-03  Bruno Haible  <bruno@clisp.org>
32477
32478         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
32479
32480 2003-11-03  Bruno Haible  <bruno@clisp.org>
32481
32482         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
32483         available, to avoid (extremely rare) race condition.
32484         Suggested by Paul Eggert.
32485
32486 2003-11-02  Karl Berry  <karl@gnu.org>
32487
32488         * config/srclist.txt (vasprintf.c): sync broken, sigh.
32489
32490 2003-10-31  Paul Eggert  <eggert@twinsun.com>
32491
32492         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
32493         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
32494         (read_filesystem_list): Set and use me_type_malloced.
32495         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
32496         whatever the type happens to be), for brevity and consistency.
32497         Check for size calculation overflow on Alphas running OSF/1.
32498
32499 2003-10-31  Jim Meyering  <jim@meyering.net>
32500
32501         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
32502
32503         * lib/linebuffer.c: Include <string.h> for declaration of memset.
32504
32505 2003-10-30  Paul Eggert  <eggert@twinsun.com>
32506             Bruno Haible  <bruno@clisp.org>
32507
32508         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
32509         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
32510
32511 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32512
32513         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
32514         netbsd*-gnu*.  Suggested by Robert Millan.
32515
32516 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32517
32518         * modules/group-member: Depend on stdbool.
32519
32520 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32521
32522         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
32523
32524 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32525
32526         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
32527         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
32528         after the 'gnu' in these cases.  This fixes some bugs in the
32529         previous change, and is based on suggestions by Robert Millan.
32530
32531 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32532
32533         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
32534         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
32535         no longer needed.
32536         * lib/quotearg.c (quotearg_n_options): Use it.
32537         * lib/group-member.c: Include <stdbool.h>.
32538         (free_group_info): Arg is now const *; don't free arg.
32539         (get_group_info): Now returns bool and accepts struct group_info *,
32540         rather than returning a malloc'ed struct group_info *.
32541         All uses changed.  Check for overflow in internal size calculation.
32542
32543         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
32544         rather than xmalloc/xrealloc.
32545         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
32546         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
32547         conformance bug: the old code used a pointer after freeing the
32548         storage that it addressed.
32549         * lib/hash.c (hash_initialize): Simplify the code by using
32550         xalloc_oversized rather than doing it by hand.
32551         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
32552         the buffer preserved.  Use free and xmalloc instead.
32553         * lib/quotearg.c (quotearg_n_options): Likewise.
32554         Use a simpler test for size overflow.  Don't use xalloc_oversized
32555         because unsigned int might be wider than size_t (!); this suggests
32556         that we should switch from unsigned int to size_t for slot numbers.
32557
32558 2003-10-28  Paul Eggert  <eggert@twinsun.com>
32559
32560         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
32561         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
32562         NetBSD kernels.  Requested by Richard Stallman.
32563
32564 2003-10-27  Paul Eggert  <eggert@twinsun.com>
32565
32566         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
32567         to allocate the returned structure.  Do not allocate a subarray,
32568         as x2nrealloc will do that.
32569         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
32570         instead of xnrealloc.
32571         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
32572
32573 2003-10-27  Bruno Haible  <bruno@clisp.org>
32574
32575         * lib/stdbool_.h: Better support for BeOS.
32576
32577 2003-10-26  Paul Eggert  <eggert@twinsun.com>
32578
32579         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
32580         now uses inline.
32581
32582 2003-10-26  Paul Eggert  <eggert@twinsun.com>
32583
32584         * lib/xalloc.h (xalloc_oversized): New static inline function, for
32585         callers that want to do their own size-overflow checking.  Include
32586         <stdbool.h>, since xalloc_oversized returns bool.
32587         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
32588         to use xalloc_oversized.
32589
32590         Add two functions x2realloc, x2nrealloc, for programs that grow
32591         arrays dynamically by doubling their sizes.
32592         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
32593         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
32594         New functions.
32595
32596         Port to C99 semantics for 'inline' of external functions.
32597         Bug reported by Bruno Haible.
32598         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
32599         with the old contents of xnmalloc.
32600         (xnmalloc, xmalloc): Use it.
32601         (xnrealloc_inline): New static inline function,
32602         with the old contents of xnrealloc.
32603         (xnrealloc, xrealloc): Use it.
32604
32605         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
32606         that.
32607
32608 2003-10-26  Karl Berry  <karl@gnu.org>
32609
32610         * config/srclist.txt (COPYING.DOC): no longer available from
32611         /gd/gnuorg; don't know where the ultimate source is.
32612
32613 2003-10-25  Paul Eggert  <eggert@twinsun.com>
32614
32615         Fix several address-calculation bugs in the hash modules,
32616         plus some minor code cleanup.
32617
32618         * lib/hash.h: Include <stdbool.h>, for bool.
32619         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
32620         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
32621         hash_get_n_entries, hash_get_max_bucket_length,
32622         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
32623         hash_rehash): Use size_t rather than unsigned.
32624         * lib/hash.c (struct hash_table, hash_get_n_buckets,
32625         hash_get_n_buckets_used, hash_get_n_entries,
32626         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
32627         hash_get_entries, hash_do_for_each, hash_string, is_prime,
32628         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
32629         Likewise.
32630         (SIZE_MAX): Define if not defined.
32631         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
32632         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
32633         hash_print):
32634         Use const * when possible.
32635         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
32636         (check_tuning): Fix bug: if tuning parameters were very close to
32637         0 or 1, rounding errors could have caused subscript violations.
32638         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
32639         (hash_initialize): Add 'fail:' label
32640         to free table and return NULL, and use it to simplify code.
32641         Use calloc rather than clearing the storage ourself.
32642         (hash_initialize, hash_rehash): Check for arithmetic overflow in
32643         buffer size calculations.
32644         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
32645         Include <stddef.h>, for size_t.
32646         * lib/hash-pjw.c (hash_pjw): Likewise.
32647         Switch to method described by Bruno Haible.
32648         Include <limits.h>, for CHAR_BIT.
32649         (SIZE_BITS): New macro.
32650
32651 2003-10-23  Paul Eggert  <eggert@twinsun.com>
32652
32653         * m4/getline.m4 (AM_FUNC_GETLINE):
32654         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
32655         hosts.  Problem reported by Derek Robert Price in
32656         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
32657         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
32658         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
32659
32660 2003-10-21  Paul Eggert  <eggert@twinsun.com>
32661
32662         * lib/getndelim2.c (getndelim2): When size calculation overflows,
32663         ceiling the allocation at NMAX bytes rather than silently
32664         discarding input bytes before NMAX is reached.  This makes
32665         a difference only if NMAX exceeds SIZE_MAX / 2.
32666
32667         * lib/obstack.c: Merge from glibc.
32668         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
32669         Add libc_hidden_def (_obstack_newchunk).
32670         (_obstack_free) [! defined _LIBC]: Remove.
32671         [defined _LIBC]: Make a strong alias from obstack_free, rather than
32672         a clone of the function body.
32673         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
32674         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
32675
32676         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
32677         glibc.
32678         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
32679         arg to memcpy.
32680
32681         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
32682         (obstack_ptr_grow_fast, obstack_int_grow_fast):
32683         Don't use lvalue casts, as GCC plans to remove support for them
32684         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
32685         was also present in the non-GCC version, indicating that this
32686         code had always been buggy and had never been widely used.
32687         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
32688         Use the fast variant of each macro, rather than copying the
32689         definiens of the fast variant; that way, we'll be more likely to
32690         catch future bugs in the fast variants.
32691
32692 2003-10-20  Bruno Haible  <bruno@clisp.org>
32693
32694         * modules/wait-process: New file.
32695         * MODULES.html.sh (func_all_modules): Add wait-process.
32696
32697 2003-10-20  Bruno Haible  <bruno@clisp.org>
32698
32699         * m4/wait-process.m4: New file.
32700
32701 2003-10-20  Bruno Haible  <bruno@clisp.org>
32702
32703         * lib/wait-process.h: New file, from GNU gettext.
32704         * lib/wait-process.c: New file, from GNU gettext.
32705
32706 2003-10-19  Jim Meyering  <jim@meyering.net>
32707
32708         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
32709         HPUX 10.20.
32710
32711 2003-10-18  Karl Berry  <karl@gnu.org>
32712
32713         * config/config.guess: update from config.
32714
32715 2003-10-16  Paul Eggert  <eggert@twinsun.com>
32716
32717         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
32718         (getgroups): First arg is int, not size_t.
32719         Don't let 'free' mangle errno.
32720
32721 2003-10-16  Paul Eggert  <eggert@twinsun.com>
32722
32723         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
32724
32725 2003-10-16  Karl Berry  <karl@gnu.org>
32726
32727         * config/config.{guess,sub}: update from config.
32728
32729 2003-10-16  Jim Meyering  <jim@meyering.net>
32730
32731         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
32732         memcpy.
32733
32734 2003-10-15  Paul Eggert  <eggert@twinsun.com>
32735
32736         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
32737         (SIZE_MAX): Remove.
32738         (new_exclude, add_exclude_file): Initial size no longer needs to
32739         be a power of 2.
32740         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
32741         our own address arithmetic overflow checking.
32742
32743         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
32744         (fnmatch): Do not alloca more than 2000 wide characters;
32745         instead, use malloc for large buffers.
32746         Check for address arithmetic overflow, and return -1
32747         with errno set to ENOMEM in that case.
32748         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
32749         (NEW_PATTERN): Do not alloca more than 8000 bytes;
32750         instead, return -1.  Check for address arithmetic overflow.
32751
32752 2003-10-14  Paul Eggert  <eggert@twinsun.com>
32753
32754         Handle invalid suffixes and overflow independently, so that
32755         callers can treat them independently as needed.  Fix some bugs in
32756         suffix handling, e.g., "100k@" was not diagnosed as an invalid
32757         suffix for a human-readable blocksize.  The major caller-visible
32758         change is the addition of a new
32759         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
32760         that both overflow and suffix chars were found.
32761
32762         * lib/human.c (humblock): Don't check separately for invalid suffix
32763         char; that is xstrtoumax's job (now that its bug is fixed).
32764         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
32765         INTMAX_MAX]: New macros.
32766         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
32767         TYPE_MAXIMUM): New macros.
32768         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
32769         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
32770         if overflow occurs, as it's what __strtol does and it's more useful
32771         in practice.
32772         (__xstrtol): If __strtol reports some error other than ERANGE,
32773         reflect it to the caller as LONGINT_INVALID.  If it reports
32774         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
32775         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
32776         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
32777         value.
32778         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
32779         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
32780         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
32781         [defined UINTMAX_MAX]: New macros.
32782
32783 2003-10-14  Bruno Haible  <bruno@clisp.org>
32784
32785         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
32786
32787 2003-10-14  Bruno Haible  <bruno@clisp.org>
32788
32789         * m4/sig_atomic_t: New file, from GNU gettext.
32790         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
32791
32792 2003-10-14  Bruno Haible  <bruno@clisp.org>
32793
32794         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
32795         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
32796         Also use volatile where needed.
32797
32798 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32799
32800         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
32801         Change maintainer from Bruno Haible to 'all'.
32802
32803 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32804
32805         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
32806
32807 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32808
32809         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
32810         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
32811         and define in terms of the other primitives.
32812         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
32813         (SIZE_MAX): Define if not already defined.
32814         (array_size_overflow): New function.
32815         (xalloc_die): Abort instead of exiting if 'error' returns.
32816         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
32817         (xmalloc, xrealloc): Use them.
32818         (xcalloc): Check for address arithmetic overflow.
32819         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
32820         a bit faster than strcpy.
32821
32822 2003-10-10  Simon Josefsson  <jas@extundo.com>
32823
32824         * modules/argp (Depends-on): Add restrict and strcase.
32825
32826 2003-10-10  Simon Josefsson  <jas@extundo.com>
32827
32828         * m4/argp.m4: Add AC_C_INLINE.
32829
32830 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32831
32832         Merge getpass from libc, plus a few fixes.
32833
32834         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
32835         Include <stdbool.h>.
32836         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
32837         __fsetlocking to empty.
32838         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
32839         do include <bits/libc-lock.h>.
32840         Do not include <fcntl.h>; not needed.
32841         [_LIBC]: Include <wchar.h>.
32842         (NOTCANCEL_MODE): New macro.
32843         (flockfile, funlockfile) [_LIBC]: New macros.
32844         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
32845         [!_LIBC]: New macros.
32846         (call_fclose): New function.
32847         (getpass): Use it.  Save tty stream separately; this simplifies the
32848         code and makes it more reliable if stdin happens to equal stdout.
32849         Invoke __fsetlocking on tty.
32850         Handle thread cancellation if needed.
32851         Namespace cleanup (use __tcgetattr, __getline).
32852         Use bool for Booleans.
32853         [USE_IN_LIBIO]: Handle wide streams.
32854         [!_LIBC]: Unconditionally do the fseek, since we don't know what
32855         stream might go where.
32856
32857         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
32858         doesn't have to include <stdio.h> before us.
32859         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
32860         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
32861         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
32862         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
32863         if not declared, so that we can use getpass.c code from libc without
32864         rewriting it.
32865         (flockfile, ftrylockfile, funlockfile): New macros.
32866
32867 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32868
32869         * modules/getpass: Depend on stdbool.
32870
32871 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32872
32873         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
32874
32875 2003-10-07  Karl Berry  <karl@gnu.org>
32876
32877         * config/config.{guess,sub}: update from config.
32878
32879 2003-10-06  Jim Meyering  <jim@meyering.net>
32880             Bruno Haible  <bruno@clisp.org>
32881
32882         This lets translators provide better translations for the
32883         "Written by ..." part of --version output.
32884         * lib/version-etc.h: Include stdarg.h.
32885         (version_etc_copyright): Declare as readonly.
32886         (version_etc): Make this function variadic with a NULL-terminated list
32887         of author name strings.
32888         (version_etc_va): New declaration.
32889         * lib/version-etc.c: Include stdarg.h, stdlib.h.
32890         (version_etc_copyright): Declare as readonly.
32891         (version_etc_va): New function. Provide a different translatable string
32892         for each possible number of authors < 10. Abbreviate when there are 10
32893         authors or more.
32894         (version_etc): Make this function variadic. Call version_etc_va.
32895         Suggestion from Gary V. Vaughan.
32896
32897         * lib/long-options.h (parse_long_options): Change prototype: the
32898         authors string is moved to the end and becomes variadic.
32899         * lib/long-options.c: Include stdarg.h.
32900         (parse_long_options): Make this function variadic, too.
32901         Call version_etc_va, not version_etc.
32902
32903 2003-10-06  Bruno Haible  <bruno@clisp.org>
32904
32905         * modules/version-etc-2: Remove file.
32906         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
32907
32908 2003-10-06  Bruno Haible  <bruno@clisp.org>
32909
32910         * modules/fatal-signal: New file.
32911         * MODULES.html.sh (func_all_modules): Add fatal-signal.
32912
32913 2003-10-06  Bruno Haible  <bruno@clisp.org>
32914
32915         * m4/fatal-signal.m4: New file.
32916         * m4/signalblocking.m4: New file, from GNU gettext.
32917
32918 2003-10-06  Bruno Haible  <bruno@clisp.org>
32919
32920         * lib/version-etc-2.h: Remove file.
32921         * lib/version-etc-2.c: Remove file.
32922
32923 2003-10-06  Bruno Haible  <bruno@clisp.org>
32924
32925         * lib/fatal-signal.h: New file, from GNU gettext.
32926         * lib/fatal-signal.c: New file, from GNU gettext.
32927
32928 2003-10-05  Paul Eggert  <eggert@twinsun.com>
32929
32930         * README: Rework advice for preventing empty .o files.
32931         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
32932         not <sys/types.h>.
32933
32934 2003-10-04  Karl Berry  <karl@gnu.org>
32935
32936         * lib/argp*: update from libc.
32937
32938 2003-10-04  Karl Berry  <karl@gnu.org>
32939
32940         * config/config.{guess,sub}: update from config.
32941
32942 2003-10-02  Bruno Haible  <bruno@clisp.org>
32943
32944         * modules/lchown (Include): Add lchown.h.
32945         * modules/time_r (Include): Use "..." syntax.
32946         * modules/xgetdomainname (Include): Add xgetdomainname.h.
32947
32948 2003-10-01  Simon Josefsson  <jas@extundo.com>
32949
32950         * MODULES.html.sh (func_all_modules): Move gethostname from section
32951         'based on' to section 'lacking' POSIX:2001.
32952
32953 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
32954
32955         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
32956         to output mode on the same stream.
32957
32958 2003-09-29  Paul Eggert  <eggert@twinsun.com>
32959
32960         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
32961         Fix arg typo in previous patch.
32962
32963 2003-09-28  Jim Meyering  <jim@meyering.net>
32964
32965         * lib/error.c: Correct cpp indentation.
32966
32967 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32968
32969         * modules/free: New file.
32970
32971 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32972
32973         * m4/free.m4: New file.
32974
32975 2003-09-27  Paul Eggert  <eggert@twinsun.com>
32976
32977         * lib/minmax.h (MIN, MAX)
32978         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
32979         Omit the special code that used __typeof__, since we worry that
32980         it could be more trouble than it's worth.  See:
32981         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
32982         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
32983
32984         * lib/free.c: New file.
32985
32986 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
32987
32988         Trivial fixes to Makefile.am parts of module listings.
32989         * modules/strstr: Append strstr.h to lib_SOURCES.
32990         * modules/strcase: Likewise, for strcase.h.
32991
32992 2003-09-27  Karl Berry  <karl@gnu.org>
32993
32994         * config/mkinstalldirs: update from automake.
32995
32996 2003-09-26  Paul Eggert  <eggert@twinsun.com>
32997
32998         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
32999         (error_tail): Do not loop, reallocating temporary buffer, since
33000         the output cannot contain more wide characters than the input
33001         contains bytes, the size must be big enough already.  This avoids
33002         one potential size overflow calculation.  Check for size overflow
33003         when calculating temporary buffer size.  Free temporary buffer
33004         when done, if it was allocated with malloc; this plugs a memory
33005         leak.  Remove casts from void * to pointers, that are no longer
33006         needed now that we're assuming C89 or better.
33007
33008         Merge error changes from glibc.
33009
33010         * lib/error.c, error.h: Update copyright notice header to match glibc.
33011         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
33012         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
33013         Disable cancellation while printing error.
33014         * lib/error.h: Prepend __ to parameter names.
33015
33016 2003-09-26  Jim Meyering  <jim@meyering.net>
33017
33018         * lib/error.c (error_tail): Move some declarations
33019         into inner scope where the local variables are used.
33020
33021 2003-09-26  Bruno Haible  <bruno@clisp.org>
33022
33023         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
33024         stpncpy().
33025         Don't define stpncpy through config.h; it's now done through stpncpy.h.
33026
33027 2003-09-26  Bruno Haible  <bruno@clisp.org>
33028
33029         * lib/stpncpy.h (gnu_stpncpy): New declaration.
33030         (stpncpy): Define as alias for gnu_stpncpy.
33031         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
33032
33033 2003-09-25  Simon Josefsson  <jas@extundo.com>
33034
33035         * lib/xgetdomainname.h: New file.
33036         * lib/xgetdomainname.c: New file.
33037
33038 2003-09-25  Simon Josefsson  <jas@extundo.com>
33039             Bruno Haible  <bruno@clisp.org>
33040
33041         * modules/getdomainname: New file.
33042         * modules/xgetdomainname: New file.
33043         * MODULES.html.sh (func_all_modules): Add getdomainname,
33044         xgetdomainname.
33045
33046 2003-09-25  Simon Josefsson  <jas@extundo.com>
33047             Bruno Haible  <bruno@clisp.org>
33048
33049         * m4/getdomainname.m4: New file.
33050
33051 2003-09-25  Simon Josefsson  <jas@extundo.com>
33052             Bruno Haible  <bruno@clisp.org>
33053
33054         * lib/getdomainname.h: New file.
33055         * lib/getdomainname.c: New file.
33056
33057 2003-09-25  Karl Berry  <karl@gnu.org>
33058
33059         * lib/argp-fmtstream.c, argp-help.c: update from libc.
33060
33061 2003-09-25  Karl Berry  <karl@gnu.org>
33062
33063         * config/install-sh: update from automake.
33064
33065 2003-09-25  Bruno Haible  <bruno@clisp.org>
33066
33067         * modules/version-etc-2: New file, from modules/version-etc with
33068         modifications.
33069         * MODULES.html.sh (func_all_modules): Add version-etc-2.
33070
33071 2003-09-25  Bruno Haible  <bruno@clisp.org>
33072
33073         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
33074         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
33075
33076 2003-09-24  Simon Josefsson  <jas@extundo.com>
33077
33078         * modules/xgethostname: Add xgethostname.h.
33079
33080 2003-09-24  Paul Eggert  <eggert@twinsun.com>
33081
33082         * lib/linebuffer.c (freebuffer): Don't free the argument, just
33083         the buffer associated with the argument.  Bug reported by
33084         Simon Josefsson.
33085
33086 2003-09-24  Paul Eggert  <eggert@twinsun.com>
33087
33088         * README: Document assumptions that 'int' is at least 32 bits
33089         wide, that integer arithmetic is 2's complement without overflow,
33090         that there are no holes in integer values, that adding sizes of
33091         two nonoverlapping objects can't overflow, and that all-bits-zero
33092         yields scalar zero.  Fix spelling and capitalization typos.
33093
33094 2003-09-19  Karl Berry  <karl@gnu.org>
33095
33096         * lib/argp.h: update from libc.
33097
33098 2003-09-17  Paul Eggert  <eggert@twinsun.com>
33099
33100         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
33101         to avoid spurious warnings like "AC_RUN_IFELSE was called before
33102         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
33103
33104 2003-09-17  Paul Eggert  <eggert@twinsun.com>
33105
33106         * gnulib-tool: Use "test -h", not "test -L", for portability
33107         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
33108         (tags_regexp): Remove, since \| doesn't conform to POSIX.
33109         (sed_extract_prog): Issue s commands one-by-one, rather than
33110         using \| in one s command.
33111
33112 2003-09-16  Paul Eggert  <eggert@twinsun.com>
33113
33114         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
33115         input error, instead of returning NULL the next time we are called
33116         (and therefore losing track of errno).
33117
33118 2003-09-16  Bruno Haible  <bruno@clisp.org>
33119
33120         * gnulib-tool (func_create_testdir): Warn about duplicated
33121         dependencies.
33122
33123 2003-09-15  Paul Eggert  <eggert@twinsun.com>
33124
33125         * modules/argmatch, modules/fatal, modules/obstack,
33126         modules/xalloc, modules/xgethostname: Sort dependencies by
33127         importance, not alphabetically.
33128
33129 2003-09-15  Paul Eggert  <eggert@twinsun.com>
33130
33131         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
33132         fails, so that the caller gets the proper errno.
33133
33134         * lib/readutmp.c (read_utmp): Likewise.
33135         Check for fstat error.  Close stream and free storage
33136         when failing.
33137
33138 2003-09-14  Karl Berry  <karl@gnu.org>
33139
33140         * config/srclist.txt (strdup.c): disable for c89 changes.
33141
33142 2003-09-14  Jim Meyering  <jim@meyering.net>
33143
33144         * lib/getloadavg.c: Correct cpp indentation.
33145         * lib/strdup.c: Likewise.
33146         * lib/vasnprintf.c: Likewise.
33147
33148 2003-09-14  Bruno Haible  <bruno@clisp.org>
33149
33150         * modules/fwriteerror: New file.
33151         * MODULES.html.sh (func_all_modules): Add fwriteerror.
33152
33153 2003-09-14  Bruno Haible  <bruno@clisp.org>
33154
33155         * lib/fwriteerror.h: New file.
33156         * lib/fwriteerror.c: New file.
33157
33158 2003-09-12  Paul Eggert  <eggert@twinsun.com>
33159
33160         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
33161         modules/xgethostname, modules/xalloc: Depend on exit.
33162
33163 2003-09-12  Paul Eggert  <eggert@twinsun.com>
33164
33165         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
33166
33167         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
33168         and AC_MINIX, too, so that their extensions are available.
33169
33170         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
33171         This macro has been superseded by gl_BACKUPFILE.
33172
33173         More patches to assume C89 or better.
33174
33175         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
33176
33177         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
33178         unconditionally.
33179         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
33180         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
33181         Include <string.h>, <stdlib.h> unconditionally.
33182         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
33183         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
33184         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
33185         headers or for string.h.
33186         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
33187         or strtoul.
33188
33189         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
33190         headers.
33191         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
33192         * m4/userspec.m4 (gl_USERSPEC): Likewise.
33193         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
33194         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
33195         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33196         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
33197         memcpy, memset.
33198         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
33199         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
33200         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
33201         strtol.
33202         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
33203         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
33204         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
33205         strtoul.
33206
33207 2003-09-12  Paul Eggert  <eggert@twinsun.com>
33208
33209         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
33210         * lib/obstack.c [!defined _LIBC]: Likewise.
33211         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
33212         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
33213         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
33214
33215         More changes to assume C89 or better.
33216
33217         * lib/error.c (error_tail): Assume vprintf.
33218
33219         * lib/argmatch.c (getenv): Remove decl.
33220         * lib/progreloc.c (get_full_program_name): Define via prototype.
33221         * lib/setenv.c (clearenv): Likewise.
33222         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
33223         needed.
33224         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
33225         (malloc, memcpy): Remove decls.
33226         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
33227         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
33228         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
33229         (memcpy): Remove macro.
33230         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
33231         (__P): Remove.  All uses removed.
33232         (PTR): Remove.  All uses changed to void *.
33233         (CHAR_BIT, NULL): Remove.
33234         (spaces, zeros, memset_space, memset_zero)
33235         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
33236         Remove.
33237         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
33238         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
33239         Define with prototype.
33240         Remove now-unnecessary prototype decl.
33241         (extra_args_spec): Assume ANSI C.  All uses changed.
33242         (extra_args_spec_iso): Remove.
33243         (my_strftime, emacs_strftimeu): Define via prototype.
33244         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
33245         unconditionally.
33246         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
33247         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
33248         (strtoul, strtol): Remove decls.
33249         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
33250         LONG_MAX): Remove.
33251         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
33252         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
33253         (LOCALE_PARAM_PROTO): New macro.
33254         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
33255         (INTERNAL (strtol), strtol): Define with a prototype.
33256         (PARAMS): Remove.  All uses removed.
33257         * lib/tempname.c: Include <string.h> unconditionally.
33258         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
33259         * lib/xgethostname.c (main): Define with a prototype.
33260         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
33261         Include <stdlib.h> unconditionally.
33262         (calloc, malloc, realloc, free): Remove decls.
33263         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
33264         Include <stdlib.h> unconditionally.  Sort include file names.
33265         (strtod): Remove.
33266         (xstrtod): Define with a prototype.
33267         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
33268         (strtol, strtoul): Remove decls.
33269
33270 2003-09-11  Paul Eggert  <eggert@twinsun.com>
33271
33272         More patches to assume C89 or better.
33273         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
33274         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
33275         string.h, memchr, STDC_HEADERS.
33276
33277 2003-09-11  Paul Eggert  <eggert@twinsun.com>
33278
33279         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
33280         Include <stdlib.h>, <string.h> unconditionally.
33281         Remove now-unnecessary cast to char *.
33282         * lib/strnlen.c: Include <string.h> unconditionally.
33283         * lib/yesno.c (yesno): Define with a prototype.
33284
33285 2003-09-11  Bruno Haible  <bruno@clisp.org>
33286
33287         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
33288
33289 2003-09-10  Jim Meyering  <jim@meyering.net>
33290
33291         * lib/error.c: Correct indentation of cpp directives.
33292
33293 2003-09-10  Bruno Haible  <bruno@clisp.org>
33294
33295         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
33296         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
33297         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
33298         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
33299         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
33300         <stdlib.h> and <string.h> checks.
33301         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
33302         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
33303
33304 2003-09-10  Bruno Haible  <bruno@clisp.org>
33305
33306         * lib/strcspn.c: Include <string.h> unconditionally.
33307         * lib/strpbrk.c: Include <string.h> unconditionally.
33308         * lib/strstr.c: Include <string.h> unconditionally.
33309         * lib/unicodeio.c: Include <string.h> unconditionally.
33310         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
33311         * lib/unsetenv.c: Likewise.
33312         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
33313         * lib/yesno.c: Include <stdlib.h> unconditionally.
33314         (rpmatch): Add prototype.
33315
33316 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33317
33318         More patches to assume C89 or better.
33319         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
33320         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
33321         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
33322         or for string.h.
33323         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
33324         stdlib.h.
33325         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
33326         C headers.
33327         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
33328         string.h.
33329         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
33330         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
33331         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
33332         or for string.h.
33333         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
33334         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
33335         C headers.
33336         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
33337         memcpy.
33338         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
33339         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
33340         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
33341         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
33342         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
33343         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
33344         string.h, free.
33345         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
33346         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
33347         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
33348         C headers, or for string.h.
33349         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
33350         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
33351         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
33352         headers, memory.h, stdlib.h, string.h, strings.h.
33353         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
33354         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
33355         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
33356         strchr.
33357         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
33358         headers, memory.h, string.h.
33359         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
33360         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
33361         free.
33362         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
33363         headers.
33364         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
33365         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
33366         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
33367         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
33368         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
33369
33370 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33371
33372         More K&R removal.
33373
33374         * lib/acosl.c (main): Use a prototype.
33375         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
33376         tanl.c: Likewise.
33377
33378         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
33379
33380         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
33381         (getopt, etopt_long, getopt_long_only, _getopt_internal)
33382         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
33383         with a prototype.
33384         * lib/getopt.c (const): Remove macro.
33385         Include <string.h> unconditionally.
33386         (my_index): Remove; all uses changed to strchr.
33387         (strlen): Remove decl.
33388         (exchange): Remove forward decl; no longer needed.
33389         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
33390         Define with prototype.
33391         * lib/getopt1.c (const): Remove macro.
33392         (getopt_long, getopt_long_only, main): Define with prototype.
33393
33394         * lib/getugroups.c: Include <string.h> unconditionally.
33395
33396         * lib/getusershell.c: Include <stdlib.h> unconditionally.
33397         (getusershell, setusershell, endusershell, readname, main):
33398         Define with prototypes.
33399
33400         * lib/group-member.c: Include group-member.h first.
33401         Include <stdlib.h> unconditionally.
33402
33403         * lib/hard-locale.c: Include hard-locale.h first.
33404         Include <stdlib.h>, <string.h> unconditionally.
33405
33406         * lib/hash.c (free, malloc): Remove decls.
33407         Include <stdlib.h> unconditionally.
33408
33409         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
33410         (getenv): Do not declare.
33411
33412         * lib/idcache.c: Include <string.h> unconditionally.
33413
33414         * lib/long-options.c: Include long-options.h first, to test interface.
33415         Include <stdlib.h> unconditionally.
33416
33417         * lib/makepath.c: Include makepath.h first, to test interface.
33418         Include <stdlib.h> and <string.h> unconditionally.
33419
33420         * lib/linebuffer.c: Include <stdlib.h>.
33421         (free): Remove decl.
33422
33423         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
33424         stddef.h. rpl_malloc returns void *, not char *.
33425         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
33426         prototype.
33427
33428         * lib/md5.h: Include <limits.h> unconditionally.
33429         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
33430         (__P): Remove; all uses removed.
33431         * lib/md5.c: Include "md5.h" first.
33432         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
33433         md5_buffer, md5_process_bytes, md5_process_block):
33434         Define with prototypes.
33435         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
33436         * lib/sha.c: Include "sha.h" first.
33437         Include <stdlib.h>, <string.h> unconditionally.
33438
33439         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
33440         * lib/memcmp.c (__ptr_t): Likewise.
33441         * lib/memrchr.c (__ptr_t): Likewise.
33442         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
33443         Include <string.h> unconditionally.
33444         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
33445         * lib/memchr.c: Include <stdlib.h> unconditionally.
33446         * lib/memchr.c (LONG_MAX): Remove.
33447         * lib/memrchr.c (LONG_MAX): Likewise.
33448         * lib/memchr.c (__memchr): Define via a prototype.
33449         * lib/memrchr.c (__memrchr): Likewise.
33450         * lib/memcmp.c (__P): Remove, and remove all uses.
33451         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
33452         Remove forward decls; no longer needed.
33453         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
33454         Use types required by C89 in prototype.
33455
33456         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
33457         * lib/savedir.c: Likewise.
33458         * lib/mkdir.c (free): Remove decl.
33459         * lib/rmdir.c (rmdir): Define with a prototype.
33460         * lib/savedir.c: Include savedir.h first, to test interface.
33461
33462         * lib/mktime.c (STDC_HEADERS): Remove.
33463         Include <stdlib.h>, <string.h> unconditionally.
33464
33465         * lib/modechange.c: Include <stdlib.h> unconditionally.
33466         (malloc): Remove decl.
33467
33468         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
33469         (free): Remove decl.
33470
33471         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
33472         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
33473         (This type really should be intptr_t, but that's a C99ism.)
33474         (_obstack_memcpy): Remove: all uses changed to memcpy.
33475         Include <string.h> unconditionally.
33476         (struct obstack): Assume __STDC__ for types of members
33477         chunkfun, freefun, extra_arg.
33478         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
33479         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
33480         obstack_begin, obstack_specify_allocation,
33481         obstack_specify_allocation_with_arg, obstack_chunkfun,
33482         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
33483         Remove unprototyped decls and the macros that use them.
33484         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
33485         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
33486         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
33487         (defined __STDC__ && __STDC__)]:
33488         Remove nonprototyped code.
33489         Include <stdlib.h> unconditionally.
33490         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
33491         _obstack_allocated_p, _obstack_free, obstack_free,
33492         _obstack_memory_used, print_and_abort):
33493         Define using prototypes.
33494         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
33495         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
33496         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
33497         obstack_next_free, obstack_object_size, obstack_room) [0]:
33498         Remove unused, unprototyped code.
33499
33500         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
33501
33502         * lib/physmem.c (physmem_total, physmem_available, main): Define
33503         with prototypes.
33504
33505         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
33506         (main): Define with a prototype.
33507
33508         * lib/posixver.c (getenv): Remove decl.
33509
33510         * lib/putenv.c (malloc): Returns void *, not char *.
33511         Include <string.h> unconditionally.
33512         (strchr, memcpy, NULL): Do not define.
33513
33514         * lib/readtokens.c: Include readtokens.h first, to test interface.
33515         Include <stdlib.h>, <string.h> unconditionally.
33516         (init_tokenbuffer): Define with a prototype.
33517
33518         * lib/regex.c (PARAMS): Remove.  All uses removed.
33519         All uses of _RE_ARGS removed, too.
33520         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33521         unconditionally.
33522         (bzero): Assume memset exists.
33523         (memcmp, memcpy, NULL): Remove.
33524         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
33525         char, or assignments to local vars of type signed char.
33526         (init_syntax_once, PREFIX(extract_number_and_incr),
33527         PREFIX(print_partial_compiled_pattern),
33528         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
33529         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
33530         PREFIX(regex_grow_registers), PREFIX(regex_compile),
33531         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
33532         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
33533         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
33534         wcs_compile_range, byte_compile_range, truncate_wchar,
33535         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
33536         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
33537         count_mbs_length, wcs_re_match_2_internal,
33538         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
33539         PREFIX(alt_match_null_string_p),
33540         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
33541         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
33542         regfree, PREFIX(extract_number)): Define with prototype.  Remove
33543         now-unnecessary declaration, if any.
33544         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
33545         regcomp, regexec):
33546         Remove now-unnecessary casts among pointer types.
33547         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
33548
33549         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
33550         (free): Remove decl.
33551
33552         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
33553
33554         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
33555         (free): Remove decl.
33556
33557         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
33558         * lib/xgetcwd.c: Likewise.
33559
33560         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
33561         (free): Remove decl.
33562
33563         * lib/strchrnul.c (strchrnul): Define with a prototype.
33564         Fix bug: c_in was not converted to char before searching.
33565
33566         The following changes are not K&R related:
33567
33568         * lib/group-member.h: Include <sys/types.h>, so that this file is
33569         self-contained.
33570         * lib/makepath.h: Likewise.
33571
33572         * lib/getusershell.c (readname, default_index, line_size, readname):
33573         Use size_t, not int, for sizes.
33574         (readname): If the size overflows, report an error instead of
33575         looping forever.
33576
33577 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33578
33579         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
33580         libc.
33581
33582 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33583
33584         * README: New section: portability guidelines.
33585
33586 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
33587
33588         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
33589         C89 spec.
33590
33591 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
33592
33593         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
33594
33595 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33596
33597         Assume C89 or better; remove K&R cruft.
33598         A few of these changes were first proposed by Derek Robert Price
33599         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
33600
33601         * lib/addext.c: Include <string.h> unconditionally.
33602         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
33603         Don't declare getenv or malloc.
33604
33605         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
33606         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
33607         (NULL): Remove.
33608         (find_stack_direction, alloca): Use prototypes.
33609
33610         * lib/atexit.c (atexit): Define using a prototype.
33611
33612         * lib/basename.c, dirname.c, stripslash.c:
33613         Include <string.h> unconditionally.
33614
33615         * lib/bcopy.c: Include <stddef.h>.
33616         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
33617
33618         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
33619
33620         * lib/error.h (error, error_at_line, error_print_progname)
33621         [! (defined (__STDC__) && __STDC__)]: Remove decls.
33622         * lib/error.c: Include error.h first, to check interface.
33623         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33624         (VA_START): Remove; all uses changeed to va_start.
33625         (exit, strerror): Remove decls.
33626         (error_print_progname): Prototype uncondionally.
33627         Don't include <errno.h>; no longer needed.
33628         (private_strerror): Remove.
33629         (error_tail): Always define.
33630         (error, error_at_line): Assume C89 or better; always use prototypes.
33631         * lib/fatal.c: Include "fatal.h" first, to test interface.
33632         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33633         (VA_START): Remove; all uses changed to va_start.
33634         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
33635         this case.
33636         (exit): Remove decl.
33637         (fatal): Prototype unconditionally.  Assume va_start works.
33638         Abort at end, to pacify gcc.
33639
33640         * lib/euidaccess.c (main): Define with a prototype.
33641
33642         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
33643
33644         * lib/exitfail.c: Include <stdlib.h> unconditionally.
33645
33646         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
33647         prototypes.
33648         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
33649         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
33650         (getenv): Remove decl.
33651         (fnmatch): Define using a prototype.
33652         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
33653         (FCT): Define using a prototype.
33654
33655         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
33656
33657         * lib/gethostname.c: Include <stddef.h>.
33658         (gethostname): Define with prototype.  Length is size_t, not int.
33659
33660 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33661
33662         Assume C89 or better; remove K&R cruft.
33663         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
33664         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
33665         string.h, getenv, malloc.
33666         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
33667         headers.
33668         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
33669         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
33670         do not check for strerror.
33671         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
33672         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
33673         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
33674         do not check for doprnt or vprintf.
33675         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
33676         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
33677
33678 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33679
33680         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
33681         getversion.c should have been removed then, but was accidentally
33682         preserved.
33683
33684         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
33685         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
33686
33687 2003-09-08  Karl Berry  <karl@gnu.org>
33688
33689         * config/config.sub, config.guess, srclistvars.sh: update from savannah
33690                 config, forget about prep.
33691
33692         * config/depcomp, missing: update from automake.
33693
33694 2003-09-07  Paul Eggert  <eggert@twinsun.com>
33695
33696         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
33697         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33698
33699 2003-09-07  Paul Eggert  <eggert@twinsun.com>
33700
33701         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
33702         copy_tm_result.  Bug reported by Simon Josefsson in
33703         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33704
33705 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33706
33707         * m4/time_r.m4: New file.
33708         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
33709         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
33710         is. Check for timegm declaration.
33711         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
33712         Do not check for gmtime_r.
33713         Replace mktime if __mktime_internal does not exist and if mktime
33714         hasn't been replaced already.
33715
33716 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33717
33718         * lib/time_r.c, lib/time_r.h: New files.
33719
33720         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
33721         __localtime_r.
33722         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
33723         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
33724
33725         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
33726         __gmtime_r.
33727         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
33728         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
33729         Include <time_r.h>.
33730
33731         * lib/timegm.c: Switch to glibc implementation, with the following
33732         changes:
33733         [defined HAVE_CONFIG_H]: Include <config.h>.
33734         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
33735         (__mktime_internal) [!defined _LIBC]: New decl.
33736         (__gmtime_r) [!defined _LIBC]: New macro and function.
33737         (timegm): Use a prototype, since gnulib assumes C89.
33738         Do not bother declaring tmp to be const, as it's not really usefu.
33739         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
33740         (timegm): Declare only if HAVE_DECL_TIMEGM.
33741
33742 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33743
33744         * MODULES.html.sh (func_all_modules): Add time_r.
33745         * modules/time_r: New file.
33746         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
33747         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
33748
33749 2003-09-03  Paul Eggert  <eggert@twinsun.com>
33750
33751         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
33752         Bug reported by Lute Kamstra in
33753         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
33754
33755         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
33756         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
33757         course with correspondingly smaller numbers for tomorrow and
33758         yesterday.  From Tadayoshi Funaba.  Originally installed into
33759         sh-utils on 1999-08-07, but the patch got lost (I guess during the
33760         coreutils merge?).
33761
33762 2003-08-31  Simon Josefsson  <jas@extundo.com>
33763
33764         * modules/timegm: New file.
33765         * MODULES.html.sh (func_all_modules): Add timegm.
33766
33767 2003-08-31  Simon Josefsson  <jas@extundo.com>
33768
33769         * m4/timegm.m4: New file.
33770
33771 2003-08-31  Simon Josefsson  <jas@extundo.com>
33772
33773         * lib/timegm.h: New file.
33774         * lib/timegm.c: New file.  Based on
33775         wget-1.8.2/src/http.c:mktime_from_utc.
33776
33777 2003-08-31  Karl Berry  <karl@gnu.org>
33778
33779         * lib/argp.h: update from libc.
33780
33781 2003-08-28  Bruno Haible  <bruno@clisp.org>
33782
33783         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
33784         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
33785         followed by '#define fnmatch fnmatch_posix' gives an error.
33786
33787 2003-08-28  Bruno Haible  <bruno@clisp.org>
33788
33789         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
33790         warning on QNX, which defines O_BINARY to 000000.
33791
33792 2003-08-27  Jim Meyering  <jim@meyering.net>
33793
33794         * m4/mkstemp.m4: Require that the system mkstemp be able to create
33795         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
33796         would fail after 32.  Reported by Danny Levinson.  Details here:
33797         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
33798
33799 2003-08-24  Bruno Haible  <bruno@clisp.org>
33800
33801         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
33802         MSVC7 <stdio.h> is included later.
33803
33804 2003-08-22  Simon Josefsson  <jas@extundo.com>
33805
33806         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
33807
33808 2003-08-20  Karl Berry  <karl@gnu.org>
33809
33810         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
33811
33812 2003-08-20  Bruno Haible  <bruno@clisp.org>
33813
33814         * modules/progname: New file.
33815         * MODULES.html.sh (func_all_modules): Add progname.
33816
33817 2003-08-20  Bruno Haible  <bruno@clisp.org>
33818
33819         * lib/progname.h: New file, from GNU gettext.
33820         * lib/progname.c: New file, from GNU gettext.
33821         * lib/progreloc.c: New file, from GNU gettext.
33822
33823 2003-08-19  Jim Meyering  <jim@meyering.net>
33824
33825         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
33826         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
33827
33828 2003-08-19  Bruno Haible  <bruno@clisp.org>
33829
33830         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
33831         more.
33832
33833 2003-08-19  Bruno Haible  <bruno@clisp.org>
33834
33835         * lib/xstrdup.c: Assume <string.h> exists.
33836
33837 2003-08-18  Paul Eggert  <eggert@twinsun.com>
33838
33839         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
33840         in makefile rules.
33841
33842 2003-08-18  Jim Meyering  <jim@meyering.net>
33843
33844         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
33845         * m4/lib-ld.m4: Likewise.
33846
33847 2003-08-18  Jim Meyering  <jim@meyering.net>
33848
33849         * lib/setenv.h: Indent nested cpp directive.
33850         * lib/vasnprintf.c: Remove trailing blanks.
33851
33852 2003-08-17  Simon Josefsson  <jas@extundo.com>
33853
33854         * modules/xstrndup: New file.
33855         * MODULES.html.sh (func_all_modules): Add xstrndup.
33856
33857 2003-08-17  Simon Josefsson  <jas@extundo.com>
33858
33859         * modules/argp: Fix autoconf macro name. Add more dependencies.
33860
33861 2003-08-17  Simon Josefsson  <jas@extundo.com>
33862
33863         * m4/xstrndup.m4: New file.
33864
33865 2003-08-17  Simon Josefsson  <jas@extundo.com>
33866
33867         * m4/argp.m4: New file.
33868
33869 2003-08-17  Simon Josefsson  <jas@extundo.com>
33870             Bruno Haible  <bruno@clisp.org>
33871
33872         * lib/xstrndup.h: New file.
33873         * lib/xstrndup.c: New file.
33874
33875 2003-08-17  Bruno Haible  <bruno@clisp.org>
33876
33877         * modules/strndup (Files, Include): Add lib/strndup.h.
33878
33879 2003-08-17  Bruno Haible  <bruno@clisp.org>
33880
33881         * modules/euidaccess (Files): Add lib/euidaccess.h.
33882
33883 2003-08-17  Bruno Haible  <bruno@clisp.org>
33884
33885         * lib/strndup.h: New file.
33886
33887 2003-08-17  Bruno Haible  <bruno@clisp.org>
33888
33889         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
33890         like AC_GNU_SOURCE.
33891         * modules/extensions (configure.ac): Comment out the invocation of
33892         gl_USE_SYSTEM_EXTENSIONS.
33893
33894 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33895
33896         Merges from coreutils, etc.
33897         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
33898         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
33899         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
33900         fixing a typo.
33901         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
33902         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
33903
33904 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33905
33906         Document merge from coreutils.
33907         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
33908         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
33909         * modules/utime: Add m4/utimes-null.m4.
33910
33911 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33912
33913         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
33914         space, undoing this 2003-08-12 change:
33915         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
33916
33917 2003-08-16  Paul Eggert  <eggert@twinsun.com>
33918
33919         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
33920         strtoul.c from libc, undoing this 2003-08-12 change:
33921         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
33922
33923 2003-08-16  Jim Meyering  <jim@meyering.net>
33924
33925         Merges from coreutils.
33926         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
33927         prefix.  Adjust cache variables similarly.  Create 500 rather than
33928         just 300 files, to exercise bug on Darwin6.5, too.
33929         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
33930         $missing_dir.
33931         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
33932         AM_SYS_POSIX_TERMIOS.
33933         Reported by mkc@mathdogs.com.
33934         Also change use of $am_cv_sys_posix_termios
33935         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
33936         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
33937         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
33938         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
33939         in /proc/mounts until it finds one with matching device number.  This
33940         is unnecessary when the FILE argument *is* a mount point.  No stat call
33941         is necessary in that case.  So, disable the statvfs-testing code on
33942         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
33943         as RedHat bug# 84846.
33944         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
33945         to 1MB, so as not to render systems with no stack size limit (e.g.,
33946         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
33947         Include <unistd.h>.  On some systems,
33948         it is required for the definition of _SC_PAGESIZE.
33949
33950 2003-08-16  Jim Meyering  <jim@meyering.net>
33951
33952         Merge from coreutils.
33953         * lib/xstrtoimax.c: #else #if -> #elif.
33954         * lib/xstrtoumax.c: Likewise.
33955
33956 2003-08-16  Jim Meyering  <jim@meyering.net>
33957
33958         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
33959         * m4/utimes.m4: Removed.
33960         * m4/utimes-null.m4: Renamed from utimes.m4.
33961
33962         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
33963         to 1MB, so as not to render systems with no stack size limit (e.g.,
33964         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
33965         Include <unistd.h>.  On some systems,
33966         it is required for the definition of _SC_PAGESIZE.
33967
33968 2003-08-16  Jim Meyering  <jim@meyering.net>
33969         and Paul Eggert  <eggert@cs.ucla.edu>
33970
33971         Merges from coreutils, etc.
33972
33973         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
33974         using the latest version from cvs.  This avoids problems with #line
33975         directives using a vendor (Sun) compiler.
33976         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
33977         Don't set GETGROUPS_LIB here; now it's
33978         done via getgroups.m4's wrapper function.
33979         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
33980         rather than just in sh-util/configure.in, so that the
33981         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
33982         same.
33983         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
33984         AC_FUNC_GETLOADAVG where to find getloadavg.c.
33985         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
33986         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
33987         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
33988         Remove code that is now done by the newly-required macros.
33989         Append $(EXEEXT) to DF_PROG.
33990         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
33991         Do not invoke or require the following here,
33992         since prereq.m4 or some gnulib .m4 now does this for us:
33993         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
33994         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
33995         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
33996         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
33997         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
33998         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
33999         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
34000         AC_FUNC_OBSTACK.
34001         Do not replace the following functions, as this is now the job
34002         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
34003         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
34004         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
34005         atexit getpass, strdup, getpagesize.
34006         Replace 'raise'.
34007         Do not check for the following functions, as this is now the job
34008         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
34009         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
34010         setregid.
34011         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
34012         Check for sys/sysctl.h.
34013         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
34014         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
34015         of checking for ssize_t ourselves.
34016
34017         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
34018         Require every macro that gnulib/modules/* suggests for us.
34019         (jm_PREREQ_ADDEXT): New macro.
34020         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
34021         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
34022
34023         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
34024         (gl_PHYSMEM): Use it.
34025         Also check for `table' function.
34026         Check for new headers and functions.
34027         Add check for sys/sysmp.h.
34028         With suggestions from Kaveh Ghazi.
34029         Ignore headers that are present but cannot be compiled.  This
34030         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
34031         C 5.4.
34032
34033 2003-08-15  Paul Eggert  <eggert@twinsun.com>
34034
34035         Document merge from coreutils.
34036         * modules/userspec: Depend on posixver.
34037         * modules/strftime: Depend on tzset.
34038
34039 2003-08-15  Paul Eggert  <eggert@twinsun.com>
34040
34041         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
34042         rather than tab, after '#' in shell-script copyright notices.
34043         Suggested by Bruno Haible.
34044
34045 2003-08-15  Paul Eggert  <eggert@twinsun.com>
34046
34047         * config/srclist-update: Use three spaces, rather than tab, after '#'
34048         in shell-script copyright notices.  Suggested by Bruno Haible.
34049         Remove unnecessary parenthesization in regular expression.
34050
34051 2003-08-15  Jim Meyering  <jim@meyering.net>
34052
34053         Merge from coreutils.
34054         * lib/xgethostname.c: Include <stdlib.h>.
34055         (xghostname): Don't exit for anything other than memory-related
34056         failure; just return NULL.
34057         * lib/userspec.c: Include "posixver.h".
34058         (parse_user_spec): Accept `.' as a separator only
34059         in pre-POSIX-200112 mode.
34060         * lib/strtoimax.c: Use #elif rather than #else #if.
34061         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
34062         Remove function, now that we can rely on a working tzset function.
34063         [!_LIBC]: Ensure that the required autoconf test has been run.
34064         [!defined _NL_CURRENT && HAVE_STRFTIME]:
34065         Use underlying_strftime for %r.
34066         * lib/sha.c: Merge in some clean-up and optimization changes from
34067         glibc.
34068         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
34069         Ensure that it is a multiple of 64.
34070         Rearrange loop exit tests so as to avoid performing an
34071         additional fread after encountering an error or EOF.
34072         * lib/realloc.c: Update copyright date.
34073
34074 2003-08-15  Jim Meyering  <jim@meyering.net>
34075         and Paul Eggert  <eggert@twinsun.com>
34076
34077         Merge from coreutils.
34078         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
34079         member but strut utmpx does not.  Needed for AIX 4.3.3.
34080         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
34081
34082 2003-08-15  Jim Meyering  <jim@meyering.net>
34083         and Paul Eggert  <eggert@cs.ucla.edu>
34084
34085         Merges from coreutils, etc.
34086         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
34087         Require gl_FUNC_TZSET_CLOBBER.
34088         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
34089         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
34090         members.
34091
34092 2003-08-14  Paul Eggert  <eggert@twinsun.com>
34093
34094         Help the merge from coreutils.
34095         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
34096         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
34097         * m4/tzset.m4: Use it too.
34098
34099 2003-08-14  Paul Eggert  <eggert@twinsun.com>
34100
34101         * modules/tzset: New file.
34102
34103 2003-08-14  Jim Meyering  <jim@meyering.net>
34104
34105         Merges from coreutils.
34106         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
34107         variable names, rather than @FNMATCH_H@.
34108         * modules/alloca: Likewise for $(ALLOCA_H).
34109
34110         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
34111         the three copies of the literal target, `fnmatch.h'.
34112         * modules/alloca (alloca.h): Likewise.
34113
34114 2003-08-14  Jim Meyering  <jim@meyering.net>
34115
34116         Merge from coreutils.
34117         * m4/tzset.m4: New file.
34118         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
34119         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
34120         otherwise, AIX 5.1 systems would end up using the latter.
34121         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
34122         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
34123         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
34124         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
34125
34126 2003-08-14  Jim Meyering  <jim@meyering.net>
34127
34128         Merge from coreutils.
34129         * lib/obstack.h: Whitespace changes.
34130         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
34131         and xcalloc return values.
34132         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
34133         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
34134         hang on OSF/1 5.1 for DIR on both local and remote file systems.
34135         Reported by (and fix confirmed by) Nelson H. F. Beebe.
34136         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
34137         error from mntctl.
34138         Use mntctl's return value to drive the entry-processing loop, since
34139         we can't rely on the value of the vmt_length member in the last
34140         entry.  On some systems doing so could result in exhausting
34141         virtual memory.  Based in part on a patch from Mike Jetzer.
34142
34143 2003-08-14  Jim Meyering  <jim@meyering.net>
34144         and Paul Eggert  <eggert@twinsun.com>
34145
34146         Merges from coreutils, plus other fixes.
34147         * lib/physmem.c: Merge in portability changes from gcc/libiberty
34148         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
34149         for credits and details.  Thanks to Kaveh Ghazi for helping
34150         to keep these files in sync.
34151         (ARRAY_SIZE): Define it.
34152         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
34153         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
34154         (memcasecmp): Don't assume size_t fits in unsigned int.
34155         Remove casts and duplicate code.
34156         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
34157         (memcpy): Remove definition.
34158         Merge in some clean-up and optimization changes from glibc.
34159         [BLOCKSIZE]: Move definition to top of file.
34160         Ensure that it is a multiple of 64.
34161         Rearrange loop exit tests so as to avoid performing an
34162         additional fread after encountering an error or EOF.
34163         * lib/md5.h (md5_uintptr): Define.
34164         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
34165         return to the initial working directory.  Preserve errno
34166         for caller.
34167         * lib/idcache.c: Include "xalloc.h".
34168         (xmalloc, xrealloc): Remove decls.
34169         (getuser): Remove casts no longer required in C89.
34170         * lib/human.c: Include stdio.h, for sprintf.
34171         * lib/group-member.c: Include "xalloc.h".
34172         (xmalloc, xrealloc): Remove decls.
34173         (get_group_info): Remove casts no longer required in C89.
34174         * lib/getusershell.c (readname): Remove casts no longer required in
34175         C89.
34176         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
34177         * lib/getline.c: Whitespace fix, from coreutils.
34178
34179 2003-08-13  Paul Eggert  <eggert@twinsun.com>
34180
34181         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
34182         Check for isascii.
34183
34184         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
34185         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
34186         Undo previous (whitespace-only) change.
34187
34188 2003-08-13  Paul Eggert  <eggert@twinsun.com>
34189
34190         * lib/exclude.c: Include <ctype.h>
34191         (IN_CTYPE_DOMAIN): New macro.
34192         (is_space): New fn.
34193         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
34194         and empty lines.
34195
34196         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
34197         Undo previous (whitespace-only) change.
34198
34199 2003-08-13  Paul Eggert  <eggert@twinsun.com>
34200
34201         * config/srclist-update: Change update back to the old behavior,
34202         leaving whitespace alone.  Use one 'sed' command rather than a
34203         pipeline.
34204         (fixlicense): Now a variable, not a function.
34205         (remove_trailing_blanks): Remove.
34206         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
34207         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
34208         Undo previous (whitespace-only) change.
34209
34210 2003-08-12  Paul Eggert  <eggert@twinsun.com>
34211
34212         Merge from coreutils.
34213         * modules/euidaccess: Add lib_SOURCES, include for new
34214         file euidaccess.h
34215
34216 2003-08-12  Paul Eggert  <eggert@twinsun.com>
34217
34218         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
34219         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
34220         Normalize leading white space and remove trailing white space.
34221
34222         Merge from coreutils
34223         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
34224
34225         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
34226         0.12.1.  These files are now being upgraded automatically by
34227         ../config/srclist-update.
34228
34229 2003-08-12  Paul Eggert  <eggert@twinsun.com>
34230
34231         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
34232         Normalize leading white space and remove trailing white space.
34233         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
34234         notice, as per ../config/srclist-update.
34235
34236         Merge from coreutils.
34237         * lib/euidaccess.h: New file.
34238         * lib/euidaccess.c: Include it.
34239         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
34240         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
34241         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
34242
34243 2003-08-12  Paul Eggert  <eggert@twinsun.com>
34244
34245         * config/srclist-update: Add copyright notice.
34246         (remove_id_lines, remove_trailing_blanks): New constants.
34247         (fixfile): Use them to normalize spacing a bit in copied files.
34248         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
34249         Normalize leading white space and remove trailing white space.
34250
34251         * config/texinfo.tex: Sync with texinfo.
34252
34253         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
34254         strtoul.c from libc, to merge coreutils whitespace changes.
34255
34256         * config/srclist.txt: Get the following m4 files from gettext:
34257         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
34258         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
34259         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
34260         wint_t.m4.
34261
34262 2003-08-12  Karl Berry  <karl@gnu.org>
34263
34264         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
34265         been made.
34266
34267 2003-08-11  Paul Eggert  <eggert@twinsun.com>
34268
34269         * modules/gnu-source, m4/gnu-source.m4:
34270         Remove; we're assuming Autoconf 2.54 or later now.
34271         Suggested by Bruno Haible.
34272         * MODULES.html.sh (func_all_modules): Remove gnu-source.
34273
34274 2003-08-11  Bruno Haible  <bruno@clisp.org>
34275
34276         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
34277
34278 2003-08-11  Bruno Haible  <bruno@clisp.org>
34279
34280         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
34281         (vasnprintf): Use it instead of wcslen.
34282
34283 2003-08-11  Bruno Haible  <bruno@clisp.org>
34284
34285         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
34286         value to ensure that _Bool promotes to int. Use #define for _Bool when
34287         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
34288
34289 2003-08-10  Karl Berry  <karl@gnu.org>
34290
34291         * lib/regex.h: update from libc (whitespace fix).
34292
34293 2003-08-09  Paul Eggert  <eggert@twinsun.com>
34294
34295         Merge some files from coreutils.  These changes were
34296         originally made by Jim Meyering.
34297         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
34298         many older Unixes require this.
34299         * lib/alloca.c (alloca): Remove cast to argument of free;
34300         no longer needed in C89.
34301         * lib/alloca_.h, regex.h: Fix white space to match
34302         what GNU indent does.
34303
34304 2003-08-09  Paul Eggert  <eggert@twinsun.com>
34305
34306         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
34307         apparently Emacs's Unicode mode got confused before my 2003-08-05
34308         checkin.
34309
34310 2003-08-08  Paul Eggert  <eggert@twinsun.com>
34311
34312         * m4/extensions.m4: New file.
34313         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
34314         Require gl_USE_SYSTEM_EXTENSIONS.
34315         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
34316         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
34317
34318 2003-08-08  Paul Eggert  <eggert@twinsun.com>
34319
34320         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
34321         * modules/extensions, modules/gnu-source: New files.
34322         * modules/timespec, modules/unlocked-io: Depend on extensions.
34323
34324 2003-08-07  Paul Eggert  <eggert@twinsun.com>
34325
34326         * modules/restrict: New file.
34327         * MODULES.html.sh (func_all_modules): Add restrict.
34328         * modules/regex: Depend on restrict.
34329
34330 2003-08-07  Paul Eggert  <eggert@twinsun.com>
34331
34332         * m4/restrict.m4: New file.
34333         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
34334
34335 2003-08-07  Bruno Haible  <bruno@clisp.org>
34336
34337         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
34338         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
34339
34340 2003-08-07  Bruno Haible  <bruno@clisp.org>
34341
34342         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
34343         makes the module 'getndelim2' compatible with the module 'getline'.
34344
34345 2003-08-05  Paul Eggert  <eggert@twinsun.com>
34346
34347         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
34348         byte with "\201" to avoid glitches when editing that source file
34349         with multi-gnome-terminal.
34350
34351 2003-08-05  Paul Eggert  <eggert@twinsun.com>
34352
34353         * lib/bumpalloc.h: Remove.
34354
34355 2003-08-05  Paul Eggert  <eggert@twinsun.com>
34356
34357         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
34358         * modules/bumpalloc: Remove.
34359
34360 2003-08-04  Paul Eggert  <eggert@twinsun.com>
34361
34362         * lib/getloadavg.c: Change copyright notice and spacing to conform to
34363         GNU coding style.
34364
34365         Merge from coreutils.
34366         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
34367         1. From glibc.
34368         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
34369         from Karl Berry, implemented by Jim Meyering.
34370         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
34371         from Dmitry V. Levin.
34372         Remove anachronistic cast of xrealloc.
34373         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
34374         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
34375         type. Otherwise, it wouldn't compile with at least /bin/cc on
34376         ymp-cray-unicos9.0.2.X.
34377         Combine two mostly-identical uses of alloca into one.
34378         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
34379
34380 2003-08-04  Dave Love  <d.love@dl.ac.uk>
34381
34382         [From Emacs.]
34383
34384         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
34385         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
34386         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
34387         obsolete NLIST_NAME_UNION.
34388         [__GNU__]: Undef BSD and FSCALE.
34389         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
34390
34391 2003-08-03  Paul Eggert  <eggert@twinsun.com>
34392
34393         * lib/stdbool_.h (_Bool): Make it signed char, instead of
34394         an enum type, so that it's guaranteed to promote to int.  See:
34395         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
34396
34397 2003-08-03  Karl Berry  <karl@gnu.org>
34398
34399         * config/depcomp: update from automake.
34400
34401 2003-07-31  Paul Eggert  <eggert@twinsun.com>
34402
34403         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
34404         (strerror): Don't assume that a printable int fits in 14 bytes.
34405
34406 2003-07-31  Bruno Haible  <bruno@clisp.org>
34407
34408         * modules/getpass-gnu: New file.
34409         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
34410
34411 2003-07-31  Bruno Haible  <bruno@clisp.org>
34412
34413         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
34414
34415 2003-07-24  Karl Berry  <karl@gnu.org>
34416
34417         * config/missing: update from automake.
34418
34419 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
34420             Bruno Haible  <bruno@clisp.org>
34421
34422         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
34423         * lib/getline.c (getline, getdelim): Likewise.
34424         Remove _GNU_SOURCE define; now it's defined in config.h through
34425         m4/getline.m4.
34426
34427 2003-07-23  Karl Berry  <karl@gnu.org>
34428
34429         * config/config.sub: update from prep.
34430
34431 2003-07-22  Paul Eggert  <eggert@twinsun.com>
34432
34433         * modules/xalloc (Depends-on): Add exitfail.
34434         * modules/xmemcoll: Likewise.
34435
34436 2003-07-22  Paul Eggert  <eggert@twinsun.com>
34437
34438         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
34439         over-parenthesization in macros.
34440
34441         Sync with coreutils.
34442
34443         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
34444         required by C99.
34445
34446         Use `exit_failure' for xalloc and xmemcoll instead of their own
34447         private exit-failure variables.
34448         * lib/xalloc.h (xalloc_exit_failure): Remove.
34449         * lib/xmalloc.c: Likewise.  Include exitfail.h.
34450         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
34451         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
34452         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
34453         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
34454
34455 2003-07-20  Jim Meyering  <jim@meyering.net>
34456
34457         * modules/closeout (Depends-on): Add exitfail.
34458         Suggestion from Bruno Haible.
34459
34460 2003-07-19  Karl Berry  <karl@gnu.org>
34461
34462         * config/config.sub: update from prep.
34463
34464 2003-07-18  Paul Eggert  <eggert@twinsun.com>
34465
34466         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
34467         Remove.
34468         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
34469         to test that it can stand by itself.  Include "exitfail.h".
34470         Clients should set exit_failure instead.
34471         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
34472
34473 2003-07-18  Bruno Haible  <bruno@clisp.org>
34474
34475         * modules/getndelim2: New file.
34476         * modules/getline: Share files with module getndelim2.
34477         * modules/getnline: Depend on getndelim2 instead of sharing files with
34478         it. Add getnline.c to lib_SOURCES.
34479         * MODULES.html.sh (func_all_modules): Add getndelim2.
34480
34481 2003-07-18  Bruno Haible  <bruno@clisp.org>
34482
34483         * m4/getndelim2.m4: New file.
34484         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
34485         invoke gl_PREREQ_GETNDELIM2.
34486         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
34487         gl_PREREQ_GETNDELIM2.
34488         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
34489         gl_GETNDELIM2.
34490
34491 2003-07-18  Bruno Haible  <bruno@clisp.org>
34492
34493         * lib/getndelim2.h: New file.
34494         * lib/getndelim2.c: Make into a module of its own. Include config.h,
34495         getndelim2.h.
34496         (getndelim2): Make non-static. Change return type to ssize_t.
34497         * lib/getline.h: Change argument names.
34498         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
34499         * lib/getnline.c: Include getndelim2.h.
34500
34501 2003-07-18  Andreas Schwab  <schwab@suse.de>
34502
34503         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
34504
34505 2003-07-17  Karl Berry  <karl@gnu.org>
34506
34507         * config/config.sub: update from prep.
34508
34509 2003-07-17  Bruno Haible  <bruno@clisp.org>
34510
34511         * modules/getnline: New file.
34512         * modules/getline: Add lib/getndelim2.c to source file list.
34513         * MODULES.html.sh (func_all_modules): Add getnline.
34514
34515 2003-07-17  Bruno Haible  <bruno@clisp.org>
34516
34517         * m4/getnline.m4: New file.
34518
34519 2003-07-17  Bruno Haible  <bruno@clisp.org>
34520
34521         * m4/Makefile.am.in: Remove file.
34522         * m4/Makefile.am: Remove file.
34523         * m4/Makefile.in: Remove file.
34524
34525 2003-07-17  Bruno Haible  <bruno@clisp.org>
34526
34527         * lib/getnline.h: New file.
34528         * lib/getnline.c: New file.
34529         * lib/getndelim2.c: New file, extracted from getline.c.
34530         (getndelim2): Renamed from getdelim2, with added nmax argument.
34531         * lib/getline.c: Include getndelim2.c.
34532         (getdelim2): Moved out to getndelim2.c.
34533         (getline, getdelim): Update.
34534
34535 2003-07-17  Bruno Haible  <bruno@clisp.org>
34536
34537         * lib/Makefile.am: Remove file.
34538         * lib/Makefile.in: Remove file.
34539
34540 2003-07-17  Bruno Haible  <bruno@clisp.org>
34541
34542         * configure.in: Remove file.
34543         * Makefile.in: Remove file.
34544
34545 2003-07-17  Bruno Haible  <bruno@clisp.org>
34546
34547         * MODULES.html.sh: Put the </BODY> right before </HTML>.
34548
34549 2003-07-16  Karl Berry  <karl@gnu.org>
34550
34551         * config/srclist-update: was running fixlicense twice, which caused
34552                 texinfo.tex to be nullified for some reason.  Simplify,
34553                 $gplsrc is no longer needed as far as I can see?
34554
34555 2003-07-16  Jim Meyering  <jim@meyering.net>
34556
34557         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
34558
34559 2003-07-15  Paul Eggert  <eggert@twinsun.com>
34560
34561         * config/srclist.txt: Get the following files from gettext-runtime/intl
34562         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
34563         ref-del.sin.  From Bruno Haible.
34564         * config/srclist-update (fixfile): Change grep pattern again, since the
34565         previous fix didn't work (there was another trailing $).  Use
34566         '[$]' to escape the $s.
34567
34568 2003-07-15  Karl Berry  <karl@gnu.org>
34569
34570         * lib/vasnprintf.c: update from gettext.
34571
34572 2003-07-15  Karl Berry  <karl@gnu.org>
34573
34574         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
34575         gets expanded when surrounded by '$'.
34576
34577 2003-07-15  Jim Meyering  <jim@meyering.net>
34578
34579         * modules/save-cwd: Don't depend on error.  From Derek Price.
34580
34581 2003-07-15  Jim Meyering  <jim@meyering.net>
34582
34583         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
34584
34585 2003-07-14  Simon Josefsson  <jas@extundo.com>
34586
34587         * modules/mempcpy: New file.
34588         * MODULES.html.sh (func_all_modules): Add mempcpy.
34589
34590 2003-07-14  Simon Josefsson  <jas@extundo.com>
34591
34592         * m4/mempcpy.m4: New file.
34593
34594 2003-07-14  Simon Josefsson  <jas@extundo.com>
34595
34596         * lib/mempcpy.h: New file.
34597         * lib/mempcpy.c: New file.
34598
34599 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34600
34601         * modules/getdate, modules/posixtm: Depend on mktime.
34602
34603 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34604
34605         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
34606         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
34607         unicodeio.c, unicodeio.h, unlocked-io.h:
34608         Switch from LGPL to GPL.
34609
34610 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34611
34612         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
34613         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
34614         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
34615         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
34616         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
34617         updated automatically by ../config/srclist-update.  This changes
34618         their license from LPGL to GPL.
34619
34620 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34621
34622         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
34623         assumed to refer to the root of the most recent stable gettext version.
34624         * config/srclistvars.sh: Add defaults for eggert.
34625         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
34626         Match "This program" as well as "The program".  This is needed
34627         for gettext.
34628
34629 2003-07-14  Jim Meyering  <jim@meyering.net>
34630
34631         Don't emit diagnostics.  Let callers do that.
34632         * lib/save-cwd.c: Don't include "error.h".
34633         (save_cwd): Don't call error.  Ensure that errno is valid
34634         when returning nonzero.
34635
34636         * lib/save-cwd.h (restore_cwd): Update prototype.
34637         * lib/save-cwd.c (restore_cwd): Remove two parameters.
34638         Simplify.  Don't call error upon failure.  Let callers do that.
34639         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
34640         when auditing is enabled.  But don't bother updating the #if.
34641
34642 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
34643
34644         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
34645         it breaks C++ compilation.
34646         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
34647
34648 2003-07-10  Simon Josefsson  <jas@extundo.com>
34649
34650         * modules/strchrnul (Makefile.am): Add strchrnul.h.
34651
34652 2003-07-10  Jim Meyering  <jim@meyering.net>
34653
34654         * m4/clock_time.m4: Remove trailing blank.
34655         * m4/intmax_t.m4: Likewise.
34656
34657 2003-07-10  Jim Meyering  <jim@meyering.net>
34658
34659         * lib/vasnprintf.c: Remove trailing blanks.
34660         Make cpp indentation consistent.
34661
34662 2003-07-09  Paul Eggert  <eggert@twinsun.com>
34663
34664         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
34665         posixver.c, strftime.c, strnlen.c, strverscmp.c:
34666         Switch from LGPL to GPL.
34667
34668 2003-07-09  Paul Eggert  <eggert@twinsun.com>
34669
34670         * config/srclist.txt: Sort sublists.  Add
34671         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
34672         that differ from gnulib for one reason or another; we'd like this list
34673         to be smaller but for now let's document what we have.
34674
34675 2003-07-08  Paul Eggert  <eggert@twinsun.com>
34676
34677         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
34678         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
34679         and sweeter "eval x=$x".
34680         * config/srclist.txt: Get lib/argp* from glibc.
34681
34682 2003-07-07  Paul Eggert  <eggert@twinsun.com>
34683
34684         * lib/mktime.c: Fix some boundary cases and remove need for floating
34685         point.
34686
34687         Issue a compile-time diagnostic if time_t is floating point, or if
34688         two's complement arithmetic is not in effect, or if arithmetic
34689         right shift does not propagate the sign.  These assumptions were
34690         all in the original code but they weren't checked.
34691
34692         (TIME_T_MIDPOINT, verify): New macros.
34693         (__isleap): Remove; it has integer overflow problems.
34694         (leapyear): New function, without those problems.
34695         (ydhms_tm_diff): Remove; splitting into two parts.
34696         (ydhms_diff): New function, containing the arithmetic part of
34697         the old ydhms_tm_diff function.  Issue a compile-time
34698         diagnostic if we are not using C99 integer division.
34699         Avoid casts when possible.
34700         (guess_time_tm): New function, containing the checking part of
34701         the old ydhms_tm_diff function.  Return the new value, rather than
34702         the difference between it and the old.  Accept a new argument T
34703         so that *T specifies the old value.  Check for overflow in the result.
34704
34705         (__mktime_internal): Use a time_t offset, not a long int offset.
34706         This undoes the 2003-06-04 change, which is no longer needed now
34707         that we have better overflow checking.
34708         (localtime_offset): Likewise.
34709
34710         (__mktime_internal): Avoid harmful overflow on hosts where time_t
34711         and long are 64-bit but int is only 32-bit.
34712         (ydhms_diff): Use long int to store year1 and yday1.
34713         Issue a compile-time diagnostic if long int is not wide enough.
34714
34715         (__mktime_internal): Use long int to store adjusted year and yday.
34716         Use plain C rather than preprocessor commands, if that doesn't
34717         affect efficiency.
34718         Check for overflow (and try to repair) after each probe
34719         rather than checking only at the very end.  This avoids some bugs
34720         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
34721         does not equal GMT offset at maximum time).
34722         Use integer to check for overflow rather than floating point; this
34723         is more portable to non-IEEE hosts, and is a tad faster.
34724         When we detect that we are oscillating between two values,
34725         don't check whether tm_isdst has the requested value, since
34726         we already know the answer.  When tm_isdst has the wrong value,
34727         use a different heuristic to find the right one, based on the
34728         extreme values actually observed in practice in tz2003a,
34729         rather than the (overly optimistic) "previous 3 calendar quarters".
34730
34731         (not_equal_tm, print_tm, check_result): Use "const T" rather than
34732         "T const" to accommodate glibc style.
34733         (check_result): Use less-confusing report format.  "long" -> "long int.
34734         (main): Likewise.
34735         Don't loop if the iteration overflows time_t.
34736         Allow a negative step in the iteration.
34737
34738 2003-07-06  Karl Berry  <karl@gnu.org>
34739
34740         * config/depcomp: update from automake.
34741         * config/config.sub: update from prep.
34742
34743 2003-07-03  Karl Berry  <karl@gnu.org>
34744
34745         * config/config.guess: update from prep.
34746
34747 2003-07-01  Paul Eggert  <eggert@twinsun.com>
34748
34749         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
34750         xreadlink.c now includes it unconditionally.
34751
34752 2003-07-01  Paul Eggert  <eggert@twinsun.com>
34753
34754         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
34755         having it depend on HAVE_SYS_TYPES_H.
34756
34757 2003-07-01  Bruno Haible  <bruno@clisp.org>
34758
34759         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
34760         <sys/types.h> should be sufficient.
34761         Reported by Paul Eggert.
34762
34763 2003-06-26  Karl Berry  <karl@gnu.org>
34764
34765         * config/depcomp: update from automake.
34766
34767 2003-06-26  Bruno Haible  <bruno@clisp.org>
34768
34769         * modules/human: Depend on module stdbool.
34770
34771 2003-06-25  Bruno Haible  <bruno@clisp.org>
34772
34773         * modules/readlink: New file.
34774         * modules/xreadlink: Depend on it.
34775         * MODULES.html.sh (func_all_modules): Add readlink.
34776
34777 2003-06-25  Bruno Haible  <bruno@clisp.org>
34778
34779         * m4/readlink.m4: New file.
34780
34781 2003-06-25  Bruno Haible  <bruno@clisp.org>
34782
34783         * lib/readlink.c: New file.
34784
34785 2003-06-22  Karl Berry  <karl@gnu.org>
34786
34787         * config/srclist.txt: update mkinstalldirs from automake.
34788         * config/mkinstalldirs: update.
34789
34790 2003-06-22  Bruno Haible  <bruno@clisp.org>
34791
34792         Portability to mingw32.
34793         * m4/ssize_t.m4: New file, from GNU gettext.
34794         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
34795         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
34796
34797 2003-06-22  Bruno Haible  <bruno@clisp.org>
34798
34799         * modules/safe-read: Add m4/ssize_t.m4.
34800         * modules/xreadlink: Add m4/ssize_t.m4.
34801
34802 2003-06-20  Bruno Haible  <bruno@clisp.org>
34803
34804         Assume C89, so PARAMS isn't needed.
34805         * lib/unicodeio.h (PARAMS): Remove.
34806         * lib/unicodeio.c: Don't use PARAMS.
34807
34808 2003-06-18  Karl Berry  <karl@gnu.org>
34809
34810         * config/config.{guess,sub}: update from prep.
34811
34812 2003-06-18  Jim Meyering  <jim@meyering.net>
34813
34814         Merge changes from coreutils.
34815         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
34816         Remove explicit declarations of xmalloc and realloc.
34817         Include xalloc.h.
34818         (read_utmp): Remove anachronistic cast of xmalloc.
34819
34820 2003-06-17  Paul Eggert  <eggert@twinsun.com>
34821
34822         Assume C89, so PARAMS isn't needed.
34823         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
34824         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
34825         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
34826         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
34827         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
34828         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
34829         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
34830         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
34831         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
34832         lib/xstrtod.h, lib/xstrtol.h: Likewise.
34833         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
34834         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
34835         no longer needed. Anyway, config.h should always be included before any
34836         other file.
34837
34838 2003-06-11  Simon Josefsson  <jas@extundo.com>
34839
34840         * modules/sysexits: New file.
34841         * MODULES.html.sh (func_all_modules): Add sysexits.
34842
34843 2003-06-11  Simon Josefsson  <jas@extundo.com>
34844
34845         * lib/sysexit_.h: New file.
34846
34847 2003-06-11  Derek Price  <derek@ximbiot.com>
34848
34849         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
34850         necessary.
34851
34852 2003-06-11  Bruno Haible  <bruno@clisp.org>
34853
34854         * m4/sysexits.m4: New file.
34855
34856 2003-06-10  Simon Josefsson  <jas@extundo.com>
34857
34858         * lib/argp.h: New file, from glibc.
34859         * lib/argp-ba.c: New file, from glibc.
34860         * lib/argp-eexst.c: New file, from glibc.
34861         * lib/argp-fmtstream.c: New file, from glibc.
34862         * lib/argp-fmtstream.h: New file, from glibc.
34863         * lib/argp-fs-xinl.c: New file, from glibc.
34864         * lib/argp-help.c: New file, from glibc.
34865         * lib/argp-namefrob.h: New file, from glibc.
34866         * lib/argp-parse.c: New file, from glibc.
34867         * lib/argp-pv.c: New file, from glibc.
34868         * lib/argp-pvh.c: New file, from glibc.
34869         * lib/argp-xinl.c: New file, from glibc.
34870
34871 2003-06-10  Simon Josefsson  <jas@extundo.com>
34872
34873         * modules/strchrnul: New file.
34874
34875 2003-06-10  Simon Josefsson  <jas@extundo.com>
34876
34877         * modules/argp: New file.
34878
34879 2003-06-10  Simon Josefsson  <jas@extundo.com>
34880
34881         * m4/strchrnul.m4: New file.
34882
34883 2003-06-10  Simon Josefsson  <jas@extundo.com>
34884
34885         * lib/strchrnul.h: New file.
34886         * lib/strchrnul.c: New file.
34887
34888 2003-06-10  Bruno Haible  <bruno@clisp.org>
34889
34890         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
34891
34892 2003-06-07  Karl Berry  <karl@gnu.org>
34893
34894         * config/config.{guess,sub}: update from prep.
34895
34896 2003-06-07  Jim Meyering  <jim@meyering.net>
34897
34898         * modules/strtod: Use $(...) notation, not @...@ for
34899         AC_REPLACE'd variables.
34900         * modules/localcharset: Likewise.
34901
34902 2003-06-07  Jim Meyering  <jim@meyering.net>
34903
34904         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
34905         in place of my name in the copyright comment.
34906         Remove definition and uses of __P.
34907
34908         From coreutils.
34909         * lib/stat.c: Don't declare xmalloc explicitly.
34910         Instead, include "xalloc.h".
34911         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
34912         xrealloc, and xcalloc return values.
34913         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
34914         Improve comment.
34915         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
34916
34917 2003-06-07  Bruno Haible  <bruno@clisp.org>
34918
34919         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
34920         avoid AC_CONFIG_LINKS.
34921         * modules/fnmatch (Makefile.am): Use explicit creation rule for
34922         fnmatch.h, to avoid AC_CONFIG_LINKS.
34923         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
34924
34925 2003-06-07  Bruno Haible  <bruno@clisp.org>
34926
34927         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
34928         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
34929         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
34930         directory.
34931         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
34932         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
34933         directory.
34934
34935 2003-06-06  Jim Meyering  <jim@meyering.net>
34936
34937         Merge from coreutils.
34938         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
34939         Consolidate declarations and initializations of *_base* locals.
34940
34941         Merge from coreutils.
34942         This avoids a core dump on systems without GNU putenv,
34943         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
34944         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
34945         (unsetenv): New static function, from GNU libc.
34946         (rpl_putenv): Use it.
34947
34948         * lib/modechange.c: Remove trailing blanks.
34949
34950         Merge from coreutils.
34951         * lib/fsusage.c: Remove declaration of statfs.
34952         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
34953
34954         * lib/posixtm.c: Include <stdbool.h> unconditionally.
34955
34956 2003-06-06  Jim Meyering  <jim@meyering.net>
34957
34958         * lib/stdbool_.h: Renamed from stdbool.h.in.
34959
34960 2003-06-06  Jim Meyering  <jim@meyering.net>
34961             Bruno Haible  <bruno@clisp.org>
34962
34963         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
34964         Adjust Makefile.am snippet not to redirect directly to target.
34965         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
34966
34967 2003-06-05  Paul Eggert  <eggert@twinsun.com>
34968
34969         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
34970         mismatch, look in future quarters as well as past.  This fixes a
34971         bug when processing fall-backwards gaps immediately after a long
34972         period of daylight-saving time.
34973
34974         * lib/mktime.c: Assume freestanding C89 or better.
34975         (HAVE_LIMITS_H): Remove.  Assume it's 1.
34976         (__P): Remove; not used.
34977         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
34978         (mktime, not_equal_tm, print_tm, check_result,
34979         main): Use prototypes.  Use const * where appropriate.
34980         (main): Fix typo in testing code that uncovered by above changes.
34981         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
34982
34983 2003-06-04  Paul Eggert  <eggert@twinsun.com>
34984
34985         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
34986         locale.h, localeconv.  This merges changes from coreutils.
34987
34988         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
34989         It can be removed after the next Autoconf is released.
34990         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
34991         needed.
34992
34993 2003-06-04  Paul Eggert  <eggert@twinsun.com>
34994
34995         * lib/mktime.c: Fix Debian bug 177940
34996         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
34997         (localtime_offset): Now long int, not time_t, because we want it
34998         to be guaranteed to be signed.  All uses changed.
34999         (__mktime_internal): If overflow would occur when adding offset,
35000         don't add it.
35001
35002         Merge 'human' changes from coreutils.  Rewrite to support
35003         locale-specific notations like thousands separators.
35004         * lib/human.c: Simplify authorship notice.
35005         Include human.h immediately after config.h.
35006         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
35007         <limits.h>: Do not include, since human.h does.
35008         (SIZE_MAX, UINTMAX_MAX): New macros.
35009         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
35010         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
35011         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
35012         (power_letter): Renamed from suffixes.
35013         (generate_suffix_backwards): Remove.
35014         (adjust_value): Now takes int style (because of human.h changes)
35015         and long double value (for greater precision on some platforms).
35016         (group_number): New function.
35017         (human_readable): Use it.  Use integer options, not enum.
35018         Put the options before the sizes in the arg list.
35019         Support all the new options.
35020         The old human_readable function has been removed;
35021         use inttostr.h instead.
35022         (human_readable, default_block_size, humblock):
35023         Use uintmax_t, not int, for block sizes.
35024         (human_readable_inexact, block_size_types): Remove.
35025         (block_size_opts): New constant.
35026         (human_options): Renamed from human_block_size, with new signature
35027         that allows block sizes up to UINTMAX_MAX.  All callers changed.
35028         * lib/human.h: Add copyright and authorship notice.
35029         Include <limits.h> and <stdbool.h> unconditionally.
35030         (PARAMS): Remove.  All uses removed.
35031         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
35032         (enum human_inexact_style): Remove tag; now a nameless enum.
35033         (human_floor, human_ceiling, human_round_to_even): Now have
35034         values 2, 0, 1 rather than -1, 1, 0.
35035         (human_group_digits, human_suppress_point_zero, human_autoscale,
35036         human_base_1024, human_SI, human_B): New constants.
35037         (human_readable_inexact, human_block_size): Remove.
35038         (human_readable): Size args are now uintmax_t, not int.
35039         (human_options): New decl.
35040
35041         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
35042         unnecessary now that we assume C89 or better.  This change
35043         imported from coreutils.
35044
35045         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
35046         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
35047         in the 2003-05-30 sync from glibc.
35048
35049         .h files should stand alone, but we shouldn't include <sys/types.h>
35050         if we can get away with just <stddef.h>.
35051
35052         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
35053         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
35054         rather than <sys/types.h>, as we merely need size_t.
35055         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
35056         to get size_t.
35057         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
35058         Include <stdio.h>, to get FILE.
35059         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
35060         memcasecmp.h has included <stddef.h> and all we need is size_t.
35061         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
35062         our interface, instead of including <sys/types.h>
35063
35064 2003-06-04  Paul Eggert  <eggert@twinsun.com>
35065
35066         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
35067         now, as glibc mktime is buggy on non-glibc systems.
35068
35069 2003-06-03  Karl Berry  <karl@gnu.org>
35070
35071         * config/config.sub: update from prep.
35072
35073 2003-06-02  Paul Eggert  <eggert@twinsun.com>
35074
35075         [from coreutils]
35076         Fix some minor time-related bugs with POSIX time arguments.
35077         Some valid time stamps were being rejected (notably -1, and
35078         time stamps before 1900 on 64-bit hosts).  And some invalid
35079         time stamps were being accepted, e.g. September 31.
35080
35081         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
35082         that we can return (time_t) -1 successfully.
35083         * lib/posixtm.c: Likewise.
35084         [HAVE_STDBOOL_H]: Include <stdbool.h>.
35085         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
35086         (t): Remove static var.
35087         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
35088         of static var.  All uses changed.
35089         (year): Do not reject years before 1900; they can occur with
35090         64-bit time_t.
35091         (posix_time_parse): Do not check for out-of-range components;
35092         that is now the caller's responsibility, since our checks were
35093         only approximations.
35094         (posixtime): Use mktime to check for out-of-range components,
35095         since it knows them exactly.
35096         If mktime returns (time_t) -1, check whether an error actually occurred
35097         by invoking localtime on -1.
35098         (main) [TEST_POSIXTIME]: Check for input data errors, and report
35099         posixtime failures better.
35100         Improve the test data (in comments only).
35101
35102 2003-06-02  Karl Berry  <karl@gnu.org>
35103
35104         * config/mkinstalldirs (version): new variable.
35105         (--version): new option.
35106         (usage): improve message.
35107
35108 2003-05-30  Karl Berry  <karl@gnu.org>
35109
35110         * lib/mktime.c: update from libc.
35111
35112 2003-05-30  Bruno Haible  <bruno@clisp.org>
35113
35114         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
35115         * config/config.rpath: Upgrade to gettext-0.12.1.
35116
35117 2003-05-30  Bruno Haible  <bruno@clisp.org>
35118
35119         * m4/gettext.m4: Upgrade to gettext-0.12.1.
35120         * m4/nls.m4: New file, from gettext-0.12.1.
35121         * m4/po.m4: New file, from gettext-0.12.1.
35122         * m4/progtest.m4: Upgrade to gettext-0.12.1.
35123
35124 2003-05-30  Bruno Haible  <bruno@clisp.org>
35125
35126         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
35127         * lib/localcharset.h: Likewise.
35128         * lib/localcharset.c: Likewise.
35129
35130 2003-05-29  Karl Berry  <karl@gnu.org>
35131
35132         * config/config.rpath: update from gettext.
35133
35134 2003-05-28  Paul Eggert  <eggert@twinsun.com>
35135
35136         Assume the headers required for C89 freestanding compilers.
35137         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
35138         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
35139         * m4/human.m4 (gl_HUMAN): Likewise.
35140         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
35141         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
35142         * m4/userspec.m4 (gl_USERSPEC): Likewise.
35143         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
35144         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35145         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
35146
35147 2003-05-28  Paul Eggert  <eggert@twinsun.com>
35148
35149         Assume the headers required for C89 freestanding compilers.
35150         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
35151         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
35152         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
35153         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
35154         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
35155         define, since <limits.h> is guaranteed to do that.
35156         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
35157         * lib/exclude.c: Include <stdbool.h> unconditionally.
35158         * lib/tempname.c: Include <stddef.h> unconditionally.
35159         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
35160         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
35161         <stddef.h> does that.
35162         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
35163         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
35164         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
35165         needed.
35166         * lib/xstrtol.c: Likewise.
35167         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
35168         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
35169
35170         * lib/addext.c (addext): Use assignment rather than cast, to avoid
35171         warnings on some platforms.
35172
35173         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
35174         arbitrarily.
35175
35176 2003-05-26  Jim Meyering  <jim@meyering.net>
35177
35178         Merge in a change from coreutils:
35179         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
35180         that is guaranteed to be `no'.  Use `no_such_member' to indicate
35181         that condition, rather than `-1' which is slightly misleading.
35182         Change the name of the cache variable to have the gl_ prefix.
35183         Prompted by a patch from Richard Dawe for DJGPP.
35184
35185 2003-05-24  Karl Berry  <karl@gnu.org>
35186
35187         * config/config.guess: update from prep.
35188
35189 2003-05-22  Karl Berry  <karl@gnu.org>
35190
35191         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
35192
35193 2003-05-20  Karl Berry  <karl@gnu.org>
35194
35195         * config/config.guess: update from prep.
35196
35197 2003-05-18  Karl Berry  <karl@gnu.org>
35198
35199         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
35200         might actually be set by the user.
35201
35202         * config/depcomp, install-sh, mdate-sh: update from automake.
35203
35204 2003-05-17  Bruno Haible  <bruno@clisp.org>
35205
35206         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
35207         invalid expansion for AC_EGREP_CPP.
35208         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
35209         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
35210         Suggested by Akim Demaille <akim@epita.fr> in
35211         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
35212
35213 2003-05-12  Jim Meyering  <jim@meyering.net>
35214
35215         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
35216         the space-padded-by-default conversion specifiers, %e, %k, %l.
35217
35218 2003-05-12  Bruno Haible  <bruno@clisp.org>
35219
35220         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
35221         the string is longer than 4 KB.
35222
35223 2003-05-11  Karl Berry  <karl@gnu.org>
35224
35225         * config/config.{guess,sub}: update from prep.
35226
35227 2003-05-09  Bruno Haible  <bruno@clisp.org>
35228
35229         * modules/error: Add m4/strerror_r.m4 to file list.
35230
35231 2003-05-03  Bruno Haible  <bruno@clisp.org>
35232
35233         Upgrade to Unicode-4.0.
35234         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
35235         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
35236         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
35237         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
35238         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
35239         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
35240         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
35241         Change width of U+E0100..U+E01EF from 1 to 0.
35242
35243 2003-04-25  Jim Meyering  <jim@meyering.net>
35244
35245         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
35246         of type size_t, not int.
35247
35248 2003-04-25  Bruno Haible  <bruno@clisp.org>
35249
35250         * lib/copy-file.c: Include <stddef.h>, for size_t.
35251
35252 2003-04-21  Paul Eggert  <eggert@twinsun.com>
35253
35254         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
35255         code which expansion is under static control.  Patch imported from
35256         Akim Demaille's patch to Bison; see
35257         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
35258
35259 2003-04-14  Bruno Haible  <bruno@clisp.org>
35260
35261         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
35262
35263 2003-04-11  Jim Meyering  <jim@meyering.net>
35264
35265         Merge changes from Coreutils.
35266
35267         2003-03-22  Jim Meyering  <jim@meyering.net>
35268
35269         * lib/strftime.c (widen): Cast alloca return value to proper type.
35270
35271         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
35272
35273         From GNU libc.
35274         * lib/strftime.c (my_strftime): Handle very large width
35275         specifications for numeric values correctly.  Improve checks for
35276         overflow.
35277
35278         2003-01-19  Jim Meyering  <jim@meyering.net>
35279
35280         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
35281         definitions.
35282         (nl_get_alt_digit) [! defined my_strftime]: Define.
35283         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
35284         _nl_get_alt_digit and _nl_get_walt_digit.
35285
35286         * lib/strftime.c (my_strftime): Merge in locale-related changes from
35287         libc. These changes have no effect outside of _LIBC.
35288
35289 2003-04-10  Bruno Haible  <bruno@clisp.org>
35290
35291         * modules/findprog: New file.
35292         * MODULES.html.sh (func_all_modules): Add it.
35293
35294 2003-04-10  Bruno Haible  <bruno@clisp.org>
35295
35296         * m4/findprog.m4: New file.
35297         * m4/eaccess.m4: New file.
35298
35299 2003-04-10  Bruno Haible  <bruno@clisp.org>
35300
35301         * lib/findprog.h: New file, from GNU gettext.
35302         * lib/findprog.c: New file, from GNU gettext.
35303
35304 2003-04-05  Jim Meyering  <jim@meyering.net>
35305
35306         Merge changes from Coreutils.
35307
35308         * lib/exclude.h (PARAMS): Remove definition and uses.
35309         * lib/exclude.c: Remove uses of `PARAMS'.
35310
35311         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
35312         Add test-cases for DOS filenames. Declare program_name.
35313         (main): Set up program_name.  Patch by Rich Dawe.
35314
35315         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
35316         error from mntctl.
35317         Use mntctl's return value to drive the entry-processing loop, since
35318         we can't rely on the value of the vmt_length member in the last
35319         entry.  On some systems doing so could result in exhausting
35320         virtual memory.  Based in part on a patch from Mike Jetzer.
35321
35322 2003-04-04  Bruno Haible  <bruno@clisp.org>
35323
35324         * modules/linebreak: New file.
35325         * MODULES.html.sh (func_all_modules): Add it.
35326
35327 2003-04-04  Bruno Haible  <bruno@clisp.org>
35328
35329         * m4/linebreak.m4: New file.
35330
35331 2003-04-04  Bruno Haible  <bruno@clisp.org>
35332
35333         * lib/linebreak.h: New file, from GNU gettext.
35334         * lib/linebreak.c: New file, from GNU gettext with slight
35335         modifications.
35336         * lib/lbrkprop.h: New file, from GNU gettext.
35337
35338 2003-04-03  Bruno Haible  <bruno@clisp.org>
35339
35340         * modules/utf8-ucs4: New file.
35341         * modules/utf16-ucs4: New file.
35342         * modules/ucs4-utf8: New file.
35343         * modules/ucs4-utf16: New file.
35344         * MODULES.html.sh (func_all_modules): Add them.
35345
35346 2003-04-03  Bruno Haible  <bruno@clisp.org>
35347
35348         * m4/utf-ucs4.m4: New file.
35349         * m4/ucs4-utf.m4: New file.
35350
35351 2003-04-03  Bruno Haible  <bruno@clisp.org>
35352
35353         * lib/utf8-ucs4.h: New file, from GNU gettext.
35354         * lib/utf16-ucs4.h: New file, from GNU gettext.
35355         * lib/ucs4-utf8.h: New file, from GNU gettext.
35356         * lib/ucs4-utf16.h: New file, from GNU gettext.
35357
35358 2003-04-02  Bruno Haible  <bruno@clisp.org>
35359
35360         * modules/binary-io: New file.
35361         * MODULES.html.sh (func_all_modules): Add it.
35362
35363 2003-04-02  Bruno Haible  <bruno@clisp.org>
35364
35365         * lib/binary-io.h: New file, from GNU gettext.
35366
35367 2003-04-01  Bruno Haible  <bruno@clisp.org>
35368
35369         * modules/pathname: New file.
35370         * MODULES.html.sh (func_all_modules): Add it.
35371
35372 2003-04-01  Bruno Haible  <bruno@clisp.org>
35373
35374         * lib/pathname.h: New file, from GNU gettext.
35375         * lib/concatpath.c: New file, from GNU gettext.
35376
35377 2003-03-30  Bruno Haible  <bruno@clisp.org>
35378
35379         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
35380
35381 2003-03-30  Bruno Haible  <bruno@clisp.org>
35382
35383         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
35384         function chown() doesn't exist.
35385
35386 2003-03-28  Bruno Haible  <bruno@clisp.org>
35387
35388         * modules/copy-file: New file.
35389         * MODULES.html.sh (func_all_modules): Add it.
35390
35391 2003-03-28  Bruno Haible  <bruno@clisp.org>
35392
35393         * m4/copy-file.m4: New file.
35394
35395 2003-03-28  Bruno Haible  <bruno@clisp.org>
35396
35397         * lib/copy-file.h: New file, from GNU gettext.
35398         * lib/copy-file.c: New file, from GNU gettext.
35399
35400 2003-03-18  Jim Meyering  <jim@meyering.net>
35401
35402         * lib/quote.c (quote_n): Fix typo in comment.
35403
35404 2003-03-18  Bruno Haible  <bruno@clisp.org>
35405
35406         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
35407         checking.
35408         * m4/onceonly_2_57.m4: Likewise.
35409
35410 2003-03-17  Bruno Haible  <bruno@clisp.org>
35411
35412         * m4/onceonly.m4: Require autoconf 2.54 or newer.
35413         (m4_quote): Remove macro.
35414         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
35415
35416 2003-03-14  Jim Meyering  <jim@meyering.net>
35417
35418         Merge changes from Coreutils.
35419         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
35420         to be const, in order to avoid warnings.
35421         (obstack_room): Likewise.
35422         (obstack_empty_p): Likewise.
35423
35424 2003-03-14  Bruno Haible  <bruno@clisp.org>
35425
35426         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
35427         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
35428
35429 2003-03-13  Paul Eggert  <eggert@twinsun.com>
35430
35431         Merge changes from Bison.
35432         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
35433         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
35434         when compiling Bison 1.875's `bitset bset = obstack_alloc
35435         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
35436         * lib/hash.c: Include <stdbool.h> unconditionally.
35437
35438 2003-03-13  Paul Eggert  <eggert@twinsun.com>
35439
35440         * m4/onceonly.m4 (m4_quote): New macro.
35441         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
35442         Quote AC_FOREACH variable-expansions properly.
35443
35444 2003-03-13  Paul Eggert  <eggert@twinsun.com>
35445
35446         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
35447
35448 2003-03-09  Paul Eggert  <eggert@twinsun.com>
35449
35450         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
35451         Reported by Bruce Becker; see:
35452         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
35453
35454 2003-03-03  Paul Eggert  <eggert@twinsun.com>
35455             Bruno Haible  <bruno@clisp.org>
35456
35457         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
35458         Reported by John Hughes, see
35459         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
35460
35461 2003-02-20  Bruno Haible  <bruno@clisp.org>
35462
35463         * MODULES.html.sh (func_all_modules): Add poll.
35464
35465 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35466
35467         * modules/poll: New file.
35468
35469 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35470
35471         * lib/poll_.h: New file.
35472         * lib/poll.c: New file.
35473
35474 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35475
35476         * m4/poll.m4: New file.
35477
35478 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35479
35480         * modules/mathl: New file.
35481
35482 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35483
35484         * lib/mathl.h: New file.
35485         * lib/acosl.c: New file.
35486         * lib/asinl.c: New file.
35487         * lib/atanl.c: New file.
35488         * lib/ceill.c: New file.
35489         * lib/cosl.c: New file.
35490         * lib/expl.c: New file.
35491         * lib/floorl.c: New file.
35492         * lib/frexpl.c: New file.
35493         * lib/ldexpl.c: New file.
35494         * lib/logl.c: New file.
35495         * lib/sincosl.c: New file.
35496         * lib/sinl.c: New file.
35497         * lib/sqrtl.c: New file.
35498         * lib/tanl.c: New file.
35499         * lib/trigl.c: New file.
35500         * lib/trigl.h: New file.
35501
35502 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35503
35504         * m4/mathl.m4: New file.
35505
35506 2003-02-18  Bruno Haible  <bruno@clisp.org>
35507
35508         * MODULES.html.sh (func_all_modules): Add mathl.
35509
35510 2003-02-17  Bruno Haible  <bruno@clisp.org>
35511
35512         * modules/mkdtemp: New module.
35513         * MODULES.html.sh (func_all_modules): Add it.
35514
35515 2003-02-17  Bruno Haible  <bruno@clisp.org>
35516
35517         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
35518
35519 2003-02-17  Bruno Haible  <bruno@clisp.org>
35520
35521         * lib/mkdtemp.h: New file, from GNU gettext.
35522         * lib/mkdtemp.c: New file, from GNU gettext.
35523
35524 2003-02-02  Jim Meyering  <jim@meyering.net>
35525
35526         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
35527         e.g. glibc-2.2.93.
35528
35529 2003-01-31  Bruno Haible  <bruno@clisp.org>
35530
35531         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
35532         'rpl_rename'.
35533         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
35534         'rpl_strnlen'.
35535         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
35536         'rpl_strtod'.
35537         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
35538         'rpl_utime'.
35539
35540 2003-01-31  Bruno Haible  <bruno@clisp.org>
35541
35542         * lib/rename.c: #undef rename before defining rpl_rename.
35543         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
35544
35545 2003-01-30  Bruno Haible  <bruno@clisp.org>
35546
35547         * modules/vasnprintf, modules/vasprintf: New modules.
35548         * MODULES.html.sh (func_all_modules): Add them.
35549
35550 2003-01-30  Bruno Haible  <bruno@clisp.org>
35551
35552         * m4/signed.m4: New file, from GNU gettext.
35553         * m4/longdouble.m4: New file, from GNU gettext.
35554         * m4/wchar_t.m4: New file, from GNU gettext.
35555         * m4/wint_t.m4: New file, from GNU gettext.
35556         * m4/vasnprintf.m4: New file.
35557         * m4/vasprintf.m4: New file.
35558
35559 2003-01-30  Bruno Haible  <bruno@clisp.org>
35560
35561         * lib/printf-args.h: New file, from GNU gettext.
35562         * lib/printf-args.c: New file, from GNU gettext.
35563         * lib/printf-parse.h: New file, from GNU gettext.
35564         * lib/printf-parse.c: New file, from GNU gettext.
35565         * lib/vasnprintf.h: New file, from GNU gettext.
35566         * lib/vasnprintf.c: New file, from GNU gettext.
35567         * lib/asnprintf.c: New file, from GNU gettext.
35568         * lib/vasprintf.h: New file, from GNU gettext with modifications.
35569         * lib/vasprintf.c: New file, from GNU gettext.
35570         * lib/asprintf.c: New file, from GNU gettext.
35571
35572 2003-01-29  Bruno Haible  <bruno@clisp.org>
35573
35574         * modules/stpncpy: New module.
35575         * MODULES.html.sh (func_all_modules): Add it.
35576
35577 2003-01-29  Bruno Haible  <bruno@clisp.org>
35578
35579         * m4/stpncpy.m4: New file.
35580
35581 2003-01-29  Bruno Haible  <bruno@clisp.org>
35582
35583         * lib/stpncpy.h: New file, from GNU gettext with modifications.
35584         * lib/stpncpy.c: New file, from GNU gettext with modifications.
35585
35586 2003-01-28  Bruno Haible  <bruno@clisp.org>
35587
35588         * modules/c-ctype: New module.
35589         * MODULES.html.sh (func_all_modules): Add it.
35590
35591 2003-01-28  Bruno Haible  <bruno@clisp.org>
35592
35593         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
35594         Paul Eggert.
35595         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
35596         Paul Eggert.
35597
35598 2003-01-27  Bruno Haible  <bruno@clisp.org>
35599
35600         * modules/xsetenv: New module.
35601         * MODULES.html.sh (func_all_modules): Add it.
35602
35603 2003-01-27  Bruno Haible  <bruno@clisp.org>
35604
35605         * lib/xsetenv.h: New file, from GNU gettext.
35606         * lib/xsetenv.c: New file, from GNU gettext.
35607
35608 2003-01-23  Jim Meyering  <jim@meyering.net>
35609
35610         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
35611         from working on systems without dirfd (at least Irix and OSF1/Tru64).
35612
35613 2003-01-23  Bruno Haible  <bruno@clisp.org>
35614
35615         * modules/minmax: New module.
35616         * MODULES.html.sh (func_all_modules): Add it.
35617
35618 2003-01-23  Bruno Haible  <bruno@clisp.org>
35619
35620         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
35621         Eggert.
35622
35623 2003-01-22  Bruno Haible  <bruno@clisp.org>
35624
35625         * modules/exit: New module.
35626         * MODULES.html.sh (func_all_modules): Add it.
35627
35628 2003-01-22  Bruno Haible  <bruno@clisp.org>
35629
35630         * lib/exit.h: New file, from GNU gettext.
35631
35632 2003-01-19  Bruno Haible  <bruno@clisp.org>
35633
35634         * gnulib-tool: Recognize option --extract-maintainer.
35635         (func_get_maintainer): New function.
35636         * modules/*: Add Maintainer entry.
35637
35638 2003-01-16  Jim Meyering  <jim@meyering.net>
35639
35640         * m4/regex.m4: The `regex' struct is both input and output.
35641         Initialize it before each use.  Patch by Tim Waugh.
35642
35643 2003-01-16  Bruno Haible  <bruno@clisp.org>
35644
35645         * MODULES.html.sh: Add a table of contents. Add the module name as
35646         leftmost column. Add hyperlinks.
35647
35648 2003-01-15  Bruno Haible  <bruno@clisp.org>
35649
35650         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
35651
35652 2003-01-15  Bruno Haible  <bruno@clisp.org>
35653
35654         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
35655         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
35656         suffix.
35657
35658 2003-01-15  Bruno Haible  <bruno@clisp.org>
35659
35660         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
35661
35662 2003-01-15  Bruno Haible  <bruno@clisp.org>
35663
35664         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
35665         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
35666
35667 2003-01-14  Jim Meyering  <jim@meyering.net>
35668
35669         * lib/same.c (same_name): Tweak a comment.
35670
35671 2003-01-14  Bruno Haible  <bruno@clisp.org>
35672
35673         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
35674         when a string comparison is sufficient.
35675
35676 2003-01-14  Bruno Haible  <bruno@clisp.org>
35677
35678         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
35679         'unsigned int'.
35680
35681 2003-01-14  Bruno Haible  <bruno@clisp.org>
35682
35683         * lib/hash-pjw.c: Add comment about low quality of this function.
35684
35685 2003-01-13  Bruno Haible  <bruno@clisp.org>
35686
35687         * modules/stpcpy: Distribute lib/stpcpy.h.
35688         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
35689
35690 2003-01-13  Bruno Haible  <bruno@clisp.org>
35691
35692         * modules/*: Add a description.
35693         * modules/strpbrk: Fix Makefile.am snippet.
35694         * modules/strtoimax: Fix dependencies.
35695         * modules/strtoumax: Likewise.
35696
35697 2003-01-13  Bruno Haible  <bruno@clisp.org>
35698
35699         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
35700         * modules/alloca (Makefile.am): All object files depend on alloca.h.
35701         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
35702
35703 2003-01-13  Bruno Haible  <bruno@clisp.org>
35704
35705         * gnulib-tool (func_create_testdir): Store config/* files in the main
35706         directory.
35707         * config.rpath: Move to ...
35708         * config/config.rpath: ... here.
35709         * modules/gettext: Contains config/config.rpath, not config.rpath.
35710         * modules/iconv: Likewise.
35711
35712 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35713
35714         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35715         to avoid collisions with libcurses and libreadline.
35716
35717         * m4/getstr.m4: Remove.
35718         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
35719
35720 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35721
35722         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35723         to avoid collisions with libcurses and libreadline.
35724
35725         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
35726         * lib/getstr.h, getstr.c: Remove.
35727         * lib/getline.c: Include "getline.h", to check interface.
35728         Move body of old getstr.c here: this defines MIN_CHUNK and
35729         declares getdelim2, which is renamed from getstr.
35730         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
35731
35732         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
35733         All uses changed.
35734         * lib/linebuffer.h: Likewise.
35735         (readline): Remove backward-compatibility macro.
35736
35737 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35738
35739         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35740         to avoid collisions with libcurses and libreadline.
35741         * getstr: Remove.
35742         * MODULES.html.sh: Remove getstr.
35743         * modules/getline: Depend on unlocked-io, not getstr.
35744
35745 2003-01-12  Jim Meyering  <jim@meyering.net>
35746
35747         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
35748
35749 2003-01-10  Bruno Haible  <bruno@clisp.org>
35750
35751         * modules/alloca: Change Makefile.am requirements. Simplify Include
35752         requirements. Add lib/alloca_.h to file list.
35753
35754 2003-01-10  Bruno Haible  <bruno@clisp.org>
35755
35756         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
35757
35758 2003-01-10  Bruno Haible  <bruno@clisp.org>
35759
35760         * lib/alloca_.h: New file.
35761         * lib/getdate.y: Unconditionally include alloca.h.
35762         * lib/makepath.c: Likewise.
35763         * lib/setenv.c: Likewise.
35764         * lib/userspec.c: Likewise.
35765
35766 2003-01-09  Karl Berry  <karl@gnu.org>
35767
35768         * MODULES.html.sh: include `dirname $0` in PATH, to find
35769         gnulib-tool.
35770
35771 2003-01-09  Bruno Haible  <bruno@clisp.org>
35772
35773         * modules/stdbool: Change configure.ac, Makefile.am requirements.
35774         Simplify Include requirements. Add lib/stdbool.h.in to file list.
35775
35776 2003-01-09  Bruno Haible  <bruno@clisp.org>
35777
35778         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
35779
35780 2003-01-09  Bruno Haible  <bruno@clisp.org>
35781
35782         * lib/stdbool.h.in: New file.
35783
35784 2003-01-09  Bruno Haible  <bruno@clisp.org>
35785
35786         * gnulib-tool (func_all_modules): Ignore files ending in ~.
35787         * MODULES.html.sh: Likewise.
35788
35789 2003-01-08  Jim Meyering  <jim@meyering.net>
35790
35791         * lib/full-write.c: Undefine and define-away `const' after inclusion
35792         of errno.h, not before.  Suggestion from Bruno Haible.
35793
35794 2003-01-08  Bruno Haible  <bruno@clisp.org>
35795
35796         * modules/full-read: Depend on full-write.
35797
35798 2003-01-08  Bruno Haible  <bruno@clisp.org>
35799
35800         * lib/safe-read.c: Include specification header first, to ensure its
35801         selfcontainedness.
35802         * lib/full-write.c: Likewise.
35803
35804 2003-01-07  Jim Meyering  <jim@meyering.net>
35805
35806         * lib/full-write.c: Rework so that it may serve to define full_read,
35807         too.
35808         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
35809
35810 2003-01-07  Bruno Haible  <bruno@clisp.org>
35811
35812         * lib/strtoimax.c: Include <stdint.h> as an alternative to
35813         <inttypes.h>.
35814         * lib/xstrtol.h: Likewise.
35815         * lib/xstrtoimax.c: Likewise.
35816         * lib/xstrtoumax.c: Likewise.
35817         * lib/human.h: Likewise.
35818
35819         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
35820         on systems that have <inttypes.h> but not <stdint.h>.
35821
35822 2003-01-07  Bruno Haible  <bruno@clisp.org>
35823
35824         * MODULES.html.sh: Add copyright notice.
35825         (missed_files): Omit CVS directory entries.
35826         (func_module): Make it work with sed-3.02.
35827         * MODULES.txt: Remove file.
35828
35829 2003-01-06  Jim Meyering  <jim@meyering.net>
35830
35831         * lib/version-etc.c: Update year in translatable copyright string.
35832
35833 2003-01-03  Karl Berry  <karl@gnu.org>
35834
35835         * config/config.{guess,sub}: update from prep.
35836
35837 2003-01-02  Karl Berry  <karl@gnu.org>
35838
35839         * doc/COPYING.DOC: belatedly updated to 1.2.
35840
35841 2003-01-01  Karl Berry  <karl@gnu.org>
35842
35843         * gnulib-tool (func_verify_module): report module name $module in
35844         error message, not $1.
35845         * gnulib-tool (create-testdir): don't complain if destdir couldn't
35846         be created, only if it doesn't exist.
35847         * gnulib-tool (last_checkin_date): don't expand the $Date here.
35848
35849 2002-12-31  Paul Eggert  <eggert@twinsun.com>
35850
35851         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
35852
35853 2002-12-31  Paul Eggert  <eggert@twinsun.com>
35854
35855         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
35856         memcmp if strcoll doesn't work.
35857
35858 2002-12-31  Bruno Haible  <bruno@clisp.org>
35859
35860         * lib/utime.c (utime_null): No need to call ftruncate if the file was
35861         nonempty.
35862
35863 2002-12-31  Bruno Haible  <bruno@clisp.org>
35864
35865         * lib/memcoll.c (STRCOLL): New macro.
35866         (memcoll): Use it.
35867
35868 2002-12-31  Bruno Haible  <bruno@clisp.org>
35869
35870         * lib/localcharset.h: New file.
35871         * lib/localcharset.c: Include it.
35872         * lib/unicodeio.c: Likewise.
35873
35874 2002-12-31  Bruno Haible  <bruno@clisp.org>
35875
35876         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
35877         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
35878
35879 2002-12-31  Bruno Haible  <bruno@clisp.org>
35880
35881         * lib/getline.h: Include <stddef.h>, for size_t.
35882
35883         * lib/unicodeio.h: Include <stddef.h>, for size_t.
35884         * lib/unicodeio.c: Don't include <stddef.h>.
35885
35886 2002-12-31  Bruno Haible  <bruno@clisp.org>
35887
35888         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
35889         HAVE_TM_ZONE.
35890
35891 2002-12-24  Karl Berry  <karl@gnu.org>
35892
35893         * config/config.guess: update from prep.
35894
35895 2002-12-24  Bruno Haible  <bruno@clisp.org>
35896
35897         General infrasructure.
35898         * m4/README: Rewritten.
35899         * m4/onceonly.m4: New file.
35900         * m4/onceonly_2_57.m4: New file.
35901
35902         Module atexit.
35903         * m4/atexit.m4: New file.
35904
35905         Module strtod.
35906         * m4/strtod.m4: New file.
35907
35908         Module strtol.
35909         * m4/strtol.m4: New file.
35910
35911         Module strtoul.
35912         * m4/strtoul.m4: New file.
35913
35914         Module memchr.
35915         * m4/memchr.m4: New file.
35916
35917         Module memcmp.
35918         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
35919         (jm_FUNC_MEMCMP): Invoke it.
35920
35921         Module memcpy.
35922         * m4/memcpy.m4: New file.
35923
35924         Module memmove.
35925         * m4/memmove.m4: New file.
35926
35927         Module memset.
35928         * m4/memset.m4: New file.
35929
35930         Module strcspn.
35931         * m4/strcspn.m4: New file.
35932
35933         Module strpbrk.
35934         * m4/strpbrk.m4: New file.
35935
35936         Module strstr.
35937         * m4/strstr.m4: New file.
35938
35939         Module strerror.
35940         * m4/strerror.m4: New file.
35941
35942         Module mktime.
35943         * m4/mktime.m4: Renamed from jm-mktime.m4.
35944         (gl_PREREQ_MKTIME): New macro.
35945         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
35946
35947         Module malloc.
35948         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
35949         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
35950         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
35951
35952         Module realloc.
35953         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
35954         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
35955         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
35956
35957         Module strftime.
35958         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
35959         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
35960         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
35961         gl_TM_GMTOFF.
35962         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
35963
35964         Module xalloc.
35965         * m4/xalloc.m4: New file.
35966
35967         Module alloca.
35968         * m4/alloca.m4: New file.
35969
35970         Module putenv.
35971         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
35972         (jm_FUNC_PUTENV): Invoke it.
35973
35974         Module setenv.
35975         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
35976         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
35977         when invoked twice.
35978         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
35979         gt_FUNC_SETENV.
35980
35981         Module memrchr.
35982         * m4/memrchr.m4: New file.
35983
35984         Module stpcpy.
35985         * m4/stpcpy.m4: New file.
35986
35987         Module strcase.
35988         * m4/strcase.m4: New file.
35989
35990         Module strdup.
35991         * m4/strdup.m4: New file.
35992
35993         Module strnlen.
35994         * m4/strnlen.m4: New file.
35995
35996         Module strndup.
35997         * m4/strndup.m4: New file.
35998
35999         Module xstrtod.
36000         * m4/xstrtod.m4: New file.
36001
36002         Module xstrtol.
36003         * m4/xstrtol.m4: New file.
36004
36005         Module getdate.
36006         * m4/getdate.m4: New file.
36007
36008         Module unlocked-io.
36009         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
36010         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
36011         * m4/jm-glibc-io.m4n: Remove file.
36012
36013         Module long-options.
36014         * m4/long-options.m4: New file.
36015
36016         Module md5.
36017         * m4/md5.m4: New file.
36018
36019         Module sha.
36020         * m4/sha.m4: New file.
36021
36022         Module getstr.
36023         * m4/getstr.m4: New file.
36024
36025         Module getline.
36026         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
36027         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
36028         <sys/types.h>, for size_t. Use the function name gnu_getline, not
36029         simply getline. Infoke gl_PREREQ_GETLINE.
36030
36031         Module obstack.
36032         * m4/obstack.m4: New file.
36033
36034         Module hash.
36035         * m4/hash.m4: New file.
36036
36037         Module readtokens.
36038         * m4/readtokens.m4: New file.
36039
36040         Module strverscmp.
36041         * m4/strverscmp.m4: New file.
36042
36043         Module stdbool.
36044         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
36045         OSF/1.
36046
36047         Module strtoll.
36048         * m4/strtoll.m4: New file.
36049
36050         Module strtoull.
36051         * m4/strtoull.m4: New file.
36052
36053         Module strtoimax.
36054         * m4/strtoimax.m4: New file.
36055
36056         Module strtoumax.
36057         * m4/strtoumax.m4: New file.
36058
36059         Module xstrtoimax.
36060         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
36061         jm_AC_PREREQ_XSTRTOIMAX.
36062         Moved the strtol prerequisites to strtol.m4.
36063         Moved the strtoll prerequisites to strtoll.m4.
36064         Moved the strtoimax prerequisites to strtoimax.m4.
36065
36066         Module xstrtoumax.
36067         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
36068         jm_AC_PREREQ_XSTRTOUMAX.
36069         Moved the strtoul prerequisites to strtoul.m4.
36070         Moved the strtoull prerequisites to strtoull.m4.
36071         Moved the strtoumax prerequisites to strtoumax.m4.
36072
36073         Module chown.
36074         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
36075         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
36076
36077         Module dup2.
36078         * m4/dup2.m4: New file.
36079
36080         Module ftruncate.
36081         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
36082         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
36083
36084         Module getgroups.
36085         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
36086         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
36087
36088         Module gettimeofday.
36089         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
36090         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
36091         gl_PREREQ_GETTIMEOFDAY.
36092
36093         Module mkdir.
36094         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
36095         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
36096
36097         Module mkstemp.
36098         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
36099         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
36100         jm_AC_TYPE_UINTMAX_T.
36101         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
36102
36103         Module stat.
36104         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
36105         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
36106
36107         Module lstat.
36108         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
36109         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
36110
36111         Module timespec.
36112         * m4/timespec.m4 (gl_TIMESPEC): New macro.
36113         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
36114         * m4/st_mtim.m4: Indentation.
36115
36116         Module nanosleep.
36117         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
36118         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
36119         gl_PREREQ_NANOSLEEP.
36120
36121         Module regex.
36122         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
36123         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
36124         (gl_REGEX): New macro.
36125
36126         Module rename.
36127         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
36128         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
36129
36130         Module rmdir.
36131         * m4/rmdir.m4: New file.
36132
36133         Module utime.
36134         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
36135         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
36136         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
36137
36138         Module dirname.
36139         * m4/dirname.m4: New file.
36140
36141         Module getopt.
36142         * m4/getopt.m4: New file.
36143
36144         Module unistd-safer.
36145         * m4/unistd-safer.m4: New file.
36146
36147         Module fnmatch.
36148         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
36149         declaration.
36150         (gl_PREREQ_FNMATCH_EXTRA): New macro.
36151         (gl_FUNC_FNMATCH_POSIX): New macro.
36152         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
36153         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
36154         simply fnmatch.
36155
36156         Module exclude.
36157         * m4/exclude.m4: New file.
36158
36159         Module human.
36160         * m4/human.m4: New file.
36161
36162         Module acl.
36163         * m4/acl.m4: Nop.
36164
36165         Module backupfile.
36166         * m4/backupfile.m4: New file.
36167         * m4/d-ino.m4: Indentation.
36168
36169         Module fsusage.
36170         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
36171         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
36172         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
36173
36174         Module dirfd.
36175         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
36176         requirements.
36177
36178         Module euidaccess.
36179         * m4/euidaccess.m4: New file.
36180
36181         Module file-type.
36182         * m4/file-type.m4: New file.
36183
36184         Module fileblocks.
36185         * m4/fileblocks.m4: New file.
36186
36187         Module filemode.
36188         * m4/filemode.m4: New file.
36189
36190         Module isdir.
36191         * m4/isdir.m4: New file.
36192
36193         Module lchown.
36194         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
36195         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
36196
36197         Module makepath.
36198         * m4/makepath.m4: New file.
36199
36200         Module modechange.
36201         * m4/modechange.m4: New file.
36202
36203         Module mountlist.
36204         * m4/mountlist.m4: New file.
36205         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
36206         Indentation.
36207
36208         Module path-concat.
36209         * m4/path-concat.m4: New file.
36210
36211         Module pathmax.
36212         * m4/pathmax.m4: New file.
36213
36214         Module same.
36215         * m4/same.m4: New file.
36216
36217         Module save-cwd.
36218         * m4/save-cwd.m4: New file.
36219
36220         Module savedir.
36221         * m4/savedir.m4: New file.
36222
36223         Module xgetcwd.
36224         * m4/xgetcwd.m4: New file.
36225         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
36226
36227         Module xreadlink.
36228         * m4/xreadlink.m4: New file.
36229
36230         Module safe-read.
36231         * m4/safe-read.m4: New file.
36232
36233         Module safe-write.
36234         * m4/safe-write.m4: New file.
36235
36236         Module closeout.
36237         * m4/closeout.m4: New file.
36238
36239         Module stdio-safer.
36240         * m4/stdio-safer.m4: New file.
36241
36242         Module getpass.
36243         * m4/getpass.m4: New file.
36244
36245         Module getugroups.
36246         * m4/getugroups.m4: New file.
36247
36248         Module group-member.
36249         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
36250         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
36251
36252         Module idcache.
36253         * m4/idcache.m4: New file.
36254
36255         Module userspec.
36256         * m4/userspec.m4: New file.
36257
36258         Module gettime.
36259         * m4/clock_time.m4: New file.
36260         * m4/gettime.m4: New file.
36261
36262         Module settime.
36263         * m4/settime.m4: New file.
36264
36265         Module posixtm.
36266         * m4/posixtm.m4: New file.
36267
36268         Module gethostname.
36269         * m4/gethostname.m4: New file.
36270
36271         Module canon-host.
36272         * m4/canon-host.m4: New file.
36273
36274         Module gettext.
36275         * m4/codeset.m4: New file, from gettext-0.11.5.
36276         * m4/gettext.m4: New file, from gettext-0.11.5.
36277         * m4/glibc21.m4: New file, from gettext-0.11.5.
36278         * m4/iconv.m4: New file, from gettext-0.11.5.
36279         * m4/intdiv0.m4: New file, from gettext-0.11.5.
36280         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
36281         * m4/inttypes.m4: New file, from gettext-0.11.5.
36282         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
36283         * m4/isc-posix.m4: New file, from gettext-0.11.5.
36284         * m4/lcmessage.m4: New file, from gettext-0.11.5.
36285         * m4/lib-ld.m4: New file, from gettext-0.11.5.
36286         * m4/lib-link.m4: New file, from gettext-0.11.5.
36287         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
36288         * m4/progtest.m4: New file, from gettext-0.11.5.
36289         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
36290         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
36291         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
36292
36293         Module localcharset.
36294         * m4/localcharset.m4: New file.
36295
36296         Module hard-locale.
36297         * m4/hard-locale.m4: New file.
36298
36299         Module mbswidth.
36300         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
36301         onceonly macros.
36302         * m4/mbrtowc.m4: Add comment.
36303
36304         Module memcasecmp.
36305         * m4/memcasecmp.m4: New file.
36306
36307         Module memcoll.
36308         * m4/memcoll.m4: New file.
36309
36310         Module unicodeio.
36311         * m4/unicodeio.m4: New file.
36312
36313         Module rpmatch.
36314         * m4/rpmatch.m4: New file.
36315
36316         Module yesno.
36317         * m4/yesno.m4: New file.
36318
36319         Module exitfail.
36320         * m4/exitfail.m4: New file.
36321
36322         Module c-stack.
36323         * m4/c-stack.m4 (gl_C_STACK): New macro.
36324         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
36325
36326         Module error.
36327         * m4/error.m4 (gl_ERROR): New macro.
36328         (jm_PREREQ_ERROR): Use onceonly macros.
36329
36330         Module fatal.
36331         * m4/fatal.m4: New file.
36332
36333         Module getloadavg.
36334         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
36335         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
36336
36337         Module getpagesize.
36338         * m4/getpagesize.m4: New file.
36339
36340         Module getusershell.
36341         * m4/getusershell.m4: New file.
36342
36343         Module physmem.
36344         * m4/physmem.m4: New file.
36345
36346         Module posixver.
36347         * m4/posixver.m4: New file.
36348
36349         Module quotearg.
36350         * m4/quotearg.m4: New file.
36351
36352         Module quote.
36353         * m4/quote.m4: New file.
36354
36355         Module readutmp.
36356         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
36357
36358         Module sig2str.
36359         * m4/sig2str.m4: New file.
36360
36361         Other.
36362         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
36363         ulonglong.m4.
36364         * m4/intmax_t.m4: New file.
36365         * m4/d-type.m4: Indentation.
36366         * m4/jm-macros.m4: Update.
36367         * m4/prereq.m4 (jm_PREREQ): Update.
36368         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
36369         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
36370         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
36371         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
36372         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
36373         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
36374         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
36375         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
36376         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
36377         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
36378         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
36379         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
36380         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
36381         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
36382         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
36383         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
36384         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
36385         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
36386         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
36387
36388 2002-12-24  Bruno Haible  <bruno@clisp.org>
36389
36390         * MODULES.txt: Update according to m4/ changes.
36391
36392         Module gettext.
36393         * config.rpath: New file, from gettext-0.11.5.
36394
36395         * modules/*: New module descriptions.
36396         * gnulib-tool: New file.
36397         * MODULES.html.sh: New file.
36398
36399 2002-12-21  Karl Berry  <karl@gnu.org>
36400
36401         * doc/fdl.texi: update to version 1.2.
36402
36403 2002-12-19  Karl Berry  <karl@gnu.org>
36404
36405         * config/config.guess: update from prep.
36406
36407 2002-12-18  Bruno Haible  <bruno@clisp.org>
36408
36409         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
36410         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
36411
36412 2002-12-17  Bruno Haible  <bruno@clisp.org>
36413
36414         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
36415         stdlib.h, string.h.
36416
36417 2002-12-17  Bruno Haible  <bruno@clisp.org>
36418
36419         * lib/canon-host.c (strdup): Remove unused declaration.
36420
36421         * lib/fsusage.c: Include full_read.h.
36422         (get_fs_usage): Use full_read instead of safe_read.
36423
36424         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
36425
36426 2002-12-12  Karl Berry  <karl@gnu.org>
36427
36428         * config/config.guess: update from prep.
36429
36430 2002-12-11  Bruno Haible  <bruno@clisp.org>
36431
36432         * m4/setenv.m4: New file, from gettext-0.11.5.
36433
36434 2002-12-11  Bruno Haible  <bruno@clisp.org>
36435
36436         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
36437         not unsetenv().
36438         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
36439         modifications:
36440
36441         2002-12-11  Bruno Haible  <bruno@clisp.org>
36442
36443                 * setenv.c (alloca): Fall back to malloc.
36444                 (freea): New macro.
36445                 (setenv): Use freea() to free memory allocated with alloca().
36446
36447         2002-11-13  Bruno Haible  <bruno@clisp.org>
36448
36449                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
36450                 function declarations.
36451                 * unsetenv.c (unsetenv): Likewise.
36452
36453         2002-03-04  Bruno Haible  <bruno@clisp.org>
36454
36455                 Portability to AIX 4.3.3.
36456                 * unsetenv.c: New file, extracted from setenv.c.
36457                 * setenv.c: Move the unsetenv() function to unsetenv.c.
36458
36459         2001-12-20  Bruno Haible  <bruno@clisp.org>
36460
36461                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
36462                 use malloc instead. For SunOS 4.
36463
36464         2001-12-11  Bruno Haible  <bruno@clisp.org>
36465
36466                 * setenv.c: Declare alloca.
36467                 (compar_fn_t): New typedef.
36468                 (KNOWN_VALUE, STORE_VALUE): Use it.
36469
36470         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
36471         setenv.h.
36472
36473 2002-12-10  Paul Eggert  <eggert@twinsun.com>
36474
36475         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
36476         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
36477         Choose values that are less likely to collide with system fnmatch
36478         options.
36479         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
36480         defined (e.g., a pure POSIX system).
36481         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
36482         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
36483
36484 2002-12-06  Paul Eggert  <eggert@twinsun.com>
36485
36486         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
36487         a pain in practice to deal with generated m4 files.  This change
36488         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
36489
36490         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
36491         and jm-glibc-io.m4, as they are no longer a special case.
36492         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
36493         kludge and the auto-generation stuff.  Check only whether the
36494         functions are declared, not whether they exist, since older hosts
36495         that don't declare the functions can't use the optimization anyway.
36496
36497 2002-12-06  Jim Meyering  <jim@meyering.net>
36498
36499         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
36500
36501         Merge in changes from libc's misc/error.c, in preparation
36502         for the merge of gnulib's changes back into libc.
36503
36504         * lib/error.c (_): Define only if not already defined.
36505         Move definition to follow all #include directives.
36506         Include unlocked-io.h only if !_LIBC.
36507         [_LIBC]: Include <libio/libioP.h>.
36508         [USE_IN_LIBIO]: Include <libio/iolibio.h>
36509         (fflush): Tweak definition to use INTUSE.
36510         (putc): Define.
36511
36512 2002-12-05  Paul Eggert  <eggert@twinsun.com>
36513
36514         * lib/alloca.c [defined emacs]: Include "lisp.h".
36515         (xalloc_die) [defined emacs]: New macro.
36516         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
36517         [! defined emacs]: Include <xalloc.h>.
36518         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
36519         (pointer): Typedef to POINTER_TYPE *.
36520         (malloc): Remove decl; we now always use xmalloc.
36521         (alloca): Use old-style definition, since Emacs needs this.
36522         Check for arithmetic overflow when computing combined size.
36523
36524 2002-12-04  Paul Eggert  <eggert@twinsun.com>
36525
36526         Do not generate unlocked-io.h automatically, since it's easier to
36527         maintain it by hand.
36528
36529         * lib/unlocked-io.h: New file, from GNU diffutils,
36530         but with proper copyright notice and attribution.
36531         * lib/gen-uio: Remove.
36532         * lib/Makefile.am: Add copyright notice.
36533         (libfetish_a_SOURCES): Add unlocked-io.h.
36534         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
36535         (DISTCLEANFILES, io_functions): Remove macros.
36536         (EXTRA_DIST): Remove gen_uio.
36537         (unlocked-io.h): Remove rule.
36538
36539 2002-12-04  Jim Meyering  <jim@meyering.net>
36540
36541         Reflect the fact that stat.c and lstat.c are no longer generated.
36542         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
36543         (DISTCLEANFILES): Likewise.
36544         (EXTRA_DIST): Likewise.
36545         (all_local): Don't depend on stat.c or lstat.c.
36546         (stat.c, lstat.c): Remove rules.
36547         (EXTRA_DIST): Remove xstat.in.
36548
36549         * lib/xstat.in: Remove file.  Contents moved into stat.c.
36550         * lib/stat.c: New file.  Contents mostly from xstat.in.
36551         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
36552         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
36553
36554         * lib/safe-read.c: Rework so that it may serve to define safe_write,
36555         too.
36556         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
36557
36558 2002-12-03  Jim Meyering  <jim@meyering.net>
36559
36560         * lib/safe-read.c, safe-write.c: Change variable names and comments,
36561         but not semantics, to minimize the differences between these two files.
36562         (safe_read): Change comment to mention SAFE_READ_ERROR.
36563
36564         * lib/safe-read.c (IS_EINTR): Define.
36565         (safe_read): Use IS_EINTR in place of in-function cpp directives.
36566
36567 2002-12-02  Jim Meyering  <jim@meyering.net>
36568
36569         * lib/safe-read.c (EINTR): Define.
36570         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
36571         (INT_MAX): Provide fallback.
36572         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
36573
36574         * lib/safe-read.h (SAFE_READ_ERROR): Define.
36575
36576 2002-12-02  Bruno Haible  <bruno@clisp.org>
36577
36578         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
36579         Define, taken from safe-read.c.
36580         (INT_MAX): Provide fallback.
36581         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
36582         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
36583
36584         * lib/safe-read.c (EINTR): Remove definition.
36585         (safe_read): Don't use EINTR if it is absent.
36586
36587 2002-12-01  Jim Meyering  <jim@meyering.net>
36588
36589         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
36590         zero.
36591         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
36592
36593 2002-11-27  Paul Eggert  <eggert@twinsun.com>
36594
36595         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
36596         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
36597         with `if (! (value < limit)) abort ();', for readability.
36598
36599 2002-11-26  Karl Berry  <karl@gnu.org>
36600
36601         * lib/strdup.c: copy from libc again, with jim's ok.
36602         * lib/.cppi-disable: re-add strdup.c
36603
36604 2002-11-25  Karl Berry  <karl@gnu.org>
36605
36606         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
36607         instead of "strtol.c".
36608
36609 2002-11-25  Karl Berry  <karl@gnu.org>
36610
36611         * config/install-sh: update from automake for variable quoting, $0 in
36612         error msgs, etc.
36613
36614         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
36615         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
36616         entry.
36617
36618 2002-11-25  Jim Meyering  <jim@meyering.net>
36619
36620         * lib/mktime.c: Sync from libc, now that it has the latest fix.
36621
36622 2002-11-24  Karl Berry  <karl@gnu.org>
36623
36624         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
36625         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
36626
36627 2002-11-24  Jim Meyering  <jim@meyering.net>
36628
36629         Update from coreutils:
36630
36631         * lib/mktime.c: Merge in changes from libc.
36632
36633         Avoid a link-time failure on some Linux systems.
36634         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
36635         (otherwise).
36636         (__mon_yday): Declare with the STATIC attribute.
36637         (__mktime_internal): Likewise.
36638         Based on a report from Greg Schafer.
36639
36640 2002-11-23  Jim Meyering  <jim@meyering.net>
36641
36642         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
36643         Use `unsigned', not `int', as type of index.
36644
36645         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
36646
36647         * lib/fsusage.c: Remove unneeded parentheses around operands of
36648         `defined'.
36649
36650 2002-11-22  Paul Eggert  <eggert@twinsun.com>
36651
36652         * lib/quotearg.h: Allow multiple inclusion by surrounding with
36653         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
36654         so that we can be included first.
36655         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
36656         * lib/quotearg.c: Include quotearg.h immediately after config.h.
36657         No need to include stddef.h or sys/types.h any more.
36658         Surround local include files with "", not "<>".
36659         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
36660         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
36661         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
36662         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
36663         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
36664         (ISPRINT): Remove; no longer needed now that we assume C89.
36665
36666         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
36667         Preserve errno.
36668
36669         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
36670         quotearg_char): Use SIZE_MAX rather than
36671         (size_t) -1 when we are talking about "infinity".
36672
36673         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
36674
36675 2002-11-22  Paul Eggert  <eggert@twinsun.com>
36676
36677         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
36678         hint that one should use `if (! x) abort ();' rather than `assert
36679         (x);', and anyway it's one less thing to worry about configuring.
36680         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
36681         hash_rehash, hash_insert): Use abort rather than assert.
36682
36683 2002-11-22  Bruno Haible  <bruno@clisp.org>
36684
36685         * lib/safe-read.h: Assume C89. Add comments.
36686         (safe_read): Change return type to size_t.
36687         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
36688         byte counts > SSIZE_MAX correctly.
36689         * lib/safe-write.h: New file.
36690         * lib/safe-write.c: New file.
36691         * lib/full-read.h: New file.
36692         * lib/full-read.c: New file.
36693         * lib/full-write.h: Assume C89. Add comments.
36694         * lib/full-write.c: Include safe-write.h.
36695         (full_write): Rewritten to use safe_write.
36696         Suggested by Jim Meyering and Paul Eggert.
36697
36698 2002-11-21  Jim Meyering  <jim@meyering.net>
36699
36700         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
36701
36702         Merge in changes from the coreutils.
36703
36704         2002-09-25  Paul Eggert  <eggert@twinsun.com>
36705         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
36706         <stdint.h>.
36707         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
36708         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
36709         int.  Work more efficiently if X is the same width as uintmax_t.
36710         Do not compare X to -1, to avoid bogus compiler warning.
36711         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
36712         Don't assume that f_frsize and f_bsize are the same type.
36713
36714         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
36715         warning on FreeBSD.
36716
36717         * lib/makepath.c (make_path): Restore umask *before* creating the final
36718         component.
36719         (make_path): Minor reformatting.
36720
36721         * lib/xmalloc.c: Adjust to work with new autoconf macros,
36722         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
36723         HAVE_MALLOC/HAVE_REALLOC.
36724
36725         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
36726         dummy ones.  At least on GNU/Linux systems, `auto' means something
36727         else.
36728         From Michael Stone.
36729
36730 2002-11-21  Bruno Haible  <bruno@clisp.org>
36731
36732         Remove case insensitive option matching.
36733         * lib/argmatch.h (argcasematch): Remove declaration.
36734         (ARGCASEMATCH): Remove macro.
36735         (__xargmatch_internal): Remove case_sensitive argument.
36736         (XARGMATCH): Update.
36737         (XARGCASEMATCH): Remove macro.
36738         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
36739         case_sensitive argument.
36740         (argcasematch): Remove function.
36741         (__xargmatch_internal): Remove case_sensitive argument.
36742         (main): Use XARGMATCH instead of XARGCASEMATCH.
36743
36744         * lib/xmalloc.c: Change compile-time error message. Add comment about
36745         required autoconf version.
36746
36747 2002-11-20  Paul Eggert  <eggert@twinsun.com>
36748
36749         Merge argmatch cleanups from Bison.  Assume C89.
36750
36751         * lib/argmatch.c: Include config.h here, not in argmatch.h.
36752         Include stdlib.h, for EXIT_FAILURE.
36753         Always include <string.h>, since we assume C89.
36754         (EXIT_FAILURE): Remove pre-C89 bug workaround.
36755         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
36756         Include <stddef.h> instead, since it's all we need for size_t.
36757         (PARAMS): Remove.  All uses removed.
36758         (ARRAY_CARDINALITY): Do not bother to #undef.
36759         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
36760         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36761         Remove unnecessary parentheses.
36762         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36763         Insert necessary parentheses.
36764         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
36765         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
36766
36767 2002-11-19  Bruno Haible  <bruno@clisp.org>
36768
36769         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
36770         * lib/mbswidth.h: Include <stddef.h>, for size_t.
36771
36772         * lib/mbswidth.h (PARAMS): Remove macro.
36773         (mbswidth, mbsnwidth): Use ANSI C function declarations.
36774         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
36775
36776         * lib/gcd.h (PARAMS): Remove macro.
36777         (gcd): Use ANSI C function declarations.
36778         * lib/gcd.c (gcd): Likewise.
36779
36780 2002-11-15  Bruno Haible  <bruno@clisp.org>
36781
36782         * lib/strcspn.c: Include <stddef.h>.
36783         (strcspn): Use ANSI C function declaration. Change return type to
36784         size_t. Use NULL.
36785         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
36786         (strpbrk): Use NULL.
36787         * lib/strpbrk.h (PARAMS): Remove macro.
36788         (strpbrk): Use ANSI C function declaration.
36789         * lib/strstr.c: Don't include <sys/types.h>.
36790         * lib/strstr.h (PARAMS): Remove macro.
36791         (strstr): Use ANSI C function declarations.
36792
36793 2002-11-14  Karl Berry  <karl@gnu.org>
36794
36795         * config/mkinstalldirs: `do' on separate line, instead of
36796         `for var; do'.
36797
36798 2002-11-06  Bruno Haible  <bruno@clisp.org>
36799
36800         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
36801         * lib/gcd.c (gcd): Likewise.
36802
36803 2002-11-05  Bruno Haible  <bruno@clisp.org>
36804
36805         * lib/gcd.h: New file, from gettext-0.11.5.
36806         * lib/gcd.c: New file, from gettext-0.11.5.
36807
36808 2002-11-05  Bruno Haible  <bruno@clisp.org>
36809
36810         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36811         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36812         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36813         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36814
36815         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
36816         <libintl.h>.
36817         * lib/makepath.c: Include gettext.h instead of <locale.h> and
36818         <libintl.h>.
36819
36820         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
36821         * lib/human.c: Include gettext.h instead of <libintl.h>.
36822         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
36823         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
36824         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
36825         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
36826         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
36827         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
36828         (textdomain): Remove definition.
36829         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
36830
36831         * lib/long-options.c: Remove include of <libintl.h> and definition of
36832         _.
36833         * lib/same.c: Remove include of <libintl.h> and definition of _.
36834
36835 2002-11-04  Owen Taylor  <otaylor@redhat.com>
36836
36837         * lib/config.charset: A few additions for Solaris.
36838
36839 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
36840
36841         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
36842         * lib/localcharset.c (locale_charset): Declare as extern "C".
36843
36844 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
36845
36846         * lib/config.charset: msdos in uk_UA uses CP1125.
36847
36848 2002-11-04  Bruno Haible  <bruno@clisp.org>
36849
36850         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
36851         * lib/strcase.h: New file, from GNU gettext-0.11.5.
36852         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
36853         * lib/strstr.h: New file, from GNU gettext-0.11.5.
36854         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
36855
36856 2002-11-04  Bruno Haible  <bruno@clisp.org>
36857
36858         * lib/localcharset.c (locale_charset): Don't return an empty string.
36859
36860 2002-11-04  Bruno Haible  <bruno@clisp.org>
36861
36862         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
36863         aliases.
36864
36865 2002-11-04  Bruno Haible  <bruno@clisp.org>
36866
36867         * lib/config.charset: Update for newest glibc. Add canonical names
36868         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
36869
36870 2002-11-04  Bruno Haible  <bruno@clisp.org>
36871
36872         * lib/config.charset: Add support for NetBSD.
36873
36874 2002-11-04  Bruno Haible  <bruno@clisp.org>
36875
36876         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
36877
36878 2002-11-01  Bruno Haible  <bruno@clisp.org>
36879
36880         * configure.in: Add AC_CONFIG_AUX_DIR call.
36881         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
36882         test/Makefile.
36883         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
36884
36885 2002-09-28  Karl Berry  <karl@gnu.org>
36886
36887         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
36888         installed automake until the next release, since changes have been
36889         made.
36890
36891 2002-09-25  Karl Berry  <karl@gnu.org>
36892
36893         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
36894         * lib/getopt*: copy from libc/posix.
36895         * lib/gettext.h: copy from gettext.
36896         * lib/.cppi-disable: add strdup.c, gettext.h.
36897
36898 2002-09-25  Karl Berry  <karl@gnu.org>
36899
36900         * config/srclist.txt: enable gettext.h check.
36901         * config/config.{guess,sub}: update from prep.
36902         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
36903                 from automake 1.6.3.
36904         See srclist*.
36905
36906 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
36907
36908         * regex.c (PATFETCH): Remove the translating fetch.
36909         (PATFETCH_RAW): Rename to PATFETCH.
36910         (set_image_of_range): New fun.
36911         (SET_RANGE_TABLE_WORK_AREA): Use it.
36912         (regex_compile): Don't translate the pattern chars so eagerly.
36913         Only do it when inserting an `exactn' bytecode or when handling
36914         a char-range.
36915         (mutually_exclusive_p): Avoid empty statement.
36916
36917 2002-07-06  Jim Meyering  <meyering@lucent.com>
36918
36919         * m4/README: Don't mention Makefile.am.in.
36920         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
36921
36922 2002-07-01  Jim Meyering  <meyering@lucent.com>
36923
36924         * lib/c-stack.c: Include sys/time.h.
36925         From Volker Borchert.
36926
36927 2002-06-26  Paul Eggert  <eggert@twinsun.com>
36928
36929         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
36930
36931 2002-06-26  Paul Eggert  <eggert@twinsun.com>
36932
36933         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
36934         New macro.  Use it uniformly instead of
36935         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
36936         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
36937         reported by Vin Shelton.
36938
36939 2002-06-22  Paul Eggert  <eggert@twinsun.com>
36940
36941         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
36942         Do not assume SA_SIGINFO behavior.
36943         Bug reported by Jim Meyering on NetBSD 1.5.2.
36944
36945 2002-06-22  Jim Meyering  <meyering@lucent.com>
36946
36947         * m4/c-stack.m4: New file, from diffutils-2.8.2.
36948         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
36949
36950         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
36951         now that configure.ac uses AC_GNU_SOURCE.
36952         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
36953         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
36954
36955         Update to latest tools.  Suggestions from Paul Eggert.
36956         * m4/stdbool.m4: New file, from diffutils-2.8.2.
36957         * m4/gnu-source.m4: Update from diffutils-2.8.2.
36958         * m4/fnmatch.m4: Likewise.
36959         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
36960         to AC_HEADER_STDBOOL
36961
36962 2002-06-22  Jim Meyering  <meyering@lucent.com>
36963
36964         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
36965         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
36966
36967 2002-06-22  Jim Meyering  <meyering@lucent.com>
36968
36969         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
36970
36971         * lib/exitfail.c, exitfail.h: Likewise.
36972         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
36973
36974         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
36975         of fnmatch.h.
36976         (EXTRA_DIST): Add fnmatch_loop.c.
36977         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
36978
36979         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
36980         * lib/fnmatch.c: Update from diffutils-2.8.2.
36981         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
36982         * lib/fnmatch.h: Remove file.
36983
36984 2002-06-21  Jim Meyering  <meyering@lucent.com>
36985
36986         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
36987         * m4/mbrtowc.m4: Likewise.
36988
36989         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
36990         * m4/mbswidth.m4: Reflect name change:
36991         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
36992         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
36993
36994         * m4/lib-link.m4: Update from gettext-0.11.2.
36995         * m4/gettext.m4: Likewise.
36996
36997         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
36998         From Alfred M. Szmidt.
36999
37000 2002-06-18  Paul Eggert  <eggert@twinsun.com>
37001
37002         * lib/file-type.h: Report an error if neither S_ISREG nor
37003         S_IFREG is defined, instead of using a test specific to glibc
37004         2.2.  This should be safe, since POSIX requires S_ISREG and
37005         Unix Version 7 had S_IFREG.  We don't need to check for
37006         <sys/types.h> since we don't use any symbols that it defines.
37007
37008 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
37009
37010         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
37011         $@-t, so that each temporary file name is unique and valid in the first
37012         8 characters, for operation under DOS.
37013
37014 2002-06-15  Paul Eggert  <eggert@twinsun.com>
37015
37016         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
37017
37018 2002-06-15  Jim Meyering  <meyering@lucent.com>
37019
37020         Work even with DJGPP 2.03, which lacks support for symlinks.
37021         From Richard Dawe.
37022         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
37023         is defined.
37024         * lib/lchown.c (S_ISLNK): Likewise.
37025
37026 2002-06-15  Jim Meyering  <meyering@lucent.com>
37027
37028         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
37029         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
37030         have been included before this file.
37031
37032 2002-06-14  Jim Meyering  <meyering@lucent.com>
37033
37034         * lib/file-type.h: Use the version from diffutils-2.8.2.
37035         * lib/file-type.c: Likewise.
37036
37037 2002-06-07  Jim Meyering  <meyering@lucent.com>
37038
37039         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
37040         They're needed at least for NetBSD 1.5.2.
37041         ($statxfs_includes): Include those same headers.
37042         ($statxfs_includes): Include sys/vfs.h if available.
37043         ($statxfs_includes): Likewise for sys/statvfs.h.
37044         Check for the following members in both structs statfs and statvfs:
37045         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
37046
37047 2002-06-01  Jim Meyering  <meyering@lucent.com>
37048
37049         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
37050         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
37051
37052 2002-05-28  Jim Meyering  <meyering@lucent.com>
37053
37054         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
37055         Reported by Volker Borchert.
37056
37057 2002-05-27  Jim Meyering  <meyering@lucent.com>
37058
37059         Fix a problem seen only on nonconforming systems whereby ls.c's
37060         use of localtime, and then of gettimeofday would cause trouble:
37061         the localtime call used to initialize rpl_gettimeofday's save
37062         mechanism would clobber ls's current local time information so
37063         that in any long listing the first file would always be listed
37064         with date 1970-01-01.  Analysis by Volker Borchert.
37065
37066         * lib/gettimeofday.c (localtime): Undefine.
37067         (rpl_localtime): New function.
37068
37069 2002-05-27  Jim Meyering  <meyering@lucent.com>
37070
37071         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
37072         localtime.
37073
37074         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
37075         use the replacement function; it wouldn't resolve at link time.
37076         Reported by Volker Borchert.
37077
37078 2002-05-22  Jim Meyering  <meyering@lucent.com>
37079
37080         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
37081         file-type.h.
37082         * lib/file-type.h: New file.
37083         * lib/file-type.c (file_type): New file/function.  Extracted from
37084         diffutils.
37085
37086 2002-04-30  Jim Meyering  <meyering@lucent.com>
37087
37088         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
37089
37090 2002-04-29  Paul Eggert  <eggert@twinsun.com>
37091
37092         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
37093
37094 2002-04-29  Paul Eggert  <eggert@twinsun.com>
37095
37096         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
37097         Do not check for alloca.h (no longer used) or stdbool.h (was never
37098         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
37099
37100 2002-04-29  Paul Eggert  <eggert@twinsun.com>
37101
37102         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
37103
37104 2002-04-29  Jim Meyering  <meyering@lucent.com>
37105
37106         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
37107         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
37108         Use AC_FUNC_STRNLEN here instead.
37109
37110         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
37111         With autoconf-2.53a, it's part of AC_PROG_CC.
37112
37113 2002-04-28  Paul Eggert  <eggert@twinsun.com>
37114
37115         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
37116         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
37117
37118 2002-04-28  Paul Eggert  <eggert@twinsun.com>
37119
37120         * lib/sig2str.h, lib/sig2str.c: New files.
37121         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
37122
37123 2002-04-28  Paul Eggert  <eggert@twinsun.com>
37124
37125         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
37126         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
37127         of 127, since 64 is the largest conceivable number for ancient
37128         nonstandard hosts.
37129         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
37130
37131 2002-04-28  Jim Meyering  <meyering@lucent.com>
37132
37133         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
37134
37135 2002-04-24  Jim Meyering  <meyering@lucent.com>
37136
37137         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
37138         (jm_PREREQ): Use it.
37139
37140         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
37141         mach/mach.h fcntl.h.
37142         Check for this function: setlocale.
37143
37144 2002-04-24  Jim Meyering  <meyering@lucent.com>
37145
37146         * lib/gettext.h: New file, from Gettext.
37147         * lib/Makefile.am (INCLUDES): Remove -I../intl.
37148         (libfetish_a_SOURCES): Add gettext.h.
37149
37150 2002-04-16  Jim Meyering  <meyering@lucent.com>
37151
37152         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
37153         ut_pid, ut_id, ut_exit.
37154
37155 2002-04-16  Jim Meyering  <meyering@lucent.com>
37156
37157         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
37158         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
37159         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
37160
37161 2002-04-12  Jim Meyering  <meyering@lucent.com>
37162
37163         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
37164         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
37165         existence of the getmntinfo function.  Needed for Darwin 5.3.
37166
37167         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
37168         This is necessary at least on Darwin 5.3.
37169
37170         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
37171         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
37172         strnlen.o in the library, and that makes some versions of ranlib
37173         object.
37174
37175 2002-04-12  Jim Meyering  <meyering@lucent.com>
37176
37177         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
37178
37179 2002-04-09  Jim Meyering  <meyering@lucent.com>
37180
37181         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
37182         to be more precise.  Rather than saying we're checking whether the
37183         function `works', say what we're testing.
37184         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
37185         Reported by Bruno Haible.
37186
37187 2002-03-10  Jim Meyering  <meyering@lucent.com>
37188
37189         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
37190         Suggestion from Santiago Vila.
37191
37192 2002-03-08  Jim Meyering  <meyering@lucent.com>
37193
37194         * lib/rename.c: Mention that this wrapper is needed also on
37195         mips-dec-ultrix4.4 systems.
37196
37197 2002-03-02  Jim Meyering  <meyering@lucent.com>
37198
37199         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
37200         not HAVE_CLOCK_SETTIME.
37201
37202 2002-02-27  Paul Eggert  <eggert@twinsun.com>
37203
37204         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
37205         Check for clock_settime.
37206
37207 2002-02-27  Paul Eggert  <eggert@twinsun.com>
37208
37209         * lib/nanosleep.h: Rename to....
37210         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
37211
37212         * lib/gettime.c: New file.
37213         * lib/settime.c: New file.
37214         * lib/stime.c: Remove.
37215
37216         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
37217         timespec.h.  Remove nanosleep.h.
37218
37219 2002-02-25  Paul Eggert  <eggert@twinsun.com>
37220
37221         * m4/acl.m4: New file.
37222         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
37223         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
37224
37225 2002-02-25  Paul Eggert  <eggert@twinsun.com>
37226
37227         * lib/acl.c, lib/acl.h: New files.
37228         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
37229
37230 2002-02-24  Jim Meyering  <meyering@lucent.com>
37231
37232         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
37233         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
37234         cause trouble.  Reported by Nelson Beebe.
37235
37236 2002-02-23  Paul Eggert  <eggert@twinsun.com>
37237
37238         * lib/path-concat.c (xpath_concat): Reorder code to pacify
37239         compilers that don't know that xalloc_die never returns.
37240
37241 2002-02-20  Jim Meyering  <meyering@lucent.com>
37242
37243         * lib/getdate.c: Regenerate using bison-1.33.
37244
37245 2002-02-17  Jim Meyering  <meyering@lucent.com>
37246
37247         * config/config.guess (main): Don't use `head -1'; it's no longer
37248         portable. Use `sed 1q' instead.
37249
37250 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
37251
37252         * m4/codeset.m4: Upgrade to gettext-0.11.
37253         * m4/gettext.m4: Upgrade to gettext-0.11.
37254         * m4/glibc21.m4: Upgrade to gettext-0.11.
37255         * m4/iconv.m4: Upgrade to gettext-0.11.
37256         * m4/isc-posix.m4: Upgrade to gettext-0.11.
37257         * m4/lcmessage.m4: Upgrade to gettext-0.11.
37258         * m4/lib-ld.m4: New file, from gettext-0.11.
37259         * m4/lib-link.m4: New file, from gettext-0.11.
37260         * m4/lib-prefix.m4: New file, from gettext-0.11.
37261         * m4/progtest.m4: Upgrade to gettext-0.11.
37262
37263 2002-02-15  Paul Eggert  <eggert@twinsun.com>
37264
37265         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
37266         (jm_PREREQ): Use it.
37267
37268 2002-02-15  Paul Eggert  <eggert@twinsun.com>
37269
37270         * lib/posixver.c, lib/posixver.h: New files.
37271         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
37272
37273 2002-02-02  Paul Eggert  <eggert@twinsun.com>
37274             Bruno Haible  <bruno@clisp.org>
37275
37276         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
37277         (fwrite_success_callback): New declaration.
37278         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
37279         print_unicode_char. Call failure callback instead of error.
37280         (fwrite_success_callback): New function.
37281         (exit_failure_callback): New function.
37282         (fallback_failure_callback): New function.
37283         (print_unicode_char): Call unicode_to_mb.
37284
37285 2002-01-26  Jim Meyering  <meyering@lucent.com>
37286
37287         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
37288         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
37289
37290 2002-01-26  Jim Meyering  <meyering@lucent.com>
37291
37292         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
37293
37294 2002-01-22  Paul Eggert  <eggert@twinsun.com>
37295
37296         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
37297
37298 2002-01-22  Jim Meyering  <meyering@lucent.com>
37299
37300         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
37301         Otherwise, some versions of automake would omit the rule that makes
37302         Makefile from Makefile.in.
37303
37304 2002-01-21  Paul Eggert  <eggert@twinsun.com>
37305
37306         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
37307         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
37308         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
37309         (memcoll): Set errno to zero if there is no error.
37310
37311         * lib/quotearg.c (quotearg_buffer_restyled):
37312         Fix bug with quoting buffers containing NUL when backslashing escapes.
37313         This bug was exposed by the other changes in this patch.
37314         (quotearg_n_options): New arg ARGSIZE.
37315         All callers changed.
37316         (quoting_options_from_style): New function.
37317         (quotearg_n_style): Use it.
37318         (quotearg_n_style_mem): New function.
37319
37320         * lib/quotearg.h (quotearg_n_style_mem): New function.
37321
37322 2002-01-19  Jim Meyering  <meyering@lucent.com>
37323
37324         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
37325         Remove useless quotes: DF_PROG="df".
37326         * m4/strnlen.m4: New file.
37327
37328 2002-01-16  Paul Eggert  <eggert@twinsun.com>
37329
37330         * lib/backupfile.c (ISDIGIT): Comment fix.
37331         * lib/getdate.y (ISDIGIT): Likewise.
37332         * lib/posixtm.c (ISDIGIT, year): Likewise.
37333         * lib/strverscmp.c (ISDIGIT): Likewise.
37334         * lib/userspec.c (ISDIGIT): Likewise.
37335
37336 2002-01-16  Jim Meyering  <meyering@lucent.com>
37337
37338         * lib/getdate.y: Add three semicolons, each just before a closing
37339         brace. Bison (as of version 1.31) no longer papers over that mistake.
37340
37341 2002-01-05  Jim Meyering  <meyering@lucent.com>
37342
37343         * lib/version-etc.c (version_etc_copyright): Update copyright year.
37344
37345 2001-12-19  Paul Eggert  <eggert@twinsun.com>
37346
37347         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
37348         not silently exit merely because the output buffer happens to
37349         have nothing pending.
37350
37351 2001-12-18  Paul Eggert  <eggert@twinsun.com>
37352
37353         See the big note in ../ChangeLog.
37354         * lib/human.c (suffixes): Prefer K to k for 1024.
37355         (generate_suffix_backwards): New function.
37356         (human_readable_inexact): Use it.
37357         * lib/xstrtol.c (__xstrtol): If there is no number but there
37358         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
37359         Accept 'K' as well as 'k'.
37360
37361 2001-12-15  Jim Meyering  <meyering@lucent.com>
37362
37363         * lib/regex.h (__restrict_arr): Update from libc.
37364
37365         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
37366         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
37367         (STREQ): Define.
37368
37369 2001-12-14  Jim Meyering  <meyering@lucent.com>
37370
37371         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
37372         Suggestion from Bruno Haible.
37373
37374 2001-12-10  Jim Meyering  <meyering@lucent.com>
37375
37376         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
37377         xrealloc, Instead, include "xalloc.h".
37378         (initbuffer): Don't cast xmalloc return value to char*.
37379         (readline): Reword comment.
37380         Don't cast xrealloc return value to char*
37381         Return NULL, not 0.
37382
37383 2001-12-09  Jim Meyering  <meyering@lucent.com>
37384
37385         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
37386         about `signed and unsigned type in conditional expression'.
37387         * lib/posixtm.c (posix_time_parse): Likewise.
37388
37389         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
37390
37391         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
37392         to avoid a pedantic warning.
37393
37394         * lib/getstr.c: Don't include assert.h.
37395         (getstr): Remove warning-evoking assertions.
37396         Return -1 if offset parameter is out of bounds.
37397         Change the type of a local from int to size_t.
37398
37399         * lib/strftime.c (my_strftime_localtime_r): Include this function
37400         definition in the `#if ! HAVE_TM_GMTOFF' block.
37401
37402         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
37403         Include xalloc.h instead.
37404
37405 2001-12-02  Jim Meyering  <meyering@lucent.com>
37406
37407         * lib/tempname.c: Don't declare getenv, thus reverting the change of
37408         2001-11-18.  It's no longer necessary, now that stdlib.h is always
37409         included.
37410
37411         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
37412         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
37413
37414 2001-11-30  Akim Demaille  <akim@epita.fr>
37415
37416         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
37417         before being defined.
37418
37419 2001-11-27  Paul Eggert  <eggert@twinsun.com>
37420
37421         * lib/quotearg.h (quotearg_n, quotearg_n_style):
37422         First arg is int, not unsigned.
37423         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
37424         (SIZE_MAX, UINT_MAX): New macros.
37425         (quotearg_n_options): Abort if N is negative.
37426         Avoid overflow check on hosts where size_t is 64 bits and int
37427         is 32 bits, as overflow is impossible there.
37428         Fix off-by-one typo that caused unnecessary reallocation.
37429
37430 2001-11-27  Jim Meyering  <meyering@lucent.com>
37431
37432         * lib/tempname.c: Merge with version from libc.
37433         * lib/regex.c: Likewise.
37434
37435         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
37436         systems for which STDC_HEADERS is 0, it was not included, resulting in
37437         a warning about an integer-to-pointer conversion problem with getenv.
37438         Reported by Volker Borchert.
37439
37440 2001-11-26  Jim Meyering  <meyering@lucent.com>
37441
37442         * lib/gtod.h: Remove file.
37443         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
37444         * lib/gettimeofday.c: Don't include gtod.h.
37445         (GTOD_init): Remove function.
37446         (rpl_gettimeofday): Do its job here instead, rather than aborting.
37447         Suggestion from Volker Borchert.
37448
37449 2001-11-23  Jim Meyering  <meyering@lucent.com>
37450
37451         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
37452         it.
37453         * lib/hash.c (struct hash_table): Define it here instead.
37454
37455 2001-11-22  Jim Meyering  <meyering@lucent.com>
37456
37457         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
37458
37459 2001-11-20  Jim Meyering  <meyering@lucent.com>
37460
37461         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
37462         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
37463
37464 2001-11-19  Jim Meyering  <meyering@lucent.com>
37465
37466         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
37467         directory.  Use "conftestXXXXXX" as the template.
37468         Suggestion from Paul Eggert.
37469
37470         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
37471         immediately, so the test doesn't mistakenly hit the max-open-files
37472         limit.
37473
37474 2001-11-18  Paul Eggert  <eggert@twinsun.com>
37475
37476         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
37477         (TEMPORARIES): New macro.
37478         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
37479         removes an artificial limitation (e.g. HP-UX 10.20, where
37480         TMP_MAX is 17576).
37481
37482 2001-11-18  Jim Meyering  <meyering@lucent.com>
37483
37484         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
37485
37486 2001-11-18  Jim Meyering  <meyering@lucent.com>
37487
37488         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
37489         on SunOS 4.
37490
37491         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
37492         files will be created before anything else.
37493
37494 2001-11-17  Paul Eggert  <eggert@twinsun.com>
37495
37496         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
37497         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
37498
37499 2001-11-17  Jim Meyering  <meyering@lucent.com>
37500
37501         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
37502         Prompted by a report from Bob Proulx.
37503
37504         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
37505         Instead, require UTILS_FUNC_MKSTEMP.
37506
37507 2001-11-17  Jim Meyering  <meyering@lucent.com>
37508
37509         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
37510         Now, that's done as part of AC_FUNC_STRTOD.
37511
37512 2001-11-17  Jim Meyering  <meyering@lucent.com>
37513
37514         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
37515         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
37516         rather than group writable.  Patch by Juan F. Codagnone.
37517
37518         * lib/readtokens.c: Remove explicit declarations of xmalloc and
37519         xrealloc, Instead, include "xalloc.h".
37520
37521         * lib/mountlist.c: Include unlocked-io.h after all system headers.
37522         Remove explicit declarations of xmalloc, xrealloc,
37523         and xstrdup.  Instead, include "xalloc.h".
37524
37525         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
37526         unlocked-io.h.
37527         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
37528         Likewise.
37529         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
37530
37531         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
37532         Reported by Padraig Brady.
37533
37534         * lib/mkstemp.c: #undef mkstemp.
37535         Include config.h.
37536         (rpl_mkstemp): Rename from mkstemp.
37537         Protoize.
37538
37539 2001-11-16  Jim Meyering  <meyering@lucent.com>
37540
37541         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
37542         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
37543         determine the amount of total physical memory, use pstat_getstatic.
37544         HPUX-11 doesn't define _SC_PHYS_PAGES.
37545         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
37546         If sysconf couldn't be used to determine the amount of available
37547         physical memory, use both pstat_getstatic and pstat_getdynamic.
37548         Based on a patch from Bob Proulx.
37549
37550 2001-11-10  Jim Meyering  <meyering@lucent.com>
37551
37552         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
37553         (jm_PREREQ): Use it.
37554
37555 2001-11-09  Jim Meyering  <meyering@lucent.com>
37556
37557         * m4/jm-macros.m4: Require autoconf-2.52f.
37558         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
37559         Use these AC_-prefixed names, not the AM_-prefixed ones.
37560
37561         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
37562
37563 2001-11-05  Jim Meyering  <meyering@lucent.com>
37564
37565         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
37566
37567 2001-11-04  Jim Meyering  <meyering@lucent.com>
37568
37569         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
37570         $DEFS.
37571
37572 2001-11-03  Jim Meyering  <meyering@lucent.com>
37573
37574         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
37575         of AC_DEFUN.
37576
37577         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
37578         know the name of the variable in the macro definition.
37579
37580 2001-11-03  Jim Meyering  <meyering@lucent.com>
37581
37582         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
37583         in argmatch_to_argument call.
37584
37585         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
37586         argument.
37587
37588         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
37589         e.g., a fault due to an attempt to free a NULL pointer.
37590
37591 2001-11-01  Jim Meyering  <meyering@lucent.com>
37592
37593         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
37594         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
37595
37596 2001-11-01  Jim Meyering  <meyering@lucent.com>
37597
37598         * lib/dirfd.c, lib/dirfd.h: New files.
37599         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
37600
37601         * lib/hash.c (hash_print) [TESTING]: Clean up.
37602
37603 2001-10-22  Paul Eggert  <eggert@twinsun.com>
37604
37605         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
37606         to avoid a warning if -Wall.
37607
37608 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
37609
37610         * README: New file
37611         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
37612         (per RMS's instructions, this is now the canonical source)
37613         * lgpl/, gpl/: New directories.
37614
37615 2001-10-21  Paul Eggert  <eggert@twinsun.com>
37616
37617         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
37618
37619 2001-10-21  Jim Meyering  <meyering@lucent.com>
37620
37621         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
37622         this code would end up calling gettext even in packages built
37623         with --disable-nls.
37624         * lib/getopt.c (_): Likewise.
37625         * lib/regex.c (_): Likewise.
37626
37627 2001-10-20  Paul Eggert  <eggert@twinsun.com>
37628
37629         * m4/error.m4 (jm_PREREQ_ERROR):
37630         Do not invoke AC_CHECK_FUNCS with strerror_r, as
37631         AC_FUNC_STRERROR_R does that.
37632         Check for strerror declaration.
37633
37634         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
37635         are supposed to have them these days.
37636         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
37637         Merge changes from latest Autoconf CVS.
37638         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
37639         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
37640         POSIX decided to standardize on the int flavor of strerror_r.
37641
37642 2001-10-20  Paul Eggert  <eggert@twinsun.com>
37643
37644         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
37645         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
37646         Use strerror_r that is only a macro, even if it is not a function.
37647         (strerror): Check for HAVE_DECL_STRERROR before declaring.
37648         (private_strerror): Use prototypes, not old-style function definition.
37649         (print_errno_message): New function.
37650         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
37651         char*-flavored one.
37652         (error_tail, error, error_at_line): Use it.
37653
37654 2001-10-11  Jim Meyering  <meyering@lucent.com>
37655
37656         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
37657         and quote_n (1, ... to avoid clobbering a buffer.
37658
37659 2001-10-05  Jim Meyering  <meyering@lucent.com>
37660
37661         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
37662         hash-pjw.h.
37663         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
37664         * lib/hash-pjw.h: New file.
37665
37666 2001-09-30  Jim Meyering  <meyering@lucent.com>
37667
37668         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
37669         `struct fsstat' has the `f_fstypename' member.
37670         Use that to define FS_TYPE, which is now used to make
37671         the getfsstat link test tighter.
37672
37673 2001-09-30  Jim Meyering  <meyering@lucent.com>
37674
37675         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
37676         Include <sys/ucred.h>, for Apple Darwin.
37677         Include sys/mount.h and sys/fs_types.h only if available.
37678         (FS_TYPE): Define.
37679         (read_filesystem_list): Use FS_TYPE.
37680
37681 2001-09-29  Paul Eggert  <eggert@twinsun.com>
37682
37683         * lib/exclude.c (excluded_filename): 0 -> false, since it's
37684         a boolean context.
37685
37686 2001-09-29  Jim Meyering  <meyering@lucent.com>
37687
37688         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37689         [one-argument getmntent function]): Include stdio.h before mntent.h.
37690         SunOS 4.1.x needs it for the declaration of `FILE'.
37691         Patch by Volker Borchert.
37692
37693         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37694         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
37695         sys/fs_types.h, and make the link-test for getfsstat guard #include
37696         directives with appropriate #if HAVE_*_H tests so that we can
37697         detect getfsstat on Apple Darwin1.3.7 systems.
37698         Reported by Nelson Beebe.
37699         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
37700
37701 2001-09-28  Paul Eggert  <eggert@twinsun.com>
37702
37703         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37704         #defines strtoimax.  Also treat the other strto* functions
37705         like strtoimax.
37706
37707         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
37708         Check for strtoul and strtoumax,
37709         as those declarations are made even in the signed case.
37710         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
37711         Likewise, for strtol and strtoimax.
37712
37713 2001-09-28  Paul Eggert  <eggert@twinsun.com>
37714
37715         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37716         #defines strtoimax.  Also treat the other strto* functions
37717         like strtoimax.
37718
37719         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
37720         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
37721         (strtoimax, strtoumax): Do not declare if already defined as a macro.
37722
37723 2001-09-26  Jim Meyering  <meyering@lucent.com>
37724
37725         Most macros in unlocked-io.h had the wrong number of arguments.
37726         * lib/gen-uio: New script.
37727         (USE_UNLOCKED_IO): Define to 1 if not already defined.
37728         * lib/unlocked-io.hin: Remove file.
37729         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
37730         rather than trying to embed it here.
37731         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
37732         Reported by Padraig Brady.
37733
37734 2001-09-25  Volker Borchert  <bt@teknon.de>
37735
37736         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
37737         `result'.
37738
37739 2001-09-24  Jim Meyering  <meyering@lucent.com>
37740
37741         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
37742
37743 2001-09-23  Jim Meyering  <meyering@lucent.com>
37744
37745         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
37746         instead of the mere test for existence of mntent.h.  The latter
37747         would get a false-positive on AIX 3.4 systems.
37748         In the outer getmntent if-block, don't die if neither of the getmntent
37749         tests succeeds.  Instead, just fall through and continue with the
37750         remaining tests.
37751
37752 2001-09-23  Jim Meyering  <meyering@lucent.com>
37753
37754         * lib/mountlist.c: Remove useless parentheses in #if directives.
37755         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
37756         the deprecated MOUNTED symbol is no longer defined in mntent.h.
37757
37758 2001-09-22  Jim Meyering  <meyering@lucent.com>
37759
37760         * m4/gettext.m4: New file.  From gettext.
37761         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
37762         * m4/progtest.m4: Likewise
37763         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
37764         * m4/glibc21.m4: Likewise.
37765
37766         * m4/libintl.m4: Remove.  No longer used.
37767
37768 2001-09-22  Jim Meyering  <meyering@lucent.com>
37769
37770         * lib/localcharset.c: Update from latest gettext.
37771         * lib/config.charset: Likewise.
37772
37773 2001-09-20  Jim Meyering  <meyering@lucent.com>
37774
37775         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
37776         strtoimax.
37777         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
37778         strtoumax.
37779
37780 2001-09-20  Jim Meyering  <meyering@lucent.com>
37781
37782         * lib/xstrtol.c (strtoimax): Guard declaration with
37783         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
37784         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
37785         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
37786         (strtoumax): Likewise, for completeness (it wasn't necessary).
37787
37788 2001-09-17  Paul Eggert  <eggert@twinsun.com>
37789
37790         * lib/strtoimax.c (HAVE_LONG_LONG):
37791         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
37792         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
37793         to work around bug in IBM C compiler.
37794
37795 2001-09-17  Jim Meyering  <meyering@lucent.com>
37796
37797         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
37798         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
37799         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
37800         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
37801         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
37802         whenever the right hand side need not be expanded by the shell.
37803
37804 2001-09-16  Paul Eggert  <eggert@twinsun.com>
37805
37806         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
37807         library.  It's not correct, as some older glibcs are buggy.
37808         fnmatch wasn't fixed until glibc 2.2.
37809
37810         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
37811         special shell magic here.
37812
37813 2001-09-16  Jim Meyering  <meyering@lucent.com>
37814
37815         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
37816         * m4/jm-macros.m4: Require it.
37817
37818 2001-09-16  Jim Meyering  <meyering@lucent.com>
37819
37820         * lib/mkdir.c: New file.
37821
37822 2001-09-15  Jim Meyering  <meyering@lucent.com>
37823
37824         * m4/jm-macros.m4: Check for help2man.
37825
37826 2001-09-11  Jim Meyering  <meyering@lucent.com>
37827
37828         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
37829         The body, by Paul Eggert, was moved here from configure.in.
37830         * m4/jm-macros.m4: Require UTILS_HOST_OS.
37831
37832 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37833
37834         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
37835         (jm_PREREQ): Use it.
37836
37837 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37838
37839         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
37840         Use ssize_t, not int, to store result of readlink.
37841         Check for ssize_t overflow as well as size_t overflow,
37842         as POSIX says the result of readlink is implementation-defined
37843         when ssize_t overflows.
37844         Remove unnecessary cast to char*.
37845         Use free+malloc instead of realloc, as the storage doesn't need
37846         to be preserved and it's clearer and can be more efficient that way.
37847         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
37848         * lib/xreadlink.h (xreadlink): Update prototype.
37849
37850 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37851
37852         * lib/xgetcwd.c: Revert some of the previous change; intead,
37853         fix the HAVE_GETCWD_NULL code to behave more like the
37854         !HAVE_GETCWD_NULL code used to.
37855
37856         Include "xalloc.h".
37857         (xgetcwd): Do not return NULL when memory is exhausted; instead,
37858         invoke xalloc_die.
37859
37860 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37861
37862         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
37863         sys/param.h, as pathmax.h includes them.
37864
37865 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37866
37867         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
37868         (jm_PREREQ_XGETCWD): New macro.
37869
37870         * m4/getcwd.m4: New file.
37871
37872 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37873
37874         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
37875         like the HAVE_GETCWD_NULL code.
37876         Include pathmax.h if not HAVE_GETCWD.
37877         Do not include xalloc.h.
37878         (INITIAL_BUFFER_SIZE): New symbol.
37879         Do not use xmalloc / xrealloc, since the caller is responsible for
37880         handling errors.  Preserve errno around `free' during failure.
37881         Do not overrun buffer when using getwd.
37882
37883 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37884
37885         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
37886         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
37887         getcwd (NULL, 0).
37888
37889 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37890
37891         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
37892         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
37893         spotted by Jim Meyering.
37894
37895 2001-09-03  Jim Meyering  <meyering@lucent.com>
37896
37897         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
37898         failure.
37899
37900 2001-09-02  Jim Meyering  <meyering@lucent.com>
37901
37902         * lib/error.c: Update from GNU libc.
37903
37904 2001-09-01  Jim Meyering  <meyering@lucent.com>
37905
37906         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
37907         Used by df.
37908
37909 2001-09-01  Jim Meyering  <meyering@lucent.com>
37910
37911         * lib/xreadlink.c: New file.
37912         * lib/xreadlink.h: New file.
37913         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
37914         xreadlink.h.
37915
37916         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
37917         doesn't conflict with sparc Solaris 7's definition in
37918         /usr/include/sys/int_types.h.
37919
37920         * lib/exclude.c: Use `""', not `<>' to #include non-system header
37921         files.
37922         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
37923         and strncasecmp as r-values.  Unixware didn't have declarations.
37924
37925 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37926
37927         * lib/xstrtol.h: Add copyright notice.
37928         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
37929         LONGINT_INVALID_SUFFIX_CHAR.
37930
37931 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37932
37933         * lib/xstrtol.c (strtoimax): New decl.
37934
37935 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37936
37937         * lib/xgetcwd.c: Don't include pathmax.h.
37938         Include stdlib.h and unistd.h if available.
37939         Include xalloc.h.
37940         (xmalloc, xstrdup, free): Remove decls.
37941         (xgetcwd): Don't assume sizes fit in unsigned.
37942         Check for overflow when computing sizes.
37943         Simplify reallocation code.
37944
37945 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37946
37947         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
37948         a directory's st_size can have an arbitrary value, so the old
37949         usage could waste an arbitrary amount of memory.  All uses
37950         changed.
37951         * lib/savedir.h: Update prototype.
37952
37953 2001-08-31  Paul Eggert  <eggert@twinsun.com>
37954
37955         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
37956
37957         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
37958         old strtoimax.c.
37959
37960         Also, make the following further changes to make this file's
37961         configuration more similar to that of strtol.c:
37962         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
37963         (strtoumax, uintmax_t, strtoull, strtol): Remove.
37964         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
37965         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
37966         changed to signed values.
37967
37968         And make the following changes as well:
37969         Fix copyright notice, as 1999 was missing.
37970         (verify): New macro.
37971         (strtoimax): Check sizes at compile-time, not run-time.
37972         Prefer strtol to strtoll if both work.
37973         (main): Remove; it was not that useful and was a pain to maintain.
37974
37975         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
37976
37977 2001-08-31  Jim Meyering  <meyering@lucent.com>
37978
37979         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
37980         Use an initial, malloc'd, buffer of length 128 rather than
37981         a statically allocated one of length 1024.
37982
37983 2001-08-30  Paul Eggert  <eggert@twinsun.com>
37984
37985         Simplify code, partly by assuming autoconf 2.52 semantics.
37986
37987         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
37988
37989         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
37990         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
37991         All uses removed.
37992         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
37993         Move AC_REQUIRE to next-to-top level, to avoid confusion.
37994         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
37995         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
37996         jm_AC_HEADER_INTTYPES_H.
37997         * m4/jm-macros.m4 (jm_MACROS): Likewise.
37998
37999         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
38000
38001         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
38002         Quote first arg of AC_DEFUN.
38003         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
38004         since they are needed to parse the include file even if we need
38005         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
38006         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
38007         but with opposite signedness.
38008
38009 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38010
38011         Merge 'exclude' changes from tar 1.13.22.
38012         This fixes one or two unlikely storage allocation overflow bugs,
38013         but doesn't change user-visible behavior otherwise.
38014
38015 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38016
38017         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
38018         (jm_PREREQ_EXCLUDE): New macro.
38019
38020 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38021
38022         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
38023         tm to be declared.
38024
38025 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38026
38027         * lib/hash.c: Remove '2001' from copyright notice.
38028
38029 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38030
38031         * lib/full-write.h: New file.
38032         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
38033         * lib/full-write.c: Correct credits, as cccp.c no longer
38034         exists and anyway it was so heavily changed from the old cccp
38035         code as to be unrecognizable.  Include full-write.h.
38036         (full_write) Return size_t, with short writes meaning failure.
38037         All callers changed.  This fixes a bug with large buffers
38038         on 64-bit hosts.
38039         * lib/utime.c: Include full-write.h.
38040
38041 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38042
38043         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
38044         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
38045         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
38046         Include if available.
38047         (<xalloc.h>): Include
38048         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
38049         (verify): New macro.  Use it to verify that EXCLUDE macros do not
38050         collide with FNM macros.
38051         (struct patopts): New struct.
38052         (struct exclude): Use it, as exclude patterns now come with options.
38053         (new_exclude): Support above changes.
38054         (new_exclude, add_exclude_file):
38055         Initial size must now be a power of two to simplify overflow checking.
38056         (free_exclude, fnmatch_no_wildcards): New function.
38057         (excluded_filename): No longer requires options arg, as the options
38058         are determined by add_exclude.  Now returns bool, not int.
38059         (excluded_filename, add_exclude):
38060         Add support for the fancy new exclusion options.
38061         (add_exclude, add_exclude_file): Now takes int options arg.
38062         Check for arithmetic overflow when computing sizes.
38063         (add_exclude_file): xrealloc might modify errno, so don't
38064         realloc until after errno might be used.
38065
38066         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
38067         New macros.
38068         (free_exclude): New decl.
38069         (add_exclude, add_exclude_file): Now takes int options arg.
38070         (excluded_filename): No longer requires options arg, as the options
38071         are determined by add_exclude.  Now returns bool, not int.
38072
38073 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38074
38075         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
38076
38077 2001-08-27  Jim Meyering  <meyering@lucent.com>
38078
38079         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
38080
38081         * lib/version-etc.c (N_): Remove definition.
38082         Revert most of last change.
38083         Instead, simply don't mark the `Copyright...' string for translation.
38084         Based on advice from Paul Eggert.
38085
38086         * lib/strtoxmax.c: Tweak comment.
38087
38088 2001-08-26  Jim Meyering  <meyering@lucent.com>
38089
38090         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
38091
38092         * m4/xstrtoimax.m4: New file.
38093         * m4/xstrtoumax.m4: Add comments explaining why we
38094         AC_REPLACE_FUNCS(strtol).
38095
38096 2001-08-26  Jim Meyering  <meyering@lucent.com>
38097
38098         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
38099         of copyright with `%s' so translators don't get an untranslated
38100         message in 2002.
38101         (COPYRIGHT_YEAR): Define.
38102         (version_etc): Use fprintf rather than fputs.
38103         Suggestion from Ulrich Drepper.
38104
38105         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
38106
38107         * lib/strtoll.c: New file, from GNU libc.
38108         * lib/xstrtoimax.c: New file.
38109
38110         * lib/xstrtol.h: Add xstrtoimax.
38111         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
38112         * lib/strtoimax.c: New file.  Likewise, but first define
38113         STRTOUXMAX_SIGNED.
38114
38115         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
38116         ...
38117         * lib/strtoxmax.c: ... then renamed to this.
38118
38119 2001-08-18  Paul Eggert  <eggert@twinsun.com>
38120
38121         * m4/inttypes.m4: Add AC_PREREQ(2.13).
38122         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
38123         (jm_AC_TYPE_INTMAX_T): New macro.
38124         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
38125
38126         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
38127
38128         * m4/longlong.m4: Renamed from ulonglong.m4.
38129         * m4/inttypes.m4: Renamed from inttypes_h.m4.
38130         * m4/uintmax_t.m4: Removed.
38131
38132 2001-08-13  Paul Eggert  <eggert@twinsun.com>
38133
38134         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
38135         Port to Solaris 8, where 'sed' requires a space after the 'r'
38136         command, and where sh dislikes "$/".  Clean up the spacing a bit.
38137         Redirect output to $tmp just once.
38138
38139 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
38140
38141         * lib/addext.c (<errno.h>): Include.
38142         (errno): Declare if not defined.
38143         (addext): Work correctly when pathconf returns -1 and leaves
38144         errno alone because there is no limit.  Also, work even if
38145         pathconf returns a value greater than SIZE_MAX.
38146
38147 2001-08-12  Jim Meyering  <meyering@lucent.com>
38148
38149         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
38150         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
38151         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
38152         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
38153         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
38154         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
38155         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
38156         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
38157         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
38158         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
38159         utime.m4, utimes.m4, xstrtoumax.m4:
38160         Quote the first argument in each use of AC_DEFUN.
38161
38162 2001-08-12  Jim Meyering  <meyering@lucent.com>
38163
38164         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
38165         Simply `return getcwd (NULL, 0);'.
38166         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
38167         Use 1300 as initial value for length, not PATH_MAX.
38168
38169         * lib/pathmax.h: Clean up cpp syntax.
38170
38171 2001-08-12  Jim Meyering  <meyering@lucent.com>
38172
38173         * lib/gettimeofday.c: New file.
38174         * lib/gtod.h: New file.
38175         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
38176
38177 2001-08-05  Jim Meyering  <meyering@lucent.com>
38178
38179         * m4/jm-macros.m4: Require autoconf-2.52.
38180
38181 2001-08-04  Jim Meyering  <meyering@lucent.com>
38182
38183         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
38184         stmt, to get in sync with glibc.
38185
38186 2001-08-03  Paul Eggert  <eggert@twinsun.com>
38187
38188         The following changes are from gettext 0.10.39 as maintained by
38189         Bruno Haible.
38190
38191         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
38192         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
38193         with inverted sense.  All uses changed.
38194
38195         * lib/mbswidth.c: Don't include <limits.h>.
38196         Include <stdlib.h> and <string.h> unconditionally.
38197         (iswcntrl, mbsinit, ISCNTRL): New macros.
38198         (mbsnwidth): Use K&R style function declarations.
38199         Don't bother checking for MB_LEN_MAX == 1, since the compiler
38200         can optimize it when MB_CUR_MAX == 1.
38201         The width of control characters is zero, not 1.
38202
38203 2001-08-03  Paul Eggert  <eggert@twinsun.com>
38204
38205         The following changes are from gettext 0.10.39 as maintained by
38206         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
38207
38208         * m4/codeset.m4: Upgrade to serial AM1.
38209         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
38210         all uses changed.  Quote first arg of AC_DEFUN.
38211         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
38212
38213         * m4/iconv.m4: Upgrade to serial AM2.
38214         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
38215         Add --with-libconv-prefix.
38216         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
38217         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
38218         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
38219         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
38220         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
38221
38222         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
38223         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
38224         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
38225         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
38226         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
38227         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
38228         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38229         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
38230         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
38231
38232         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
38233         string.h any more.
38234
38235         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
38236         not the default value.
38237
38238         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
38239         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
38240         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
38241         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
38242         Also check for iswcntrl, used for wcwidth fallback.
38243         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
38244         to Autoconf 2.13.
38245
38246 2001-08-03  Jim Meyering  <meyering@lucent.com>
38247
38248         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
38249         as it was in the original.  Reported by Paul Eggert.
38250
38251 2001-07-16  Jim Meyering  <meyering@lucent.com>
38252
38253         * m4/gettimeofday.m4: New file.
38254         Prompted by a report from Bernhard Baehr.
38255
38256 2001-07-15  Jim Meyering  <meyering@lucent.com>
38257
38258         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
38259         stuff. Now it's in ../Makefile.cfg.
38260
38261 2001-07-15  Jim Meyering  <meyering@lucent.com>
38262
38263         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
38264         (BUILT_SOURCES): Add unlocked-io.h.
38265         (io_functions): Define.
38266         (unlocked-io.h): New rule.
38267         (DISTCLEANFILES): Add unlocked-io.h.
38268         (all-local): Depend on unlocked-io.h, to ensure it is created.
38269
38270         * lib/unlocked-io.hin: New file
38271
38272         * lib/regex.c: Update from glibc.
38273
38274 2001-07-05  Jim Meyering  <meyering@lucent.com>
38275
38276         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
38277         recommendation.
38278         (libfetish_a_SOURCES): Put all .h files here instead.
38279         Remove a thus-exposed (better checks in automake) duplicate and
38280         two unnecessary .h files.
38281
38282 2001-07-04  Jim Meyering  <meyering@lucent.com>
38283
38284         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
38285         that generates jm-glibc-io.m4 so that it doesn't trigger any make
38286         distcheck failure.
38287
38288 2001-07-02  Jim Meyering  <meyering@lucent.com>
38289
38290         The following changes were prompted by suggestions from Bruno Haible.
38291
38292         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
38293         is now generated.
38294         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
38295         definition of EXTRA_DIST.
38296         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
38297         ensure that the generated file is created/updated whenever the list
38298         of $(unlocked_functions) is changed.
38299         (jm-glibc-io.m4): New rule.
38300         (unlocked-io.h): New rule -- currently unused.
38301
38302 2001-06-24  Jim Meyering  <meyering@lucent.com>
38303
38304         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
38305         unmatched right bracket, rather than kludging it with an extra,
38306         falsely-matching quote in a comment.  Patch by Akim Demaille.
38307
38308 2001-06-11  Jim Meyering  <meyering@lucent.com>
38309
38310         * lib/regex.c: Update from GNU libc.
38311
38312 2001-05-27  Jim Meyering  <meyering@lucent.com>
38313
38314         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
38315         Check for ut_type in struct utmp.
38316
38317 2001-05-27  Jim Meyering  <meyering@lucent.com>
38318
38319         * lib/readutmp.h (UT_TYPE): Define.
38320
38321 2001-05-24  Jim Meyering  <meyering@lucent.com>
38322
38323         * lib/argmatch.c: Include "quote.h".
38324         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
38325         quote function.  Reported by Göran Uddeborg.
38326
38327 2001-05-22  Jim Meyering  <meyering@lucent.com>
38328
38329         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
38330         now that we use the package-supplied version unconditionally.
38331         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
38332
38333 2001-05-21  Jim Meyering  <meyering@lucent.com>
38334
38335         * m4/regex.m4: Change a couple backticks to single quotes to avoid
38336         shell syntax errors.
38337
38338 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
38339
38340         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
38341
38342 2001-05-20  Paul Eggert  <eggert@twinsun.com>
38343
38344         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
38345         Don't bother to check library strftime, since
38346         we'll be using our own my_strftime function anyway.
38347         Define my_strftime instead of strftime.
38348
38349 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
38350
38351         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
38352         which is not yet declared.
38353
38354 2001-05-15  Jim Meyering  <meyering@lucent.com>
38355
38356         * m4/regex.m4: Use proper quoting so brackets appear in the test
38357         program.
38358         Reported by, and with help from, Bruno Haible.
38359
38360 2001-05-13  Jim Meyering  <meyering@lucent.com>
38361
38362         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
38363         undefined.
38364
38365 2001-05-11  Paul Eggert  <eggert@twinsun.com>
38366
38367         dirname code cleanup.  base_name now behaves more compatibly
38368         with POSIX basename when given file names that have trailing
38369         slashes, and similarly for dir_name.  Add new primitives
38370         base_len and dir_len.  Put the directory-name-related decls
38371         into dirname.h.
38372
38373         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
38374         * lib/backupfile.c (base_name): Likewise.
38375         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
38376         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
38377         * lib/makepath.c (strip_trailing_slashes): Likewise.
38378         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
38379         ISSLASH): Likewise.
38380         * lib/rename.c (strip_trailing_slashes): Likewise.
38381         * lib/same.c (base_name): Likewise.
38382         * lib/stripslash.c (ISSLASH): Likewise.
38383
38384         * lib/addext.c: Include <dirname.h> after size_t is defined.
38385         * lib/backupfile.c: Likewise.
38386
38387         * lib/addext.c (addext): Use base_len to trim redundant
38388         trailing slashes instead of doing it ourselves.
38389         But do not trim the last slash if it is not redundant.
38390
38391         * lib/backupfile.c (find_backup_file_name,
38392         max_backup_version): Use base_len instead of rolling it ourselves.
38393         Handle the case of "" and (on DOS) "C:" correctly.
38394
38395         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
38396         needed. Include <string.h>, <dirname.h>.
38397         (base_name): Allow file names ending in slashes, other than names
38398         that are all slashes.  In this case, return the basename followed
38399         by the slashes.  This is more general, and can be used in places
38400         where the original base_name purposely had an assertion failure.
38401         (base_len): New function.
38402
38403         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
38404         Do not include <assert.h>; no longer needed.
38405         Include xalloc.h.
38406         (memrchr): Remove decl.
38407         (dir_name_r): Remove.
38408         (dir_len): Renamed from dirlen.  All callers changed.
38409         Rewrite in terms of base_name, for simplicity and consistency.
38410         (dir_name): Never return NULL.  All callers changed.
38411         Do not include <stdlib.h> in test program; no longer needed.
38412         return 0; is fine for test program.
38413
38414         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
38415         New macros.
38416         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
38417
38418         * lib/path-concat.c (path_concat): Use base_len to compute
38419         base length, not strlen; this means we cannot rely on memcpy
38420         to null-terminate.
38421
38422         * lib/same.c (STREQ): Remove.
38423         (same_name): Handle the case where the basename ends in trailing '/'.
38424
38425         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
38426         a slash was stripped.  Do not strip the last slash after a
38427         file system prefix.
38428
38429 2001-05-11  Paul Eggert  <eggert@twinsun.com>
38430
38431         * lib/Makefile.am (libfetish_a_SOURCES):
38432         Add strftime.c, since we now compile it on all hosts.
38433
38434         * lib/strftime.c (my_strftime):
38435         Define to nstrftime if emacs, but only if my_strftime is not defined.
38436         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
38437         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
38438         Add one more extra argument: a nanoseconds value.
38439         All uses changed.
38440         (ns): New macro.
38441         (my_strftime function): Add %N format.
38442         (emacs_strftimeu): Renamed from emacs_strftime,
38443         with extra ut argument.
38444
38445 2001-05-09  Paul Eggert  <eggert@twinsun.com>
38446
38447         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
38448
38449 2001-04-21  Jim Meyering  <meyering@lucent.com>
38450
38451         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
38452         doesn't interfere.
38453
38454 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
38455
38456         * m4/ftruncate.m4: Check for chsize.
38457         Link with ftruncate.o unconditionally if ftruncate is missing.
38458         This was required when cross-compiling to i586-mingw32msvc.
38459
38460 2001-04-08  Jim Meyering  <meyering@lucent.com>
38461
38462         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
38463         recomputed; that's necessary when the offset spans a DST transition.
38464         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
38465
38466 2001-04-02  Jim Meyering  <meyering@lucent.com>
38467
38468         * lib/regex.h, regex.c: Update from GNU libc.
38469
38470 2001-03-24  Jim Meyering  <meyering@lucent.com>
38471
38472         * m4/jm-macros.m4: Require autoconf-2.49d.
38473
38474 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
38475
38476         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
38477
38478 2001-03-19  Paul Eggert  <eggert@twinsun.com>
38479
38480         * lib/version-etc.c (version_etc_copyright): Update to 2001.
38481
38482 2001-03-17  Jim Meyering  <meyering@lucent.com>
38483
38484         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
38485         now that the version in autoconf is equivalent.
38486         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
38487
38488         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
38489         Suggestion from Akim Demaille.
38490
38491         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
38492         (jm_PREREQ_TEMPNAME): New function.
38493
38494 2001-03-16  Paul Eggert  <eggert@twinsun.com>
38495
38496         * lib/tempname.c (uint64_t): Define to uintmax_t if
38497         not defined, and if UINT64_MAX is not defined.
38498         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
38499         Reported by John David Anglin.
38500
38501 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
38502
38503         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
38504         resolve alias if codeset is empty.
38505         * lib/config.charset (BeOS): Use wildcard syntax.
38506
38507 2001-03-13  Jim Meyering  <meyering@lucent.com>
38508
38509         * lib/path-concat.c (path_concat)
38510         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
38511         concatenating e.g., `C:' and `foo'.
38512         From Bruno Haible.
38513
38514 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
38515
38516         * lib/localcharset.c (locale_charset): Don't use
38517         setlocale(LC_CTYPE,NULL). Don't return NULL.
38518         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
38519
38520 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
38521
38522         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
38523         support for DOS/DJGPP.
38524
38525 2001-03-01  Paul Eggert  <eggert@twinsun.com>
38526
38527         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
38528         lacks mkstemp.  Compile our own tempname.c if we compile our own
38529         mkstemp.c, as mkstemp relies on tempname.
38530
38531 2001-03-01  Jim Meyering  <meyering@lucent.com>
38532
38533         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
38534         AH_VERBATIM really does output its argument verbatim.
38535
38536 2001-02-28  Paul Eggert  <eggert@twinsun.com>
38537
38538         * lib/Makefile.am (libfetish_a_SOURCES):
38539         Add dup-safer.c, fopen-safer.c.
38540         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
38541
38542         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
38543         * lib/unistd-safer.h: New files.
38544
38545 2001-02-25  Paul Eggert  <eggert@twinsun.com>
38546
38547         The mkstemp replacement is taken from glibc 2.2.2, with some
38548         portability fixes for use outside glibc, as follows:
38549
38550         * lib/tempname.c (struct_stat64): New macro.
38551         (direxists, __gen_tempname): Use it.
38552         This avoids a portability problem with Solaris 8.
38553
38554         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
38555         (<stddef.h>, <stdint.h>, <string.h>):
38556         Include only if STDC_HEADERS || _LIBC.
38557         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
38558         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
38559         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
38560         (__set_errno): Define this macro if <errno.h> doesn't.
38561         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
38562         Define these macros if <stdio.h> doesn't.
38563         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
38564         Define these macros if <sys/stat.h>
38565         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
38566         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
38567         __xstat64): Define if not _LIBC.
38568         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
38569         (__gen_tempname): Invoke gettimeofday only if
38570         HAVE_GETTIMEOFDAY || _LIBC;
38571         otherwise, fall back on plain "time".
38572         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
38573
38574         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
38575
38576         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
38577
38578 2001-02-18  Paul Eggert  <eggert@twinsun.com>
38579
38580         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
38581
38582 2001-02-17  Paul Eggert  <eggert@twinsun.com>
38583
38584         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
38585         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
38586         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
38587         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38588
38589 2001-02-17  Paul Eggert  <eggert@twinsun.com>
38590
38591         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
38592         Remove workaround macros for hosts that have mbrtowc but not
38593         mbstate_t, as we now insist on proper declarations for both
38594         before using mbrtowc.
38595
38596 2001-02-17  Jim Meyering  <meyering@lucent.com>
38597
38598         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
38599         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
38600         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
38601         UnixWare 7.1.1.
38602
38603         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
38604         rather than AC_CACHE_VAL.
38605
38606 2001-02-17  Jim Meyering  <meyering@lucent.com>
38607
38608         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
38609         around included file name.
38610
38611         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
38612
38613         * lib/strftime.c: Update from GNU libc (the only changes were to
38614         comments).
38615
38616 2001-02-17  Jim Meyering  <meyering@lucent.com>
38617
38618         * lib/regex.c: Update from libc.
38619
38620 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
38621
38622         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
38623         clash.
38624
38625 2001-02-16  Paul Eggert  <eggert@twinsun.com>
38626
38627         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
38628         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
38629         Reported by Mark Hounschell via Paul Eggert.
38630
38631 2001-02-07  Jim Meyering  <meyering@lucent.com>
38632
38633         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
38634
38635 2001-02-05  Jim Meyering  <meyering@lucent.com>
38636
38637         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
38638         it includes the patch required for `large file' support with at least
38639         HP-UX's 10.20 /bin/cc.
38640
38641 2001-02-03  Jim Meyering  <meyering@lucent.com>
38642
38643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
38644         AS_IF, now that it works once again (mysteriously).
38645         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38646
38647 2001-01-30  Jim Meyering  <meyering@lucent.com>
38648
38649         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
38650         * m4/chown.m4: Rename conftestchown to conftest.chown.
38651         * m4/rename.m4: s/conftestdir/conftest.d1/ and
38652         s/conftestdir2/conftest.d2/.
38653         * m4/utimes.m4: s/conftestdata/conftest.data/
38654         Inspired by Pavel Roskin's change in autoconf.
38655
38656 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
38657
38658         * lib/config.charset: Update for FreeBSD 4.2.
38659
38660 2001-01-27  Jim Meyering  <meyering@lucent.com>
38661
38662         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
38663         a use of AS_IF.
38664         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38665
38666 2001-01-26  Jim Meyering  <meyering@lucent.com>
38667
38668         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
38669         quotearg.c includes it.
38670
38671 2001-01-26  Jim Meyering  <meyering@lucent.com>
38672
38673         * lib/quotearg.c: Include stddef.h.
38674         * lib/quote.c: Include stddef.h.
38675         Reported by Axel Kittenberger.
38676
38677         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
38678         line in double quotes so that it evokes a better diagnostic.
38679         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
38680         Reported by Axel Kittenberger.
38681
38682 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
38683
38684         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
38685         as if it was a `charset'.
38686
38687 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
38688
38689         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
38690         has const.
38691
38692 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
38693
38694         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
38695         to avoid a warning.  Add back 'const' to inptr.
38696
38697 2001-01-20  Jim Meyering  <meyering@lucent.com>
38698
38699         Be sure that headers are checked before used in code compiled
38700         for the type checks.
38701         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
38702         In place of that, invoke jm_CHECK_ALL_TYPES.
38703         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
38704         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
38705         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
38706         The check for ssize_t was mistakenly run before the test for unistd.h.
38707
38708         The configure-time check for stdbool.h was missing.
38709         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
38710         (jm_PREREQ_HASH): New function.
38711
38712 2001-01-17  Jim Meyering  <meyering@lucent.com>
38713
38714         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
38715         for autoconf-2.49c.
38716         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
38717
38718 2001-01-16  Jim Meyering  <meyering@lucent.com>
38719
38720         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
38721         From Bruno Haible.
38722
38723 2001-01-14  Jim Meyering  <meyering@lucent.com>
38724
38725         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
38726         foo and bar.  Create conftestdir/ in the script, not in the C code.
38727         Remove directories in the script, not in the C code.
38728         Remove conftestdir{,2} before trying to create the directory.
38729         Make the entire configure script fail if the mkdir fails.
38730
38731 2001-01-14  Jim Meyering  <meyering@lucent.com>
38732
38733         * lib/rename.c: New file.  From Volker Borchert.
38734         Include stdlib.h, string.h or strings.h, and xalloc.h.
38735         Use strip_trailing_slashes rather than open-coding it.
38736
38737 2001-01-03  Paul Eggert  <eggert@twinsun.com>
38738
38739         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
38740
38741 2001-01-03  Jim Meyering  <meyering@lucent.com>
38742
38743         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
38744         of local `inptr' to avoid warning with some system declarations of
38745         iconv.
38746
38747 2001-01-02  Volker Borchert  <bt@teknon.de>
38748
38749         * m4/rename.m4: New file.
38750         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
38751
38752 2001-01-01  Jim Meyering  <meyering@lucent.com>
38753
38754         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
38755         even on systems with utmpx.h.  It's necessary for the declaration of
38756         utmp's ut_user member.  Reported by Andreas Jaeger.
38757
38758         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
38759         available. They are required for the declarations of getgrgid and
38760         getpwuid resp.
38761         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
38762         Reported by Andreas Jaeger.
38763
38764 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
38765
38766         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
38767         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
38768         so `make install' also works in VPATH builds.
38769
38770 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
38771
38772         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
38773         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
38774         can be used in subdirectories.
38775
38776 2000-12-29  Paul Eggert  <eggert@twinsun.com>
38777
38778         * lib/modechange.c: Do not assume that mode_t uses the
38779         traditional octal encoding.  E.g. "chmod 1 FOO" should set
38780         the other-execute bit of FOO even if S_IXOTH != 1.
38781
38782         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
38783         WOTH, XOTH, ALLM): New macros.
38784         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
38785          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
38786         Use them.
38787         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
38788         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
38789         (mode_compile):
38790         No need to use uintmax_t; unsigned long is long enough.
38791         Don't bother to get suffix since we don't use it.
38792
38793 2000-12-26  Jim Meyering  <meyering@lucent.com>
38794
38795         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
38796         better with autoheader.
38797
38798 2000-12-24  Jim Meyering  <meyering@lucent.com>
38799
38800         * lib/hash.c (is_prime): Return explicit boolean values.
38801         (hash_get_first): Return NULL to appease Irix5.6's 89.
38802         Reported by Nelson Beebe.
38803
38804 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
38805
38806         * lib/localcharset.c (locale_charset): Add support for Win32.
38807
38808 2000-12-18  Paul Eggert  <eggert@twinsun.com>
38809
38810         * lib/physmem.h, lib/physmem.c: New files.
38811
38812         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
38813         (noinst_HEADERS): Add physmem.h.
38814
38815         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
38816         't' for compatibility with Solaris 8 sort.
38817
38818 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
38819
38820         * lib/config.charset: Add support for BeOS.
38821
38822 2000-12-17  Jim Meyering  <meyering@lucent.com>
38823
38824         * m4/dos.m4 (jm_AC_DOS): New file and macro.
38825         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
38826
38827 2000-12-16  Jim Meyering  <meyering@lucent.com>
38828
38829         This bug had a serious impact on chown: `chown N:M FILE' (for integer
38830         N and M) would have treated it like `chown N:N FILE'.
38831
38832         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
38833
38834 2000-12-16  Jim Meyering  <meyering@lucent.com>
38835
38836         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
38837         SHELLS_FILE to a file name that's useful on djgpp systems.
38838         Include stdlib.h.
38839         (ADDITIONAL_DEFAULT_SHELLS): Define.
38840         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
38841         Based mostly on a patch from Prashant TR.
38842
38843 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
38844
38845         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
38846         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
38847         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
38848
38849 2000-12-08  Andreas Schwab  <schwab@suse.de>
38850
38851         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
38852         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
38853
38854 2000-12-07  Jim Meyering  <meyering@lucent.com>
38855
38856         * lib/stripslash.c (ISSLASH): Define.
38857         (strip_trailing_slashes): Use ISSLASH rather than comparing against
38858         `/'.
38859         From Prashant TR.
38860
38861         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
38862         (dir_name_r): Declare this function as static.
38863         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
38864         manifest itself on a name containing a mix of slashes and
38865         backslashes.
38866         Make this function work with names starting with a DOS-style
38867         drive letter and colon prefix.
38868         (dir_name): Append `.' if necessary.
38869         Based mostly on patches from Prashant TR and Eli Zaretskii.
38870
38871         * lib/dirname.h (dir_name_r): Remove prototype.
38872
38873 2000-12-06  Paul Eggert  <eggert@twinsun.com>
38874
38875         * m4/off_t-format.m4: Remove this file.
38876         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
38877
38878 2000-12-06  Jim Meyering  <meyering@lucent.com>
38879
38880         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
38881         replacement strtoull, we may well need the replacement strtoul, too.
38882         Check for declarations of strtoul and strtoull.
38883         Check for strtol.  Mainly as a cue to cause automake to include
38884         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
38885         Check for limits.h -- strtol.c needs it.
38886
38887 2000-12-05  Jim Meyering  <meyering@lucent.com>
38888
38889         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
38890
38891 2000-12-04  Jim Meyering  <meyering@lucent.com>
38892
38893         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
38894         Also include memory.h, stdlib.h, unistd.h if appropriate.
38895         Reported by Andreas Jaeger (conflicting declaration of malloc).
38896
38897 2000-12-02  Jim Meyering  <meyering@lucent.com>
38898
38899         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
38900         * m4/jm-macros.m4 (jm_MACROS): require it.
38901
38902 2000-12-02  Jim Meyering  <meyering@lucent.com>
38903
38904         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
38905
38906 2000-12-01  Paul Eggert  <eggert@twinsun.com>
38907
38908         * lib/memrchr.c: Include <config.h> before any system include file.
38909
38910 2000-11-30  Jim Meyering  <meyering@lucent.com>
38911
38912         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
38913
38914 2000-11-30  Jim Meyering  <meyering@lucent.com>
38915
38916         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
38917
38918 2000-11-29  Paul Eggert  <eggert@twinsun.com>
38919
38920         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
38921
38922 2000-11-26  Jim Meyering  <meyering@lucent.com>
38923
38924         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
38925
38926 2000-11-22  Paul Eggert  <eggert@twinsun.com>
38927
38928         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
38929         size of (size_t) -1; it's not portable.
38930
38931 2000-11-17  Jim Meyering  <meyering@lucent.com>
38932
38933         * lib/strstr.c: Update from GNU libc.
38934
38935 2000-11-17  Akim Demaille  <akim@epita.fr>
38936
38937         * lib/obstack.h: Formatting changes.
38938         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
38939         prevent type checking.
38940         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
38941         cast the value to (void *): assigning a `foo *' to a `void *'
38942         variable is valid.
38943         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
38944
38945 2000-11-16  Jim Meyering  <meyering@lucent.com>
38946
38947         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
38948
38949 2000-11-11  Jim Meyering  <meyering@lucent.com>
38950
38951         * lib/error.c: Add a couple #includes, merging from GNU libc version.
38952
38953 2000-11-10  Jim Meyering  <meyering@lucent.com>
38954
38955         * lib/obstack.h: Update from GNU libc.
38956         * lib/obstack.c: Likewise.
38957
38958 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
38959
38960         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
38961
38962 2000-11-06  Paul Eggert  <eggert@twinsun.com>
38963
38964         * lib/getusershell.c (setusershell): Use rewind rather than
38965         fseek/fseeko, to avoid configuration hassles with fseeko.
38966         Don't bother opening SHELLS_FILE if shellstream is NULL;
38967         it's not necessary.
38968
38969 2000-11-05  Jim Meyering  <meyering@lucent.com>
38970
38971         * lib/makepath.h (make_dir): Declare.
38972         * lib/makepath.c (make_dir): Remove `static' attribute.
38973         Tweak a comment.
38974
38975 2000-11-04  Jim Meyering  <meyering@lucent.com>
38976
38977         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
38978
38979 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
38980
38981         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
38982         last one in a bucket, advance to the next bucket.
38983
38984 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
38985
38986         * lib/fnmatch.c: Do not comment out all the code if we are using
38987         the GNU C library, because in some cases we are replacing buggy
38988         code in the GNU C library itself.
38989
38990 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
38991
38992         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
38993         (regex_compile): Catch bogus \(\1\).
38994
38995 2000-10-30  Paul Eggert  <eggert@twinsun.com>
38996
38997         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
38998         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
38999         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
39000
39001 2000-10-30  Paul Eggert  <eggert@twinsun.com>
39002
39003         * lib/error.h, getline.h, modechange.h:
39004         Remove "2000" from Copyright line, as the file hasn't been
39005         changed this year other than in the copyright notice.
39006
39007         * lib/xalloc.h: Add "2000" to Copyright line, as this file
39008         was changed this year.
39009
39010 2000-10-29  Jim Meyering  <meyering@lucent.com>
39011
39012         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
39013         renaming.
39014         * m4/ls-mntd-fs.m4: Likewise
39015
39016 2000-10-29  Jim Meyering  <meyering@lucent.com>
39017
39018         * lib/xstat.in: Fix grammar in comment.
39019
39020 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
39021
39022         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
39023         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
39024         doesn't define __restrict_arr.
39025
39026 2000-10-28  Jim Meyering  <meyering@lucent.com>
39027
39028         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
39029         (jm_PREREQ_MEMCHR): New function.
39030
39031 2000-10-28  Jim Meyering  <meyering@lucent.com>
39032
39033         * lib/memchr.c: Update from libc.
39034         Adjust for portability:
39035         [HAVE_STDLIB_H]: Include stdlib.h.
39036         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
39037         Undef __memchr, too.
39038         [!weak_alias]: Define __memchr to memchr.
39039
39040         * lib/regex.c: Update from libc.
39041         * lib/regex.h: Likewise.
39042         * lib/getopt1.c: Likewise.
39043         * lib/memcmp.c: Likewise.
39044
39045         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
39046         Avoid using fseek, when possible -- it's broken by design.
39047         Patch by Ulrich Drepper.
39048
39049 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
39050
39051         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
39052         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
39053         Giving in to popular pressure to shut up the compiler with casts.
39054
39055 2000-10-26  Jim Meyering  <meyering@lucent.com>
39056
39057         * lib/strftime.c: Update from libc.
39058
39059 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
39060
39061         * regex.c: More `unsigned char' -> `re_char' changes.
39062         Also change several `int' into `re_wchar_t'.
39063         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
39064         (PUSH_FAILURE_POINTER): Don't cast any more.
39065         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
39066         We want GCC to complain, since this piece of code makes
39067         re_match non-reentrant, which *should* be fixed.
39068         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
39069         (EXTEND_BUFFER): Use RETALLOC.
39070         (SET_LIST_BIT): Don't cast.
39071         (re_wchar_t): New type.
39072         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
39073         that those two functions will always properly return.
39074         (IMMEDIATE_QUIT_CHECK): Cast to void.
39075         (analyse_first): Use recursion rather than an explicit stack.
39076         (re_compile_fastmap): Can't fail anymore.
39077         (re_search_2): Don't check re_compile_fastmap for failure.
39078         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
39079         Now also sets the new value (passed in a new argument).
39080         (re_match_2_internal): Use it.
39081         Also, use a new var `reg' of type size_t when looping through regs
39082         rather than reuse the inappropriate `mcnt'.
39083
39084 2000-10-25  Jim Meyering  <meyering@lucent.com>
39085
39086         * lib/obstack.c: Update from libc.
39087
39088 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
39089
39090         * regex.c (regex_compile): Change the way of handling a range from
39091         a char less than 256 to a char not less than 256.
39092
39093 2000-10-24  Andrew Innes  <andrewi@gnu.org>
39094
39095         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
39096         NT-Emacs only.
39097         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
39098         so that re_search functions only quit when callers expect them to.
39099
39100 2000-10-23  Jim Meyering  <meyering@lucent.com>
39101
39102         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
39103         wrong.  That set_locale call must not have any side effects.
39104         From Paul Eggert.
39105
39106 2000-10-22  Jim Meyering  <meyering@lucent.com>
39107
39108         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
39109         [CYCLIC]: Remove now-unused definition.
39110
39111         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
39112         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
39113         Suggestion from Ulrich Drepper.
39114
39115 2000-10-21  Jim Meyering  <meyering@lucent.com>
39116
39117         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
39118         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
39119         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
39120
39121 2000-10-21  Jim Meyering  <meyering@lucent.com>
39122
39123         * lib/dirname.c (memrchr): Declare if necessary.
39124         (dir_name): Remove the restriction that there be no
39125         trailing slashes.  Now, this code skips past them, effectively
39126         ignoring them.
39127         [TEST_DIRNAME] (main): New unit tests.
39128
39129         * lib/memrchr.c: New file from GNU libc.
39130         Undef __memrchr, too.
39131         [!weak_alias]: Define __memrchr to memrchr.
39132         Guard weak_alias use with `#ifdef weak_alias'.
39133
39134 2000-10-21  Jim Meyering  <meyering@lucent.com>
39135
39136         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
39137         (dir_name): Use dir_name_r.
39138         * lib/dirname.h (dir_name_r): Declare it.
39139
39140 2000-10-17  Jim Meyering  <meyering@lucent.com>
39141
39142         * lib/quote.h (PARAMS): Define and use.
39143         Reported by Akim Demaille.
39144
39145         * lib/getopt.c: Update from libc.
39146
39147 2000-10-16  Jim Meyering  <meyering@lucent.com>
39148
39149         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
39150         setlocale.
39151         From Jan Fedak.
39152
39153 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
39154
39155         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
39156
39157 2000-09-25  Jim Meyering  <meyering@lucent.com>
39158
39159         * lib/md5.h (rol): Define (from GnuPG).
39160
39161         * lib/sha.c: Give credit (GnuPG) where due.
39162         (M): Use rol rather than open-coding it.
39163         Add a FIXME comment.
39164
39165 2000-09-21  Jim Meyering  <meyering@lucent.com>
39166
39167         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
39168         Reported by Michael Stone.
39169
39170 2000-09-20  Jim Meyering  <meyering@lucent.com>
39171
39172         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
39173         (noinst_HEADERS): Add sha.h.
39174         Based on code from Scott G. Miller and from GnuPG.
39175
39176 2000-09-18  Jim Meyering  <meyering@lucent.com>
39177
39178         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
39179         LIBS. Otherwise, everyone ends up linking with -lelf for some
39180         configurations.
39181         Reported by Mike Stone.
39182
39183 2000-09-15  Jim Meyering  <meyering@lucent.com>
39184
39185         * lib/regex.c: Update from libc.
39186
39187 2000-09-10  Jim Meyering  <meyering@lucent.com>
39188
39189         * lib/getopt.c (_getopt_internal): Update from glibc.
39190
39191 2000-09-09  Jim Meyering  <meyering@lucent.com>
39192
39193         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
39194         think it should be used as a general replacement for isascii.
39195         * lib/fnmatch.c: Likewise.
39196         * lib/mbswidth.c: Likewise
39197         * lib/regex.c: Likewise.
39198
39199         Don't use atoi.
39200         * lib/userspec.c: Include sys/param.h and limits.h.
39201         Include xstrtol.h.
39202         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
39203         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
39204         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
39205         UID, GID.  Check range.
39206
39207 2000-09-06  Jim Meyering  <meyering@lucent.com>
39208
39209         * lib/getopt.c (_getopt_internal): Update from glibc.
39210
39211 2000-08-30  Jim Meyering  <meyering@lucent.com>
39212
39213         * lib/strftime.c: Merge in changes from GNU libc.
39214
39215 2000-08-26  Jim Meyering  <meyering@lucent.com>
39216
39217         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
39218         * m4/fpending.m4: New file.
39219
39220 2000-08-26  Jim Meyering  <meyering@lucent.com>
39221
39222         * lib/closeout.c: Include "__fpending.h".
39223         (close_stdout_status): Return right away if there's nothing to flush.
39224
39225         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
39226         * lib/__fpending.c: New file.
39227         * lib/__fpending.h: New file.
39228
39229 2000-08-20  Jim Meyering  <meyering@lucent.com>
39230
39231         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
39232         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
39233         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
39234
39235 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
39236
39237         Improve fileutils installation on systems where running
39238         programs (like install) can't be unlinked.
39239         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
39240         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
39241
39242 2000-08-07  Paul Eggert  <eggert@twinsun.com>
39243
39244         Standardize on "memory exhausted" instead of "Memory exhausted"
39245         or "virtual memory exhausted".
39246         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
39247         "virtual memory exhausted".
39248         * lib/same.c (same_name): Invoke xalloc_die instead of printing
39249         our own message.
39250         * lib/userspec.c (parse_user_spec): Likewise.
39251         * lib/bumpalloc.h: comment fix
39252         * lib/same.c, userspec.c: Include xalloc.h.
39253
39254         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
39255         not char *const and pointing to a constant array.
39256         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
39257         (xrealloc): Comment fix.
39258
39259         * lib/userspec.c (parse_user_spec):
39260         Don't translate a message until just before returning,
39261         to avoid unnecessary translation.
39262
39263 2000-08-07  Jim Meyering  <meyering@lucent.com>
39264
39265         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
39266         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
39267         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
39268         getgroups.c, gethostname.c, getopt.h, group-member.c,
39269         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
39270         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
39271         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
39272         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
39273         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
39274         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
39275         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
39276         yesno.c: Back out Copyright date changes for each file with no change
39277         this year.  This eases coordination with other programs using the same
39278         source code modules.  From Paul Eggert.
39279
39280 2000-08-06  Paul Eggert  <eggert@twinsun.com>
39281
39282         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
39283         not char, for compatibility with glibc 2.1.3 strftime.c.
39284
39285 2000-08-03  Greg McGary  <greg@mcgary.org>
39286
39287         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
39288         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
39289         (EXTEND_BUFFER): Use them.
39290
39291 2000-08-01  Jim Meyering  <meyering@lucent.com>
39292
39293         * lib/dirname.c (ISSLASH): Define.
39294         (BACKSLASH_IS_PATH_SEPARATOR): Define.
39295         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
39296         both `\' and `/' may be use as path separators.
39297         Based on a patch from Prashant TR.
39298
39299 2000-07-31  Paul Eggert  <eggert@twinsun.com>
39300
39301         * lib/quotearg.c (quotearg_n_options): Don't make the initial
39302         slot vector a constant, since it might get modified.
39303
39304 2000-07-31  Jim Meyering  <meyering@lucent.com>
39305
39306         * lib/xmalloc.c: Use `virtual memory exhausted', not
39307         `Memory exhausted'.
39308         * lib/obstack.c (print_and_abort): Likewise.
39309
39310 2000-07-30  Paul Eggert  <eggert@twinsun.com>
39311
39312         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
39313         buffer, so that the caller can always quote one small
39314         component of a "memory exhausted" message in slot 0.
39315         From a suggestion by Jim Meyering.
39316
39317 2000-07-30  Jim Meyering  <meyering@lucent.com>
39318
39319         * lib/makepath.c (make_path): Quote the other instance, too.
39320
39321         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
39322         (STATIC_BUF_SIZE): Define.
39323         (quotearg_n_options): Use only statically allocated storage when
39324         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
39325         than STATIC_BUF_SIZE.
39326
39327 2000-07-29  Jim Meyering  <meyering@lucent.com>
39328
39329         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
39330         * lib/dirname.c (dir_name): Likewise.
39331
39332         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
39333         `/'.
39334
39335         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
39336         (dir_name): Assert that there are no trailing slashes.
39337
39338 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
39339
39340         * lib/mbswidth.h (mbswidth): Add a flags argument.
39341         (mbswidth): New declaration.
39342         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
39343         * lib/mbswidth.c (mbswidth): Add a flags argument.
39344         (mbsnwidth): New function.
39345
39346 2000-07-24  Jim Meyering  <meyering@lucent.com>
39347
39348         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
39349
39350 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39351
39352         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
39353
39354 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39355
39356         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
39357         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
39358         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
39359         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
39360         invoke multibyte primitives.
39361
39362 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39363
39364         * lib/quotearg.c:
39365         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
39366         so that mbstate_t is always defined.
39367
39368         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
39369         be 1 in at least one GCC installation, and this configuration
39370         error is likely to be common.  Ignoring MB_LEN_MAX hurts
39371         performance on hosts that have mbrtowc but have only unibyte
39372         locales, but I assume these hosts are rare.
39373
39374 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39375
39376         * lib/mbswidth.c (_XOPEN_SOURCE):
39377         Don't define; this causes problems on Solaris 7.
39378         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
39379
39380 2000-07-23  Jim Meyering  <meyering@lucent.com>
39381
39382         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
39383         too: getgrgid, getpwuid, getuid.
39384
39385 2000-07-23  Jim Meyering  <meyering@lucent.com>
39386
39387         * lib/basename.c (base_name): Add an assertion.
39388
39389 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
39390
39391         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
39392         shadow its mbsinit function.
39393
39394 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
39395
39396         * lib/mbswidth.h: New file.
39397         * lib/mbswidth.c: New file.
39398         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
39399         (noinst_HEADERS): Add mbswidth.h.
39400
39401 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
39402
39403         * lib/config.charset: Add support for FreeBSD. Improve support for
39404         HP-UX and IRIX 6.
39405
39406 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
39407
39408         * m4/mbswidth.m4: New file.
39409         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
39410
39411 2000-07-15  Jim Meyering  <meyering@lucent.com>
39412
39413         * lib/makepath.c: Include quote.h.
39414         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
39415         corresponding argument in a `quote (...)' call.
39416         Give better diagnostics.
39417
39418         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
39419         (noinst_HEADERS): Add quote.h.
39420
39421         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
39422         from tar's src/misc.c.
39423         * lib/quote.h: New file.  Prototypes for same.
39424
39425 2000-07-14  Paul Eggert  <eggert@twinsun.com>
39426
39427         From a suggestion by Bruno Haible.
39428         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
39429         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
39430         to decide whether to define the BeOS workaround macro;
39431         this adjusts to the change to AC_MBSTATE_T.
39432
39433 2000-07-14  Jim Meyering  <meyering@lucent.com>
39434
39435         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
39436         jm_AC_TYPE_UINTMAX_T.
39437
39438 2000-07-13  Paul Eggert  <eggert@twinsun.com>
39439
39440         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
39441
39442         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
39443         quotearg_buffer_restyled): Add support for
39444         clocale_quoting_style.  Undo previous change to
39445         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
39446         and "{RIGHT QUOTATION MARK}" msgids.
39447
39448 2000-07-10  Paul Eggert  <eggert@twinsun.com>
39449
39450         From a suggestion by Bruno Haible.
39451         * m4/mbstate_t.m4 (AC_MBSTATE_T):
39452         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
39453         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
39454         and mbstate_t, to a single-part test that simply defines mbstate_t.
39455         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
39456         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
39457
39458 2000-07-10  Jim Meyering  <meyering@lucent.com>
39459
39460         * m4/strerror_r.m4: Mirror the correction made in autoconf.
39461
39462         * m4/gnu-source.m4: Output to confdefs.h directly.
39463         Suggestion from Akim Demaille.
39464
39465 2000-07-09  Paul Eggert  <eggert@twinsun.com>
39466
39467         The old behavior of quoting `like this' doesn't look good with
39468         newer, ISO-style fonts.  See:
39469         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
39470
39471         Instead, quote "like this" by default.  Let the translator
39472         tailor the locale-specific quoting behavior by providing
39473         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
39474
39475         * lib/quotearg.c (N_): New macro.
39476         (gettext_default): New function.
39477         (quotearg_buffer_restyled): Use
39478         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
39479         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
39480
39481 2000-07-09  Jim Meyering  <meyering@lucent.com>
39482
39483         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
39484         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
39485
39486         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
39487         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
39488
39489 2000-07-09  Jim Meyering  <meyering@lucent.com>
39490
39491         * lib/Most files: Update copyright dates to include 2000.
39492
39493 2000-07-08  Jim Meyering  <meyering@lucent.com>
39494
39495         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
39496         if not defined.
39497         (xgethostname): Remove now-unnecessary #ifdef.
39498         Move declaration of `err' into loop where it's used.
39499
39500 2000-07-05  Paul Eggert  <eggert@twinsun.com>
39501         and Bruno Haible  <haible@clisp.cons.org>
39502
39503         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
39504         only if the test for an object-type mbstate_t fails.  This
39505         prevents us from mistakenly reporting that mbstate_t is a
39506         system object type after we "#define mbstate_t int" to work
39507         around its lack.
39508
39509 2000-07-05  Paul Eggert  <eggert@twinsun.com>
39510         and Bruno Haible  <haible@clisp.cons.org>
39511
39512         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
39513
39514 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39515
39516         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
39517         to strerror_r.
39518         Include <ctype.h> for use of isalpha.
39519
39520 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39521
39522         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
39523         by allocating a larger buffer. Test the gethostname return value for
39524         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
39525         returns an error and ENAMETOOLONG isn't defined.
39526
39527 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39528
39529         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
39530         dimension.
39531
39532 2000-07-04  Jim Meyering  <meyering@lucent.com>
39533
39534         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
39535         of the deprecated AC_CHECKING.
39536
39537 2000-07-04  Jim Meyering  <meyering@lucent.com>
39538
39539         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
39540         Reported by Bruno Haible.
39541
39542 2000-07-04  Jim Meyering  <meyering@lucent.com>
39543
39544         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
39545         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
39546         lacks mbrtowc.
39547
39548 2000-07-03  Paul Eggert  <eggert@twinsun.com>
39549
39550         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
39551         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
39552
39553 2000-07-03  Paul Eggert  <eggert@twinsun.com>
39554         and Bruno Haible  <haible@clisp.cons.org>
39555
39556         * lib/quotearg.c (mbrtowc):
39557         Assign to *pwc, and return 1 only if result is nonzero.
39558         (iswprint): Use ISPRINT when substituting our own mbrtowc.
39559
39560 2000-07-03  Jim Meyering  <meyering@lucent.com>
39561
39562         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
39563
39564 2000-07-03  Jim Meyering  <meyering@lucent.com>
39565
39566         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
39567         This is necessary to get a definition of e.g., UTMP_FILE on
39568         HP-UX 10.20.
39569         From Bob Proulx.
39570
39571 2000-07-02  Jim Meyering  <meyering@lucent.com>
39572
39573         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
39574
39575         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
39576         AC_LIBOBJ(function_name).
39577         * m4/chown.m4: Likewise.
39578         * m4/fnmatch.m4: Likewise.
39579         * m4/ftruncate.m4: Likewise.
39580         * m4/getgroups.m4: Likewise.
39581         * m4/getline.m4: Likewise.
39582         * m4/group-member.m4: Likewise.
39583         * m4/jm-macros.m4: Likewise.
39584         * m4/lstat.m4: Likewise.
39585         * m4/malloc.m4: Likewise.
39586         * m4/memcmp.m4: Likewise.
39587         * m4/nanosleep.m4: Likewise.
39588         * m4/putenv.m4: Likewise.
39589         * m4/realloc.m4: Likewise.
39590         * m4/regex.m4: Likewise.
39591         * m4/stat.m4: Likewise.
39592         * m4/strftime.m4: Likewise.
39593
39594 2000-07-02  Jim Meyering  <meyering@lucent.com>
39595
39596         * lib/quotearg.c (mbstate_t): Don't define here.
39597
39598 2000-07-02  Jim Meyering  <meyering@lucent.com>
39599
39600         * lib/nanosleep.c (SIGCONT): Define if not already defined.
39601
39602 2000-07-01  Jim Meyering  <meyering@lucent.com>
39603
39604         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
39605
39606 2000-07-01  Jim Meyering  <meyering@lucent.com>
39607
39608         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
39609         problem.
39610
39611 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
39612
39613         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
39614         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
39615
39616 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
39617
39618         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
39619         per change in ../m4/ls-mntd-fs.m4.
39620         (read_filesystem_list): Ignore symbolic links.
39621
39622 2000-06-29  Jim Meyering  <meyering@lucent.com>
39623
39624         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
39625         for declaration of strcmp.
39626
39627         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
39628
39629         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
39630         Avoid warning by casting result to `char *' to remove `const'.
39631
39632 2000-06-28  Jim Meyering  <meyering@lucent.com>
39633
39634         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
39635         included by quotearg.c, for which we perform this test.  From
39636         Bruno Haible.
39637
39638 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
39639
39640         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
39641         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
39642         <utmpx.h> exists, put readutmp.o into LIBOBJS.
39643
39644 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
39645
39646         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
39647
39648 2000-06-26  Paul Eggert  <eggert@twinsun.com>
39649
39650         savedir now sets errno on failure and invokes xmalloc to get memory.
39651         Fix a couple of other minor bugs while we're at it.
39652
39653         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
39654         (NAMLEN): Remove macro.
39655         (malloc, realloc): Remove decls.
39656         (stpcpy): Likewise.
39657         ("xalloc.h"): Include.
39658         (NAME_SIZE_DEFAULT): New macro.
39659         (savedir): Use xmalloc / xrealloc to allocate memory.
39660         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
39661         Skip "" directory entries.
39662         Use strlen to calculate directory entry length, since the old method
39663         is rarely used these days and isn't worth supporting.
39664         Don't use a pointer after freeing it.
39665         Check for integer overflow when calculating allocation size.
39666         Use memcpy to copy entries, instead of stpcpy.
39667         Set errno properly when returning NULL.
39668         Check for readdir error.
39669
39670 2000-06-26  Jim Meyering  <meyering@lucent.com>
39671
39672         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
39673
39674 2000-06-25  Jim Meyering  <meyering@lucent.com>
39675
39676         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
39677         Linux header bug when _XOPEN_SOURCE is defined to 500.
39678
39679 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
39680
39681         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
39682         deficiency.
39683
39684 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
39685
39686         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
39687         Include xalloc.h.
39688         Don't include <stdlib.h>.  Don't declare malloc, realloc.
39689
39690 2000-06-24  Jim Meyering  <meyering@lucent.com>
39691
39692         * m4/strerror_r.m4: Revive this file -- to try out an experimental
39693         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
39694         for which strerror does return char*, but which lacks a conveniently
39695         accessible declaration of the function.  If the compile-test says
39696         strerror_r doesn't work, then resort to a `run'-test that works on
39697         BeOS and segfaults on DEC Unix.
39698
39699 2000-06-24  Jim Meyering  <meyering@lucent.com>
39700
39701         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
39702
39703 2000-06-23  Paul Eggert  <eggert@twinsun.com>
39704
39705         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
39706         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
39707
39708 2000-06-23  Paul Eggert  <eggert@twinsun.com>
39709
39710         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
39711         (mbrtowc, mbstate_t): Define substitutes if
39712         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
39713         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
39714         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
39715
39716 2000-06-23  Jim Meyering  <meyering@lucent.com>
39717
39718         * m4/afs.m4: Add missing AC_MSG_RESULT.
39719         Reported by Bruno Haible.
39720
39721         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
39722         Suggestion from Bruno Haible.
39723
39724 2000-06-23  Jim Meyering  <meyering@lucent.com>
39725
39726         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
39727
39728 2000-06-21  Jim Meyering  <meyering@lucent.com>
39729
39730         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
39731
39732 2000-06-21  Jim Meyering  <meyering@lucent.com>
39733
39734         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
39735         (noinst_HEADERS): Add getstr.h.
39736
39737         * lib/getline.c (getstr): Move into a separate file.
39738         * lib/getstr.c (getstr): New file, extracted from getline.c, with
39739         the following changes: new parameter, delim2; both delim[12]
39740         parameters have type `int', not `char'.  The latter would lose
39741         with 8-bit delimiters.
39742         * lib/getstr.h: New file.
39743
39744 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39745
39746         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
39747         than 1024, return a memory chunk of least possible size, instead
39748         of size PATH_MAX + 2. In the loop, increment the size proportionally.
39749         Use free/xmalloc instead of xrealloc to avoid copying for very long
39750         paths.
39751
39752 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39753
39754         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
39755         the empty string.
39756
39757 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39758
39759         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
39760         address, not strdup.  Include <stdlib.h> and don't declare free().
39761
39762 2000-06-19  Jim Meyering  <meyering@lucent.com>
39763
39764         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
39765
39766 2000-06-18  Jim Meyering  <meyering@lucent.com>
39767
39768         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
39769
39770         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
39771         `checking whether...' message to be consistent with that of the
39772         lstat test.
39773
39774 2000-06-18  Jim Meyering  <meyering@lucent.com>
39775
39776         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
39777         Besides, these days every porting target provides a mkdir function.
39778
39779         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
39780         needed. (this snippet comes from src/system.h).
39781
39782 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
39783
39784         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
39785
39786 2000-06-15  Paul Eggert  <eggert@twinsun.com>
39787
39788         * lib/human.c (adjust_value): New function.
39789         (human_readable_inexact): Apply rounding style even when
39790         printing approximate values.
39791
39792 2000-06-14  Paul Eggert  <eggert@twinsun.com>
39793
39794         * lib/human.c (human_readable_inexact): Allow an input block
39795         size that is not a multiple of the output block size, and vice versa.
39796         Reported by Piergiorgio Sartor.
39797
39798 2000-06-14  Paul Eggert  <eggert@twinsun.com>
39799
39800         * lib/getdate.y (get_date): Apply relative times after time
39801         zone indicator, not before.  Reported by Todd A. Jacobs.
39802
39803 2000-06-13  Jim Meyering  <meyering@lucent.com>
39804
39805         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
39806
39807         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
39808
39809 2000-06-12  Paul Eggert  <eggert@twinsun.com>
39810
39811         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
39812
39813 2000-06-12  Jim Meyering  <meyering@lucent.com>
39814
39815         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
39816         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
39817         optional argument.
39818         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
39819         the optional argument, `lib'.
39820
39821 2000-06-08  Jim Meyering  <meyering@lucent.com>
39822
39823         * m4/largefile.m4: Remove file (now that it's part of autoconf).
39824
39825 2000-06-04  Paul Eggert  <eggert@twinsun.com>
39826
39827         Rewrite largefile configuration so that we don't need to run
39828         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
39829         AC_CANONICAL_HOST in configure.in -- jmm]
39830
39831         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
39832         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
39833         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
39834         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
39835         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
39836         All uses changed.
39837         Instead of inspecting the output of getconf, try to compile the
39838         test program without and with the macro definition.
39839         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
39840         for getconf.  Instead, check for the needed flags by compiling
39841         test programs.
39842
39843 2000-06-04  Paul Eggert  <eggert@twinsun.com>
39844
39845         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
39846
39847 2000-06-04  Jim Meyering  <meyering@lucent.com>
39848
39849         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
39850         SunOS 4.1.4 for which gid_t is an unsigned type.
39851
39852 2000-06-03  Jim Meyering  <meyering@lucent.com>
39853
39854         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
39855         now that autoconf requires that.
39856
39857         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
39858         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
39859         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
39860
39861 2000-06-03  Jim Meyering  <meyering@lucent.com>
39862
39863         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
39864
39865 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
39866
39867         * m4/glibc21.m4: New file.
39868         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
39869
39870 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
39871
39872         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
39873         newer, don't install charset.alias.
39874         * lib/config.charset: Change the Linux/glibc rules so they become empty
39875         on glibc-2.1 or newer.
39876
39877 2000-06-02  Jim Meyering  <meyering@lucent.com>
39878
39879         * lib/mountlist.c: Back out last change.  Instead, do this...
39880         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
39881         me_dummy member using the same `ignore'-testing code.
39882         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
39883         fs_type strings.
39884         From Mark D. Roth.
39885
39886 2000-05-29  Jim Meyering  <meyering@lucent.com>
39887
39888         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
39889         mounts with the `ignore' attribute.  Based on a patch from
39890         Mark D. Roth.
39891
39892 2000-05-28  Jim Meyering  <meyering@lucent.com>
39893
39894         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
39895         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39896         * m4/stat.m4: Likewise.
39897         * m4/lstat.m4: Likewise.
39898         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
39899
39900         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
39901         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
39902
39903 2000-05-26  Jim Meyering  <meyering@lucent.com>
39904
39905         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
39906
39907 2000-05-24  Jim Meyering  <meyering@lucent.com>
39908
39909         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
39910         autoconf requires that.
39911         * m4/lib-check.m4: Likewise.
39912         * m4/jm-macros.m4: Likewise.
39913         * m4/strftime.m4: Likewise.
39914
39915         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
39916         AC_CHECK_DECLS, now that autoconf requires that.
39917
39918 2000-05-22  Jim Meyering  <meyering@lucent.com>
39919
39920         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39921         * m4/lstat.m4: Likewise.
39922
39923 2000-05-22  Jim Meyering  <meyering@lucent.com>
39924
39925         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
39926
39927 2000-05-20  Jim Meyering  <meyering@lucent.com>
39928
39929         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
39930         (jm_PREREQ): Use it.
39931
39932 2000-05-18  Jim Meyering  <meyering@lucent.com>
39933
39934         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
39935         back, too, since it may have been modified by allocate_entry.
39936         (hash_delete): Rewrite to use neither the assignment operator
39937         nor the comma operator in an if-expression.
39938
39939 2000-05-15  Paul Eggert  <eggert@twinsun.com>
39940
39941         * lib/closeout.c:
39942         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
39943         Remove; no longer needed.
39944         "quotearg.h": Add include.
39945         (file_name): Do not bother to explicitly initialize to NULL; it's less
39946         efficient on some hosts.
39947         (close_stdout_status): Remove test as to whether stdout was already
39948         closed; it breaks for the case "echo x | sort >&-".
39949         Quote file name colons.
39950         Do not assume that _("write error") lacks format strings.
39951
39952 2000-05-15  Jim Meyering  <meyering@lucent.com>
39953
39954         * lib/version-etc.c (version_etc_copyright): Update the copyright
39955         string used in all --version output.
39956
39957 2000-05-14  Jim Meyering  <meyering@lucent.com>
39958
39959         * lib/closeout.c (close_stdout_set_file_name): New function.
39960         (close_stdout_status): Use new file-scoped global.
39961         Return right away if fstat says the stdout file descriptor is invalid.
39962         * lib/closeout.h (close_stdout_set_file_name): Declare.
39963
39964 2000-05-10  Jim Meyering  <meyering@lucent.com>
39965
39966         * lib/closeout.c [default_exit_status]: New file-scoped variable.
39967         (close_stdout_set_status): New function.
39968         * lib/closeout.h (close_stdout_set_status): Declare.
39969
39970 2000-05-09  Jim Meyering  <meyering@lucent.com>
39971
39972         * m4/gettext.m4: Rename this...
39973         * m4/libintl.m4: ...to this.
39974
39975 2000-05-08  Jim Meyering  <meyering@lucent.com>
39976
39977         * lib/long-options.c: Don't include closeout.h.
39978         (parse_long_options): Don't call close_stdout for --version.
39979
39980 2000-05-06  Paul Eggert  <eggert@twinsun.com>
39981
39982         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
39983         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
39984         2.1.3 bug.  This avoids a clash when files like regex.c define
39985         _GNU_SOURCE.
39986
39987 2000-05-06  Jim Meyering  <meyering@lucent.com>
39988
39989         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
39990         (AC_REPLACE_FUNCS): Add strnlen.
39991
39992         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
39993         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
39994
39995         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
39996         AC_SEARCH_LIBS call for nanosleep.
39997         (LIB_NANOSLEEP): Set and AC_SUBST.
39998
39999 2000-05-06  Jim Meyering  <meyering@lucent.com>
40000
40001         * lib/strnlen.c: Undefine __strnlen and strnlen.
40002         [!weak_alias]: Define __strnlen to strnlen.
40003
40004         * lib/atexit.c: New file, from libiberty.
40005
40006 2000-05-06  Jim Meyering  <meyering@lucent.com>
40007
40008         * lib/closeout.c (close_stdout_status): Also check for errors on the
40009         stderr stream.
40010
40011 2000-05-05  Jim Meyering  <meyering@lucent.com>
40012
40013         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
40014         AC_SEARCH_LIBS call for clock_gettime.
40015         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
40016
40017         * m4/search-libs.m4: Update from autoconf.
40018
40019         su doesn't work on Solaris 2.6.
40020         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
40021         <shadow.h>.  Reported by Dragos Harabor.
40022
40023 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
40024
40025         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
40026         memcpy instead of xmalloc, xrealloc, path_concat.
40027         (locale_charset): Treat empty environment variables as absent.
40028         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
40029
40030 2000-05-04  Jim Meyering  <meyering@lucent.com>
40031
40032         * lib/getopt.c: Update from glibc.
40033         * lib/obstack.c: Likewise.
40034         * lib/obstack.h: Likewise.
40035         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
40036         file
40037
40038         * lib/regex.h: Likewise.
40039         * lib/strndup.c: Likewise.
40040         * lib/strnlen.c: New file, from glibc.
40041
40042 2000-05-03  Jim Meyering  <meyering@lucent.com>
40043
40044         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
40045
40046 2000-05-02  Paul Eggert  <eggert@twinsun.com>
40047
40048         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
40049         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
40050         compile-time test, rather than inspecting host and OS, to
40051         decide whether to define _LARGEFILE_SOURCE.
40052
40053 2000-05-01  Jim Meyering  <meyering@lucent.com>
40054
40055         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
40056
40057         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
40058         Based on a patch from Bruno Haible.
40059
40060 2000-05-01  Jim Meyering  <meyering@lucent.com>
40061
40062         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
40063
40064 2000-04-29  Jim Meyering  <meyering@lucent.com>
40065
40066         * lib/path-concat.c: Declare strdup only if it's not defined.
40067         * lib/canon-host.c: Likewise.
40068
40069 2000-04-28  Jim Meyering  <meyering@lucent.com>
40070
40071         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
40072         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
40073         is included first, then limits.h is included by locale.h by libintl.h.
40074         From John David Anglin.
40075
40076 2000-04-25  Jim Meyering  <meyering@lucent.com>
40077
40078         * lib/makepath.c (S_IRWXUGO): Define.
40079         (make_path): Always perform explicit chmod if MODE specifies any
40080         of the `special' permission bits.  Prompted by a bug report against
40081         install from Mate Wierdl and Joost van Baal.
40082
40083 2000-04-18  Jim Meyering  <meyering@lucent.com>
40084
40085         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
40086         (jm_PREREQ): Use it.
40087
40088 2000-04-18  Jim Meyering  <meyering@lucent.com>
40089
40090         * lib/README: New file.
40091
40092         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
40093         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
40094
40095 2000-04-17  Jim Meyering  <meyering@lucent.com>
40096
40097         Get it right :-)
40098         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
40099         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
40100         Suggestion from Akim Demaille.
40101
40102 2000-04-17  Jim Meyering  <meyering@lucent.com>
40103
40104         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
40105         the definition of it to rpl_strftime also defined-away the system's
40106         declaration.
40107
40108 2000-04-15  Jim Meyering  <meyering@lucent.com>
40109
40110         Use `C' to denote so-called `contiguous' files, the same way
40111         that tar does.
40112         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
40113         (ftypelet): Use S_ISCTG.
40114         From Michael Deutschmann.
40115
40116 2000-04-14  Jim Meyering  <meyering@lucent.com>
40117
40118         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
40119         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
40120         clobbered.
40121
40122 2000-04-14  Jim Meyering  <meyering@lucent.com>
40123
40124         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
40125
40126 2000-04-13  Jim Meyering  <meyering@lucent.com>
40127
40128         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
40129         AH_VERBATIM to insert required #ifndef into config.h.in.
40130         Suggestion from Akim Demaille.
40131
40132 2000-04-12  Jim Meyering  <meyering@lucent.com>
40133
40134         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
40135         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
40136         Christian Krackowizer.
40137
40138         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
40139         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
40140         (AC_SYS_LARGEFILE): Require.
40141         (AM_C_PROTOTYPES): Require.
40142
40143 2000-04-08  Jim Meyering  <meyering@lucent.com>
40144
40145         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
40146         names don't conflict.  Reported by Eli Zaretskii.
40147
40148 2000-04-07  Jim Meyering  <meyering@lucent.com>
40149
40150         * lib/putenv.c: Move inclusion of errno.h so it follows that of
40151         sys/types.h, to work around system header problems on AIX 3.2.5.
40152         From Bruno Haible.
40153
40154 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
40155
40156         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
40157         bug.  Deal with the different error behavior of Irix iconv.
40158
40159 2000-04-05  Paul Eggert  <eggert@twinsun.com>
40160
40161         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
40162         IRIX if the installer said otherwise.
40163
40164 2000-04-05  Jim Meyering  <meyering@lucent.com>
40165
40166         Portability tweaks required for ultrix4.3.
40167         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
40168         (jm_CHECK_DECLS): Add getutent to the list of functions.
40169         (_jm_DECL_HEADERS): Add utmpx.h.
40170         From John David Anglin.
40171
40172         * m4/strftime.m4: Back out the 2000-04-02 change.
40173         Instead of that change, simply undefine putenv in the test program.
40174
40175 2000-04-05  Jim Meyering  <meyering@lucent.com>
40176
40177         Portability tweaks required for ultrix4.3.
40178         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
40179         getutent.
40180         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
40181         * lib/canon-host.c: Declare strdup.
40182         * lib/path-concat.c: Likewise.
40183         From John David Anglin.
40184
40185 2000-04-04  Jim Meyering  <meyering@lucent.com>
40186
40187         Be more DOS 8.3-friendly.
40188         * lib/ref-add.sin: Renamed from ref-add.sed.in.
40189         * lib/ref-del.sin: Renamed from ref-del.sed.in.
40190         * lib/Makefile.am: Reflect renaming.
40191         Reported by Eli Zaretskii.
40192
40193         Use a temporary file name that won't clash with `charset.alias'
40194         in the DOS 8.3 name space.
40195         * lib/Makefile.am (charset_tmp): Define.
40196         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
40197         (uninstall-local): Likewise.
40198         Reported by Eli Zaretskii.
40199
40200 2000-04-03  Jim Meyering  <meyering@lucent.com>
40201
40202         * m4/gettext.m4: Fix typo in comment.
40203
40204         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
40205         textutils/configure.in).  Suggestion from Paul Eggert.
40206         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
40207
40208 2000-04-02  Paul Eggert  <eggert@twinsun.com>
40209
40210         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
40211         variable in the shell rather than using putenv, which isn't
40212         portable.  This avoids the configure-time inter-test dependency
40213         on the potentially-renamed putenv function.
40214
40215 2000-03-30  Paul Eggert  <eggert@twinsun.com>
40216
40217         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
40218         before checking struct stat.st_blksize, so that
40219         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
40220
40221 2000-03-29  Paul Eggert  <eggert@twinsun.com>
40222
40223         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
40224         since strftime.c uses HAVE_STRFTIME to decide whether to use
40225         the underlying strftime.
40226
40227 2000-03-29  Paul Eggert  <eggert@twinsun.com>
40228
40229         * lib/time/strftime.c (my_strftime): Make sure we call the system
40230         strftime, not ourselves, when invoking the underlying strftime.
40231
40232 2000-03-24  Jim Meyering  <meyering@lucent.com>
40233
40234         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
40235         (charset_alias): Define.
40236         (install-exec-local): Factor out common code.
40237         (uninstall-local): Split lines longer than 80.
40238         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
40239         (SUFFIXES): Define.
40240         (.sed.in.sed): New rule.  Don't redirect directly to $@.
40241         (CLEANFILES): Add ref-add.sed and ref-del.sed.
40242
40243 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
40244
40245         * lib/config.charset: Output a line containing "Packages using this
40246         file".
40247         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
40248         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
40249         ref-del.sed): New rules.
40250
40251 2000-03-17  Jim Meyering  <meyering@lucent.com>
40252
40253         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
40254         Otherwise, include <strings.h>
40255
40256 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
40257
40258         * lib/unicodeio.c (utf8_wctomb): New function.
40259         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
40260         format instead of in UCS-4 with platform dependent endianness.
40261
40262 2000-03-10  Jim Meyering  <meyering@lucent.com>
40263
40264         * m4/lib-check.m4: Look for getspnam in -lgen, too.
40265         From Marco Franzen.
40266
40267 2000-03-07  Paul Eggert  <eggert@twinsun.com>
40268
40269         * lib/savedir.c (savedir): Work even if directory size is
40270         negative; this can happen with some screwy NFS configurations.
40271
40272 2000-03-06  Jim Meyering  <meyering@lucent.com>
40273
40274         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
40275         if it's NULL (because we ran out of memory).  From Bruno Haible.
40276
40277 2000-03-05  Jim Meyering  <meyering@lucent.com>
40278
40279         * lib/localcharset.c ("path-concat.h"): Include.
40280         (get_charset_aliases): Use path_concat instead of ANSI string
40281         concatenation.
40282
40283         * lib/unicodeio.h (PARAMS): Define.
40284         Use it to guard prototype.
40285
40286 2000-03-04  Jim Meyering  <meyering@lucent.com>
40287
40288         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
40289         for lib/localcharset.c.
40290
40291 2000-03-04  Jim Meyering  <meyering@lucent.com>
40292
40293         * lib/Makefile.am (install-exec-local): Create $(libdir) before
40294         installing into it.
40295         (uninstall-local): Uncomment this rule so `make distcheck' works
40296         once again.
40297
40298         * lib/unicodeio.c (<errno.h>): Include it.
40299         (errno): Declare if not defined.
40300
40301         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
40302
40303         * lib/config.charset: New version, incorporating remarks from a linux
40304         i18n mailing list.  From Bruno Haible.
40305
40306 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
40307
40308         * m4/codeset.m4: New file.
40309         * m4/iconv.m4: New file.
40310         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
40311
40312 2000-03-03  Jim Meyering  <meyering@lucent.com>
40313
40314         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
40315
40316 2000-03-02  Jim Meyering  <meyering@lucent.com>
40317
40318         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
40319         the messages come out on separate lines.
40320
40321         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
40322         rather than jm_CHECK_DECLARATIONS.
40323         * m4/decl.m4: Remove now-unused file.
40324
40325         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
40326         geteuid.
40327
40328 2000-03-02  Jim Meyering  <meyering@lucent.com>
40329
40330         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
40331
40332 2000-03-01  Jim Meyering  <meyering@lucent.com>
40333
40334         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
40335         * lib/unicodeio.c: Likewise.
40336
40337 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
40338
40339         * lib/config.charset: New file.
40340         * lib/localcharset.c: New file.
40341         * lib/unicodeio.h, lib/unicodeio.c: New files.
40342         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
40343         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
40344         (noinst_HEADERS): Add unicodeio.h.
40345         (all-local, install-exec-local, charset.alias): New targets.
40346
40347 2000-02-28  Paul Eggert  <eggert@twinsun.com>
40348
40349         * lib/quotearg.c (ALERT_CHAR): New macro.
40350         (quotearg_buffer_restyled): Use it.
40351
40352 2000-02-27  Jim Meyering  <meyering@lucent.com>
40353
40354         * m4/check-decl.m4: Add getenv to the list.
40355
40356 2000-02-27  Jim Meyering  <meyering@lucent.com>
40357
40358         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
40359         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
40360
40361         * lib/backupfile.c: Guard inclusion of stdlib.h with
40362         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
40363         Declare malloc if needed.
40364
40365         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
40366         `#ifndef HAVE_DECL..'
40367         now that autoconf always defines the HAVE_DECL_ symbols.
40368         * lib/human.c: Likewise.
40369         * lib/same.c: Likewise.
40370         * lib/strtoumax.c: Likewise.
40371
40372         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
40373         declaration check was not run.
40374         * lib/hash.c: Likewise.
40375         * lib/human.c: Likewise.
40376         * lib/same.c: Likewise.
40377         * lib/strtoumax.c: Likewise.
40378
40379         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
40380         `.', then first look up the entire `.'-containing string as a login
40381         name.
40382
40383 2000-02-23  Jim Meyering  <meyering@lucent.com>
40384
40385         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
40386         in place of my hack.
40387
40388 2000-02-18  Paul Eggert  <eggert@twinsun.com>
40389
40390         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
40391         (textint): New typedef.
40392         (parser_control): Member year changed from int to textint.
40393         All uses changed.
40394         (YYSTYPE): Removed; replaced by %union with int and textint members.
40395         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
40396         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
40397         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
40398         (tSNUMBER, tUNUMBER): Now of type <textintval>.
40399         (date, number, to_year): Use width of number in digits, not its value,
40400         to determine whether it's a 2-digit year, or a 2-digit time.
40401         (yylex): Store number of digits of numeric tokens.
40402         Reported by John Kendall.
40403
40404         (parser_control): Changed from struct parser_control to typedef (for
40405         consistency).  All uses changed.
40406
40407         (tID): Removed; not used.
40408         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
40409
40410 2000-02-14  Paul Eggert  <eggert@twinsun.com>
40411
40412         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
40413         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
40414
40415 2000-02-12  Jim Meyering  <meyering@lucent.com>
40416
40417         * lib/userspec.c (ISDIGIT): Define it.
40418         (isdigit): Remove definition.
40419         (is_number): Use ISDIGIT, not isdigit.
40420         <libintl.h>: Include.
40421         (_ and N_): Define.
40422         (parse_user_spec): Mark translatable strings.
40423
40424 2000-02-10  Jim Meyering  <meyering@lucent.com>
40425
40426         With these changes, nanosleep.[ch] are finally enough like the other
40427         lib/* replacement files to compile on a few more losing systems.
40428
40429         * lib/nanosleep.h: Don't include config.h.
40430         Remove prototype from declaration of nanosleep.
40431         (PARAMS): Remove now-unneeded definition.
40432         * lib/nanosleep.c: #undef nanosleep.
40433         (rpl_nanosleep): Rename from nanosleep.
40434
40435 2000-02-10  Jim Meyering  <meyering@lucent.com>
40436
40437         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
40438         gnu_nanosleep to rpl_nanosleep.
40439
40440 2000-02-09  Jim Meyering  <meyering@lucent.com>
40441
40442         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
40443         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
40444
40445 2000-02-08  Akim Demaille  <akim@epita.fr>
40446
40447         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
40448         `[' and `]' and remove uses of `changequote'.
40449         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
40450         (AC_SYS_LARGEFILE): Likewise.
40451         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40452         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
40453         of changequote.
40454         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
40455         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
40456         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
40457         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
40458
40459 2000-02-05  Jim Meyering  <meyering@lucent.com>
40460
40461         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
40462         Remove explicit use of AC_HEADER_TIME.  It is required by
40463         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
40464         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
40465         in autoconf whereby the expansion of the latter ended up preceding
40466         the expansion of its prerequisite, AC_HEADER_TIME.
40467         Reported by Volker Borchert.
40468
40469 2000-02-03  Jim Meyering  <meyering@lucent.com>
40470
40471         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
40472
40473 2000-02-03  Jim Meyering  <meyering@lucent.com>
40474
40475         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
40476         rather than with `#if HAVE_UTMPNAME'.
40477
40478 2000-02-02  Jim Meyering  <meyering@lucent.com>
40479
40480         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
40481         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
40482         Reported by Eli Zaretskii.
40483
40484 2000-02-01  Jim Meyering  <meyering@lucent.com>
40485
40486         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
40487
40488 2000-01-31  Jim Meyering  <meyering@lucent.com>
40489
40490         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
40491         functions.  Add the time.h and sys/time.h headers along with the
40492         AC_REQUIRE'ment of AC_HEADER_TIME.
40493
40494 2000-01-31  Jim Meyering  <meyering@lucent.com>
40495
40496         * lib/nanosleep.h (nanosleep): Guard declaration with
40497         `#if ! HAVE_DECL_NANOSLEEP'.
40498         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
40499         the declaration in that vendor's sys/timers.h.
40500         Reported by Christian Krackowizer.
40501
40502         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
40503         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
40504         (ISPRINT): Likewise.
40505         Reported by Tom Tromey.
40506
40507 2000-01-30  Jim Meyering  <meyering@lucent.com>
40508
40509         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
40510
40511         * m4/prereq.m4 (utmp_includes): Define.
40512         Check for ut_user and ut_name members in both struct utmpx
40513         and struct utmp.
40514
40515 2000-01-30  Jim Meyering  <meyering@lucent.com>
40516
40517         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
40518         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
40519         header files where only utmpx.ut_user is declared.
40520
40521         * lib/readutmp.h (UT_USER): Define.
40522
40523 2000-01-29  Jim Meyering  <meyering@lucent.com>
40524
40525         * m4/lib-check.m4: New file containing library-related checks from
40526         fileutils and sh-utils (textutils had none).
40527
40528 2000-01-28  Jim Meyering  <meyering@lucent.com>
40529
40530         * m4/perl.m4: Change format of warning message to look more like that
40531         from the missing script.  Suggestion from François Pinard.
40532
40533 2000-01-25  Jim Meyering  <meyering@lucent.com>
40534
40535         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
40536         well as time.h in the compile check.
40537         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
40538         Fix typo in cross-compiling case: s/yes/no/.
40539
40540 2000-01-23  Jim Meyering  <meyering@lucent.com>
40541
40542         * m4/jm-macros.m4: Move df-related tests here from
40543         fileutils/configure.in
40544
40545         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
40546         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
40547
40548         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
40549         s/space/ac_fsusage_space/.
40550         (jm_FILE_SYSTEM_USAGE): Take two parameters.
40551
40552         * m4/ftruncate.m4: New file (derived from part of
40553         fileutils/configure.in).
40554         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
40555         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
40556
40557         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
40558         AC_SUBST these here, rather than just in sh-util/configure.in, so
40559         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
40560         all the same.
40561         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
40562         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
40563         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
40564         (AC_SUBST(POW_LIBM)): Likewise.
40565         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
40566
40567 2000-01-23  Jim Meyering  <meyering@lucent.com>
40568
40569         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
40570         obstack.c.
40571
40572 2000-01-22  Jim Meyering  <meyering@lucent.com>
40573
40574         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
40575
40576         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
40577
40578         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
40579         configure.in
40580         (AC_CHECK_HEADERS): Likewise for sh-utils.
40581         (AC_CHECK_HEADERS): Likewise for textutils.
40582         Merge the three lists of headers.
40583
40584         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
40585         from fileutils' configure.in.
40586
40587         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
40588         code. Moved tests into their own function (_jm_DECL_HEADERS) in
40589         check-decl.m4.
40590
40591         * m4/check-decl.m4: Use #if rather than #ifdef.
40592         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
40593         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
40594         (_jm_DECL_HEADERS): Define new function.
40595         (jm_CHECK_DECLARATIONS): Require it.
40596
40597 2000-01-22  Jim Meyering  <meyering@lucent.com>
40598
40599         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
40600         [! HAVE_DECL_STRTOULL]: Declare strtoull.
40601         Required for some AIX systems.  Reported by Christian Krackowizer.
40602         [TESTING] (main): New function.
40603
40604         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
40605         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
40606         letters.
40607
40608         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
40609         iswprint.
40610
40611         * lib/strverscmp.c (ISDIGIT): Define.
40612         (strverscmp): Use ISDIGIT, not isdigit.
40613
40614 2000-01-19  Jim Meyering  <meyering@lucent.com>
40615
40616         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
40617         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
40618         defines `struct timespec' in <sys/time.h>
40619
40620         * m4/c-bs-a.m4: Remove uses of changequote altogether.
40621         Thanks to Akim for explaining.
40622
40623 2000-01-17  Paul Eggert  <eggert@twinsun.com>
40624
40625         * lib/nanosleep.c (nanosleep):
40626         Don't use SA_INTERRUPT to decide whether to call sigaction, as
40627         POSIX.1 doesn't require SA_INTERRUPT and some systems
40628         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
40629         it's been part of POSIX.1 since day 1 (in 1988).
40630
40631 2000-01-17  Jim Meyering  <meyering@lucent.com>
40632
40633         * lib/interlock: Remove unused file.  Reported by François Pinard.
40634
40635 2000-01-16  Paul Eggert  <eggert@twinsun.com>
40636
40637         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
40638         alert, backslash, formfeed, and vertical tab unnecessarily in
40639         shell quoting style.
40640
40641 2000-01-16  Jim Meyering  <meyering@lucent.com>
40642
40643         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
40644         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
40645         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
40646         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
40647
40648 2000-01-16  Jim Meyering  <meyering@lucent.com>
40649
40650         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
40651         because the latter didn't work.
40652
40653 2000-01-15  Jim Meyering  <meyering@lucent.com>
40654
40655         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
40656         (AC_REPLACE_FUNCS): Add memcpy and memset.
40657         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
40658         Add strpbrk.
40659         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
40660
40661 2000-01-12  Jim Meyering  <meyering@lucent.com>
40662
40663         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
40664         (jm_PREREQ): Use it.
40665         (jm_PREREQ_READUTMP): New macro.
40666         (jm_PREREQ): Use it.
40667
40668 2000-01-11  Paul Eggert  <eggert@twinsun.com>
40669
40670         Quote multibyte characters correctly.
40671         * m4/c-bs-a.m4: New file.
40672         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
40673         (jm_PREREQ): Use it.
40674
40675 2000-01-11  Paul Eggert  <eggert@twinsun.com>
40676
40677         * m4/uintmax_t.m4: Port to autoconf 2.13.
40678
40679 2000-01-08  Jim Meyering  <meyering@ascend.com>
40680
40681         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
40682         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
40683
40684 2000-01-04  Jim Meyering  <meyering@ascend.com>
40685
40686         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
40687         jm_STRUCT_DIRENT_D_TYPE.
40688         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
40689         jm_STRUCT_DIRENT_D_INO.
40690         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
40691         jm_STRUCT_UTIMBUF.
40692         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
40693         renamings.
40694         * m4/utime.m4: Likewise.
40695
40696         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
40697         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
40698
40699 2000-01-03  Paul Eggert  <eggert@twinsun.com>
40700
40701         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
40702         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
40703
40704 2000-01-02  Jim Meyering  <meyering@ascend.com>
40705
40706         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
40707         remember if this is necessary.
40708
40709 1999-12-26  Jim Meyering  <meyering@ascend.com>
40710
40711         * m4/jm-macros.m4: Use it here.
40712         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
40713
40714 1999-12-23  Jim Meyering  <meyering@ascend.com>
40715
40716         * m4/jm-macros.m4: Check for clock_gettime (moved from
40717         fileutils/configure.in)
40718         Check for gettimeofday.
40719
40720 1999-12-20  Jim Meyering  <meyering@ascend.com>
40721
40722         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
40723         autoconf-2.14a-1999-12-20.
40724
40725 1999-12-19  Jim Meyering  <meyering@ascend.com>
40726
40727         * m4/lstat-slash.m4: New file.
40728         * m4/jm-macros.m4: Use the new macro:
40729         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40730
40731 1999-12-07  Jim Meyering  <meyering@ascend.com>
40732
40733         * m4/perl.m4: Require that File::Compare be available, too.
40734         Too many systems seem to lack it.
40735
40736         * m4/strftime.m4: Add checks for most of the cpp macros tested in
40737         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
40738
40739 1999-11-18  Paul Eggert  <eggert@twinsun.com>
40740
40741         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
40742         problem with the QNX 4.25 shell, which doesn't propagate exit
40743         status of failed commands inside shell assignments.
40744
40745 1999-11-17  Jim Meyering  <meyering@ascend.com>
40746
40747         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
40748
40749 1999-11-07  Jim Meyering  <meyering@ascend.com>
40750
40751         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
40752
40753 1999-11-06  Jim Meyering  <meyering@ascend.com>
40754
40755         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
40756         * m4/jm-macros.m4 (jm_MACROS): Use it here.
40757
40758 1999-11-05  Jim Meyering  <meyering@ascend.com>
40759
40760         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
40761         configure.in of textutils, fileutils, and sh-utils into this one
40762         (shared between those packages) file.
40763         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
40764         AC_STRUCT_ST_BLKSIZE.
40765
40766 1999-11-03  Jim Meyering  <meyering@ascend.com>
40767
40768         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
40769         of AC_CHECK_TYPE checks includes unistd.h.
40770         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
40771         Suggestion from Akim Demaille.
40772
40773 1999-10-30  Jim Meyering  <meyering@ascend.com>
40774
40775         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
40776         m4-quoted string.
40777         * m4/ls-mntd-fs.m4: Likewise.
40778         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
40779         * m4/jm-winsz1.m4: Likewise.
40780
40781         * m4/const.m4: Remove file, since the fix made it into the experimental
40782         version of autoconf.
40783         * m4/mktime.m4: Likewise.
40784
40785         * m4/check-type.m4: Remove file, now that the latest version of
40786         AC_CHECK_TYPE takes a third arg to specify additional #includes.
40787
40788         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
40789         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
40790         AC_CHECK_TYPE.
40791
40792 1999-10-04  Jim Meyering  <meyering@ascend.com>
40793
40794         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
40795
40796 1999-09-22  Paul Eggert  <eggert@twinsun.com>
40797
40798         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
40799         2.95.1 bug with HP-UX 10.20.
40800
40801 1999-09-17  Jim Meyering  <meyering@ascend.com>
40802
40803         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
40804         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
40805         due to missing strdup (against sh-utils-2.0).
40806
40807 1999-08-29  Jim Meyering  <meyering@ascend.com>
40808
40809         * m4/jm-macros.m4: Require jm_BISON.
40810         * m4/bison.m4: New file.
40811
40812 1999-08-17  Paul Eggert  <eggert@twinsun.com>
40813
40814         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
40815         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
40816
40817 1999-08-05  Jim Meyering  <meyering@ascend.com>
40818
40819         * m4/getline.m4: Rename test file from conftestdata to conftest.data
40820         to avoid conflicts with `conftest' on 8+3 filesystems.
40821         Suggestion from Eli Zaretskii.
40822
40823 1999-08-04  Jim Meyering  <meyering@ascend.com>
40824
40825         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
40826         fileutils and sh-utils (textutils's getline test was inadequate).
40827         (AM_FUNC_GETLINE): Run this test.
40828         (AC_CHECK_FUNCS): Check for getdelim.
40829         Reported by Bob Proulx.
40830
40831 1999-08-02  Jim Meyering  <meyering@ascend.com>
40832
40833         * m4/jm-macros.m4: Add a comment.
40834
40835 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40836
40837         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
40838         <inttypes.h> defines strtoumax as a macro (and not as a
40839         function).
40840
40841 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40842
40843         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
40844         that we can shift, multiply and divide unsigned long long
40845         values; Ultrix cc can't do it.
40846
40847 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40848
40849         * m4/mktime.m4: New file, which is a preview of what should appear
40850         in the next public autoconf release.
40851
40852 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40853
40854         * m4/lfs.m4: Remove this file.
40855         * m4/largefile.m4: New file.  It contains the old contents of
40856         lfs.m4, except that all names with prefix AC_LFS have been
40857         changed to use the prefix AC_SYS_LARGEFILE instead, to be
40858         compatible with future autoconf versions.  Also, some minor m4
40859         quoting problems have been fixed.
40860
40861 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40862
40863         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
40864         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
40865         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
40866         and simplify the shell code.
40867
40868 1999-08-01  Jim Meyering  <meyering@ascend.com>
40869
40870         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
40871         m4.
40872
40873 1999-07-20  Jim Meyering  <meyering@ascend.com>
40874
40875         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
40876
40877 1999-07-15  Jim Meyering  <meyering@ascend.com>
40878
40879         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
40880
40881 1999-05-22  Jim Meyering  <meyering@ascend.com>
40882
40883         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
40884
40885 1999-05-20  Jim Meyering  <meyering@ascend.com>
40886
40887         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
40888         Add a colon after each `then' in case $4 is empty.
40889
40890 1999-05-16  Jim Meyering  <meyering@ascend.com>
40891
40892         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
40893
40894 1999-05-10  Jim Meyering  <meyering@ascend.com>
40895
40896         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
40897
40898         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
40899         AC_FUNC_MKTIME.
40900
40901 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
40902
40903         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
40904
40905 1999-05-04  Paul Eggert  <eggert@twinsun.com>
40906
40907         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
40908         not CPPFLAGS, so that linking works correctly in IRIX.
40909
40910 1999-04-30  Paul Eggert  <eggert@twinsun.com>
40911
40912         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
40913
40914 1999-04-20  Paul Eggert  <eggert@twinsun.com>
40915
40916         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
40917         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
40918         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
40919         jm_AC_TYPE_UNSIGNED_LONG_LONG.
40920         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
40921
40922         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
40923
40924 1999-04-20  Jim Meyering  <meyering@ascend.com>
40925
40926         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
40927         AC_REPLACE xstroull if necessary.  From Paul Eggert.
40928         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
40929
40930 1999-04-18  Jim Meyering  <meyering@ascend.com>
40931
40932         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
40933         * m4/jm-macros.m4: Use it.
40934
40935 1999-04-06  Jim Meyering  <meyering@ascend.com>
40936
40937         * m4/strftime.m4: Remove test for %f.
40938
40939 1999-03-29  Jim Meyering  <meyering@ascend.com>
40940
40941         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
40942         superset of the AC_TYPE_* checks in the textutils, fileutils,
40943         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
40944         AC_TYPE_PID_T.
40945
40946 1999-03-28  Jim Meyering  <meyering@ascend.com>
40947
40948         * m4/jm-macros.m4: Define GNU_PACKAGE here.
40949         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
40950         replaced e.g., in the *.sh files of the sh-utils.
40951
40952 1999-03-20  Jim Meyering  <meyering@ascend.com>
40953
40954         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
40955         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
40956         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
40957
40958 1999-03-19  Jim Meyering  <meyering@ascend.com>
40959
40960         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
40961
40962 1999-03-12  Jim Meyering  <meyering@ascend.com>
40963
40964         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
40965
40966 1999-03-07  Jim Meyering  <meyering@ascend.com>
40967
40968         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
40969         declared.
40970
40971 1999-02-17  Jim Meyering  <meyering@ascend.com>
40972
40973         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
40974         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
40975
40976 1999-02-07  Jim Meyering  <meyering@ascend.com>
40977
40978         * m4/group-member.m4: New file -- extracted from sh-utils'
40979         configure.in.
40980
40981         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
40982         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
40983
40984 1999-02-06  Jim Meyering  <meyering@ascend.com>
40985
40986         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
40987         * m4/fnmatch.m4: Likewise.
40988         * m4/getgroups.m4: Likewise.
40989         * m4/lstat.m4: Likewise.
40990         * m4/malloc.m4: Likewise.
40991         * m4/putenv.m4: Likewise.
40992         * m4/realloc.m4: Likewise.
40993         * m4/regex.m4: Likewise.
40994         * m4/stat.m4: Likewise.
40995         * m4/strftime.m4: Likewise.
40996         Suggestion from Alain Magloire.
40997
40998         * m4/chown.m4: Use `.$ac_objext', not `.o'.
40999         * m4/fnmatch.m4: Likewise.
41000         * m4/getgroups.m4: Likewise.
41001         * m4/getline.m4: Likewise.
41002         * m4/lstat.m4: Likewise.
41003         * m4/malloc.m4: Likewise.
41004         * m4/memcmp.m4: Likewise.
41005         * m4/putenv.m4: Likewise.
41006         * m4/realloc.m4: Likewise.
41007         * m4/regex.m4: Likewise.
41008         * m4/stat.m4: Likewise.
41009         * m4/strftime.m4: Likewise.
41010         Suggestion from Alain Magloire.
41011
41012         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
41013         an argument.
41014
41015         * m4/regex.m4: Add a run-time Test for proper operation of
41016         re_compile_pattern.
41017
41018 1999-01-31  Jim Meyering  <meyering@ascend.com>
41019
41020         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
41021
41022 1999-01-30  Jim Meyering  <meyering@ascend.com>
41023
41024         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
41025
41026         * m4/jm-mktime.m4: Make this a wrapper around the official
41027         AM_FUNC_MKTIME rather than my private copy, now that the official one
41028         is up to date.
41029         * m4/mktime.m4: Remove file.
41030
41031         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
41032         * m4/uptime.m4: Likewise.
41033         * m4/uintmax_t.m4: Likewise.
41034
41035 1999-01-28  Jim Meyering  <meyering@ascend.com>
41036
41037         * m4/jm-macros.m4: Use jm_AFS.
41038         * m4/afs.m4: New file (from fileutils' configure.in).
41039
41040         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
41041         * m4/chown.m4: Likewise.
41042         * m4/d-ino.m4: Likewise.
41043         * m4/d-type.m4: Likewise.
41044         * m4/fnmatch.m4: Likewise.
41045         * m4/getgroups.m4: Likewise.
41046         * m4/gettext.m4: Likewise.
41047         * m4/jm-mktime.m4: Likewise.
41048         * m4/jm-winsz2.m4: Likewise.
41049         * m4/lcmessage.m4: Likewise.
41050         * m4/ls-mntd-fs.m4: Likewise.
41051         * m4/malloc.m4: Likewise.
41052         * m4/memcmp.m4: Likewise.
41053         * m4/putenv.m4: Likewise.
41054         * m4/realloc.m4: Likewise.
41055         * m4/st_mtim.m4: Likewise.
41056         * m4/strftime.m4: Likewise.
41057
41058 1999-01-16  Jim Meyering  <meyering@ascend.com>
41059
41060         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
41061         (ARGMATCH_DIE_DECL): Define.
41062
41063 1999-01-12  Jim Meyering  <meyering@ascend.com>
41064
41065         * m4/Makefile.am.in: Rewrite to avoid using fmt.
41066         Reported by Lars Hecking.
41067
41068 1999-01-10  Jim Meyering  <meyering@ascend.com>
41069
41070         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
41071         gross kludge.
41072         * m4/inttypes_h.m4: Likewise.
41073         * m4/lstat.m4: Likewise.
41074         * m4/malloc.m4: Likewise.
41075         * m4/readdir.m4: Likewise.
41076         * m4/realloc.m4: Likewise.
41077         * m4/st_dm_mode.m4: Likewise.
41078         * m4/stat.m4: Likewise.
41079         * m4/utimbuf.m4: Likewise.
41080         * m4/utimes.m4: Likewise.
41081
41082         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
41083         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
41084         comments in config.h.in are meaningful.
41085
41086         * m4/jm-macros.m4: Require autoconf-2.13 here.
41087
41088         * m4/regex.m4: By default, don't use the included regex.c on systems
41089         with glibc 2.  Suggestion from Uli Drepper.
41090
41091 1999-01-02  Jim Meyering  <meyering@ascend.com>
41092
41093         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
41094
41095 1998-12-18  Jim Meyering  <meyering@ascend.com>
41096
41097         * m4/Makefile.am.in (Makefile.am): Simplify rule.
41098         Based on a suggestion from Lars Hecking.
41099
41100 1998-11-16  Paul Eggert  <eggert@twinsun.com>
41101
41102         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
41103
41104 1998-11-16  Jim Meyering  <meyering@ascend.com>
41105
41106         * m4/lfs.m4: Double-quote the `uname...` expression.
41107
41108 1998-11-14  Jim Meyering  <meyering@ascend.com>
41109
41110         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
41111         * m4/stat.m4: Likewise.
41112
41113 1998-11-03  Jim Meyering  <meyering@ascend.com>
41114
41115         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
41116         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
41117
41118 1998-10-18  Jim Meyering  <meyering@ascend.com>
41119
41120         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
41121
41122 1998-10-17  Jim Meyering  <meyering@ascend.com>
41123
41124         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
41125         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
41126         calls for those previously hard-coded headers.  Instead, take a new
41127         parameter.
41128         (jm_CHECK_DECLARATIONS): Reflect interface change.
41129         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
41130         (jm_CHECK_DECL_LOCALTIME_R): New macro.
41131
41132         * m4/mktime.m4: Test for spring-forward gap before long-running test.
41133
41134 1998-10-14  Jim Meyering  <meyering@ascend.com>
41135
41136         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
41137         instead of "TZ=America/Vancouver".  From Paul Eggert.
41138
41139 1998-10-11  Jim Meyering  <meyering@ascend.com>
41140
41141         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
41142         This adds a test for a recently added compatibility fix for mktime.c.
41143         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
41144
41145 1998-09-27  Jim Meyering  <meyering@ascend.com>
41146
41147         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
41148
41149         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
41150         ../configure.in, including a change from Gordon Matzigkeit to allow
41151         cross-compiling for the Hurd.
41152
41153         * m4/glibc.m4: New file/macro to test for the GNU C Library
41154         versions 1 and 2.  From Gordon Matzigkeit.
41155         Indent.
41156
41157 1998-09-21  Jim Meyering  <meyering@ascend.com>
41158
41159         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
41160
41161 1998-08-18  Paul Eggert  <eggert@twinsun.com>
41162
41163         Port nanosecond-resolution times to UnixWare 2.1.2 and
41164         pedantic Solaris 2.6.
41165
41166         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
41167         AC_STRUCT_ST_MTIM.
41168         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
41169         Generate name of ns member, instead of just 1 or undef.
41170         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
41171
41172 1998-08-15  Jim Meyering  <meyering@ascend.com>
41173
41174         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
41175         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
41176         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
41177         instead of jm_TYPE_SSIZE_T.
41178
41179 1998-08-12  Jim Meyering  <meyering@ascend.com>
41180
41181         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
41182
41183 1998-08-02  Jim Meyering  <meyering@ascend.com>
41184
41185         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
41186         in acconfig.h manually.
41187
41188 1998-07-31  Paul Eggert  <eggert@twinsun.com>
41189
41190         * m4/st_mtim.m4: New file.
41191
41192 1998-07-28  Jim Meyering  <meyering@ascend.com>
41193
41194         * m4/utimes.m4: Undef stat.
41195
41196 1998-07-25  Jim Meyering  <meyering@ascend.com>
41197
41198         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
41199         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
41200
41201 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
41202
41203         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
41204         uid and gid actually remain unchanged.
41205
41206 1998-07-07  Jim Meyering  <meyering@ascend.com>
41207
41208         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
41209
41210 1998-07-04  Jim Meyering  <meyering@ascend.com>
41211
41212         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
41213         to prove that this macro can be used in packages without regex.c.
41214
41215 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
41216
41217         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
41218         is to be used.
41219
41220 1998-07-03  Jim Meyering  <meyering@ascend.com>
41221
41222         * m4/gettext.m4: Add -lintl if it's found to be necessary.
41223
41224         * m4/gettext.m4: New file -- from gettext-0.10.35.
41225         * m4/lcmessage.m4: Likewise.
41226         * m4/progtest.m4: Likewise.
41227
41228         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
41229         * m4/jm-macros.m4: Require the new macro.
41230
41231 1998-06-29  Jim Meyering  <meyering@ascend.com>
41232
41233         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
41234         for the definition of NGROUPS (used in a system header included
41235         by sys/mount.h).
41236
41237 1998-06-28  Jim Meyering  <meyering@ascend.com>
41238
41239         * m4/ls-mntd-fs.m4: New file.
41240         * m4/fstypename.m4: New file.
41241
41242         * m4/jm-macros.m4: Require the new macro.
41243         * m4/jm-glibc-io.m4: New file.
41244
41245 1998-05-19  Jim Meyering  <meyering@ascend.com>
41246
41247         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
41248         * m4/lchown.m4: New file.
41249
41250         * m4/Makefile.am.in: New file.
41251         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
41252
41253 1998-05-14  Jim Meyering  <meyering@ascend.com>
41254
41255         * m4/Makefile.am (EXTRA_DIST): Add them.
41256         * m4/jm-macros.m4: New file.
41257         * m4/utimbuf.m4: New file.
41258
41259 1998-05-12  Jim Meyering  <meyering@ascend.com>
41260
41261         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
41262
41263 1998-05-11  Jim Meyering  <meyering@ascend.com>
41264
41265         * m4/isc-posix.m4: New file.
41266
41267 1998-05-10  Jim Meyering  <meyering@ascend.com>
41268
41269         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
41270
41271 1998-05-09  Jim Meyering  <meyering@ascend.com>
41272
41273         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
41274         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
41275         with automake.
41276
41277         * m4/ssize_t.m4: New file.
41278         * m4/mktime.m4: Remove file -- the new automake has this now.
41279
41280 1998-04-26  Jim Meyering  <meyering@ascend.com>
41281
41282         * m4/assert.m4: New file.
41283         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
41284
41285 1998-04-05  Jim Meyering  <meyering@ascend.com>
41286
41287         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
41288         (jm_PREREQ): Use it here.
41289
41290 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
41291
41292         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
41293         in acconfig.h.
41294
41295 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
41296
41297         * m4/prereq.m4: New file.
41298         * m4/error.m4: New file.
41299         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
41300
41301 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
41302
41303         * m4/getline.m4: Don't set am_cv_func_working_getline before the
41304         cache-check for the same variable -- that defeated the purpose of
41305         the test; the test program was never run.  This was a problem only
41306         on systems with losing getline functions -- HP-UX 10.20 is one.
41307         Reported by Bjorn Helgaas.
41308
41309 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
41310
41311         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
41312
41313 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
41314
41315         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
41316
41317         * m4/const.m4: New file.  Use an initializer in this declaration
41318         typedef int charset[2]; const charset x;
41319         Reported by Bob Glickstein.
41320
41321 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
41322
41323         * m4/chown.m4: Fix reversed types on -1 args to chown.
41324         From Kaveh Ghazi.
41325
41326 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
41327
41328         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
41329         Add lseek and memchr.
41330
41331         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
41332         T.E.Dickey <dickey@clark.net> said that some older preprocessors
41333         have a 20-character limit on names.
41334
41335 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
41336
41337         * m4/inttypes_h.m4: New file.
41338         * m4/uintmax_t.m4: New file.
41339         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
41340
41341
41342         -----
41343
41344         Local Variables:
41345         coding: utf-8
41346         End:
41347
41348         Copyright (C) 1997-2008 Free Software Foundation, Inc.
41349
41350         Copying and distribution of this file, with or without
41351         modification, are permitted provided the copyright notice
41352         and this notice are preserved.