38fe1214f12d2d698b850ca89182de8443c8667b
[gnulib.git] / ChangeLog
1 2008-06-19  Bruno Haible  <bruno@clisp.org>
2
3         * doc/Makefile (gnulib.info): Update and simplify dependencies.
4         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5
6 2008-06-19  Eric Blake  <ebb9@byu.net>
7
8         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
9         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
10         Reported by Stepan Kasal.
11
12 2008-06-18  Bruno Haible  <bruno@clisp.org>
13
14         * lib/fatal-signal.c (init_fatal_signals): Add comment.
15         Reported by Eric Blake.
16
17 2008-06-18  Eric Blake  <ebb9@byu.net>
18
19         Work around cygwin 1.5.25 strsignal bug.
20         * tests/test-strsignal.c: Allow for const char *.
21         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22
23 2008-06-18  Simon Josefsson  <simon@josefsson.org>
24
25         * users.txt: Update URL to article and add author/date
26         information.
27
28 2008-06-17  Bruno Haible  <bruno@clisp.org>
29
30         New macro gl_DISABLE_THREADS.
31         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
32         if the user did not pass --enable-threads or --disable-threads option.
33         (gl_DISABLE_THREADS): New macro.
34         Reported by Eric Blake <ebb9@byu.net>.
35
36 2008-06-17  Bruno Haible  <bruno@clisp.org>
37
38         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39         when the macro ignores it.
40         Based on a patch by Eric Blake <ebb9@byu.net>.
41
42 2008-06-17  Bruno Haible  <bruno@clisp.org>
43
44         * modules/tls (License): Change to LGPLv2+.
45         Reported by Eric Blake.
46
47 2008-06-17  Eric Blake  <ebb9@byu.net>
48
49         Simplify c-stack prerequisites.
50         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
51         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
52         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53         check.
54         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55         <sys/resource.h>.
56
57         Move c-stack test into testsuite.
58         * modules/c-stack-tests: New file.
59         * lib/c-stack.c [DEBUG]: Move test program...
60         * tests/test-c-stack.c: ...into this new file.  Skip rather than
61         fail test if sigaltstack is lacking.
62         * tests/test-c-stack.sh: New driver file.
63
64 2008-06-16  Eric Blake  <ebb9@byu.net>
65
66         Use raise module consistently.
67         * modules/fatal-signal (Depends-on): Add raise.
68         * modules/sigprocmask (Depends-on): Likewise.
69         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
70         * lib/sigprocmask.c (sigprocmask): Likewise.
71         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
72         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
73
74         Fix compliance bug in sigpending.
75         * lib/sigprocmask.c (sigpending): Return pending array via
76         parameter, not return value.
77
78 2008-06-14  Eric Blake  <ebb9@byu.net>
79
80         Improve obstack-printf test code.
81         * tests/test-obstack-printf.c (test_function): Fix comment, and
82         simplify usage of obstack_* in macros.  Add a test for coverage.
83         Reported by Bruno Haible.
84
85 2008-06-14  Bruno Haible  <bruno@clisp.org>
86
87         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
88         array size as a constant, not as a const variable.
89         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
90         AC_USE_SYSTEM_EXTENSIONS.
91         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
92         Test whether the obstack_printf function actually exists.
93         * modules/obstack-printf (Depends-on): Add extensions.
94         (Include): Remove obstack.h.
95         * modules/obstack-printf-posix (Depends-on): Add extensions.
96         (Include): Remove obstack.h.
97
98 2008-06-13  Eric Blake  <ebb9@byu.net>
99
100         Add obstack-printf and obstack-printf-posix modules.
101         * modules/obstack-printf: New file.
102         * modules/obstack-printf-posix: Likewise.
103         * MODULES.html.sh (Misc): Mention them.
104         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
105         Likewise.
106         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
107         Likewise.
108         * modules/stdio (Makefile.am): Accomodate new modules.
109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
110         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
111         Declare.
112         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
113         functions.
114         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
115         (gl_REPLACE_OBSTACK_PRINTF): New macros
116         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
117         * tests/test-obstack-printf.c: New file.
118         * modules/obstack-printf-tests: Likewise.
119         * modules/obstack-printf-posix-tests: Likewise.
120
121 2008-06-11  Bruno Haible  <bruno@clisp.org>
122
123         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
124         * lib/open.c: Include errno.h.
125         (open): Fail when attempting to write to a file that has a trailing
126         slash.
127         * tests/test-open.c (main): Test against trailing slash bug.
128         * doc/posix-functions/open.texi: Mention the trailing slash bug.
129
130 2008-06-10  Bruno Haible  <bruno@clisp.org>
131
132         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
133         for $? to work inside the trap command, with various /bin/sh-s.
134         * tests/test-vc-list-files-cvs.sh: Likewise.
135
136 2008-06-10  Bruno Haible  <bruno@clisp.org>
137
138         * lib/acl-internal.h: Don't include gettext.h here.
139         * lib/set-mode-acl.c: Include gettext.h here.
140         * lib/copy-acl.c: Likewise.
141
142 2008-06-10  Bruno Haible  <bruno@clisp.org>
143
144         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
145         * lib/wait-process.c (wait_subprocess): Likewise.
146         * lib/execute.h (execute): Add termsigp argument.
147         * lib/execute.c (execute): Likewise.
148         * lib/csharpcomp.c (compile_csharp_using_pnet,
149         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
150         * lib/csharpexec.c (execute_csharp_using_pnet,
151         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
152         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
153         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
154         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
155         is_jikes_present): Update.
156         * lib/javaexec.c (execute_java_class): Update.
157         * lib/javaversion.c (execute_and_read_line): Update.
158         * NEWS: Document the changes.
159         Reported by Eric Blake.
160
161 2008-06-10  Eric Blake  <ebb9@byu.net>
162
163         Add missing include.
164         * tests/test-strstr.c (includes): Add <signal.h>.
165         * tests/test-strcasestr.c (includes): Likewise.
166         * tests/test-memmem.c (includes): Likewise.
167
168 2008-06-10  Bruno Haible  <bruno@clisp.org>
169
170         * lib/wait-process.c (wait_subprocess): Add an assertion.
171
172 2008-06-10  Bruno Haible  <bruno@clisp.org>
173
174         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
175
176 2008-06-10  Bruno Haible  <bruno@clisp.org>
177
178         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
179         using alarm().
180         * tests/test-strcasestr.c (main): Likewise.
181         * tests/test-strstr.c (main): Likewise.
182
183 2008-06-09  Bruno Haible  <bruno@clisp.org>
184
185         Work around the Solaris 10 ACE ACLs ABI change.
186         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
187         declare if ACL_NO_TRIVIAL is present.
188         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
189         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
190         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
191         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
192         define if ACL_NO_TRIVIAL is present.
193         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
194         and use the current ABI.
195         (file_has_acl): Use same #if condition as elsewhere.
196         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
197         in use, and use the current ABI.
198         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
199         Reported by Jim Meyering.
200
201 2008-06-09  Eric Blake  <ebb9@byu.net>
202
203         Work around environments that (stupidly) ignore SIGALRM.
204         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
205         before using alarm().
206         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
207         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
208         Reported by Ian Beckwith <ianb@erislabs.net>.
209
210         Produce autobuild blurb earlier in log.
211         * modules/autobuild (configure.ac-early): Move AB_INIT here.
212
213 2008-06-09  Jim Meyering  <meyering@redhat.com>
214         and Ondřej Vašík  <ovasik@redhat.com>
215
216         utimens.c: correct kernel bug work-around
217         Ondřej Vašík found that the invalid return value of 280 indicates
218         failure, not success, and the kernel bug we're trying to work
219         around affects not just the utimensat call, but also the fallback
220         futimens call.
221         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
222         not success.
223         [HAVE_FUTIMENS]: Use the same work-around, here.
224
225 2008-06-09  Jim Meyering  <meyering@redhat.com>
226
227         add more guards around definition of ACE_-related code
228         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
229         ALLOW and ACE_OWNER are also defined.
230
231 2008-06-08  Bruno Haible  <bruno@clisp.org>
232
233         * lib/acl-internal.h: Add me as co-author.
234         * lib/file-has-acl.c: Likewise.
235         * lib/set-mode-acl.c: Likewise.
236         * lib/copy-acl.c: Likewise.
237
238 2008-06-08  Bruno Haible  <bruno@clisp.org>
239
240         Add support for AIX ACLs.
241         * lib/acl-internal.h (acl_nontrivial): New declaration.
242         * lib/file-has-acl.c (acl_nontrivial): New function.
243         (file_has_acl): Add implementation using AIX 4 ACL API.
244         * lib/set-mode-acl.c (qset_acl): Likewise.
245         * lib/copy-acl.c (qcopy_acl): Likewise.
246
247 2008-06-08  Bruno Haible  <bruno@clisp.org>
248
249         Add support for HP-UX ACLs.
250         * lib/acl-internal.h (acl_nontrivial): New declaration.
251         * lib/file-has-acl.c (acl_nontrivial): New function.
252         (file_has_acl): Add implementation using HP-UX 11 ACL API.
253         * lib/set-mode-acl.c (qset_acl): Likewise.
254         * lib/copy-acl.c (qcopy_acl): Likewise.
255
256 2008-06-08  Bruno Haible  <bruno@clisp.org>
257
258         Add support for Cygwin ACLs.
259         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
260         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
261         the chmod_or_fchmod call.
262         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
263
264 2008-06-08  Bruno Haible  <bruno@clisp.org>
265
266         Fix bug with setuid modes in Solaris 10+ code.
267         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
268         succeeded, when the mode contains some special bits.
269
270 2008-06-08  Bruno Haible  <bruno@clisp.org>
271
272         Add support for Solaris 7..10 ACLs.
273         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
274         declarations.
275         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
276         functions.
277         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
278         * lib/set-mode-acl.c (qset_acl): Likewise.
279         * lib/copy-acl.c (qcopy_acl): Likewise.
280
281 2008-06-08  Bruno Haible  <bruno@clisp.org>
282
283         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
284         declaration.
285         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
286         (acl_access_nontrivial): Remove MacOS X case.
287         (file_has_acl): Use acl_extended_nontrivial.
288         * lib/copy-acl.c (qcopy_acl): Likewise.
289
290 2008-06-08  Bruno Haible  <bruno@clisp.org>
291
292         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
293
294 2008-06-08  Jim Meyering  <meyering@redhat.com>
295
296         * modules/acl (Maintainer): Add Bruno Haible.
297
298 2008-06-07  Bruno Haible  <bruno@clisp.org>
299
300         Improve support for Tru64 ACLs.
301         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
302         ACL on OSF/1.
303
304 2008-06-07  Bruno Haible  <bruno@clisp.org>
305
306         Add support for MacOS X ACLs.
307         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
308         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
309         * lib/set-mode-acl.c (qset_acl): Likewise.
310         * lib/copy-acl.c (qcopy_acl): Likewise.
311
312 2008-06-07  Bruno Haible  <bruno@clisp.org>
313
314         Fix memory leak introduced on 2008-05-22.
315         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
316         use.
317
318 2008-06-07  Bruno Haible  <bruno@clisp.org>
319
320         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
321         to construct an empty ACL.
322
323 2008-06-07  Bruno Haible  <bruno@clisp.org>
324
325         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
326         precisely.
327         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
328
329 2008-06-07  Bruno Haible  <bruno@clisp.org>
330
331         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
332         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
333
334 2008-06-07  Bruno Haible  <bruno@clisp.org>
335
336         * doc/posix-functions/_setjmp.texi: Explain the use of this function
337         regardless of POSIX.
338         * doc/posix-functions/_longjmp.texi: Likewise.
339         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
340         SystemV platform in this case.
341
342 2008-06-06  Eric Blake  <ebb9@byu.net>
343
344         Document abort() bugs.
345         * doc/posix-functions/abort.texi (abort): Mention anomalies.
346
347         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
348         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
349         sigsetjmp.
350         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
351         siglongjmp, but only as a macro.
352         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
353         is obsolete.
354         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
355
356         Tweak documentation to cover cygwin argz bugs.
357         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
358         argz bug fix; no code change needed since no cygwin releases
359         occurred between the last fix and the bug being tested.
360         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
361         module and recently fixed cygwin bugs.
362         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
363         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
364         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
365         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
366         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
367         Likewise.
368         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
369         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
370         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
371         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
372         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
373         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
374         Likewise.
375
376         Avoid gcc warning on cygwin.
377         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
378         !ACL_NO_TRIVIAL]: Avoid unused variable.
379
380 2008-06-05  Eric Blake  <ebb9@byu.net>
381
382         Be tolerant of UNKNOWN version in gnulib-tool test dir.
383         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
384         git-version-gen fails to come up with a version.
385         Reported by Simon Josefsson.
386
387 2008-06-05  Jim Meyering  <meyering@redhat.com>
388             Paul Eggert  <eggert@cs.ucla.edu>
389
390         utimens.c: work around a probable Linux kernel bug
391         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
392         appears to be a kernel bug that causes utimensat to return 280
393         instead of 0, indicating success.
394
395 2008-06-04  Bruno Haible  <bruno@clisp.org>
396
397         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
398         2008-06-01 commit.
399
400 2008-06-04  Bruno Haible  <bruno@clisp.org>
401
402         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
403         * lib/file-has-acl.c (acl_access_nontrivial): New function.
404         (file_has_acl): Use it. Save errno afterwards.
405         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
406
407 2008-06-03  Bruno Haible  <bruno@clisp.org>
408
409         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
410         draft code. Simplify #ifs.
411         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
412         Put Solaris code after POSIX-draft code. Fix comments regarding
413         Solaris 10, HP-UX. Mention Cygwin.
414         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
415
416 2008-06-03  Eric Blake  <ebb9@byu.net>
417
418         Provide fallback for older kernels.
419         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
420         Provide runtime fallback if kernel lacks support.
421         Reported by Mike Frysinger.
422
423 2008-06-02  Bruno Haible  <bruno@clisp.org>
424
425         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
426         it exists.
427
428 2008-06-02  Bruno Haible  <bruno@clisp.org>
429
430         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
431         * lib/copy-acl.c (qcopy_acl): Update comment.
432
433 2008-06-02  Bruno Haible  <bruno@clisp.org>
434
435         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
436         like ACL APIs.
437
438 2008-06-02  Bruno Haible  <bruno@clisp.org>
439
440         * tests/test-file-has-acl.sh: Use different code for Cygwin.
441         * tests/test-set-mode-acl.sh: Likewise.
442         * tests/test-copy-acl.sh: Likewise.
443         * tests/test-copy-file.sh: Likewise.
444
445 2008-06-02  Bruno Haible  <bruno@clisp.org>
446
447         * tests/test-file-has-acl.sh: Remove unused code.
448
449 2008-06-01  Bruno Haible  <bruno@clisp.org>
450
451         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
452         (copy_acl): Just a wrapper around qcopy_acl that emits the error
453         messages.
454         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
455
456 2008-06-01  Bruno Haible  <bruno@clisp.org>
457
458         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
459         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
460         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
461         APIs.
462         * modules/acl-tests (configure.ac): Remove tests now contained in
463         m4/acl.m4.
464
465 2008-06-02  Jim Meyering  <meyering@redhat.com>
466
467         announce-gen: use a better key-server host name
468         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
469         it may be more consistently reliable.  Suggested by Werner Koch
470         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
471
472 2008-06-01  Bruno Haible  <bruno@clisp.org>
473
474         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
475         Reported by Voroskoi Andras <voroskoi@gmail.com>.
476
477 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
478
479         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
480
481 2008-06-01  Bruno Haible  <bruno@clisp.org>
482
483         New ACL tests.
484         * tests/test-file-has-acl.sh: New file.
485         * tests/test-file-has-acl.c: New file.
486         * tests/test-set-mode-acl.sh: New file.
487         * tests/test-set-mode-acl.c: New file.
488         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
489         * tests/test-copy-acl.c: New file.
490         * modules/acl-tests: New file, based on modules/copy-file-tests.
491         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
492         (Depends-on): Add acl-tests.
493         (configure.ac): Remove checks.
494         (Makefile.am): Don't create test-sameacls program here any more.
495
496 2008-06-01  Bruno Haible  <bruno@clisp.org>
497
498         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
499         * tests/test-sameacls.c: Include progname.h.
500         (main): Invoke set_program_name. Portability fixes for MacOS X,
501         Solaris, HP-UX.
502
503 2008-06-01  Bruno Haible  <bruno@clisp.org>
504
505         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
506         function.
507         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
508
509 2008-06-01  Bruno Haible  <bruno@clisp.org>
510
511         * modules/rpmatch (Depends-on): Add strdup.
512
513 2008-06-01  Bruno Haible  <bruno@clisp.org>
514
515         * lib/pipe.c: Include unistd-safer.h.
516         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
517         * modules/pipe (Depends-on): Add unistd-safer.
518
519 2008-05-30  Simon Josefsson  <simon@josefsson.org>
520
521         * modules/autobuild (configure.ac): Call AB_INIT.
522
523 2008-05-30  Simon Josefsson  <simon@josefsson.org>
524
525         * tests/test-getaddrinfo.c: Don't print debug messages by default.
526         Suggested by Bruno Haible <bruno@clisp.org>.
527
528 2008-05-30  Simon Josefsson  <simon@josefsson.org>
529
530         * tests/test-base64.c: Cast size_t to unsigned long when invoking
531         printf.  Use %lu instead of %d.  Reported by Bruno Haible
532         <bruno@clisp.org>.
533
534 2008-05-29  Eric Blake  <ebb9@byu.net>
535
536         Prefer new POSIX 200x interfaces over futimesat.
537         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
538         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
539         when available.
540         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
541
542 2008-05-28  Bruno Haible  <bruno@clisp.org>
543
544         * modules/stpcpy (License): Change to LGPLv2+.
545         Requested by David Lutterkort <dlutter@redhat.com>.
546
547 2008-05-27  Bruno Haible  <bruno@clisp.org>
548
549         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
550         current mingw.
551         Reported by Jose E. Marchesi <jemarch@gnu.org>.
552
553 2008-05-27  Bruno Haible  <bruno@clisp.org>
554
555         * modules/iconv_open (Link): New section, from module 'iconv'.
556         * modules/striconv (Link): Likewise.
557         * modules/striconveh (Link): Likewise.
558         * modules/xstriconv (Link): Likewise.
559         * modules/unicodeio (Link): Likewise.
560         * modules/propername (Link): Likewise.
561         Reported by Jim Meyering.
562
563 2008-05-26  Jim Meyering  <meyering@redhat.com>
564
565         sha256: do not artificially restrict buffer length to be < 2^32
566         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
567         uint32_t to size_t.
568         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
569         to match.
570
571         avoid unaligned access errors, e.g., on sparc
572         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
573         direct access through a possibly-unaligned uint64* pointer.
574         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
575         direct access through a possibly-unaligned uint32* pointer.
576         Prompted by this patch from Tom "spot" Callaway:
577         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
578
579         sha512.c: fix typo in comment
580         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
581
582 2008-05-25  Bruno Haible  <bruno@clisp.org>
583
584         * lib/set-mode-acl.c: Renamed from lib/acl.c.
585         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
586         (Makefile.am): Update lib_SOURCES.
587
588 2008-05-25  Bruno Haible  <bruno@clisp.org>
589
590         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
591
592 2008-05-25  Jim Meyering  <meyering@redhat.com>
593
594         useless-if-before-free: freed expr may have white-space differences
595         * build-aux/useless-if-before-free: Recognize cases in which the
596         freed expression differs from the tested one in embedded white
597         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
598         $1 was used, so we can't make any regexp shy.  Improved tests now
599         detect this.
600
601         useless-if-before-free: accept white space in the expression.
602         * build-aux/useless-if-before-free: For now, any white space
603         in the expression must be identical in the free argument.
604
605         useless-if-before-free: efficiency tweak
606         * build-aux/useless-if-before-free: Make the expression-matching
607         regexp "shy".
608         Make the *outer* regexp shy, not the expr-matching one.
609
610         update code-in-comment to accept cast of free arg
611         * build-aux/useless-if-before-free: Update regexp.
612
613 2008-05-25  Bruno Haible  <bruno@clisp.org>
614
615         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
616         * modules/copy-file-tests (Files, Makefile.am): Update.
617         * tests/test-copy-file.c (func_test_copy): Update.
618
619 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
620
621         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
622
623 2008-05-23  Bruno Haible  <bruno@clisp.org>
624
625         Improve support for ACLs on OSF/1.
626         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
627         Remove fallback for unknown flavors of ACLs.
628
629 2008-05-22  Bruno Haible  <bruno@clisp.org>
630
631         Add support for ACLs on OSF/1.
632         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
633         replacements.
634         (acl_free_text): New macro fallback.
635         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
636         acl_free.
637         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
638         acl_free_text function. Require AC_C_INLINE.
639
640 2008-05-22  Bruno Haible  <bruno@clisp.org>
641
642         Make copy_acl work on MacOS X 10.5.
643         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
644         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
645         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
646         If MODE_INSIDE_ACL, don't assume that every system has the same text
647         representation for ACLs as FreeBSD.
648         * lib/copy-acl.c (copy_acl): Add support for platforms with
649         !MODE_INSIDE_ACL.
650         * lib/file-has-acl.c (file_has_acl): Likewise.
651         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
652         FreeBSD, MacOS X, or IRIX, respectively.
653
654 2008-05-22  Bruno Haible  <bruno@clisp.org>
655
656         * lib/acl.h: Don't include <sys/acl.h>.
657         (GETACLCNT): Move fallback to lib/acl-internal.h.
658         * lib/acl-internal.h: Include <sys/acl.h> here.
659         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
660
661 2008-05-22  Bruno Haible  <bruno@clisp.org>
662
663         Split off copy_acl function to separate file.
664         * lib/copy-acl.c: New file, extracted from lib/acl.c.
665         * lib/acl.c (copy_acl): Moved function to separate file.
666         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
667         * modules/acl (Files): Add lib/copy-acl.c.
668         (Makefiles.am): Augment lib_SOURCES.
669
670 2008-05-22  Bruno Haible  <bruno@clisp.org>
671
672         * modules/copy-file-tests: New file.
673         * tests/test-copy-file.sh: New file.
674         * tests/test-copy-file.c: New file.
675         * tests/test-copy-file-sameacls.c: New file.
676
677 2008-05-22  Eric Blake  <ebb9@byu.net>
678
679         Avoid gcc warning.
680         * tests/test-memcmp.c (main): Pass NULL indirectly.
681
682 2008-05-21  Bruno Haible  <bruno@clisp.org>
683
684         Add reference doc about ACLs.
685         * doc/acl-resources.txt: New file.
686         * doc/acl-cygwin.txt: New file.
687
688 2008-05-21  Bruno Haible  <bruno@clisp.org>
689
690         Avoid one more warning from gcc.
691         * lib/vasnprintf.c (IF_LINT): Update comments.
692         (VASNPRINTF): Use it also for the 'prefix' array initializer.
693
694 2008-05-21  Jim Meyering  <meyering@redhat.com>
695
696         avoid a warning from gcc
697         * lib/vasnprintf.c (IF_LINT): Define.
698         (scale10_round_decimal_long_double):
699         Use it to avoid a "may be used uninitialized" warning.
700         (scale10_round_decimal_double): Likewise.
701
702 2008-05-21  Simon Josefsson  <simon@josefsson.org>
703
704         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
705         declared.
706
707 2008-05-20  Bruno Haible  <bruno@clisp.org>
708
709         * tests/test-memcmp.c (main): Test also the sign of the result. Test
710         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
711
712 2008-05-20  Simon Josefsson  <simon@josefsson.org>
713
714         * modules/memcmp-tests: New file.
715         * tests/test-memcmp.c: New file.
716
717 2008-05-19  Bruno Haible  <bruno@clisp.org>
718
719         * modules/propername (Notice, configure.ac): Put quoted "..." into
720         --keyword option.
721         * lib/propername.h: Update comments accordingly.
722         Reported by Eric Blake.
723
724 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
725
726         * modules/getpass-gnu (Depends-on): Add fseeko.
727
728 2008-05-19  Simon Josefsson  <simon@josefsson.org>
729
730         * modules/base64-tests: New file.
731
732 2008-05-19  Bo Borgerson <gigabo@gmail.com>
733
734         * lib/base64.c (base64_decode_ctx): If a decode context structure
735         was passed in use it to ignore newlines.  If a context structure
736         was _not_ passed in, continue to treat newlines as garbage (this
737         is the historical behavior).  Formerly base64_decode.
738         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
739         takes a decode context structure.
740         * lib/base64.h (base64_decode): Macro for four-argument calls.
741         (base64_decode_alloc): Likewise.
742         * lib/base64.c (base64_decode_ctx): If a decode context structure
743         was passed in use it to ignore newlines.  If a context structure
744         was _not_ passed in, continue to treat newlines as garbage (this
745         is the historical behavior).  Formerly base64_decode.
746         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
747         takes a decode context structure.
748         * lib/base64.h (base64_decode): Macro for four-argument calls.
749         (base64_decode_alloc): Likewise.
750
751 2008-05-19  Jim Meyering  <meyering@redhat.com>
752
753         avoid a warning from gcc
754         * lib/trim.c (IF_LINT): Define.
755         (trim2): Use it to avoid a "may be used uninitialized" warning.
756
757         Fix doc typo.
758         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
759
760 2008-05-19  Bruno Haible  <bruno@clisp.org>
761
762         * doc/glibc-functions/getpass.texi: Document limits of other
763         implementations.
764
765 2008-05-19  Simon Josefsson  <simon@josefsson.org>
766             Bruno Haible <bruno@clisp.org>
767
768         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
769
770 2008-05-18  Bruno Haible  <bruno@clisp.org>
771
772         * modules/propername: New file, from GNU gettext.
773         * lib/propername.h: New file, from GNU gettext.
774         * lib/propername.c: New file, from GNU gettext.
775         * MODULES.html.sh (Internationalization functions): Add propername.
776
777 2008-05-16  Jim Meyering  <meyering@redhat.com>
778             Bruno Haible  <bruno@clisp.org>
779
780         Avoid some warnings from "gcc -Wshadow".
781         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
782
783 2008-05-15  Eric Blake  <ebb9@byu.net>
784
785         Extend previous patch to cygwin 1.7.0.
786         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
787         fast implementation in cygwin >= 1.7.0.
788         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
789         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
790
791 2008-05-15  Bruno Haible  <bruno@clisp.org>
792
793         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
794         implementation in glibc >= 2.9.
795         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
796         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
797
798 2008-05-15  Bruno Haible  <bruno@clisp.org>
799
800         * MODULES.html.sh (Internationalization functions): Remove linebreak.
801         (Unicode string functions): Add unilbrk/*.
802         Reported by Karl Berry.
803
804 2008-05-15  Eric Blake  <ebb9@byu.net>
805
806         Fix violation of <stdbool.h> replacement in regex.
807         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
808         * lib/regexec.c (re_search_internal): Likewise.
809         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
810
811 2008-05-15  Jim Meyering  <meyering@redhat.com>
812
813         avoid distracting test output when git or cvs is not found
814         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
815         * tests/test-vc-list-files-git.sh: Likewise.
816
817 2008-05-15  Eric Blake  <ebb9@byu.net>
818
819         Glibc finally accepted the memmem speedup code, bugzilla #5514.
820         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
821         glibc version.
822         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
823         * doc/posix-functions/strstr.texi (strstr): Likewise.
824         * lib/str-two-way.h (MAX): Sychronize with glibc.
825
826 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
827
828         * lib/regcomp.c (optimize_utf8): Add a note on why we test
829         opr.ctx_type.
830         (calc_first): Initialize constraint field.
831         (duplicate_node_closure): Use it instead of special casing ANCHORS.
832         Fix grammar.
833         (duplicate_node): Merge constraint field for all node types.
834         (calc_eclosure_iter): Look at constraint field for all node types.
835         * lib/regex_internal.c (create_cd_newstate): Don't look at
836         opr.ctx_type.
837
838 2008-05-14  Bruno Haible  <bruno@clisp.org>
839
840         Help GCC to do better code generation.
841         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
842         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
843         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
844         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
845         Declare with attribute 'malloc' if supported.
846
847 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
848
849         use "echo STR|wc -c" rather than unportable "expr length STR"
850         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
851         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
852
853 2008-05-14  Jim Meyering  <meyering@redhat.com>
854
855         use dd ibs=$n count=1 ... rather than less-portable head -c$n
856         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
857         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
858         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
859         via Collin Lasse.
860
861 2008-05-14  Eric Blake  <ebb9@byu.net>
862
863         Avoid quadratic growth in gl_LIBSOURCES.
864         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
865         Suggested by Bruno Haible.
866
867         Test xmemdup0.
868         * modules/xmemdup0-tests: New file.
869         * tests/test-xmemdup0.c: Likewise.
870
871 2008-05-13  Eric Blake  <ebb9@byu.net>
872
873         Split xmemdup0 into its own module.
874         * modules/xmemdup0: New file.
875         * lib/xmemdup0.h: Likewise.
876         * lib/xmemdup0.c: Likewise.
877         * MODULES.html.sh (Memory management functions): Add xmemdup0.
878         * lib/xalloc.h (xmemdup0): Remove.
879         * lib/xmalloc.c (xmemdup0): Likewise.
880
881 2008-05-13  Eric Blake  <ebb9@byu.net>
882             Bruno Haible  <bruno@clisp.org>
883
884         Reduce number of forks required during autoconf.
885         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
886         and gl_LIBSOURCES_DIR.
887         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
888         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
889         m4_syscmd per file.
890         <m4_foreach_w>: Move...
891         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
892
893 2008-05-13  Eric Blake  <ebb9@byu.net>
894
895         * gnulib-tool: Fix various comment typos.
896
897 2008-05-12  Bruno Haible  <bruno@clisp.org>
898
899         Tailor the linebreaking algorithm.
900         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
901
902 2008-05-12  Bruno Haible  <bruno@clisp.org>
903
904         Update to Unicode 5.0.0.
905         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
906         LBP_JV, LBP_JT. Redistribute values.
907         (unilbrk_table): Change size.
908         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
909         Unicode TR#14 rev. 22.
910         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
911         LBP_JV, LBP_JT. Redistribute values.
912         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
913         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
914         Update.
915         * lib/unilbrk/lbrkprop1.h: Regenerated.
916         * lib/unilbrk/lbrkprop2.h: Regenerated.
917         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
918         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
919         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
920         Likewise.
921         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
922         Likewise.
923         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
924         result.
925         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
926         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
927         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
928         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
929         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
930         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
931
932 2008-05-11  Bruno Haible  <bruno@clisp.org>
933
934         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
935
936 2008-05-11  Bruno Haible  <bruno@clisp.org>
937
938         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
939         * modules/unilbrk/gen-lbrk: New file.
940
941 2008-05-11  Bruno Haible  <bruno@clisp.org>
942
943         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
944         * m4/sha512.m4 (gl_SHA512): Likewise.
945
946 2008-05-11  Jim Meyering  <meyering@redhat.com>
947
948         New modules: crypto/sha256, crypto/sha512 (from coreutils)
949         * modules/crypto/sha256: New file.
950         * modules/crypto/sha512: Likewise.
951         * lib/sha256.c: Likewise.
952         * lib/sha256.h: Likewise.
953         * lib/sha512.c: Likewise.
954         * lib/sha512.h: Likewise.
955         * lib/u64.h: Likewise.
956         * m4/sha256.m4: Likewise.
957         * m4/sha512.m4: Likewise.
958         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
959
960 2008-05-10  Bruno Haible  <bruno@clisp.org>
961
962         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
963         (Input/Output <stdio.h>): Add xprintf.
964         (Signal handling <signal.h>): Add strsignal.
965         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
966         (Core language properties): Add func.
967         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
968         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
969         strings.
970         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
971         (Input/output): New section.
972         (File system functions): Add openat-die, stat-macros.
973         (Networking functions): Add sockets.
974         (Unicode string functions): Add unictype/*.
975         (Support for building libraries and executables): Add gperf.
976         (Support for building documentation): Add agpl-3.0.
977         (Misc): Add nocrash.
978
979 2008-05-10  Bruno Haible  <bruno@clisp.org>
980
981         * modules/unictype/gen-ctype: New file.
982
983 2008-05-10  Jim Meyering  <meyering@redhat.com>
984
985         Make chdir-safer.c more efficient on a system with no symlinks.
986         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
987         also if ELOOP is zero.  Suggested by Bruno Haible.
988
989         Make chdir-safer.c slightly safer.
990         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
991         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
992
993         Avoid compile failure on systems without ELOOP (like mingw).
994         * lib/chdir-safer.c (ELOOP): Define if not already defined.
995         Reported by Bruno Haible.
996
997 2008-05-10  Bruno Haible  <bruno@clisp.org>
998
999         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
1000         (is_utf8_encoding): Use a case-insensitive comparison.
1001         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
1002         streq.
1003
1004 2008-05-10  Bruno Haible  <bruno@clisp.org>
1005
1006         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
1007         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
1008         * lib/unilbrk/ulc-common.h (iconv_string_length,
1009         iconv_string_keeping_offsets): Remove declarations.
1010         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
1011         Don't include <iconv.h>, streq.h, xsize.h.
1012         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
1013         conversion.
1014         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
1015         <iconv.h>, streq.h, xsize.h.
1016         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
1017         conversion.
1018         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
1019         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
1020         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
1021         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
1022
1023 2008-05-10  Bruno Haible  <bruno@clisp.org>
1024
1025         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
1026         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
1027
1028         * modules/unilbrk/u32-width-linebreaks-tests: New file.
1029         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
1030
1031         * modules/unilbrk/u16-width-linebreaks-tests: New file.
1032         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
1033
1034         * modules/unilbrk/u8-width-linebreaks-tests: New file.
1035         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
1036
1037         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
1038         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
1039
1040         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
1041         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
1042
1043         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
1044         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
1045
1046         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
1047         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
1048
1049 2008-05-10  Bruno Haible  <bruno@clisp.org>
1050
1051         Split up 'linebreak' module.
1052         * lib/unilbrk.h: New file, based on lib/linebreak.h.
1053         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
1054         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
1055         modifications.
1056         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
1057         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
1058         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
1059         lib/linebreak.c.
1060         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
1061         lib/linebreak.c.
1062         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
1063         lib/linebreak.c.
1064         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
1065         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
1066         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
1067         lib/linebreak.c.
1068         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
1069         lib/linebreak.c.
1070         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
1071         lib/linebreak.c.
1072         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
1073         lib/linebreak.c.
1074         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
1075         lib/linebreak.c.
1076         * modules/unilbrk/base: New file.
1077         * modules/unilbrk/tables: New file.
1078         * modules/unilbrk/u8-possible-linebreaks: New file.
1079         * modules/unilbrk/u16-possible-linebreaks: New file.
1080         * modules/unilbrk/u32-possible-linebreaks: New file.
1081         * modules/unilbrk/ulc-common: New file.
1082         * modules/unilbrk/ulc-possible-linebreaks: New file.
1083         * modules/unilbrk/u8-width-linebreaks: New file.
1084         * modules/unilbrk/u16-width-linebreaks: New file.
1085         * modules/unilbrk/u32-width-linebreaks: New file.
1086         * modules/unilbrk/ulc-width-linebreaks: New file.
1087         * lib/linebreak.h: Remove file.
1088         * lib/linebreak.c: Remove file.
1089         * m4/linebreak.m4: Remove file.
1090         * modules/linebreak: Remove file.
1091         * NEWS: Mention the changes.
1092
1093 2008-05-09  Eric Blake  <ebb9@byu.net>
1094
1095         Add xmemdup0.
1096         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
1097         implementation.
1098         * lib/xmalloc.c (xmemdup0): New C implementation.
1099
1100 2008-05-08  Bruno Haible  <bruno@clisp.org>
1101
1102         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
1103
1104 2008-05-07  Eric Blake  <ebb9@byu.net>
1105
1106         Support cross-compilation of <wctype.h>.
1107         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
1108         AC_CACHE_CHECK.
1109
1110 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
1111
1112         * build-aux/vc-list-files: Add support for bzr.
1113
1114 2008-05-03  Jim Meyering  <meyering@redhat.com>
1115
1116         avoid failed assertion with tight malloc
1117         * tests/test-getndelim2.c: Correct an off-by-one assertion.
1118
1119 2008-05-03  Simon Josefsson  <simon@josefsson.org>
1120
1121         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
1122         are needed from arpa/inet.h.
1123         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
1124         Reported by Bruno Haible.
1125
1126 2008-05-02  Jim Meyering  <meyering@redhat.com>
1127
1128         avoid compilation error on FreeBSD 6
1129         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
1130
1131 2008-05-01  Jim Meyering  <meyering@redhat.com>
1132
1133         useless-if-before-free: correct --help's exit status description
1134         * build-aux/useless-if-before-free (usage): Like grep, exit 0
1135         for one or more matches, etc.  Reported by Bruno Haible.
1136
1137         vc-list-files: make the stand-alone gnulib test work
1138         * modules/vc-list-files-tests (configure.ac):
1139         Define and AC_SUBST abs_aux_dir.
1140         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
1141         $(abs_top_srcdir) to each script and having each of them
1142         duplicate the work of setting PATH, set PATH here, using
1143         the new variable, abs_aux_dir instead.
1144         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
1145         * tests/test-vc-list-files-git.sh: Likewise.
1146         Reported by Bruno Haible.
1147
1148 2008-05-01  Bruno Haible  <bruno@clisp.org>
1149
1150         * lib/getndelim2.c (getndelim2): Fix newsize computation during
1151         reallocation. Rename 'done' to 'found_delimiter'.
1152
1153 2008-05-01  Jim Meyering  <meyering@redhat.com>
1154
1155         vc-list-files: accommodate /bin/sh like the one from Solaris 10
1156         * build-aux/vc-list-files: Use `...`, not $(...).
1157
1158 2008-04-30  Jim Meyering  <meyering@redhat.com>
1159
1160         add tests for vc-list-files
1161         * modules/vc-list-files-tests: New module.
1162         * tests/test-vc-list-files-cvs.sh: New file.
1163         * tests/test-vc-list-files-git.sh: New file.
1164
1165         avoid a warning from gcc
1166         * lib/getndelim2.c (IF_LINT): Define.
1167         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
1168
1169         vc-list-files: work properly with build-aux/cvsu, too
1170         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
1171         to all cvs-based clauses.
1172
1173         vc-list-files: work properly in the CVS+awk case, too
1174         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
1175
1176         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
1177         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
1178         take more than one file argument, so .  Add quotes, just in case $dir
1179         ever contains a shell meta-character.  Prompted by Soren Hansen in
1180         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
1181
1182 2008-04-29  Eric Blake  <ebb9@byu.net>
1183
1184         Optimize getndelim2 to use block operations when possible.
1185         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
1186         freadseek, and memchr2.
1187         * lib/getndelim2.c (getndelim2): Use them for block reads.
1188
1189 2008-04-29  Bruno Haible  <bruno@clisp.org>
1190
1191         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
1192         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1193         * modules/inet_ntop (Depends-on): Add extensions.
1194         * modules/inet_pton (Depends-on): Likewise.
1195         Reported by Simon Josefsson.
1196
1197 2008-04-29  Jim Meyering  <meyering@redhat.com>
1198
1199         When the is more than one match in a block, match all of them.
1200         * build-aux/useless-if-before-free: Iterate through each block
1201         until there are no more matches.
1202
1203         Fix broken useless-if-before-free script.
1204         * build-aux/useless-if-before-free: Fix typo: missing "?" after
1205         the expression to match cast of argument to free-like function.
1206
1207 2008-04-29  Eric Blake  <ebb9@byu.net>
1208
1209         Use new header.
1210         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
1211
1212 2008-04-29  Jim Meyering  <meyering@redhat.com>
1213
1214         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
1215         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
1216         by gnulib to exist and to declare e.g., inet_ntop.
1217         Don't include "inet_ntop.h", now removed.
1218
1219         * m4/arpa_inet_h.m4: Remove trailing blanks.
1220
1221 2008-04-29  Eric Blake  <ebb9@byu.net>
1222
1223         Silence valgrind on safe reads beyond potential array bounds.
1224         * lib/rawmemchr.valgrind: New file.
1225         * lib/strchrnul.valgrind: Likewise.
1226         * modules/rawmemchr (Files): Distribute new file.
1227         * modules/strchrnul (Files): Likewise.
1228         Suggested by Bruno Haible.
1229
1230 2008-04-29  Bruno Haible  <bruno@clisp.org>
1231
1232         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
1233         (inet_ntop, inet_pton): Change portability warning's wording.
1234         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
1235         Invoke gl_CHECK_NEXT_HEADERS.
1236         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
1237         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
1238         set ARPA_INET_H.
1239         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1240         * modules/arpa_inet (Description): No longer only for systems that
1241         lack it.
1242         (Depends-on): Add include_next.
1243         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
1244         HAVE_ARPA_INET_H.
1245
1246 2008-04-29  Jim Meyering  <meyering@redhat.com>
1247
1248         * modules/mkdir (License): Re-license as LGPLv2+.
1249
1250 2008-04-29  Bruno Haible  <bruno@clisp.org>
1251
1252         * modules/rawmemchr (Maintainer): Set to Eric.
1253         * modules/strchrnul (Maintainer): Likewise.
1254
1255 2008-04-29  Simon Josefsson  <simon@josefsson.org>
1256
1257         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
1258         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
1259
1260         * modules/arpa_inet (arpa/inet.h): Use them.
1261
1262 2008-04-28  Eric Blake  <ebb9@byu.net>
1263
1264         Test getndelim2.
1265         * modules/getndelim2-tests: New file.
1266         * tests/test-getndelim2.c: Likewise.
1267         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
1268         stream.
1269         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
1270
1271         * MODULES.html.sh: Document new module.
1272
1273 2008-04-20  Bruno Haible  <bruno@clisp.org>
1274
1275         * lib/c-stack.c (die): Use raise.
1276         * modules/c-stack (Depends-on): Add raise.
1277
1278 2008-04-28  Bruno Haible  <bruno@clisp.org>
1279
1280         Expect rpmatch to be declared.
1281         * lib/yesno.c (rpmatch): Remove declaration.
1282
1283         Declare rpmatch.
1284         * lib/stdlib.in.h (rpmatch): New declaration.
1285         * lib/rpmatch.c: Include <stdlib.h> first.
1286         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
1287         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
1288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
1289         HAVE_RPMATCH.
1290         * modules/rpmatch (Depends-on): Add stdlib, extensions.
1291         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1292         (Include): Set to <stdlib.h>.
1293         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
1294         HAVE_RPMATCH.
1295         * NEWS: Document the change.
1296
1297 2008-04-28  Bruno Haible  <bruno@clisp.org>
1298
1299         Change rpmatch to use nl_langinfo when appropriate.
1300         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
1301         (N_): New macro.
1302         (localized_pattern): New function/macro.
1303         (try): Remove match, nomatch arguments. Copy the pattern into safe
1304         memory before caching it.
1305         (rpmatch): Use localized_pattern. Add translator comments.
1306         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
1307         Suggested by Eric Blake.
1308         * modules/rpmatch (Depends-on): Add stdbool.
1309
1310 2008-04-28  Eric Blake  <ebb9@byu.net>
1311
1312         Add rawmemchr module, matching glibc.
1313         * modules/string (Makefile.am): New indicator.
1314         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
1315         * lib/string.in.h (rawmemchr): Declare when appropriate.
1316         * modules/rawmemchr: New file.
1317         * m4/rawmemchr.m4: Likewise.
1318         * lib/rawmemchr.c: Likewise.
1319         * modules/rawmemchr-tests: Likewise.
1320         * tests/test-rawmemchr.c: Likewise.
1321         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
1322         module.
1323         * modules/strchrnul (Depends-on): Add rawmemchr.
1324         * lib/strchrnul.c (strchrnul): Optimize a corner case.
1325
1326         Whitespace cleanup.
1327         * tests/test-strchrnul.c: Reindent.
1328         * lib/strchrnul.c: Likewise.
1329
1330         Optimize and test strchrnul.
1331         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
1332         * modules/strchrnul-tests: New file.
1333         * tests/test-strchrnul.c: Likewise.
1334
1335         Remove intprops dependency.
1336         * modules/memchr (Depends-on): Remove intprops.
1337         * modules/memrchr (Depends-on): Likewise.
1338         * modules/memchr2 (Depends-on): Likewise.
1339         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
1340         * lib/memrchr.c (__memrchr): Likewise.
1341         * lib/memrchr2.c (memchr2): Likewise.
1342         Reported by Simon Josefsson.
1343
1344 2008-04-28  Simon Josefsson  <simon@josefsson.org>
1345
1346         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
1347         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1348
1349 2008-04-28  Simon Josefsson  <simon@josefsson.org>
1350
1351         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
1352
1353         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
1354
1355         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
1356
1357         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
1358         declarations.
1359         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
1360
1361         * m4/inet_pton.m4: Don't check for header files.
1362
1363         * m4/inet_ntop.m4: Don't check for header files.
1364
1365 2008-04-28  Simon Josefsson  <simon@josefsson.org>
1366
1367         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
1368         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
1369         trigger for cygwin).
1370         Reported by Bruno Haible  <bruno@clisp.org>.
1371
1372 2008-04-28  Bruno Haible  <bruno@clisp.org>
1373
1374         * doc/posix-functions/strdup.texi: Mention mingw problem.
1375
1376 2008-04-27  Bruno Haible  <bruno@clisp.org>
1377
1378         * modules/stat-time-tests (Depends-on): Add sleep.
1379         * tests/test-stat-time.c (force_unlink): New function.
1380         (cleanup): Use it.
1381         (test_mtime): Remove the ctime related tests.
1382         (test_ctime): New function, containing the ctime related tests.
1383         (main): Call test_ctime, except on native Windows platforms.
1384
1385 2008-04-27  Bruno Haible  <bruno@clisp.org>
1386
1387         * lib/rpmatch.c (rpmatch): Add some comments.
1388         Reported by James Youngman <jay@gnu.org>.
1389
1390 2008-04-27  Bruno Haible  <bruno@clisp.org>
1391
1392         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
1393         quiet NaNs.
1394
1395 2008-04-27  Bruno Haible  <bruno@clisp.org>
1396
1397         Make test-yesno.sh work on mingw.
1398         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
1399         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
1400         (main): Set stdin to binary mode.
1401         * modules/yesno-tests (Depends-on): Add binary-io.
1402
1403 2008-04-27  Bruno Haible  <bruno@clisp.org>
1404
1405         Fix 'isfinite' on x86, x86_64, ia64 platforms.
1406         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
1407         argument that lie outside the IEEE 854 domain.
1408         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
1409         (gl_ISFINITE): Use it.
1410         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
1411
1412 2008-04-27  Bruno Haible  <bruno@clisp.org>
1413
1414         Allow local renaming in config.h.
1415         * lib/memrchr.c (memrchr): Don't undefine outside libc.
1416
1417 2008-04-27  Bruno Haible  <bruno@clisp.org>
1418
1419         * lib/memchr.c (__memchr): Change type of 'i'.
1420         * lib/memchr2.c (memchr2): Likewise.
1421
1422 2008-04-26  Eric Blake  <ebb9@byu.net>
1423         and Bruno Haible  <bruno@clisp.org>
1424
1425         Optimize and test memrchr.
1426         * modules/memrchr (Depends-on): Add intprops.
1427         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
1428         * modules/memrchr-tests: New file.
1429         * tests/test-memrchr.c: New file.
1430
1431 2008-04-26  Bruno Haible  <bruno@clisp.org>
1432
1433         Add tentative support for DragonFly BSD.
1434         * lib/stdio-impl.h: Add macros for DragonFly BSD.
1435         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
1436         fp.
1437         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
1438         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
1439         * lib/fpurge.c (fpurge): Likewise.
1440         * lib/freadable.c (freaadable): Likewise.
1441         * lib/freadahead.c (freadahead): Likewise.
1442         * lib/freading.c (freading): Likewise.
1443         * lib/freadptr.c (freadptr): Likewise.
1444         * lib/freadseek.c (freadptrinc): Likewise.
1445         * lib/fseeko.c (fseeko): Likewise.
1446         * lib/fseterr.c (fseterr): Likewise.
1447         * lib/fwritable.c (fwritable): Likewise.
1448         * lib/fwriting.c (fwriting): Likewise.
1449
1450 2008-04-26  Bruno Haible  <bruno@clisp.org>
1451
1452         * lib/stdio-impl.h: New file.
1453         * lib/fbufmode.c: Include stdio-impl.h.
1454         (fbufmode): Use fp_, remove redundant #defines.
1455         * lib/fflush.c: Include stdio-impl.h.
1456         (clear_ungetc_buffer): Remove redundant #defines.
1457         * lib/fpurge.c: Include stdio-impl.h.
1458         (fpurge): Remove redundant #defines.
1459         * lib/freadable.c: Include stdio-impl.h.
1460         (freadable): Remove redundant #defines.
1461         * lib/freadahead.c: Include stdio-impl.h.
1462         (freadahead): Remove redundant #defines.
1463         * lib/freading.c: Include stdio-impl.h.
1464         (freading): Remove redundant #defines.
1465         * lib/freadptr.c: Include stdio-impl.h.
1466         (freadptr): Remove redundant #defines.
1467         * lib/freadseek.c: Include stdio-impl.h.
1468         (freadptrinc): Remove redundant #defines.
1469         * lib/fseeko.c: Include stdio-impl.h.
1470         (rpl_fseeko): Remove redundant #defines.
1471         * lib/fseterr.c: Include stdio-impl.h.
1472         (fseterr): Remove redundant #defines.
1473         * lib/fwritable.c: Include stdio-impl.h.
1474         (fwritable: Remove redundant #defines.
1475         * lib/fwriting.c: Include stdio-impl.h.
1476         (fwriting): Remove redundant #defines.
1477         * modules/fbufmode (Files): Add lib/stdio-impl.h.
1478         * modules/fflush (Files): Likewise.
1479         * modules/fpurge (Files): Likewise.
1480         * modules/freadable (Files): Likewise.
1481         * modules/freadahead (Files): Likewise.
1482         * modules/freading (Files): Likewise.
1483         * modules/freadptr (Files): Likewise.
1484         * modules/freadseek (Files): Likewise.
1485         * modules/fseeko (Files): Likewise.
1486         * modules/fseterr (Files): Likewise.
1487         * modules/fwritable (Files): Likewise.
1488         * modules/fwriting (Files): Likewise.
1489
1490 2008-04-26  Bruno Haible  <bruno@clisp.org>
1491
1492         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
1493         restore_seek_optimization, update_fpos_cache): New functions, extracted
1494         from rpl_fflush.
1495         (rpl_fflush): Use them.
1496         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
1497         (gl_REPLACE_FFLUSH): Use it.
1498
1499 2008-04-26  Bruno Haible  <bruno@clisp.org>
1500
1501         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
1502         on Solaris.
1503         * tests/test-xstrtoimax.sh: Likewise.
1504         * tests/test-xstrtoumax.sh: Likewise.
1505         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1506
1507 2008-04-26  Bruno Haible  <bruno@clisp.org>
1508
1509         * modules/memchr-tests: New file.
1510         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
1511
1512 2008-04-26  Eric Blake  <ebb9@byu.net>
1513             Bruno Haible  <bruno@clisp.org>
1514
1515         * lib/memchr.c: Include intprops.h.
1516         (__memchr): Optimize parallel detection of matching bytes. Rename local
1517         variables. Add explanatory comments.
1518
1519 2008-04-26  Bruno Haible  <bruno@clisp.org>
1520
1521         Fix module 'memchr', broken since 2000-10-28.
1522         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
1523
1524 2008-04-26  Bruno Haible  <bruno@clisp.org>
1525
1526         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
1527         comments.
1528
1529 2008-04-25  Eric Blake  <ebb9@byu.net>
1530
1531         Use native fstatat on cygwin 1.7.0.
1532         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
1533         first.
1534
1535 2008-04-23  Eric Blake  <ebb9@byu.net>
1536
1537         Improve memchr2 performance.
1538         * lib/memchr2.c (memchr2): Further optimize parallel detection of
1539         NUL bytes.
1540         * modules/memchr2 (Depends-on): Use intprops.h.
1541
1542 2008-04-23  Simon Josefsson  <simon@josefsson.org>
1543
1544         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
1545         an inline function instead of a CPP macro.  Patch by Ben Pfaff
1546         <blp@cs.stanford.edu>.
1547
1548 2008-04-23  Simon Josefsson  <simon@josefsson.org>
1549
1550         * lib/arpa_inet.in.h: New file.
1551
1552         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
1553         (Makefile.am): Sed in substitute header file.
1554
1555         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
1556         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
1557
1558         * modules/inet_ntop (configure.ac): Use
1559         gl_ARPA_INET_MODULE_INDICATOR.
1560
1561         * modules/inet_pton (configure.ac): Use
1562         gl_ARPA_INET_MODULE_INDICATOR.
1563
1564 2008-04-22  Jim Meyering  <meyering@redhat.com>
1565
1566         * modules/verify (License): Re-license as LGPLv2+.
1567
1568 2008-04-22  Simon Josefsson  <simon@josefsson.org>
1569
1570         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
1571         parameter to void* as per POSIX standard (MinGW uses char*).
1572
1573 2008-04-21  Bruno Haible  <bruno@clisp.org>
1574
1575         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
1576         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
1577         Define to replacements if REPLACE_ISWCNTRL is 1.
1578         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
1579         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
1580         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
1581         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
1582         what it fixes.
1583         * doc/posix-functions/iswalpha.texi: Likewise.
1584         * doc/posix-functions/iswblank.texi: Likewise.
1585         * doc/posix-functions/iswcntrl.texi: Likewise.
1586         * doc/posix-functions/iswdigit.texi: Likewise.
1587         * doc/posix-functions/iswgraph.texi: Likewise.
1588         * doc/posix-functions/iswlower.texi: Likewise.
1589         * doc/posix-functions/iswprint.texi: Likewise.
1590         * doc/posix-functions/iswpunct.texi: Likewise.
1591         * doc/posix-functions/iswspace.texi: Likewise.
1592         * doc/posix-functions/iswupper.texi: Likewise.
1593         * doc/posix-functions/iswxdigit.texi: Likewise.
1594         Reported by Alain Guibert.
1595
1596 2008-04-21  Bruno Haible  <bruno@clisp.org>
1597
1598         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
1599         Patch by Alain Guibert.
1600
1601 2008-04-21  Bruno Haible  <bruno@clisp.org>
1602
1603         Fix test failures on mingw.
1604         * tests/test-xstrtol.c (print_no_progname): New function.
1605         (main): Install it in error_print_progname hook.
1606         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
1607         * tests/test-xstrtoimax.sh: Likewise.
1608         * tests/test-xstrtoumax.sh: Likewise.
1609
1610 2008-04-21  Bruno Haible  <bruno@clisp.org>
1611
1612         Fix test failure on mingw.
1613         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
1614
1615 2008-04-21  Bruno Haible  <bruno@clisp.org>
1616
1617         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
1618         Actually assign a value.
1619
1620 2008-04-20  Bruno Haible  <bruno@clisp.org>
1621
1622         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
1623         take 2.
1624         * lib/canonicalize.c (canonicalize_file_name): Elide if the
1625         'canonicalize-lgpl' module is also used.
1626         * lib/canonicalize-lgpl.c: Undo last change.
1627         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
1628
1629 2008-04-20  Bruno Haible  <bruno@clisp.org>
1630
1631         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
1632         config.h. Provide _mkdir based fallback for mingw.
1633         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
1634         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
1635         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
1636         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
1637         rather than defining mkdir in config.h.
1638         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
1639         (gl_SYS_STAT_H_DEFAULTS): New macro.
1640         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
1641         HAVE_IO_H any more.
1642         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
1643         HAVE_DECL_MKDIR and HAVE_IO_H.
1644
1645 2008-04-20  Bruno Haible  <bruno@clisp.org>
1646
1647         * lib/isapipe.c: Port to native Windows platforms.
1648
1649 2008-04-20  Bruno Haible  <bruno@clisp.org>
1650
1651         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
1652
1653 2008-04-21  Eric Blake  <ebb9@byu.net>
1654
1655         Work around preprocessors that don't handle UINTMAX_MAX.
1656         * lib/memchr2.c (memchr2): Avoid embedded #if.
1657         Reported by Alain Guibert, fix suggested by Bruno Haible.
1658
1659 2008-04-21  Simon Josefsson  <simon@josefsson.org>
1660
1661         * doc/posix-functions/strftime.texi (strftime): Explain better
1662         Windows incompatibility.  Suggested by Micah Cowan
1663         <micah@cowan.name>.
1664
1665 2008-04-20  Bruno Haible  <bruno@clisp.org>
1666
1667         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
1668         unistr/u8-mblen.
1669
1670 2008-04-20  Bruno Haible  <bruno@clisp.org>
1671
1672         Fix test failure on platforms with non-GNU iconv.
1673         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
1674         (U_TO_U8): Use it, rather than u16_to_u8.
1675         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
1676         units at the end of the input string.
1677         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
1678
1679 2008-04-20  Bruno Haible  <bruno@clisp.org>
1680
1681         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
1682         when the resulting length is 0.
1683         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
1684
1685 2008-04-20  Bruno Haible  <bruno@clisp.org>
1686
1687         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
1688         works.
1689         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
1690
1691 2008-04-20  Bruno Haible  <bruno@clisp.org>
1692
1693         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
1694         * modules/tsearch-tests (configure.ac): Test for initstate function.
1695
1696 2008-04-20  Bruno Haible  <bruno@clisp.org>
1697
1698         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
1699         for nlink_t if missing.
1700         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
1701
1702 2008-04-19  Bruno Haible  <bruno@clisp.org>
1703
1704         Work around snprintf bug on Linux libc5.
1705         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
1706         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1707         gl_SNPRINTF_SIZE1.
1708         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1709         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
1710         that test failed.
1711         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1712         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
1713         * modules/snprintf (Files): Add m4/printf.m4.
1714         * modules/vsnprintf (Files): Likewise.
1715         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
1716         * doc/posix-functions/vsnprintf.texi: Likewise.
1717
1718 2008-04-19  Bruno Haible  <bruno@clisp.org>
1719
1720         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
1721         from 0.0058 to less than 10^-7.
1722
1723 2008-04-19  Bruno Haible  <bruno@clisp.org>
1724
1725         Fix rounding when a precision is given.
1726         * lib/vasnprintf.c (is_borderline): New function.
1727         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
1728         9...9x.
1729         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
1730         %e, %g.
1731         * tests/test-vasprintf-posix.c (test_function): Likewise.
1732         * tests/test-snprintf-posix.h (test_function): Likewise.
1733         * tests/test-sprintf-posix.h (test_function): Likewise.
1734         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
1735         * tests/test-printf-posix.h (test_function): Likewise.
1736         * tests/test-printf-posix.output: Update.
1737         Reported by John Darrington <john@darrington.wattle.id.au> via
1738         Ben Pfaff <blp@cs.stanford.edu>.
1739
1740 2008-04-18  Simon Josefsson  <simon@josefsson.org>
1741
1742         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
1743         Suggested by Bruno Haible <bruno@clisp.org>.
1744
1745 2008-04-17  Bruno Haible  <bruno@clisp.org>
1746
1747         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
1748         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
1749         implementation.
1750         Patch by Bruce Merry <bmerry@gmail.com>.
1751
1752 2008-04-17  Simon Josefsson  <simon@josefsson.org>
1753
1754         * doc/posix-functions/strftime.texi (strftime): Mention that %e
1755         doesn't work under Windows.
1756
1757 2008-04-16  Bruno Haible  <bruno@clisp.org>
1758
1759         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
1760         New macros.
1761         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
1762         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
1763         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
1764         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
1765         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
1766         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
1767         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
1768         macros.
1769         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
1770         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
1771         Northern Sotho, Uighur.
1772
1773 2008-04-16  Bruno Haible  <bruno@clisp.org>
1774
1775         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
1776         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
1777         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
1778         Reported by Daniel Bergström <daniel@octocode.com>.
1779
1780 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
1781             Bruno Haible  <bruno@clisp.org>
1782
1783         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
1784         function.
1785         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
1786         New functions, mostly extracted from gl_locale_name_default.
1787         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
1788
1789 2008-04-16  Eric Blake  <ebb9@byu.net>
1790
1791         Adjust strtod detection to catch glibc 2.7 bug.
1792         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
1793         Reported by John Gatewood Ham.
1794
1795 2008-04-16  Bruno Haible  <bruno@clisp.org>
1796
1797         Add tentative support for Linux libc5.
1798         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
1799         * lib/fpurge.c (fpurge): Likewise.
1800         * lib/freadable.c (freadable): Likewise.
1801         * lib/freadahead.c (freadahead): Likewise.
1802         * lib/freading.c (freading): Likewise.
1803         * lib/freadptr.c (freadptr): Likewise.
1804         * lib/freadseek.c (freadptrinc): Likewise.
1805         * lib/fseeko.c (rpl_fseeko): Likewise.
1806         * lib/fseterr.c (fseterr): Likewise.
1807         * lib/fwritable.c (fwritable): Likewise.
1808         * lib/fwriting.c (fwriting): Likewise.
1809         Reported by Alain Guibert <alguibert+bts@free.fr>.
1810
1811 2008-04-15  Bruno Haible  <bruno@clisp.org>
1812
1813         * modules/mathl (configure.ac): Define module indicator.
1814
1815 2008-04-15  Bruno Haible  <bruno@clisp.org>
1816
1817         * lib/logl.c (logl): Remove unused variables.
1818
1819 2008-04-15  Bruno Haible  <bruno@clisp.org>
1820
1821         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
1822         fails.
1823
1824 2008-04-15  Bruno Haible  <bruno@clisp.org>
1825
1826         * lib/trim.c (trim2): Fix argument of isspace() macro.
1827
1828 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
1829
1830         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
1831         to 0.
1832         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
1833
1834 2008-04-14  Bruno Haible  <bruno@clisp.org>
1835
1836         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
1837         AC_LANG_PROGRAM argument.
1838         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
1839         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
1840         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1841         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1842         * m4/math_h.m4 (gl_MATH_H): Likewise.
1843         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1844         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1845         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1846         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
1847         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1848         * m4/regex.m4 (gl_REGEX): Likewise.
1849         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
1850         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
1851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1852         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
1853         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
1854         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1855         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1856         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1857
1858 2008-04-14  Jim Meyering  <meyering@redhat.com>
1859
1860         test-strtod: fix typos: s/abs/fabs/
1861         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
1862
1863 2008-04-13  Bruno Haible  <bruno@clisp.org>
1864
1865         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
1866         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
1867         module is also used and while not building the reloc-wrapper.
1868
1869 2008-04-13  Bruno Haible  <bruno@clisp.org>
1870
1871         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
1872
1873 2008-04-13  Bruno Haible  <bruno@clisp.org>
1874
1875         Fix AIX compilation failure introduced on 2008-04-02.
1876         * tests/test-frexp.c (exp): Undefine before redefining.
1877         * tests/test-frexpl.c (exp): Likewise.
1878
1879 2008-04-13  Bruno Haible  <bruno@clisp.org>
1880
1881         Work around a HP-UX stdio bug.
1882         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
1883         * tests/test-ftello.c (main): Likewise.
1884         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
1885         * doc/posix-functions/ftello.texi: Likewise.
1886
1887 2008-04-13  Bruno Haible  <bruno@clisp.org>
1888
1889         Make test-signbit pass on HP-UX/hppa.
1890         * tests/test-signbit.c (minus_zerol): New variable.
1891         (test_signbitl): Use it.
1892
1893 2008-04-13  Bruno Haible  <bruno@clisp.org>
1894
1895         Make truncl work on OSF/1 4.0.
1896         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
1897         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1898         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
1900         HAVE_DECL_TRUNCL.
1901         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
1902         HAVE_DECL_TRUNCL.
1903         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
1904
1905 2008-04-13  Bruno Haible  <bruno@clisp.org>
1906
1907         * lib/unictype.h: Remove trailing comma from enumeration definitions.
1908
1909 2008-04-13  Bruno Haible  <bruno@clisp.org>
1910
1911         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
1912         expression, so as to avoid HP-UX 11 cc compiler bug.
1913
1914 2008-04-13  Bruno Haible  <bruno@clisp.org>
1915
1916         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
1917
1918 2008-04-13  Bruno Haible  <bruno@clisp.org>
1919
1920         * lib/git-merge-changelog.c: Remove empty declaration outside of
1921         functions.
1922
1923 2008-04-13  Bruno Haible  <bruno@clisp.org>
1924
1925         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
1926
1927 2008-04-13  Bruno Haible  <bruno@clisp.org>
1928
1929         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
1930         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
1931         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
1932         also if it exists but lacks definitions of the SHUT_* macros.
1933         * modules/sys_socket (Description): Update.
1934         Reported by Elbert Pol <e.pol@chello.nl>.
1935
1936 2008-04-13  Bruno Haible  <bruno@clisp.org>
1937
1938         * lib/localcharset.c (OS2): Don't redefine if already defined.
1939         Reported by Elbert Pol <e.pol@chello.nl>.
1940
1941 2008-04-13  Bruno Haible  <bruno@clisp.org>
1942
1943         * lib/binary-io.h [__EMX__]: Include <io.h>.
1944         Reported by Elbert Pol <e.pol@chello.nl>.
1945
1946 2008-04-12  Bruno Haible  <bruno@clisp.org>
1947
1948         * lib/fpucw.h: Enable the definitions also for x86_64.
1949         Needed for NetBSD/x86_64.
1950         Reported by Thomas Klausner <tk@giga.or.at>.
1951
1952 2008-04-12  Bruno Haible  <bruno@clisp.org>
1953
1954         * tests/test-strtod.c: Include isnand.h.
1955         (main): Use isnand instead of isnan.
1956         Reported by Jim Meyering.
1957
1958 2008-04-12  Bruno Haible  <bruno@clisp.org>
1959
1960         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
1961         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1962
1963 2008-04-12  Jim Meyering  <meyering@redhat.com>
1964
1965         * m4/math_h.m4 (gl_MATH_H): Fix typos.
1966
1967 2008-04-12  Bruno Haible  <bruno@clisp.org>
1968
1969         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
1970         Reported by Elbert Pol <e.pol@chello.nl>.
1971
1972 2008-04-12  Eric Blake  <ebb9@byu.net>
1973
1974         Work around Solaris 10 math.h bug.
1975         * m4/math_h.m4 (gl_MATH_H): Check for bug.
1976         (gl_MATH_H_DEFAULTS): Set up default.
1977         * modules/math (Makefile.am): Replace new indicators.
1978         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
1979         * tests/test-math.c (main): Test this.
1980         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
1981         * doc/posix-headers/math.texi (math.h): Mention bug.
1982         Reported by Nelson H. F. Beebe and Jim Meyering.
1983
1984 2008-04-11  Bruno Haible  <bruno@clisp.org>
1985
1986         Adapt to future versions of Apple GCC.
1987         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
1988         Reported by Peter O'Gorman <peter@pogma.com>.
1989
1990 2008-04-11  Bruno Haible  <bruno@clisp.org>
1991
1992         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
1993
1994 2008-04-11  Bruno Haible  <bruno@clisp.org>
1995
1996         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
1997
1998         * modules/getaddrinfo-tests (Makefile.am): Define
1999         test_getaddrinfo_LDADD.
2000
2001 2008-04-11  Bruno Haible  <bruno@clisp.org>
2002
2003         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
2004         (init): Fix syntax error.
2005         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
2006         is declared.
2007
2008 2008-04-11  Bruno Haible  <bruno@clisp.org>
2009
2010         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
2011         * modules/glob (Depends-on): Add stdbool.
2012
2013 2008-04-11  Bruno Haible  <bruno@clisp.org>
2014
2015         * lib/trim.c: Include <string.h>.
2016
2017 2008-04-11  Eric Blake  <ebb9@byu.net>
2018
2019         Avoid compile failure on OS/2.
2020         * lib/regex_internal.h (internal_function): Disable optimization
2021         on OS/2 (__EMX__), where it caused compiler error.
2022         Reported by Elbert Pol.
2023
2024 2008-04-11  Bruno Haible  <bruno@clisp.org>
2025
2026         Flush the standard error stream before aborting. Needed on mingw.
2027         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
2028         * tests/test-array_list.c (ASSERT): Likewise.
2029         * tests/test-array_oset.c (ASSERT): Likewise.
2030         * tests/test-avltree_list.c (ASSERT): Likewise.
2031         * tests/test-avltree_oset.c (ASSERT): Likewise.
2032         * tests/test-avltreehash_list.c (ASSERT): Likewise.
2033         * tests/test-binary-io.c (ASSERT): Likewise.
2034         * tests/test-byteswap.c (ASSERT): Likewise.
2035         * tests/test-c-ctype.c (ASSERT): Likewise.
2036         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
2037         * tests/test-c-strcasestr.c (ASSERT): Likewise.
2038         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
2039         * tests/test-c-strstr.c (ASSERT): Likewise.
2040         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
2041         * tests/test-canonicalize.c (ASSERT): Likewise.
2042         * tests/test-carray_list.c (ASSERT): Likewise.
2043         * tests/test-ceilf1.c (ASSERT): Likewise.
2044         * tests/test-ceilf2.c (ASSERT): Likewise.
2045         * tests/test-ceill.c (ASSERT): Likewise.
2046         * tests/test-count-one-bits.c (ASSERT): Likewise.
2047         * tests/test-fbufmode.c (ASSERT): Likewise.
2048         * tests/test-fflush2.c (ASSERT): Likewise.
2049         * tests/test-floorf1.c (ASSERT): Likewise.
2050         * tests/test-floorf2.c (ASSERT): Likewise.
2051         * tests/test-floorl.c (ASSERT): Likewise.
2052         * tests/test-fopen.c (ASSERT): Likewise.
2053         * tests/test-fpending.c (ASSERT): Likewise.
2054         * tests/test-fprintf-posix.c (ASSERT): Likewise.
2055         * tests/test-fpurge.c (ASSERT): Likewise.
2056         * tests/test-freadable.c (ASSERT): Likewise.
2057         * tests/test-freadahead.c (ASSERT): Likewise.
2058         * tests/test-freading.c (ASSERT): Likewise.
2059         * tests/test-freadptr.c (ASSERT): Likewise.
2060         * tests/test-freadptr2.c (ASSERT): Likewise.
2061         * tests/test-freadseek.c (ASSERT): Likewise.
2062         * tests/test-freopen.c (ASSERT): Likewise.
2063         * tests/test-frexp.c (ASSERT): Likewise.
2064         * tests/test-frexpl.c (ASSERT): Likewise.
2065         * tests/test-fseek.c (ASSERT): Likewise.
2066         * tests/test-fseeko.c (ASSERT): Likewise.
2067         * tests/test-fstrcmp.c (ASSERT): Likewise.
2068         * tests/test-ftell.c (ASSERT): Likewise.
2069         * tests/test-ftello.c (ASSERT): Likewise.
2070         * tests/test-func.c (ASSERT): Likewise.
2071         * tests/test-fwritable.c (ASSERT): Likewise.
2072         * tests/test-fwriting.c (ASSERT): Likewise.
2073         * tests/test-getdelim.c (ASSERT): Likewise.
2074         * tests/test-getline.c (ASSERT): Likewise.
2075         * tests/test-i-ring.c (ASSERT): Likewise.
2076         * tests/test-iconv-utf.c (ASSERT): Likewise.
2077         * tests/test-iconv.c (ASSERT): Likewise.
2078         * tests/test-isfinite.c (ASSERT): Likewise.
2079         * tests/test-isnand.c (ASSERT): Likewise.
2080         * tests/test-isnanf.c (ASSERT): Likewise.
2081         * tests/test-isnanl.h (ASSERT): Likewise.
2082         * tests/test-ldexpl.c (ASSERT): Likewise.
2083         * tests/test-linked_list.c (ASSERT): Likewise.
2084         * tests/test-linkedhash_list.c (ASSERT): Likewise.
2085         * tests/test-localename.c (ASSERT): Likewise.
2086         * tests/test-lseek.c (ASSERT): Likewise.
2087         * tests/test-mbscasecmp.c (ASSERT): Likewise.
2088         * tests/test-mbscasestr1.c (ASSERT): Likewise.
2089         * tests/test-mbscasestr2.c (ASSERT): Likewise.
2090         * tests/test-mbscasestr3.c (ASSERT): Likewise.
2091         * tests/test-mbscasestr4.c (ASSERT): Likewise.
2092         * tests/test-mbschr.c (ASSERT): Likewise.
2093         * tests/test-mbscspn.c (ASSERT): Likewise.
2094         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
2095         * tests/test-mbspbrk.c (ASSERT): Likewise.
2096         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
2097         * tests/test-mbsrchr.c (ASSERT): Likewise.
2098         * tests/test-mbsspn.c (ASSERT): Likewise.
2099         * tests/test-mbsstr1.c (ASSERT): Likewise.
2100         * tests/test-mbsstr2.c (ASSERT): Likewise.
2101         * tests/test-mbsstr3.c (ASSERT): Likewise.
2102         * tests/test-memchr2.c (ASSERT): Likewise.
2103         * tests/test-memmem.c (ASSERT): Likewise.
2104         * tests/test-open.c (ASSERT): Likewise.
2105         * tests/test-printf-frexp.c (ASSERT): Likewise.
2106         * tests/test-printf-frexpl.c (ASSERT): Likewise.
2107         * tests/test-printf-posix.c (ASSERT): Likewise.
2108         * tests/test-quotearg.c (ASSERT): Likewise.
2109         * tests/test-rbtree_list.c (ASSERT): Likewise.
2110         * tests/test-rbtree_oset.c (ASSERT): Likewise.
2111         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
2112         * tests/test-round1.c (ASSERT): Likewise.
2113         * tests/test-roundf1.c (ASSERT): Likewise.
2114         * tests/test-roundl.c (ASSERT): Likewise.
2115         * tests/test-signbit.c (ASSERT): Likewise.
2116         * tests/test-sleep.c (ASSERT): Likewise.
2117         * tests/test-snprintf-posix.c (ASSERT): Likewise.
2118         * tests/test-snprintf.c (ASSERT): Likewise.
2119         * tests/test-sprintf-posix.c (ASSERT): Likewise.
2120         * tests/test-stat-time.c (ASSERT): Likewise.
2121         * tests/test-strcasestr.c (ASSERT): Likewise.
2122         * tests/test-strerror.c (ASSERT): Likewise.
2123         * tests/test-striconv.c (ASSERT): Likewise.
2124         * tests/test-striconveh.c (ASSERT): Likewise.
2125         * tests/test-striconveha.c (ASSERT): Likewise.
2126         * tests/test-strsignal.c (ASSERT): Likewise.
2127         * tests/test-strstr.c (ASSERT): Likewise.
2128         * tests/test-strtod.c (ASSERT): Likewise.
2129         * tests/test-trunc1.c (ASSERT): Likewise.
2130         * tests/test-trunc2.c (ASSERT): Likewise.
2131         * tests/test-truncf1.c (ASSERT): Likewise.
2132         * tests/test-truncf2.c (ASSERT): Likewise.
2133         * tests/test-truncl.c (ASSERT): Likewise.
2134         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
2135         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
2136         * tests/test-vasnprintf.c (ASSERT): Likewise.
2137         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
2138         * tests/test-vasprintf.c (ASSERT): Likewise.
2139         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
2140         * tests/test-vprintf-posix.c (ASSERT): Likewise.
2141         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
2142         * tests/test-vsnprintf.c (ASSERT): Likewise.
2143         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
2144         * tests/test-wcwidth.c (ASSERT): Likewise.
2145         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
2146         * tests/test-xprintf-posix.c (ASSERT): Likewise.
2147         * tests/test-xvasprintf.c (ASSERT): Likewise.
2148         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
2149         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
2150         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
2151         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
2152         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
2153         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
2154         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
2155         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
2156         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
2157         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
2158         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
2159         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
2160         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
2161         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
2162         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
2163         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
2164         * tests/unictype/test-block_list.c (ASSERT): Likewise.
2165         * tests/unictype/test-block_of.c (ASSERT): Likewise.
2166         * tests/unictype/test-block_test.c (ASSERT): Likewise.
2167         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
2168         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
2169         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
2170         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
2171         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
2172         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
2173         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
2174         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
2175         * tests/unictype/test-combining.c (ASSERT): Likewise.
2176         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
2177         * tests/unictype/test-digit.c (ASSERT): Likewise.
2178         * tests/unictype/test-mirror.c (ASSERT): Likewise.
2179         * tests/unictype/test-numeric.c (ASSERT): Likewise.
2180         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
2181         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
2182         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
2183         * tests/unictype/test-scripts.c (ASSERT): Likewise.
2184         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
2185         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
2186         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
2187         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
2188         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
2189         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
2190         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
2191         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
2192         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
2193         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
2194         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
2195         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
2196         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
2197         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
2198         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
2199         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
2200         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
2201         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
2202         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
2203         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
2204         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
2205         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
2206         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
2207         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
2208         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
2209         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
2210         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
2211         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
2212         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
2213         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
2214         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
2215         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
2216         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
2217         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
2218         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
2219         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
2220         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
2221         Reported by Eric Blake.
2222
2223 2008-04-11  Bruno Haible  <bruno@clisp.org>
2224
2225         * lib/wchar.in.h: Tweak comment.
2226
2227 2008-04-11  Bruno Haible  <bruno@clisp.org>
2228
2229         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
2230         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
2231         gl_COMMON.
2232         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
2233
2234 2008-04-11  Bruno Haible  <bruno@clisp.org>
2235
2236         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
2237
2238 2008-04-11  Simon Josefsson  <simon@josefsson.org>
2239
2240         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
2241         of attempting to use non-existing /dev/*random.  Based on patch
2242         from Adam Strzelecki <ono@java.pl> in
2243         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
2244
2245 2008-04-08  Bruno Haible  <bruno@clisp.org>
2246
2247         Add tentative support for emx+gcc.
2248         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
2249         * lib/fpurge.c (fpurge): Likewise.
2250         * lib/freadable.c (freadable): Likewise.
2251         * lib/freadahead.c (freadahead): Likewise.
2252         * lib/freading.c (freading): Likewise.
2253         * lib/freadptr.c (freadptr): Likewise.
2254         * lib/freadseek.c (freadptrinc): Likewise.
2255         * lib/fseeko.c (rpl_fseeko): Likewise.
2256         * lib/fseterr.c (fseterr): Likewise.
2257         * lib/fwritable.c (fwritable): Likewise.
2258         * lib/fwriting.c (fwriting): Likewise.
2259         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
2260
2261 2008-04-09  Eric Blake  <ebb9@byu.net>
2262
2263         Avoid some autoconf warnings.
2264         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
2265         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
2266         * m4/afs.m4 (gl_AFS): Likewise.
2267         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
2268         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
2269         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2270         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
2271         (gl_INTEGER_TYPE_SUFFIX): Likewise.
2272         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
2273         (AC_CHECK_DECLS_ONCE): Likewise.
2274         Rename file...
2275         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
2276         gnulib-tool requires autoconf 2.59 or better.
2277         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
2278
2279 2008-04-08  Eric Blake  <ebb9@byu.net>
2280
2281         Use 'git describe --match' if present (added in git 1.5.5).
2282         * build-aux/git-version-gen: Limit result to tags that match 'v*'
2283         if possible.
2284
2285 2008-04-08  Bruno Haible  <bruno@clisp.org>
2286
2287         Add tentative support for OpenServer.
2288         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
2289         _ptr, _cnt.
2290         * lib/fpurge.c (fpurge): Likewise.
2291         * lib/freadable.c (freadable): Likewise.
2292         * lib/freadahead.c (freadahead): Likewise.
2293         * lib/freading.c (freading): Likewise.
2294         * lib/freadptr.c (freadptr): Likewise.
2295         * lib/freadseek.c (freadptrinc): Likewise.
2296         * lib/fseeko.c (rpl_fseeko): Likewise.
2297         * lib/fseterr.c (fseterr): Likewise.
2298         * lib/fwritable.c (fwritable): Likewise.
2299         * lib/fwriting.c (fwriting): Likewise.
2300         Reported by Roger Cornelius <rac@tenzing.org> and
2301         Brian K. White <brian@aljex.com>.
2302
2303 2008-04-06  Jim Meyering  <meyering@redhat.com>
2304
2305         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
2306
2307 2008-04-06  Bruno Haible  <bruno@clisp.org>
2308
2309         Avoid possible error with non-ASCII bytes in UTF-8 locales.
2310         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
2311         * tests/test-printf-posix.sh: Likewise.
2312         * tests/test-vfprintf-posix.sh: Likewise.
2313         * tests/test-vprintf-posix.sh: Likewise.
2314         * tests/test-xprintf-posix.sh: Likewise.
2315
2316 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2317
2318         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
2319         hide error from 'ls', needed on OS/2.
2320         Report by Elbert Pol <elbert.pol@gmail.com>.
2321
2322 2008-04-04  Eric Blake  <ebb9@byu.net>
2323
2324         Make test-fseeko.c failures meaningful.
2325         * tests/test-fseeko.c: Print line number on failure.
2326         * tests/test-fseek.c: Likewise.
2327         Reported by Nelson H. F. Beebe.
2328
2329         Improve strtod bug detection check.
2330         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
2331         required for Solaris 10.
2332         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
2333
2334 2008-04-04  Bruno Haible  <bruno@clisp.org>
2335
2336         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
2337         by m4/setenv.m4.
2338
2339 2008-04-03  Eric Blake  <ebb9@byu.net>
2340
2341         Ensure sane .version contents.
2342         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
2343         version string.
2344         * build-aux/git-version-gen: Improve documentation.
2345
2346         Make GNU make output nicer.
2347         * top/GNUmakefile [!_have-Makefile]: Add dependency on
2348         MAKECMDGOALS to enforce message for all command line targets.  Set
2349         srcdir for use in maint.mk.
2350
2351         Another maintainer tweak.
2352         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
2353         a target that regenerates version.
2354
2355 2008-04-03  Jim Meyering  <meyering@redhat.com>
2356
2357         vc-list-files: don't cause coreutils "make po-check" failure
2358         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
2359
2360 2008-04-03  Eric Blake  <ebb9@byu.net>
2361
2362         Allow VPATH usage of vc-list-files.
2363         * build-aux/vc-list-files (scriptversion): Add timestamp.
2364         (options): Add --help, --version, -C.
2365         (CVS): Support installed cvsu.
2366
2367 2008-04-02  Bruno Haible  <bruno@clisp.org>
2368
2369         Avoid some "statement with no effect" warnings from gcc.
2370         * tests/test-wctype.c (main): Explicitly ignore unused values.
2371         Reported by Jim Meyering.
2372
2373 2008-04-02  Jim Meyering  <meyering@redhat.com>
2374
2375         Avoid some warnings from "gcc -Wshadow".
2376         * tests/test-frexp.c (exp): Define to a different identifier.
2377         * tests/test-frexpl.c (exp): Likewise.
2378
2379 2008-04-03  Jim Meyering  <meyering@redhat.com>
2380
2381         bootstrap: remove dangling *.[ch] symlinks from lib
2382         * build-aux/bootstrap [dangling symlink removal]: Move find's
2383         -depth option to precede all others, to avoid a warning.
2384         Remove *.[ch] files too, and from "$source_base" (usually lib/).
2385
2386 2008-04-02  Bruno Haible  <bruno@clisp.org>
2387
2388         Avoid some warnings from "gcc -Wshadow".
2389         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
2390         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
2391         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
2392         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
2393         Reported by Jim Meyering.
2394
2395 2008-04-01  Bruno Haible  <bruno@clisp.org>
2396
2397         Fix test to work on IRIX 6.5 with cc.
2398         * tests/test-math.c (numeric_equal): New function.
2399         (main): Use it.
2400
2401 2008-04-01  Bruno Haible  <bruno@clisp.org>
2402
2403         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
2404
2405 2008-04-01  Bruno Haible  <bruno@clisp.org>
2406
2407         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
2408         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2409         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
2410         (Depends-on): Remove math.
2411
2412         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
2413         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2414         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
2415         (Depends-on): Remove math.
2416
2417         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
2418         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2419         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
2420         (Depends-on): Remove math.
2421         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
2422         (Depends-on): Remove math.
2423
2424         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
2425         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2426         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
2427         (Depends-on): Remove math.
2428         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
2429         (Depends-on): Remove math.
2430
2431         * tests/test-round1.c: Include nan.h.
2432         (main): Use NaNd instead of NAN.
2433         * modules/round-tests (Files): Add tests/nan.h.
2434
2435         * tests/test-trunc1.c: Include nan.h.
2436         (main): Use NaNd instead of NAN.
2437         * modules/trunc-tests (Files): Add tests/nan.h.
2438
2439         * tests/test-roundf1.c: Include nan.h.
2440         (main): Use NaNf instead of NAN.
2441         * modules/roundf-tests (Files): Add tests/nan.h.
2442
2443         * tests/test-truncf1.c: Include nan.h.
2444         (main): Use NaNf instead of NAN.
2445         * modules/truncf-tests (Files): Add tests/nan.h.
2446
2447         * tests/test-ceilf1.c: Include nan.h.
2448         (main): Use NaNf instead of NAN.
2449         * modules/ceilf-tests (Files): Add tests/nan.h.
2450
2451         * tests/test-floorf1.c: Include nan.h.
2452         (main): Use NaNf instead of NAN.
2453         * modules/floorf-tests (Files): Add tests/nan.h.
2454
2455         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
2456         (main): Use NaNf instead of NAN.
2457         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
2458
2459         * tests/test-isnand.c: Include nan.h instead of <math.h>.
2460         (main): Use NaNd instead of NAN.
2461         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
2462
2463         * tests/test-frexp.c: Include nan.h.
2464         (main): Use NaNd instead of NAN.
2465         * modules/frexp-tests (Files): Add tests/nan.h.
2466
2467         * lib/isnan.c: Don't include <math.h>.
2468         (FUNC): Don't use NAN macro.
2469         * modules/isnand-nolibm (Depends-on): Remove math.
2470         * modules/isnanf-nolibm (Depends-on): Remove math.
2471         * modules/isnanl (Depends-on): Remove math.
2472         * modules/isnanl-nolibm (Depends-on): Remove math.
2473
2474         * tests/nan.h: New file.
2475
2476 2008-04-01  Eric Blake  <ebb9@byu.net>
2477
2478         Fix typos.
2479         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
2480         values to be the right type.
2481
2482         For now, cater to gnulib strtod inaccuracies.
2483         * tests/test-strtod.c (main): Allow 1-ulp error on expected
2484         fractional results.  While not as nice from a QoI perspective, it
2485         is a quicker patch than correctly implementing decimal to binary
2486         rounding.
2487
2488 2008-03-31  Eric Blake  <ebb9@byu.net>
2489
2490         Guarantee a definition of NAN.
2491         * lib/math.in.h (NAN): Define if missing.
2492         * tests/test-math.c (main): Test it.
2493         * doc/posix-headers/math.texi (math.h): Document this.
2494         * lib/isnan.c (rpl_isnand): Use it.
2495         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
2496         * tests/test-floorf1.c (NaN): Likewise.
2497         * tests/test-frexp.c (NaN): Likewise.
2498         * tests/test-isnand.c (NaN): Likewise.
2499         * tests/test-isnanf.c (NaN): Likewise.
2500         * tests/test-round1.c (NaN): Likewise.
2501         * tests/test-roundf1.c (NaN): Likewise.
2502         * tests/test-snprintf-posix.h (NaN): Likewise.
2503         * tests/test-sprintf-posix.h (NaN): Likewise.
2504         * tests/test-trunc1.c (NaN): Likewise.
2505         * tests/test-truncf1.c (NaN): Likewise.
2506         * tests/test-vasnprintf-posix.c (NaN): Likewise.
2507         * tests/test-vasprintf-posix.c (NaN): Likewise.
2508         * modules/isnand-nolibm (Depends-on): Add math.
2509         * modules/isnanf-nolibm (Depends-on): Likewise.
2510         * modules/isnanl (Depends-on): Likewise.
2511         * modules/isnanl-nolibm (Depends-on): Likewise.
2512         * modules/snprintf-posix-tests (Depends-on): Likewise.
2513         * modules/sprintf-posix-tests (Depends-on): Likewise.
2514         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
2515         * modules/vsprintf-posix-tests (Depends-on): Likewise.
2516         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
2517         * modules/vasprintf-posix-tests (Depends-on): Likewise.
2518
2519 2008-03-31  Bruno Haible  <bruno@clisp.org>
2520
2521         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
2522         * doc/posix-functions/strtod.texi: Likewise.
2523
2524 2008-03-31  Bruno Haible  <bruno@clisp.org>
2525
2526         * tests/test-strtod.c (main): Don't use C99 syntax.
2527
2528 2008-03-31  Bruno Haible  <bruno@clisp.org>
2529
2530         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
2531         Reported by Eric Blake.
2532
2533 2008-03-31  Jim Meyering  <meyering@redhat.com>
2534
2535         Don't compare actual signbit return values.
2536         * tests/test-strtod.c (main): Rather, compare only their
2537         zero/non-zero nature.
2538
2539 2008-03-31  Eric Blake  <ebb9@byu.net>
2540
2541         More strtod documentation.
2542         * doc/posix-functions/strtod.texi (strtod): Interpret more test
2543         failures as distinct bugs.
2544
2545 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2546
2547         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
2548         Problem reported by Erik Benada in
2549         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
2550
2551 2008-03-30  Bruno Haible  <bruno@clisp.org>
2552
2553         * tests/test-strtod.c: Add comments about which assertion fails on which
2554         platform.
2555         * doc/posix-functions/strtod.texi: Add info about many more platforms.
2556
2557 2008-03-30  Eric Blake  <ebb9@byu.net>
2558
2559         Test signbit behavior on zeros.
2560         * tests/test-signbit.c (test_signbitf): Add tests for zero.
2561         (test_signbitd, test_signbitl): Likewise.
2562
2563         More strtod touchups.
2564         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
2565         sign of negative underflow, for now.  Use .5, not .1.
2566         * doc/posix-functions/strtod.texi (strtod): Mention these
2567         limitations.
2568         Reported by Jim Meyering.
2569
2570 2008-03-30  Bruno Haible  <bruno@clisp.org>
2571
2572         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
2573         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
2574
2575 2008-03-30  Bruno Haible  <bruno@clisp.org>
2576
2577         Avoid failure when attempting to return empty iconv results on some
2578         platforms.
2579         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
2580         allocation, don't report ENOMEM when the resulting string is empty.
2581
2582 2008-03-30  Bruno Haible  <bruno@clisp.org>
2583
2584         Fix buffer overrun.
2585         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
2586         Don't consider the width for tmp_length. Check count against tmp_length
2587         before doing the padding. Ensure enough allocation during padding.
2588
2589 2008-03-30  Eric Blake  <ebb9@byu.net>
2590
2591         strtod touchups.
2592         * lib/strtod.c (strtod): Avoid compiler warnings.
2593         Reported by Jim Meyering.
2594
2595 2008-03-30  Bruno Haible  <bruno@clisp.org>
2596
2597         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
2598         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
2599         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
2600         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
2601         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
2602         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
2603         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
2604         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
2605
2606         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
2607         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
2608         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
2609         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
2610         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
2611         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
2612         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
2613         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
2614
2615         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
2616         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
2617         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
2618         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
2619         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
2620         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
2621         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
2622         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
2623
2624         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
2625         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
2626
2627         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
2628         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
2629
2630         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
2631         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
2632
2633         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
2634         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
2635         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
2636
2637         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
2638         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
2639         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
2640
2641         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
2642         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
2643         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
2644
2645         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
2646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
2647         * modules/vasprintf (Depends-on): Add EOVERFLOW.
2648
2649         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
2650         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
2651         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
2652         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
2653         (Depends-on): Add EOVERFLOW.
2654         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
2655         (Depends-on): Add EOVERFLOW.
2656         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2657         (Depends-on): Add EOVERFLOW.
2658         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2659         (Depends-on): Add EOVERFLOW.
2660         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2661         (Depends-on): Add EOVERFLOW.
2662         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2663         (Depends-on): Add EOVERFLOW.
2664         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2665         (Depends-on): Add EOVERFLOW.
2666         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2667         (Depends-on): Add EOVERFLOW.
2668
2669         * lib/sprintf.c (EOVERFLOW): Remove fallback.
2670         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
2671         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
2672
2673         * lib/snprintf.c (EOVERFLOW): Remove fallback.
2674         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
2675         * modules/snprintf (Depends-on): Add EOVERFLOW.
2676
2677         * lib/poll.c (EOVERFLOW): Remove fallback.
2678         * modules/poll (Depends-on): Add EOVERFLOW.
2679
2680         * lib/getugroups.c (EOVERFLOW): Remove fallback.
2681         * modules/getugroups (Depends-on): Add EOVERFLOW.
2682
2683         * lib/getdelim.c (EOVERFLOW): Remove fallback.
2684         * modules/getdelim (Depends-on): Add EOVERFLOW.
2685
2686         * lib/ftell.c (EOVERFLOW): Remove fallback.
2687         * modules/ftell (Depends-on): Add EOVERFLOW.
2688
2689         * lib/fprintf.c (EOVERFLOW): Remove fallback.
2690         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
2691         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
2692
2693         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
2694
2695         * modules/EOVERFLOW-tests: New file.
2696         * tests/test-EOVERFLOW.c: New file.
2697
2698         * modules/EOVERFLOW: New file.
2699         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
2700
2701 2008-03-30  Bruno Haible  <bruno@clisp.org>
2702
2703         Fix bug introduced on 2007-06-10.
2704         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
2705         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
2706
2707 2008-03-30  Bruno Haible  <bruno@clisp.org>
2708
2709         Improve freadseek's efficiency after ungetc.
2710         * lib/freadseek.c: Include freadahead.h.
2711         (freadptrinc): New function, extracted from freadseek.
2712         (freadseek): Use it in a loop. Use freadahead to determine the number
2713         of loop iterations.
2714         * modules/freadseek (Depends-on): Add freadahead.
2715         (configure.ac): Require AC_C_INLINE.
2716
2717 2008-03-30  Bruno Haible  <bruno@clisp.org>
2718
2719         * lib/freadseek.c (freadseek): Don't ignore the return value of
2720         freadptr.
2721
2722 2008-03-29  Eric Blake  <ebb9@byu.net>
2723
2724         Add hex float support.
2725         * modules/strtod (Depends-on): Add c-ctype.
2726         (Link): Mention POW_LIB.
2727         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
2728         whitespace between 'e' and exponent.
2729         * tests/test-strtod.c (main): Enable hex float tests.
2730         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
2731         now provides.
2732
2733         Document various strtod bugs, with some fixes.
2734         * doc/posix-functions/strtod.texi (strtod): Document bugs with
2735         "-0x", "inf", "nan", and hex constants.
2736         * doc/posix-functions/atof.texi (atof): Likewise.
2737         * modules/stdlib (Makefile.am): Support strtod.
2738         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
2739         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
2740         detect additional strtod bugs.
2741         * lib/stdlib.in.h (rpl_strtod): Add declarations.
2742         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
2743         bool where appropriate.  Parse 'inf' and 'nan'.
2744         * tests/test-strtod.c: New file.
2745         * modules/strtod (Depends-on): Add stdbool, stdlib.
2746         (configure.ac): Turn on module indicator.
2747         * modules/strtod-tests: New module.
2748
2749 2008-03-29  Eric Blake  <ebb9@byu.net>
2750
2751         Fix ftell on mingw.
2752         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
2753         * modules/ftell-tests (Depends-on): Add binary-io.
2754         * modules/ftello-tests (Depends-on): Likewise.
2755         * tests/test-ftell.c (main): Enhance test to cover behavior after
2756         ungetc.  Enforce binary mode.
2757         * tests/test-ftello.c (main): Likewise.
2758
2759         Pass test-freadseek on cygwin.
2760         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
2761         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
2762         ungetc buffer.
2763
2764         * tests/test-fflush2.c (main): Fix typo.
2765
2766 2008-03-29  Bruno Haible  <bruno@clisp.org>
2767
2768         * tests/test-fflush2.c (main): Temporarily disable the contents of
2769         this test.
2770         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
2771         Reported by Eric Blake.
2772
2773 2008-03-28  Simon Josefsson  <simon@josefsson.org>
2774
2775         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
2776         (GC_SHA224_DIGEST_SIZE): Add.
2777
2778         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
2779         (gc_hash_digest_length): Likewise.
2780         (gc_hash_buffer): Likewise.
2781
2782 2008-03-25  Bruno Haible  <bruno@clisp.org>
2783
2784         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
2785         detail which gettext release to use.
2786         Reported by Simon Josefsson.
2787
2788 2008-03-26  Jim Meyering  <meyering@redhat.com>
2789
2790         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
2791         * modules/gnumakefile (clean-GNUmakefile): Also, use
2792         test ... && ... || : syntax rather than if-then ... fi.
2793
2794         gnumakefile: Don't double-quote-expand $(VPATH) value.
2795         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
2796
2797 2008-03-24  Eric Blake  <ebb9@byu.net>
2798
2799         Alter GNUmakefile to install into top directory.
2800         * modules/maintainer-makefile: Split, and add dependency...
2801         * modules/gnumakefile: to this new module.
2802         * build-aux/GNUmakefile: Move...
2803         * top/GNUmakefile: ...here.
2804         * build-aux/maint.mk: Move...
2805         * top/maint.mk: ...here.
2806         * MODULES.html.sh (Support for maintaining...): Document new
2807         module.
2808
2809 2008-03-23  Bruno Haible  <bruno@clisp.org>
2810
2811         * gnulib-tool: New options --vc-files, --no-vc-files.
2812         (func_usage): Document them.
2813         (vc_files): New variable.
2814         (func_import): Consider vc_files.
2815         (func_create_testdir): Set vc_files to empty.
2816         Suggested by Jim Meyering and Karl Berry.
2817
2818 2008-03-23  Bruno Haible  <bruno@clisp.org>
2819
2820         Fix regex compilation error on HP-UX 11.
2821         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
2822         * modules/regex (Files): Add m4/mbstate_t.m4.
2823         Reported by Ton Voon <ton.voon@altinity.com>.
2824
2825 2008-03-23  Bruno Haible  <bruno@clisp.org>
2826
2827         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
2828
2829 2008-03-23  Eric Blake  <ebb9@byu.net>
2830             Bruno Haible  <bruno@clisp.org>
2831
2832         Install files from top/ in the destination directory.
2833         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
2834         augmentation also for the files from top/.
2835         (func_import, func_create_testdir): Rewrite file names:
2836         top/filename -> filename.
2837
2838 2008-03-23  Bruno Haible  <bruno@clisp.org>
2839
2840         Tweak "gnulib --version" output.
2841         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
2842
2843 2008-03-23  Bruno Haible  <bruno@clisp.org>
2844
2845         Tweak "gnulib --version" output.
2846         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
2847         rather than contents of ChangeLog, when possible.
2848
2849 2008-03-21  Eric Blake  <ebb9@byu.net>
2850
2851         More --version tweaks.
2852         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
2853         date of last ChangeLog entry.
2854
2855 2008-03-21  Jim Meyering  <meyering@redhat.com>
2856
2857         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
2858
2859 2008-03-20  Eric Blake  <ebb9@byu.net>
2860
2861         VPATH fix.
2862         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
2863
2864 2008-03-20  Simon Josefsson  <simon@josefsson.org>
2865
2866         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
2867         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
2868
2869 2008-03-20  Eric Blake  <ebb9@byu.net>
2870
2871         Sync GNUmakefile with coreutils.
2872         * build-aux/GNUmakefile (have-Makefile): Rename...
2873         (_have-Makefile): ...to this, for namespace consideration.
2874         (GNUmakefile.cfg): Include, if present.
2875         (_autoreconf): Define a default.
2876         (_is-dist-target): New rule for rebuilds to pick up intra-release
2877         version.
2878         (maint-cfg.mk): Rename...
2879         (cfg.mk): ...to this.
2880
2881 2008-03-18  Jim Meyering  <meyering@redhat.com>
2882
2883         New script and module: mktempd
2884         * MODULES.html.sh (maint+release support): Add mktempd.
2885         * build-aux/mktempd: New file.
2886         * modules/mktempd: New file.
2887
2888 2008-03-15  Jim Meyering  <meyering@redhat.com>
2889
2890         Undo last change.
2891         * lib/sha1.c, lib/md5.c: 63 != ~63.
2892         Reported by Andreas Schwab.
2893
2894         sha1.c, md5.c: Hoist a redundant expression.
2895         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
2896         "ctx->buflen" only once, before calling *_process_block.
2897         * lib/md5.c (md5_process_bytes): Likewise.
2898
2899 2008-03-14  Eric Blake  <ebb9@byu.net>
2900
2901         Bump copyright year in files generated by gnulib-tool.
2902         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
2903         gnulib-tool, rather than hard-coding it.
2904
2905         Fix 'gnulib-tool --version' output to work with git.
2906         * gnulib-tool (func_gnulib_dir): New function, extracted from...
2907         (startup): ...here.
2908         (func_version): Use it to invoke git-version-gen, rather than
2909         relying on CVS keyword expansion.  Modernize wording.
2910         (cvsdatestamp, last_checkin_date, version): Kill unused
2911         variables.
2912
2913 2008-03-12  Jim Meyering  <meyering@redhat.com>
2914
2915         Recognize optional cast of the argument to free.
2916         * build-aux/useless-if-before-free: Update regexps.
2917
2918         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
2919
2920 2008-03-11  Bruno Haible  <bruno@clisp.org>
2921
2922         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
2923         by a single package.
2924         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
2925         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
2926         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
2927         Reported by Sam Steingold <sds@gnu.org>.
2928
2929 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
2930
2931         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
2932         repositories.
2933
2934 2008-03-11  Bruno Haible  <bruno@clisp.org>
2935
2936         Avoid conflicts between local macro definitions.
2937         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2938         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
2939
2940 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
2941             Bruno Haible  <bruno@clisp.org>
2942
2943         Make va_copy work with some version of xlc on AIX 5.1.
2944         * lib/stdarg.in.h: New file.
2945         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
2946         On AIX, use a <stdarg.h> file substitute.
2947         * modules/stdarg (Files): Add lib/stdarg.in.h.
2948         (Depends-on): Add include_next.
2949         (Makefile.am): Build a stdarg.h substitute if requested.
2950         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
2951
2952 2008-03-10  Bruno Haible  <bruno@clisp.org>
2953
2954         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
2955         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2956         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
2957
2958 2008-03-10  Bruno Haible  <bruno@clisp.org>
2959
2960         * modules/stdlib (Depends-on): Add include_next, remove
2961         absolute-header.
2962
2963 2008-03-09  Bruno Haible  <bruno@clisp.org>
2964
2965         * lib/freadahead.h (freadahead): Document more precisely.
2966         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
2967         the sum of both buffer sizes.
2968         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
2969         * NEWS: Document the change.
2970
2971 2008-03-09  Bruno Haible  <bruno@clisp.org>
2972
2973         Extend freadptr to return also the buffer size.
2974         * lib/freadptr.h (freadptr): Add sizep argument.
2975         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
2976         (freadptr): Add sizep argument. Determine buffer size like freadahead
2977         does.
2978         * tests/test-freadptr.c: Don't include freadahead.h.
2979         (main): Adapt for new calling convention of freadptr.
2980         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
2981         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
2982         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
2983         tests/test-freadptr2.sh.
2984         (Depends): Remove freadahead.
2985         (TESTS): Add test-freadptr2.sh.
2986         (check_PROGRAMS): Add test-freadptr2.
2987
2988 2008-03-09  Bruno Haible  <bruno@clisp.org>
2989
2990         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
2991         Report and solution by Simon Josefsson.
2992
2993 2008-03-06  Bruno Haible  <bruno@clisp.org>
2994
2995         Make fflush after ungetc work on BSD platforms.
2996         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
2997         * tests/test-fflush2.c: New file.
2998         * tests/test-fflush2.sh: New file.
2999         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
3000         tests/test-fflush2.c.
3001         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
3002         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
3003
3004 2008-03-06  Eric Blake  <ebb9@byu.net>
3005
3006         Likewise for ftello.
3007         * modules/ftello (Dependencies): Add extensions.
3008         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
3009
3010 2008-03-06  Bruno Haible  <bruno@clisp.org>
3011
3012         * modules/fseeko (Dependencies): Add extensions.
3013         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
3014         Needed on glibc systems.
3015
3016 2008-03-06  Bruno Haible  <bruno@clisp.org>
3017
3018         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
3019         email address.
3020         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3021
3022 2008-03-06  Bruno Haible  <bruno@clisp.org>
3023
3024         * users.txt: Add libgnupdf.
3025
3026 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3027
3028         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
3029         (Header File Substitutes, Function Substitutes,
3030         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
3031         (Build robot for gnulib): Fix typo.
3032
3033 2008-03-06  Bruno Haible  <bruno@clisp.org>
3034
3035         * doc/gnulib-tool.texi (VCS Issues): Small updates.
3036         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3037
3038 2008-03-06  Bruno Haible  <bruno@clisp.org>
3039
3040         * doc/func.texi: New file, extracted from doc/gnulib.texi.
3041         * doc/gnulib.texi: Include it.
3042
3043 2008-03-06  Simon Josefsson  <simon@josefsson.org>
3044
3045         * modules/func (License): Change license to unlimited; there was
3046         no LGPL parts in the module anyway.
3047
3048 2008-03-06  Simon Josefsson  <simon@josefsson.org>
3049
3050         * modules/__func__: Renamed to modules/func.
3051         * modules/__func__-tests: Renamed to modules/func-tests.
3052         * tests/test-__func__.c: Renamed to tests/test-func.c.
3053         * m4/__func__.m4: Renamed to m4/func.m4.
3054         * doc/gnulib.texi (__func__): Section renamed to func.
3055         Suggested by Eric Blake <ebb9@byu.net>.
3056
3057 2008-03-06  Simon Josefsson  <simon@josefsson.org>
3058
3059         * doc/gnulib.texi (__func__): Use C99 terminology when talking
3060         about __func__.  Make example self-contained.  Suggested by Eric
3061         Blake <ebb9@byu.net>.
3062
3063         * tests/test-__func__.c (main): Avoid extraneous () around __func.
3064         Suggested by Eric Blake <ebb9@byu.net>.
3065
3066 2008-03-06  Simon Josefsson  <simon@josefsson.org>
3067
3068         * modules/__func__: New file.
3069         * modules/__func__-tests: New file.
3070         * tests/test-__func__.c: New file.
3071         * m4/__func__.m4: New file.
3072         * doc/gnulib.texi (__func__): Document __func__ module.
3073
3074 2008-03-05  Simon Josefsson  <simon@josefsson.org>
3075
3076         * modules/byteswap (License): Re-license as LGPLv2+.
3077
3078 2008-03-05  Simon Josefsson  <simon@josefsson.org>
3079
3080         * doc/Makefile: Add pdf target.
3081
3082 2008-03-05  Simon Josefsson  <simon@josefsson.org>
3083
3084         * modules/inline (License): Use 'unlimited', since there are only
3085         *.m4 files in this module.
3086
3087 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
3088             Bruno Haible  <bruno@clisp.org>
3089
3090         Add support for HP C 7.1 on OpenVMS 8.3.
3091         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
3092
3093 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
3094
3095         Update VMS specifics.
3096         * lib/getopt.c [VMS]: Remove include of unixlib.h.
3097
3098 2008-03-02  Jim Meyering  <meyering@redhat.com>
3099
3100         Remove the last dependency on the "free" module.
3101         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
3102         Reported by Bob Proulx.
3103
3104         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
3105
3106         Remove useless "if" tests before free.  Deprecate "free" module.
3107         * doc/posix-functions/free.texi: Mention that this
3108         module is no longer useful.
3109         * modules/free (Notice): Say this module is obsolete.
3110         * modules/readutmp (Depends-on): Remove free.
3111         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
3112         * lib/putenv.c (putenv): Likewise.
3113         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
3114         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
3115         * tests/test-c-strcasestr.c (main): Likewise.
3116         * tests/test-c-strstr.c (main): Likewise.
3117         * tests/test-mbscasestr1.c (main): Likewise.
3118         * tests/test-mbscasestr2.c (main): Likewise.
3119         * tests/test-mbsstr1.c (main): Likewise.
3120         * tests/test-mbsstr2.c (main): Likewise.
3121         * tests/test-memmem.c (main): Likewise.
3122         * tests/test-strcasestr.c (main): Likewise.
3123         * tests/test-striconv.c (main): Likewise.
3124         * tests/test-striconveh.c (main): Likewise.
3125         * tests/test-striconveha.c (main): Likewise.
3126         * tests/test-strstr.c (main): Likewise.
3127
3128         * build-aux/git-version-gen: Adjust a comment and the Usage string.
3129
3130         bootstrap: sync from coreutils again
3131         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
3132
3133 2008-03-01  Jim Meyering  <meyering@redhat.com>
3134
3135         bootstrap: sync from coreutils
3136         * build-aux/bootstrap (update_po_files): Copy a .po file into place
3137         also when the target doesn't exist.
3138
3139 2008-03-01  Eric Blake  <ebb9@byu.net>
3140
3141         Fix bugs in last patch.
3142         * lib/memchr2.c (memchr2): Fix typo.
3143         * tests/test-memchr2.c: Test previous bug, and don't use GNU
3144         extension.
3145         Reported by Bruce Korb.
3146
3147         New module 'memchr2'.
3148         * modules/memchr2: New file.
3149         * modules/memchr2-tests: Likewise.
3150         * lib/memchr2.h: Likewise.
3151         * lib/memchr2.c: Likewise, based on memchr.c.
3152         * tests/test-memchr2.c: New test.
3153         * MODULES.html.sh (String handling): Add memchr2.
3154
3155 2008-02-29  Bruno Haible  <bruno@clisp.org>
3156
3157         * modules/freadseek-tests: New file.
3158         * tests/test-freadseek.sh: New file.
3159         * tests/test-freadseek.c: New file.
3160
3161         New module 'freadseek'.
3162         * modules/freadseek: New file.
3163         * lib/freadseek.h: New file.
3164         * lib/freadseek.c: New file.
3165         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
3166
3167 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
3168
3169         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
3170         wydawca.
3171
3172         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
3173         program_invocation_name and program_invocation_short_name are
3174         present.
3175
3176 2008-02-28  Bruno Haible  <bruno@clisp.org>
3177
3178         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
3179         * tests/test-freadptr.sh: Also test non-seekable stdin.
3180
3181 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
3182
3183         * build-aux/bootstrap (source_base, m4_base)
3184         (doc_base, tests_base): New variables.
3185         (gnulib_tool_options): Do not hardcode base directories, use
3186         the above variables instead.
3187
3188 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
3189
3190         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
3191
3192 2008-02-28  Bruno Haible  <bruno@clisp.org>
3193
3194         * modules/freadptr-tests: New file.
3195         * tests/test-freadptr.sh: New file.
3196         * tests/test-freadptr.c: New file.
3197
3198         New module 'freadptr'.
3199         * modules/freadptr: New file.
3200         * lib/freadptr.h: New file.
3201         * lib/freadptr.c: New file.
3202         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
3203
3204 2008-02-26  Karl Berry  <karl@freefriends.org>
3205
3206         Sync from Libtool:
3207         * libltdl/argz.c (argz_add, argz_count): New functions.
3208         * libltdl/argz.in.h: Declare them.
3209         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
3210
3211 2008-02-22  Bruno Haible  <bruno@clisp.org>
3212
3213         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
3214         is a pointer type.  Needed for HP-UX 10.
3215         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
3216         * doc/posix-functions/gmtime_r.texi: Likewise.
3217         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
3218
3219 2008-02-24  Bruno Haible  <bruno@clisp.org>
3220
3221         * modules/environ-tests: New file.
3222         * tests/test-environ.c: New file.
3223
3224         New module 'environ'.
3225         * modules/environ: New file.
3226         * lib/unistd.in.h (environ): New declaration.
3227         * m4/environ.m4: New file.
3228         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
3229         after use.
3230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
3231         HAVE_DECL_ENVIRON.
3232         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
3233         HAVE_DECL_ENVIRON.
3234         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
3235         wrong claim that 'environ' is missing on some systems.
3236         * modules/execute (Depends-on): Add environ.
3237         * lib/execute.c (environ): Remove fallback declaration.
3238         * modules/pipe (Depends-on): Add environ.
3239         * lib/pipe.c (environ): Remove fallback declaration.
3240         * modules/setenv (Depends-on): Add environ.
3241         * lib/setenv.c (environ): Remove fallback declaration.
3242         * modules/unsetenv (Depends-on): Add environ.
3243         * lib/unsetenv.c (environ): Remove fallback declaration.
3244         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
3245         m4/environ.m4.
3246         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
3247         (gl_PREREQ_UNSETENV): Likewise.
3248
3249 2008-02-24  Bruno Haible  <bruno@clisp.org>
3250
3251         * doc/posix-functions/environ.texi: Document the MacOS X problem.
3252
3253 2008-02-20  Bob Proulx  <bob@proulx.com>
3254
3255         Enable use of older two part flavor 'git describe'.
3256         * build-aux/git-version-gen: If using the older two part flavor of
3257         git version then recreate the third part now present in the
3258         newer three part flavor of git describe.
3259
3260 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
3261
3262         * lib/fts.c (fts_build): Typo correction to comment.
3263
3264 2008-02-17  Bruno Haible  <bruno@clisp.org>
3265
3266         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
3267         generating no-op conflicts.
3268
3269 2008-02-17  Bruno Haible  <bruno@clisp.org>
3270
3271         Speed up by 10%.
3272         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
3273         result_entries, rather than an index-based loop.
3274
3275 2008-02-17  Bruno Haible  <bruno@clisp.org>
3276
3277         Speed up by 25%.
3278         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
3279         'hashcode_cached'.
3280         (entry_create): New function.
3281         (entry_hashcode): Use the cached hashcode if possible.
3282         (read_changelog_file, try_split_merged_entry): Use entry_create.
3283
3284 2008-02-17  Bruno Haible  <bruno@clisp.org>
3285
3286         Speed up from O(n^2) to O(n) for long ChangeLog files.
3287         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
3288         (read_changelog_file): Change implementation of entries_reversed list
3289         to rbtreehash.
3290         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
3291
3292 2008-02-17  Bruno Haible  <bruno@clisp.org>
3293
3294         New option --split-merged-entry.
3295         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
3296         (find_paragraph_end, try_split_merged_entry): New functions.
3297         (long_options): Add option --split-merged-entry.
3298         (usage): Document option --split-merged-entry.
3299         (main): Implement option --split-merged-entry.
3300         Reported by Eric Blake.
3301
3302 2008-02-17  Bruno Haible  <bruno@clisp.org>
3303
3304         * lib/git-merge-changelog.c: Include c-strstr.h.
3305         (main): Support the "git pull --rebase" situation.
3306         * modules/git-merge-changelog (Depends-on): Add c-strstr.
3307         Reported by Eric Blake.
3308
3309 2008-02-16  Eric Blake  <ebb9@byu.net>
3310
3311         Avoid doubling \ in common case of "c-maybe" quoting style.
3312         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
3313         eliding outer quotes.
3314         * lib/quotearg.h: Document this.
3315         * tests/test-quotearg.c (result_strings, inputs, results_g)
3316         (flag_results, locale_results): Test it by adding a new string to
3317         each test group.
3318         (compare_strings): Test new string.
3319
3320 2008-02-13  Eric Blake  <ebb9@byu.net>
3321
3322         Avoid trigraph quoting in default output.
3323         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
3324         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
3325         unless explicitly requested.
3326         * tests/test-quotearg.c (flag_results, main): Add additional tests.
3327
3328 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
3329
3330         Don't rely on signed integer overflowing to negative value.
3331         * lib/getugroups.c (getugroups): Include <limits.h>.
3332         Instead, compare against INT_MAX, and increment only if the test passes.
3333
3334 2008-02-13  Jim Meyering  <meyering@redhat.com>
3335         and Eric Blake  <ebb9@byu.net>
3336
3337         Avoid shadowing warning and compile errors on Linux.
3338         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
3339         forwarding macros on Linux.
3340         (dcgettext): Define a stub, for Linux.
3341         (results_g, main): Avoid warnings.
3342
3343 2008-02-12  Eric Blake  <ebb9@byu.net>
3344
3345         Silence warning in last patch.
3346         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
3347
3348         Quotearg part 4: add tests, fix c-maybe colon quoting.
3349         * lib/quotearg.h: Improve documentation.
3350         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
3351         escapes when adding outer quotes.  When quoting trigraphs, use
3352         valid C notation.  When quoting NUL, omit extra characters if next
3353         character is not digit.  Alter prototype.
3354         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
3355         callers.
3356         * modules/quotearg-tests: New module.
3357         * tests/test-quotearg.c: New test.
3358
3359 2008-02-07  Eric Blake  <ebb9@byu.net>
3360
3361         Quotearg part 3: add flag to control outer quote elision.
3362         * lib/quotearg.h (c_maybe_quoting_style): New style.
3363         (enum quoting_flags): Better documentation of flags.
3364         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
3365         c-maybe style.
3366         (quotearg_buffer_restyled): Handle new flag to elide outer
3367         quotes.
3368
3369         Quotearg part 2: add flag that can control NUL elision.
3370         * lib/quotearg.h (set_quoting_flags): New prototype.
3371         * lib/quotearg.c (struct quoting_options): Add flag field.
3372         (set_quoting_flags): New function.
3373         (quotearg_buffer_restyled): Add flags parameter.
3374         (quotearg_alloc_mem): Set the flag if length cannot be returned.
3375         (quotearg_n_options): Set the flag, since length cannot be
3376         returned.
3377         (quoting_options_from_style): Default flags correctly.
3378
3379         Quotearg part 1: more wrappers, restore quotearg_char state.
3380         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
3381         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
3382         (quotearg_colon_mem): New wrappers.
3383         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
3384         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
3385         functions.
3386         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
3387         (quotearg_colon_mem): New functions.
3388
3389 2008-02-11  Bruno Haible  <bruno@clisp.org>
3390
3391         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
3392         library in the current directory: it does not work with parallel make.
3393         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3394
3395 2008-02-11  Bruno Haible  <bruno@clisp.org>
3396
3397         * .gitattributes: New file.
3398
3399 2008-02-11  Jim Meyering  <meyering@redhat.com>
3400
3401         useless-if-before-free: Fix reversed exit values.
3402         * build-aux/useless-if-before-free: Use correct values
3403         for EXIT_MATCH and EXIT_NO_MATCH.
3404
3405         * build-aux/useless-if-before-free: Close stdout carefully.
3406
3407 2008-02-10  Bruno Haible  <bruno@clisp.org>
3408
3409         New module 'git-merge-changelog'.
3410         * modules/git-merge-changelog: New file.
3411         * lib/git-merge-changelog.c: New file.
3412
3413 2008-02-10  Jim Meyering  <meyering@redhat.com>
3414
3415         useless-if-before-free: New option: --list (-l).
3416
3417         useless-if-before-free: Don't exit immediately upon open failure.
3418         * build-aux/useless-if-before-free: Exit 2 for errors.
3419         Upon failure to open a file, don't exit immediately.
3420         Rather, just warn and continue with any remaining files.
3421
3422 2008-02-10  Bruno Haible  <bruno@clisp.org>
3423
3424         New abstract list operation 'node_set_value'.
3425         * lib/gl_list.h (gl_list_node_set_value): New function.
3426         (struct gl_list_implementation): New field node_set_value.
3427         * lib/gl_list.c (gl_list_node_set_value): New function.
3428         * lib/gl_array_list.c (gl_array_node_set_value): New function.
3429         (gl_array_list_implementation): Update.
3430         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
3431         (gl_carray_list_implementation): Update.
3432         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
3433         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3434         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3435         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
3436         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3437         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3438         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3439         Update.
3440         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
3441         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
3442         (gl_sublist_list_implementation): Update.
3443
3444 2008-02-10  Bruno Haible  <bruno@clisp.org>
3445
3446         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
3447         Needed when ELEMENT is #defined to 'some_type *'.
3448
3449 2008-02-10  Jim Meyering  <meyering@redhat.com>
3450
3451         New script and module: useless-if-before-free
3452         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
3453         * build-aux/useless-if-before-free: New file.
3454         * modules/useless-if-before-free: New file.
3455
3456         * build-aux/gitlog-to-changelog: Use committer date, not author date.
3457
3458         xstrtol_error: Fix typo.
3459         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
3460         s/exit_failure/exit_status/.
3461
3462 2008-02-09  Jim Meyering  <meyering@redhat.com>
3463
3464         New script and module: gitlog-to-changelog
3465         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
3466         * modules/gitlog-to-changelog: New file.
3467         * build-aux/gitlog-to-changelog: New file.
3468
3469 2008-02-08  Jim Meyering  <meyering@redhat.com>
3470
3471         Avoid two "parameter unused" warnings.
3472         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
3473         Mark "st" as used.
3474
3475         Use "git COMMAND", not "git-COMMAND".
3476         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
3477         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
3478         * build-aux/git-version-gen: Use "git status", not "git-status".
3479
3480 2008-02-07  Bruno Haible  <bruno@clisp.org>
3481
3482         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
3483         Avoids a crash on Windows Vista.
3484         Reported by Adam Strzelecki <ono@java.pl> via
3485         Simon Josefsson <simon@josefsson.org>.
3486
3487 2008-02-06  Bruno Haible  <bruno@clisp.org>
3488
3489         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
3490         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
3491         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
3492         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
3493         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3494         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3495         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
3496         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
3497         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3498         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3499         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3500         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3501         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3502         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3503         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3504         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
3505         left-adjust flag.
3506         * tests/test-snprintf-posix.h (test_function): Likewise.
3507         * tests/test-sprintf-posix.h (test_function): Likewise.
3508         * tests/test-vasprintf-posix.c (test_function): Likewise.
3509         * doc/posix-functions/fprintf.texi: Update.
3510         * doc/posix-functions/printf.texi: Update.
3511         * doc/posix-functions/snprintf.texi: Update.
3512         * doc/posix-functions/sprintf.texi: Update.
3513         * doc/posix-functions/vfprintf.texi: Update.
3514         * doc/posix-functions/vprintf.texi: Update.
3515         * doc/posix-functions/vsnprintf.texi: Update.
3516         * doc/posix-functions/vsprintf.texi: Update.
3517         Reported by Peter Fales <psfales@alcatel-lucent.com>.
3518
3519 2008-02-06  Bruno Haible  <bruno@clisp.org>
3520
3521         Fix bug introduced on 2008-01-26.
3522         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
3523
3524 2008-02-06  Bruno Haible  <bruno@clisp.org>
3525
3526         Fix bug introduced on 2007-06-10.
3527         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
3528         !NEED_PRINTF_FLAG_ZERO.
3529
3530 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
3531
3532         getloadavg: use libperfstat on AIX5
3533         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
3534
3535 2008-02-03  Bruno Haible  <bruno@clisp.org>
3536
3537         * lib/diffseq.h: Add comments about required #includes.
3538         Reported by Michael Biggs <gnulib@doubleplum.net>.
3539
3540 2008-02-01  Bruno Haible  <bruno@clisp.org>
3541
3542         * users.txt: Add gnuit.
3543
3544 2008-01-31  Bruno Haible  <bruno@clisp.org>
3545
3546         * lib/md4.c (set_uint32): Mark as inline.
3547         * lib/md5.c (set_uint32): Likewise.
3548         * lib/sha1.c (set_uint32): Likewise.
3549         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
3550         * m4/md5.m4 (gl_MD5): Likewise.
3551         * m4/sha1.m4 (gl_SHA1): Likewise.
3552
3553 2008-01-31  Jim Meyering  <meyering@redhat.com>
3554
3555         Use "sizeof VAR", rather than a literal "4".
3556         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
3557         * lib/md4.c (md4_read_ctx): Likewise.
3558         * lib/sha1.c (sha1_read_ctx): Likewise.
3559
3560 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3561
3562         * tests/test-sha1.c: New file, based on test-md5.c.
3563
3564         * modules/crypto/sha1-tests: New file.
3565
3566 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3567
3568         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
3569
3570 2008-01-31  Jim Meyering  <meyering@redhat.com>
3571
3572         Prefer "sizeof v" over the equivalent "4".
3573         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
3574         * lib/md5.c (set_uint32): Likewise.
3575         * lib/sha1.c (set_uint32): Likewise.
3576
3577 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3578
3579         * lib/sha1.c (set_uint32): Mark function as static.
3580
3581 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3582
3583         md2: clarify comments to say that alignment is not required.
3584         * lib/md2.h: Remove warning about alignment in comment.
3585         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
3586         never been required.
3587
3588 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3589
3590         md4: adapt alignment constraint fix from sha1.
3591         * lib/md4.c (set_uint32): New function, from sha1.c
3592         (md4_read_ctx): Use it.
3593         (md4_finish_ctx): Doc fix.
3594         * lib/md4.h: Doc fix.
3595
3596 2008-01-31  Simon Josefsson  <simon@josefsson.org>
3597
3598         md5: adapt alignment constraint fix from sha1.
3599         * lib/md5.c (set_uint32): New function, from sha1.c
3600         (md5_read_ctx): Use it.
3601         (md5_finish_ctx): Doc fix.
3602         * lib/md5.h: Doc fix.
3603
3604 2008-01-30  Peter Palfrader  <weasel@debian.org>
3605
3606         sha1: remove the result buffer alignment constraint
3607         * lib/sha1.c (set_uint32): New function.
3608         (sha1_read_ctx): Rewrite to remove the result buffer alignment
3609         constraint.
3610         (sha1_finish_ctx): Remove comment warning about alignment constraint.
3611         * lib/sha1.h: Likewise.
3612
3613 2008-01-30  Andreas Schwab  <schwab@suse.de>
3614             Bruno Haible  <bruno@clisp.org>
3615
3616         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
3617         correct definition of LDBL_MIN_EXP.
3618
3619 2008-01-30  Karl Berry  <karl@gnu.org>
3620
3621         * config/srclist-update: try to preserve x bit on updates.
3622         * config/srclistvars.sh: update for karl.
3623
3624 2008-01-29  Jim Meyering  <meyering@redhat.com>
3625
3626         vasnprintf.c: Avoid warning about unused label
3627         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
3628         "overflow" label definition and associated code with the
3629         same cpp condition that guards the sole use of that label.
3630
3631 2008-01-26  Bruno Haible  <bruno@clisp.org>
3632
3633         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3634         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
3635         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
3636         * lib/isnanl-nolibm.h (isnanl): Likewise.
3637         Reported by Paul Eggert <eggert@cs.ucla.edu>.
3638
3639 2008-01-26  Bruno Haible  <bruno@clisp.org>
3640
3641         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
3642         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
3643
3644 2008-01-26  Bruno Haible  <bruno@clisp.org>
3645
3646         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
3647         GCC >= 4.0 built-in.
3648         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
3649
3650 2008-01-26  Bruno Haible  <bruno@clisp.org>
3651
3652         Rename isnan, applicable to 'double' only, to isnand.
3653         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
3654         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
3655         (configure.ac): Update.
3656         (Include): Replace "isnan.h" with "isnand.h".
3657         * m4/isnand.m4: Renamed from m4/isnan.m4.
3658         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
3659         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
3660         instead of isnan.c.
3661         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
3662         instead of HAVE_ISNAN_IN_LIBC.
3663         (isnand): Renamed from isnan.
3664         * lib/isnand.c: New file.
3665         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
3666         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
3667         (Makefile.am): Update.
3668         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
3669         Include isnand.h instead of isnan.h.
3670         (main): Test isnand instead of isnan.
3671         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
3672         isnan-nolibm.
3673         * modules/frexp (Depends-on): Likewise.
3674         * modules/frexp-tests (Depends-on): Likewise.
3675         * modules/frexp-nolibm (Depends-on): Likewise.
3676         * modules/frexp-nolibm-tests (Depends-on): Likewise.
3677         * modules/isfinite (Depends-on): Likewise.
3678         * modules/round-tests (Depends-on): Likewise.
3679         * modules/signbit (Depends-on): Likewise.
3680         * modules/signbit-tests (Depends-on): Likewise.
3681         * modules/snprintf-posix (Depends-on): Likewise.
3682         * modules/sprintf-posix (Depends-on): Likewise.
3683         * modules/trunc-tests (Depends-on): Likewise.
3684         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3685         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3686         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3687         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3688         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3689         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3690         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3691         * modules/vasnprintf-posix (Depends-on): Likewise.
3692         * modules/vasprintf-posix (Depends-on): Likewise.
3693         * modules/vfprintf-posix (Depends-on): Likewise.
3694         * modules/vsnprintf-posix (Depends-on): Likewise.
3695         * modules/vsprintf-posix (Depends-on): Likewise.
3696         * lib/frexp.c: Include isnand.h instead of isnan.h.
3697         (ISNAN): Set to isnand instead of isnan.
3698         * lib/isfinite.c: Include isnand.h instead of isnan.h.
3699         (gl_isfinited): Use isnand instead of isnan.
3700         * lib/signbitd.c: Include isnand.h instead of isnan.h.
3701         (gl_signbitd): Use isnand instead of isnan.
3702         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
3703         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
3704         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
3705         (main): Use isnand instead of isnan.
3706         * tests/test-round1.c: Include isnand.h.
3707         (main): Use isnand instead of isnan.
3708         * tests/test-round2.c: Include isnand.h instead of isnan.h.
3709         (ISNAN): Set to isnand instead of isnan.
3710         * tests/test-trunc1.c: Include isnand.h.
3711         (main): Use isnand instead of isnan.
3712         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
3713         (equal): Use isnand instead of isnan.
3714         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
3715         isnand-nolibm.
3716         * NEWS: Mention the change.
3717
3718 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3719             Bruno Haible  <bruno@clisp.org>
3720
3721         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
3722         the GCC builtins for signbits are present and set
3723         REPLACE_SIGNBIT_USING_GCC if so.
3724         * lib/math.in.h (signbit): Define using GCC builtins if
3725         REPLACE_SIGNBIT_USING_GCC is set.
3726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3727         REPLACE_SIGNBIT_USING_GCC.
3728         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
3729
3730 2008-01-25  Jim Meyering  <meyering@redhat.com>
3731
3732         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
3733         * lib/poll.c: Include <config.h>, not "config.h".
3734         * tests/test-getaddrinfo.c: Likewise.
3735
3736 2008-01-25  Simon Josefsson  <simon@josefsson.org>
3737
3738         * modules/sockets-tests: New file.
3739
3740 2008-01-24  Simon Josefsson  <simon@josefsson.org>
3741
3742         * modules/sockets: New module, can be used to call WSA_Startup and
3743         WSA_Cleanup when needed.
3744
3745         * lib/sockets.h, lib/sockets.c: New files.
3746
3747         * m4/sockets.m4: New file.
3748
3749         * tests/test-sockets.c: New file.
3750
3751 2008-01-19  Bruno Haible  <bruno@clisp.org>
3752
3753         * doc/posix-headers: Renamed from doc/headers.
3754         * doc/posix-functions: Renamed from doc/functions.
3755         * doc/gnulib.texi: Update.
3756
3757 2008-01-19  Bruno Haible  <bruno@clisp.org>
3758
3759         * doc/glibc-functions/strcasestr.texi: Include contents of
3760         doc/functions/strcasestr.texi, fixing the list of platforms.
3761         * doc/functions/strcasestr.texi: Remove file.
3762
3763 2008-01-19  Bruno Haible  <bruno@clisp.org>
3764
3765         * doc/glibc-functions/memmem.texi: Include contents of
3766         doc/functions/memmem.texi.
3767         * doc/functions/memmem.texi: Remove file.
3768
3769 2008-01-18  Bruno Haible  <bruno@clisp.org>
3770
3771         * doc/glibc-functions/*.texi: New files.
3772         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
3773         to use the new files.
3774
3775 2008-01-17  Bruno Haible  <bruno@clisp.org>
3776
3777         * tests/test-gethostname.c (main): Fix printf statement.
3778
3779 2008-01-17  Simon Josefsson  <simon@josefsson.org>
3780
3781         * modules/gethostname-tests: New file.
3782
3783         * tests/test-gethostname.c: New file.
3784
3785 2008-01-17  Simon Josefsson  <simon@josefsson.org>
3786
3787         * lib/gethostname.c: Include string.h unconditionally, strncpy is
3788         used by the UNAME case.  Reported by Bruno Haible
3789         <bruno@clisp.org>.
3790
3791 2008-01-17  Eric Blake  <ebb9@byu.net>
3792
3793         Convert c-strcasestr to be more efficient.
3794         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
3795         (Depends-on): Add c-strcase, remove malloca, strnlen.
3796         * tests/test-c-strcasestr.c (main): Enhance test.
3797         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
3798
3799 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
3800
3801         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
3802         Use it in creating po/Makevars.
3803
3804 2008-01-15  Simon Josefsson  <simon@josefsson.org>
3805
3806         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
3807         Applications that requires it should initialize libgcrypt
3808         manually.
3809
3810 2008-01-16  Simon Josefsson  <simon@josefsson.org>
3811
3812         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
3813
3814 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
3815
3816         Fix problem with getdate on mingw32 reported by Simon Josefsson
3817         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
3818         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
3819         tzname", when deciding whether to declare tzname.
3820         * lib/strftime.c (tzname): Likewise.
3821
3822 2008-01-15  Bruno Haible  <bruno@clisp.org>
3823
3824         Work around a MacOS X 10.5 bug in frexpl().
3825         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
3826         * doc/functions/frexpl.texi: Document the bug.
3827         Reported by Elias Pipping <pipping@gentoo.org>.
3828
3829 2008-01-14  Eric Blake  <ebb9@byu.net>
3830
3831         Touch up previous patch.
3832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
3833         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
3834
3835         Convert strcasestr module to use Two-Way algorithm.
3836         * modules/strcasestr-simple: New module, based on the old
3837         strcasestr, but with Two-Way rather than KMP.
3838         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
3839         * lib/string.in.h (rpl_strcasestr): Declare.
3840         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
3841         performance.
3842         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
3843         * modules/string (Makefile.am): Support strcasestr.
3844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
3845         * modules/strcasestr-tests (Depends-on): Check for alarm.
3846         * tests/test-strcasestr.c: Augment test.
3847         * lib/str-two-way.h: Clean up stray macro.
3848         * NEWS: Document new module.
3849         * MODULES.html.sh (string handling): Likewise.
3850         * doc/functions/strcasestr.texi: New file.
3851         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
3852         here, since it is not a POSIX function.
3853
3854 2008-01-14  Colin Watson  <cjwatson@debian.org>
3855             Bruno Haible  <bruno@clisp.org>
3856
3857         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
3858         works fine; if not, set REPLACE_STRSIGNAL.
3859         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
3860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3861         REPLACE_STRSIGNAL.
3862         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
3863         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
3864         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
3865
3866 2008-01-14  Bruno Haible  <bruno@clisp.org>
3867
3868         * modules/strsignal (Include): Change to <string.h>.
3869
3870 2008-01-14  Colin Watson  <cjwatson@debian.org>
3871
3872         * modules/argp (Notice): Add a notice recommending to change
3873         XGETTEXT_OPTIONS.
3874         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
3875
3876 2008-01-13  Colin Watson  <cjwatson@debian.org>
3877
3878         * modules/strsignal-tests: New file.
3879         * tests/test-strsignal.c: New file.
3880
3881         * lib/strsignal.c: New file, from glibc with modifications.
3882         * lib/siglist.h: New file, from glibc with modifications.
3883         * lib/string.in.h (strsignal): New declaration.
3884         * m4/strsignal.m4: New file.
3885         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3886         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
3887         * modules/strsignal: New file.
3888         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
3889         HAVE_DECL_STRSIGNAL.
3890
3891 2008-01-13  Bruno Haible  <bruno@clisp.org>
3892
3893         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
3894         locale encoding is not ASCII. Needed for OpenBSD 4.0.
3895         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3896         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3897
3898 2008-01-13  Bruno Haible  <bruno@clisp.org>
3899
3900         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
3901         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
3902         * lib/argp.h (__attribute__): Likewise.
3903         * lib/c-stack.c (__attribute__): Likewise.
3904         * lib/error.h (__attribute__): Likewise.
3905         * lib/fts.c (__attribute__): Likewise.
3906         * lib/openat.h (__attribute__): Likewise.
3907         * lib/stdio.in.h (__attribute__): Likewise.
3908         * lib/string.in.h (__attribute__): Likewise.
3909         * lib/utimens.c (__attribute__): Likewise.
3910         * lib/vasnprintf.h (__attribute__): Likewise.
3911         * lib/xalloc.h (__attribute__): Likewise.
3912         * lib/xprintf.h (__attribute__): Likewise.
3913         * lib/xstrtol.h (__attribute__): Likewise.
3914         * lib/xvasprintf.h (__attribute__): Likewise.
3915
3916 2008-01-12  Bruno Haible  <bruno@clisp.org>
3917
3918         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
3919         * doc/glibc-headers/a.out.texi: New file.
3920         * doc/glibc-headers/aliases.texi: New file.
3921         * doc/glibc-headers/alloca.texi: New file.
3922         * doc/glibc-headers/ar.texi: New file.
3923         * doc/glibc-headers/argp.texi: New file.
3924         * doc/glibc-headers/argz.texi: New file.
3925         * doc/glibc-headers/byteswap.texi: New file.
3926         * doc/glibc-headers/crypt.texi: New file.
3927         * doc/glibc-headers/endian.texi: New file.
3928         * doc/glibc-headers/envz.texi: New file.
3929         * doc/glibc-headers/err.texi: New file.
3930         * doc/glibc-headers/error.texi: New file.
3931         * doc/glibc-headers/execinfo.texi: New file.
3932         * doc/glibc-headers/fpu_control.texi: New file.
3933         * doc/glibc-headers/fstab.texi: New file.
3934         * doc/glibc-headers/fts.texi: New file.
3935         * doc/glibc-headers/getopt.texi: New file.
3936         * doc/glibc-headers/ieee754.texi: New file.
3937         * doc/glibc-headers/ifaddrs.texi: New file.
3938         * doc/glibc-headers/libintl.texi: New file.
3939         * doc/glibc-headers/mcheck.texi: New file.
3940         * doc/glibc-headers/mntent.texi: New file.
3941         * doc/glibc-headers/obstack.texi: New file.
3942         * doc/glibc-headers/paths.texi: New file.
3943         * doc/glibc-headers/printf.texi: New file.
3944         * doc/glibc-headers/pty.texi: New file.
3945         * doc/glibc-headers/resolv.texi: New file.
3946         * doc/glibc-headers/shadow.texi: New file.
3947         * doc/glibc-headers/sysexits.texi: New file.
3948         * doc/glibc-headers/ttyent.texi: New file.
3949
3950 2008-01-12  Jim Meyering  <meyering@redhat.com>
3951
3952         announce-gen: emit Gnulib's git-based version string.
3953         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
3954         New option --gnulib-version=V, where V is expected to be
3955         the output of running git describe in the gnulib directory.
3956         (get_tool_versions): Request feedback on xdelta.  I suspect it's
3957         not useful, and plan to stop publishing an xdelta file with each
3958         coreutils release.
3959
3960         * build-aux/announce-gen: Also check for lzma-compressed files.
3961
3962 2008-01-11  Bruno Haible  <bruno@clisp.org>
3963
3964         * tests/test-memmem.c (main): Increase maximum allowed time.
3965         * tests/test-strstr.c (main): Likewise.
3966
3967 2008-01-11  Bruno Haible  <bruno@clisp.org>
3968
3969         * doc/functions/memmem.texi: Add more precisions about platforms.
3970         * doc/functions/strstr.texi: Likewise.
3971
3972 2008-01-10  Eric Blake  <ebb9@byu.net>
3973
3974         * m4/strstr.m4: Delete cruft from copy-n-paste.
3975         Reported by Bruno Haible.
3976
3977 2008-01-10  Bruno Haible  <bruno@clisp.org>
3978
3979         Make c-strstr rely on strstr.
3980         * lib/c-strstr.c: Don't include str-kmp.h.
3981         (c_strstr): Define in terms of strstr.
3982         * modules/c-strstr (Files): Remove lib/str-kmp.h.
3983         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
3984
3985 2008-01-10  Bruno Haible  <bruno@clisp.org>
3986
3987         * doc/gnulib.texi (String Functions in C Locale): New section.
3988         * doc/c-ctype.texi: New file.
3989         * doc/c-strcase.texi: New file.
3990         * doc/c-strcaseeq.texi: New file.
3991         * doc/c-strcasestr.texi: New file.
3992         * doc/c-strstr.texi: New file.
3993         * doc/c-strtod.texi: New file.
3994         * doc/c-strtold.texi: New file.
3995
3996 2008-01-10  Eric Blake  <ebb9@byu.net>
3997
3998         * lib/relocatable.h: Fix a comment.
3999
4000 2008-01-10  Eric Blake  <ebb9@byu.net>
4001
4002         Share two-way algorithm.
4003         * lib/str-two-way.h: New file, merged from...
4004         * lib/memmem.c: ...here...
4005         * lib/strstr.c: ...and here.
4006         * modules/memmem (Files): Use it.
4007         * modules/strstr (Files): Likewise.
4008
4009         Avoid quadratic strstr implementations.
4010         * lib/strstr.c: New file.
4011         * m4/strstr.m4: Likewise.
4012         * modules/strstr: Likewise.
4013         * modules/strstr-tests: Likewise.
4014         * tests/test-strstr.c: Likewise.
4015         * lib/string.in.h (rpl_strstr): Declare.
4016         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
4017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
4018         * modules/string (Makefile.am): Likewise.
4019         * MODULES.html.sh (string handling): Mention new module.
4020         * doc/functions/strstr.texi (strstr): Document the bug.
4021
4022 2008-01-10  Bruno Haible  <bruno@clisp.org>
4023
4024         * lib/relocatable.h (relocate): State whether result is freshly
4025         allocated or not.
4026         * lib/relocatable.c (relocate): Return a freshly allocated string
4027         instead of a pointer to a privately held string.
4028         Reported by Sylvain Beucler <beuc@gnu.org>.
4029
4030 2008-01-10  Colin Watson  <cjwatson@debian.org>
4031
4032         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
4033         s/S_ISNLK/S_ISLNK/.
4034
4035 2008-01-09  Bruno Haible  <bruno@clisp.org>
4036
4037         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
4038         and other files.
4039         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
4040         if it's only a guess.
4041         * modules/memmem: Simplify by depending on memmem-simple.
4042
4043 2008-01-09  Bruno Haible  <bruno@clisp.org>
4044
4045         Work around OpenBSD 4.0 tdelete() bug.
4046         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
4047         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
4048         macros and don't redefine the enum values.
4049         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
4050         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
4051         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
4052
4053 2008-01-09  Bruno Haible  <bruno@clisp.org>
4054
4055         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
4056         (main): Don't perform the tests if setlocale did not install a UTF-8
4057         locale. Needed on OpenBSD 4.0.
4058         * modules/wcwidth-tests (Depends-on): Add localcharset.
4059
4060 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
4061
4062         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
4063         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
4064         * NEWS: announce this.
4065         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
4066
4067 2008-01-09  Simon Josefsson  <simon@josefsson.org>
4068         and Eric Blake  <ebb9@byu.net>
4069
4070         Add memmem-simple module.
4071         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
4072         (gl_FUNC_MEMMEM): Separate performance from presence checks.
4073         * modules/memmem-simple: New file.
4074         * modules/memmem (Description): Tweak.
4075         * MODULES.html.sh (string handling): Mention new module.
4076         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
4077         addressed by memmem-simple.
4078         * NEWS: Document the difference.
4079
4080 2008-01-09  Eric Blake  <ebb9@byu.net>
4081
4082         Give gcc some memmem optimization hints.
4083         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
4084         (strcasestr): Declare as pure.
4085         * modules/memmem (Maintainer): Claim my implementation.
4086
4087 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4088
4089         Support AIX 6.1 and higher.
4090         * build-aux/config.libpath: Likewise.
4091         * build-aux/config.rpath: Likewise.
4092
4093 2008-01-08  Jim Meyering  <meyering@redhat.com>
4094             Bruno Haible  <bruno@clisp.org>
4095
4096         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
4097         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
4098         Reported by Peter Fales in
4099         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
4100
4101 2008-01-08  Bruno Haible  <bruno@clisp.org>
4102
4103         * modules/unictype/category-of (Depends-on): Add
4104         unictype/category-none.
4105         * modules/unictype/category-and-tests (Depends-on): Add
4106         unictype/category-{L,N,Lu,Nd}.
4107         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
4108         * modules/unictype/category-or-tests (Depends-on): Add
4109         unictype/category-{L,N}.
4110         * modules/unictype/category-name-tests (Depends-on): Add
4111         unictype/category-{Z,Nl}.
4112         Reported by Simon Josefsson.
4113
4114 2008-01-08  Bruno Haible  <bruno@clisp.org>
4115
4116         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
4117         convention better.
4118         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
4119         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
4120         Reported by Peter Miller <millerp@canb.auug.org.au>.
4121
4122 2008-01-08  Eric Blake  <ebb9@byu.net>
4123
4124         Rewrite memmem to guarantee linear complexity without malloc.
4125         * lib/memmem.c (memmem): Use Two-Way rather than
4126         Knuth-Morris-Pratt, to allow O(1) space usage.
4127         (critical_factorization, two_way_short_needle)
4128         (two_way_long_needle): New functions.
4129         (knuth_morris_pratt): Delete.
4130         * modules/memmem (Depends-on): No longer need malloca or stdbool.
4131         Add stdint.
4132         * tests/test-memmem.c (main): Add tests for periodic needle and
4133         sublinear performance.
4134         * doc/functions/memmem.texi (memmem): Document other deficiencies
4135         in cygwin and older glibc.
4136
4137 2008-01-08  Bruno Haible  <bruno@clisp.org>
4138
4139         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
4140         augmentation.
4141
4142 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
4143
4144         Add a configure time option: --disable-acl.
4145         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
4146         AC_ARG_ENABLE(acl).
4147
4148 2008-01-06  Simon Josefsson  <simon@josefsson.org>
4149
4150         * tests/test-localename.c: Don't include obsolete "setenv.h".
4151
4152         * modules/localename-tests (Depends-on): Need unsetenv.
4153
4154 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4155
4156         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
4157
4158 2008-01-06  Colin Watson  <cjwatson@debian.org>
4159
4160         * users.txt: Add man-db.
4161
4162 2008-01-07  Bruno Haible  <bruno@clisp.org>
4163
4164         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
4165         previous section name.
4166
4167 2008-01-07  Bruno Haible  <bruno@clisp.org>
4168
4169         * lib/progname.c (set_program_name): Don't strip off a leading
4170         "lt-" prefix outside a .libs directory.
4171         Suggested by Paul Eggert.
4172
4173 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
4174             Bruno Haible  <bruno@clisp.org>
4175
4176         Improve memory cleanup in 'relocatable' module.
4177         * lib/relocatable.h (compute_curr_prefix): Change return type to
4178         'char *'.
4179         * lib/relocatable.c (compute_curr_prefix): Change return type to
4180         'char *'. Free curr_installdir after use.
4181         (relocate): Free curr_prefix_better after use.
4182         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
4183
4184 2008-01-01  Bruno Haible  <bruno@clisp.org>
4185
4186         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
4187         failure on older glibc systems.
4188         Reported by Peter Fales <psfales@alcatel-lucent.com>.
4189
4190 2008-01-05  Eric Blake  <ebb9@byu.net>
4191
4192         Avoid quadratic system memmem.
4193         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
4194         Reported by Ralf Wildenhues.
4195
4196         Fix memmem test for mingw.
4197         * modules/memmem-tests (configure.ac): Check for alarm.
4198         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
4199         it.
4200         * doc/functions/memmem.texi: New file.
4201         * doc/gnulib.texi (Function Substitutes): Add memmem.
4202         Reported by Bruno Haible.
4203
4204 2008-01-04  Bruno Haible  <bruno@clisp.org>
4205
4206         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
4207         Require gl_HEADER_STRINGS_H_DEFAULTS, not
4208         gl_HEADER_STRING_H_DEFAULTS.
4209
4210 2008-01-04  Eric Blake  <ebb9@byu.net>
4211
4212         Shorten duration of memmem test.
4213         * tests/test-memmem.c (main): Use alarm to declare failure if test
4214         is taking too long.
4215         Reported by Ralf Wildenhues.
4216
4217 2007-12-21  Simon Josefsson  <simon@josefsson.org>
4218
4219         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
4220         string, needed by strerror.
4221
4222 2008-01-03  Colin Watson  <cjwatson@debian.org>
4223             Bruno Haible  <bruno@clisp.org>
4224
4225         * doc/gnulib-tool.texi (Localization): New section.
4226
4227 2008-01-02  Bruno Haible  <bruno@clisp.org>
4228
4229         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
4230         variables to 'unsigned char *' type.
4231         Reported by Paul Eggert.
4232
4233 2008-01-02  Jim Meyering  <jim@meyering.net>
4234
4235         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
4236
4237 2007-12-31  Jim Meyering  <jim@meyering.net>
4238
4239         Avoid use of private FTS type name.
4240         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
4241
4242 2007-12-30  Karl Berry  <karl@gnu.org>
4243
4244         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
4245         work around defect in Texinfo and/or the standalone Info browser.
4246
4247 2007-12-30  Bruno Haible  <bruno@clisp.org>
4248
4249         Unify 5 copies of the KMP code.
4250         * lib/str-kmp.h: New file.
4251         * lib/c-strcasestr.c: Include str-kmp.h.
4252         (knuth_morris_pratt): Remove function.
4253         (c_strcasestr): Update.
4254         * lib/c-strstr.c: Include str-kmp.h.
4255         (knuth_morris_pratt): Remove function.
4256         (c_strcasestr): Update.
4257         * lib/mbscasestr.c: Include str-kmp.h.
4258         (knuth_morris_pratt_unibyte): Remove function.
4259         * lib/mbsstr.c: Include str-kmp.h.
4260         (knuth_morris_pratt_unibyte): Remove function.
4261         * lib/strcasestr.c: Include str-kmp.h.
4262         (knuth_morris_pratt): Remove function.
4263         (strcasestr): Update.
4264         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
4265         * modules/c-strstr (Files): Likewise.
4266         * modules/mbscasestr (Files): Likewise.
4267         * modules/mbsstr (Files): Likewise.
4268         * modules/strcasestr (Files): Likewise.
4269         Suggested by Paul Eggert.
4270
4271 2007-12-30  Bruno Haible  <bruno@clisp.org>
4272
4273         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
4274         defined.
4275
4276 2007-12-30  Bruno Haible  <bruno@clisp.org>
4277
4278         * lib/xmalloca.h: Include xalloc.h.
4279         (xnmalloca): New macro.
4280
4281 2007-12-30  Bruno Haible  <bruno@clisp.org>
4282
4283         * lib/malloca.h (nmalloca): New macro.
4284         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
4285         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
4286         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
4287         knuth_morris_pratt_multibyte): Likewise.
4288         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
4289         knuth_morris_pratt_multibyte): Likewise.
4290         * lib/memmem.c (knuth_morris_pratt): Likewise.
4291         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
4292
4293 2007-12-25  Bruno Haible  <bruno@clisp.org>
4294
4295         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
4296         * lib/glob.c: Don't include openat.h.
4297         (link_exists2_p): Add back the code that deals with the
4298         !GLOB_ALTDIRFUNC case.
4299         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
4300         let it do the filename concatenation.
4301         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
4302         * modules/glob (Depends-on): Remove openat.
4303
4304 2007-12-31  Bruno Haible  <bruno@clisp.org>
4305
4306         * modules/dirfd (License): Change to LGPLv2+.
4307         Approved by Jim Meyering.
4308
4309 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4310
4311         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
4312         when multiplying M by sizeof (size_t).
4313
4314 2007-12-10  Martin Lambers  <marlam@marlam.de>
4315
4316         Override getpagesize on mingw.
4317         * lib/getpagesize.c: New file.
4318         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
4319         * modules/getpagesize (Files): Add lib/getpagesize.c.
4320         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
4321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4322         REPLACE_GETPAGESIZE.
4323         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
4324
4325 2007-12-25  Bruno Haible  <bruno@clisp.org>
4326
4327         * modules/localcharset (Notice): New field.
4328         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
4329         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4330
4331 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4332             Bruno Haible  <bruno@clisp.org>
4333
4334         Avoid using the syntax symbol() in formatted documentation.
4335         * MODULES.html.sh (func_module): When replacing symbol() with a
4336         hyperlink, remove the parentheses. Show an error if some remain.
4337         Recognize and render the '...' syntax.
4338         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
4339         Rework. Add paragraph about GCC's inlining.
4340         * doc/alloca.texi: Likewise.
4341         * doc/error.texi: Remove parentheses from symbol reference.
4342         * doc/gnulib-intro.texi: Likewise.
4343         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
4344         * modules/fnmatch (Description): Reword to say "the ... function".
4345         * modules/full-read (Description): Likewise.
4346         * modules/full-write (Description): Likewise.
4347         * modules/safe-read (Description): Likewise.
4348         * modules/safe-write (Description): Likewise.
4349         * modules/strchrnul (Description): Likewise.
4350         * modules/trim (Description): Likewise.
4351         * modules/error (Description): Remove parentheses from symbol
4352         references.
4353         * modules/verror (Description): Likewise.
4354         Reported by Karl Berry.
4355
4356 2007-12-25  Bruno Haible  <bruno@clisp.org>
4357
4358         Fixup after 2007-10-16 commit.
4359         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
4360
4361 2007-12-24  Bruno Haible  <bruno@clisp.org>
4362
4363         Make --enable-relocatable work with DESTDIR.
4364         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
4365         to compute installdir from destprog.
4366         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
4367         also set the RELOC_DESTDIR variable.
4368         Reported by Левашев Иван <octagram@bluebottle.com>.
4369
4370 2007-12-24  Bruno Haible  <bruno@clisp.org>
4371
4372         Fix link error due to xalloc_die().
4373         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
4374         of xreadlink.
4375         * lib/relocwrapper.c: Update comments.
4376         * build-aux/install-reloc: Remove xreadlink.c from file list.
4377         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
4378         xreadlink.c.
4379         Reported by Левашев Иван <octagram@bluebottle.com>.
4380
4381 2007-12-24  Bruno Haible  <bruno@clisp.org>
4382
4383         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
4384         * lib/setenv.h: Remove file.
4385         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
4386         lib/setenv.h.
4387         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
4388         (Depends-on): Add stdlib.
4389         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
4390         gl_FUNC_UNSETENV.
4391         (Include): Replace setenv.h with <stdlib.h>.
4392         * modules/unsetenv: New file.
4393         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
4394         * lib/unsetenv.c: Include <stdlib.h> first.
4395         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
4396         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
4397         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
4398         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
4399         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
4400         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
4401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
4402         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
4403         * doc/functions/unsetenv.texi: Update.
4404         * modules/xsetenv (Depends-on): Add unsetenv.
4405         * modules/getdate (Depends-on): Likewise.
4406         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
4407         * lib/xsetenv.c: Don't include setenv.h.
4408         * lib/getdate.y: Likewise.
4409         * lib/relocwrapper.c: Likewise.
4410         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
4411         (Depends-on): Add stdlib.
4412         * NEWS: Mention the changes.
4413         Reported by Левашев Иван <octagram@bluebottle.com>.
4414
4415 2007-12-23  Bruno Haible  <bruno@clisp.org>
4416
4417         * lib/memmem.c (memmem): Use lowercase variable names. Tab
4418         indentation.
4419
4420 2007-12-23  Bruno Haible  <bruno@clisp.org>
4421
4422         * lib/c-strcasestr.c: Add more comments.
4423         * lib/c-strstr.c: Likewise.
4424         * lib/mbscasestr.c: Likewise.
4425         * lib/mbsstr.c: Likewise.
4426         * lib/strcasestr.c: Likewise.
4427         * lib/memmem.c: Likewise.
4428
4429 2007-12-23  Bruno Haible  <bruno@clisp.org>
4430
4431         * tests/test-memmem.c: Include <string.h> first.
4432
4433 2007-12-22  Bruno Haible  <bruno@clisp.org>
4434
4435         * gnulib-tool (func_create_testdir): Change $auxdir while generating
4436         the contents of $testsbase.
4437         Reported by Ralf Wildenhues.
4438
4439 2007-12-22  Bruno Haible  <bruno@clisp.org>
4440
4441         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
4442         two variables local_ldadd_before, local_ldadd_last.
4443
4444 2007-12-20  Eric Blake  <ebb9@byu.net>
4445
4446         Work around circular library issue when cross-compiling.
4447         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
4448         that progname.o does not need to pull in rpl_memcmp.
4449
4450 2007-12-19  Eric Blake  <ebb9@byu.net>
4451
4452         Fix memmem to avoid O(n^2) worst-case complexity.
4453         * lib/memmem.c (knuth_morris_pratt): New function.
4454         (memmem): Use it if first few naive iterations fail.
4455         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
4456         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
4457         * modules/memchr (License): Likewise.
4458         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
4459         malloca.
4460         * tests/test-memmem.c: Rewrite, borrowing ideas from
4461         test-mbsstr1.c; the old version wouldn't even compile!
4462         * modules/memmem-tests: New file.
4463         * lib/string.in.h (rpl_memmem): Add declaration.
4464         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
4465         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
4466         REPLACE_MEMMEM.
4467
4468 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4469
4470         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
4471         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
4472         before any system include files, and undef after them all.  This
4473         should fix a problem on VMS reported by John E. Malmberg in
4474         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
4475
4476 2007-12-17  Eric Blake  <ebb9@byu.net>
4477
4478         Revert addition of verify, for BSD/OS.
4479         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
4480         can't handle large files, for the sake of obsolete platforms.
4481         * modules/fseeko (Depends-on): Remove verify.
4482         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
4483         * doc/functions/ftello.texi (ftello): Likewise.
4484         * doc/functions/fgetpos.texi (fgetpos): Likewise.
4485         Reported by Larry Jones.
4486
4487 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
4488
4489         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
4490         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
4491
4492 2007-12-17  Jim Meyering  <meyering@redhat.com>
4493
4494         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
4495         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
4496         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
4497         * modules/getcwd (Depends-on): Add openat.
4498         Reported by Petr Salinger.
4499
4500 2007-12-17  Bruno Haible  <bruno@clisp.org>
4501
4502         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
4503         avoid a segmentation fault of the configure test on x86_64 systems.
4504
4505 2007-12-15  Jim Meyering  <meyering@redhat.com>
4506
4507         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
4508
4509 2007-12-13  Eric Blake  <ebb9@byu.net>
4510
4511         Another fseek test.
4512         * tests/test-fseek.c (main): Also test ungetc handling.
4513         * tests/test-fseeko.c (main): Likewise.
4514         * modules/fseeko (Depends-on): Add verify.
4515         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
4516         large.
4517         Reported by Larry Jones.
4518
4519         Fix fseeko on mingw.
4520         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
4521         seek.
4522
4523         Beef up fseek tests.
4524         * tests/test-fseek.c (main): Also test eof handling.
4525         * tests/test-fseeko.c (main): Likewise.
4526         Reported by Larry Jones.
4527
4528 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
4529
4530         Fix fseeko on BSD-based platforms.
4531         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
4532         successful seek.
4533
4534 2007-12-12  Eric Blake  <ebb9@byu.net>
4535
4536         Allow circular dependency of separate libtests.a
4537         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
4538         when use_libtests.
4539
4540 2007-12-11  Eric Blake  <ebb9@byu.net>
4541
4542         Fix bug with -0.0L in previous patch.
4543         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
4544         * tests/test-isnan.c (main): Also test on zeroes.
4545         * tests/test-isnanf.c (main): Likewise.
4546         * tests/test-isnanl.h (main): Likewise.
4547
4548         Detect pseudo-denormals on x86 even when cross-compiling.
4549         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
4550         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
4551         invalid bit patterns that happen to satisfy ==.
4552
4553         Avoid link failures with separate libtests.a.
4554         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
4555         last, to satisfy circular dependencies.
4556
4557 2007-12-11  Eric Blake  <ebb9@byu.net>
4558         and Bruno Haible  <bruno@clisp.org>
4559
4560         Fix OpenBSD 4.0 <float.h> handling of long double.
4561         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
4562         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
4563         * doc/headers/float.texi (float.h): Document OpenBSD bug.
4564
4565 2007-12-11  Jim Meyering  <meyering@redhat.com>
4566
4567         * users.txt: Add libvirt.
4568
4569         Support versions of autoconf prior to 2.59c.
4570         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
4571         if it is not already defined.
4572
4573 2007-12-09  Bruno Haible  <bruno@clisp.org>
4574
4575         Let 'gnulib-tool --import' collect sources needed for the tests in
4576         tests/ rather than in lib/.
4577         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
4578         argument. If true, add rules to generate libtests.a, and put libtests.a
4579         into $(LDADD). Consider source files in subdirectories and set
4580         uses_subdirs.
4581         (func_emit_initmacro_start, func_emit_initmacro_end,
4582         func_emit_initmacro_done): Pass all arguments explicitly.
4583         (func_import): Determine two module lists main_modules,
4584         testsrelated_modules. Determine use_libtests. Determine two variables
4585         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
4586         instead of just sed_transform_lib_file. Determine two variables
4587         main_files and testsrelated_files. Compute 'files' as the union of
4588         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
4589         func_add_or_update. In the generated gnulib-comp.m4, collect the
4590         object files for tests/ in different variables than those for lib/.
4591         Substitute LIBTESTS_LIBDEPS.
4592         (func_create_testdir): Combine the uses_subdirs results from
4593         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
4594
4595 2007-12-09  Bruno Haible  <bruno@clisp.org>
4596
4597         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
4598         the build-aux directory.
4599
4600 2007-12-09  Bruno Haible  <bruno@clisp.org>
4601
4602         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
4603         introduced on 2006-09-09.
4604
4605 2007-12-07  Jim Meyering  <meyering@redhat.com>
4606
4607         Let these macros work also with autoconf-2.59.
4608         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
4609         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
4610         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4611
4612 2007-12-06  Jim Meyering  <meyering@redhat.com>
4613
4614         Avoid a configure-time syntax error in gl_FUNC_ACL.
4615         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
4616         function in each branch, before testing the cache variable.
4617
4618 2007-12-04  Eric Blake  <ebb9@byu.net>
4619
4620         Make scripts executable.
4621         * build-aux/config.guess: Add execute permissions.
4622         * build-aux/config.sub: Likewise.
4623         * build-aux/gendocs.sh: Likewise.
4624
4625         Fix frexp on mingw.
4626         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
4627         cross-compiling.
4628         * doc/functions/frexp.texi (frexp): Document the bug.
4629
4630         Make cygwin fseeko check more reliable.
4631         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
4632         version numbers, rather than unrelated feature check.
4633         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
4634         * doc/functions/ftello.texi (ftello): Likewise.
4635         Reported by Bruno Haible.
4636
4637         * m4/strerror.m4: Bump version number.
4638
4639 2007-12-03  Bruno Haible  <bruno@clisp.org>
4640
4641         * doc/functions/mprotect.texi: Mention the mingw problem.
4642
4643 2007-12-03  Eric Blake  <ebb9@byu.net>
4644
4645         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
4646         REPLACE_STRERROR is initialized before this macro.
4647
4648 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
4649
4650         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
4651         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
4652         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
4653         put -lsec in even for programs other than 'ls'.  This fixes a problem
4654         for gettext reported by Bruno Haible in
4655         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
4656         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
4657         Add support for Solaris 10.  This isn't efficient, but should get the
4658         job done for now.
4659
4660 2007-12-03  James Youngman  <jay@gnu.org>
4661
4662         * doc/regexprops-generic.texi: change "an close-group" to "a
4663         close-group" and "illegal" to "not allowed".
4664
4665 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4666
4667         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
4668         pr_byname.h. Needed for the rare case when the maintainer has done
4669         "make maintainer-clean" in the source directory and then attempts a
4670         build outside the source directory.
4671         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
4672         scripts_byname.h.
4673
4674 2007-12-02  Martin Lambers <marlam@marlam.de>
4675             Bruno Haible  <bruno@clisp.org>
4676
4677         * lib/getpagesize.h: Remove file.
4678         * lib/unistd.in.h: Include declaration of getpagesize here.
4679         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
4680         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
4681         HAVE_SYS_PARAM_H.
4682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
4683         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4684         * modules/getpagesize (Files): Remove lib/getpagesize.h.
4685         (Depends-on): Add unistd.
4686         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4687         (Include): Use <unistd.h> instead of getpagesize.h.
4688         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
4689         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4690         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
4691         gl_GETPAGESIZE invocation, already handled by module dependency.
4692         * lib/pagealign_alloc.c: Don't include getpagesize.h.
4693
4694 2007-12-02  Bruno Haible  <bruno@clisp.org>
4695
4696         * modules/strings-tests: New file.
4697         * tests/test-strings.c: New file.
4698
4699         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
4700         * lib/strings.in.h: New file.
4701         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
4702         * m4/strings_h.m4: New file.
4703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
4704         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
4705         * modules/strings: New file.
4706         * modules/string (Makefile.am): Update.
4707         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
4708         Reported by Karl Berry.
4709
4710 2007-12-01  Eric Blake  <ebb9@byu.net>
4711
4712         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
4713         accomodate fix in cygwin 1.5.25.
4714
4715 2007-12-01  Jim Meyering  <meyering@redhat.com>
4716
4717         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
4718         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4719         that would inhibit utf8-optimization of a regexp containing line-
4720         or buffer-anchors, e.g., `^', `$'.
4721
4722 2007-11-30  Bruno Haible  <bruno@clisp.org>
4723
4724         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
4725         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
4726         glthread_recursive_lock_init.
4727         * lib/lock.c (glthread_recursive_lock_init)
4728         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
4729         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4730
4731 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4732
4733         New function qset_acl, like set_acl but with syscall semantics.
4734         * lib/acl.h (qset_acl): New decl.
4735         * lib/acl.c (qset_acl): New function.
4736         (set_acl): Use new function.  Use more-consistent diagnostics.
4737
4738 2007-11-28  Jim Meyering  <meyering@redhat.com>
4739
4740         * modules/physmem (License): Change from GPL to LGPLv2+.
4741
4742 2007-11-26  Bruno Haible  <bruno@clisp.org>
4743
4744         * lib/vasnprintf.c (decode_long_double): Don't abort if the
4745         'long double' type has excess precision.
4746         Reported by Jim Meyering in
4747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
4748
4749 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4750
4751         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
4752         Sync from <http://gnu.org/licenses>.
4753         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
4754         with license text from same location.
4755         * doc/maintain.texi, doc/standards.texi:  Sync from
4756         <http://savannah.gnu.org/projects/gnustandards>.
4757
4758 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
4759         and Jim Meyering  <meyering@redhat.com>
4760
4761         Adjust getdate' grammar to accept a slightly more regular language.
4762         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
4763         Before, the former was rejected.
4764         * lib/getdate.y (digits_to_date_time): New function, factored
4765         out of ...
4766         (number): ...here.  Just call digits_to_date_time.
4767         (hybrid): New non-terminal to handle an <unsigned number,
4768         signed relative offset> sequence consistently.
4769
4770 2007-11-18  Jim Meyering  <meyering@redhat.com>
4771
4772         Pull my changes from coreutils:
4773         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
4774         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
4775         use of $gnulib_tool_option_extras, so that it's separated from the
4776         preceding argument.
4777
4778         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
4779         * build-aux/bootstrap (cp_mark_as_generated): Create any required
4780         parent destination directories before copying a file into place.
4781
4782 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
4783
4784         bootstrap: work also with 4-argument variant of AC_INIT
4785         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
4786
4787 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
4788
4789         Port test-getaddrinfo to Solaris.
4790         Problem reported by Bruno Haible in
4791         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
4792         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
4793         explanation of setting 'hints'.
4794         Don't reject an implementation merely because it returns EAI_SERVICE.
4795         (EAI_SERVICE): Define to 0 if not defined.
4796
4797 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
4798
4799         The license of gnu-make and posix-shell is now "GPLed build tool".
4800         * modules/gnu-make (License): Likewise.
4801         * modules/posix-shell (License): Likewise.
4802
4803         New module posix-shell, for determining a POSIX shell
4804         or perhaps something that is close enough to a POSIX shell.
4805         * m4/posix-shell.m4: New file.
4806         * modules/posix-shell: New file.
4807
4808         * MODULES.html.sh: Mention new module.
4809
4810         New module gnu-make, for determining whether we're using GNU Make.
4811         * m4/gnu-make.m4: New file.
4812         * modules/gnu-make: New file.
4813         * MODULES.html.sh: Mention new module.
4814
4815 2007-11-14  Jim Meyering  <meyering@redhat.com>
4816
4817         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
4818         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
4819         use this macro to create a function _definition_.
4820         Remove useless "#undef ARGMATCH_DIE".
4821
4822 2007-11-14  Bruno Haible  <bruno@clisp.org>
4823
4824         * lib/config.charset: Update for OpenBSD 4.1.
4825         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
4826
4827 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
4828
4829         Document 64-bit #if problems in stdint.texi.
4830         * doc/headers/stdint.texi (stdint.h): Mention problems with
4831         64-bit-#if, and how to work around them.
4832
4833         Don't insist on 'long long int' support in the preprocessor.  It
4834         breaks too many things.  For example, PRIdMAX still uses a 'long
4835         long int' format with the latest Sun compiler, even though
4836         HAVE_LONG_LONG_INT isn't defined due to that compiler's
4837         preprocessor problem.  This causes the latest coreutils to dump
4838         core on Solaris 10 sparc with the Sun C compiler.
4839         Instead, fix the 2007-10-16 problem in a different way, by evaluating
4840         the troublesome expressions at configure-time, not at #if-time.
4841         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
4842         preprocessor.
4843         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
4844         compile-time C checks, done at 'configure'-time.
4845         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
4846         * modules/inttypes (Makefile): Substitute the new symbols that
4847         gl_INTTYPES_H now generates.
4848         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
4849
4850 2007-11-12  Bruno Haible  <bruno@clisp.org>
4851
4852         Tests for Unicode character classification functions.
4853
4854         * modules/unictype/bidicategory-byname-tests: New file.
4855         * modules/unictype/bidicategory-name-tests: New file.
4856         * modules/unictype/bidicategory-of-tests: New file.
4857         * modules/unictype/bidicategory-test-tests: New file.
4858         * modules/unictype/block-list-tests: New file.
4859         * modules/unictype/block-of-tests: New file.
4860         * modules/unictype/block-test-tests: New file.
4861         * modules/unictype/category-C-tests: New file.
4862         * modules/unictype/category-Cc-tests: New file.
4863         * modules/unictype/category-Cf-tests: New file.
4864         * modules/unictype/category-Cn-tests: New file.
4865         * modules/unictype/category-Co-tests: New file.
4866         * modules/unictype/category-Cs-tests: New file.
4867         * modules/unictype/category-L-tests: New file.
4868         * modules/unictype/category-Ll-tests: New file.
4869         * modules/unictype/category-Lm-tests: New file.
4870         * modules/unictype/category-Lo-tests: New file.
4871         * modules/unictype/category-Lt-tests: New file.
4872         * modules/unictype/category-Lu-tests: New file.
4873         * modules/unictype/category-M-tests: New file.
4874         * modules/unictype/category-Mc-tests: New file.
4875         * modules/unictype/category-Me-tests: New file.
4876         * modules/unictype/category-Mn-tests: New file.
4877         * modules/unictype/category-N-tests: New file.
4878         * modules/unictype/category-Nd-tests: New file.
4879         * modules/unictype/category-Nl-tests: New file.
4880         * modules/unictype/category-No-tests: New file.
4881         * modules/unictype/category-P-tests: New file.
4882         * modules/unictype/category-Pc-tests: New file.
4883         * modules/unictype/category-Pd-tests: New file.
4884         * modules/unictype/category-Pe-tests: New file.
4885         * modules/unictype/category-Pf-tests: New file.
4886         * modules/unictype/category-Pi-tests: New file.
4887         * modules/unictype/category-Po-tests: New file.
4888         * modules/unictype/category-Ps-tests: New file.
4889         * modules/unictype/category-S-tests: New file.
4890         * modules/unictype/category-Sc-tests: New file.
4891         * modules/unictype/category-Sk-tests: New file.
4892         * modules/unictype/category-Sm-tests: New file.
4893         * modules/unictype/category-So-tests: New file.
4894         * modules/unictype/category-Z-tests: New file.
4895         * modules/unictype/category-Zl-tests: New file.
4896         * modules/unictype/category-Zp-tests: New file.
4897         * modules/unictype/category-Zs-tests: New file.
4898         * modules/unictype/category-and-not-tests: New file.
4899         * modules/unictype/category-and-tests: New file.
4900         * modules/unictype/category-byname-tests: New file.
4901         * modules/unictype/category-name-tests: New file.
4902         * modules/unictype/category-none-tests: New file.
4903         * modules/unictype/category-of-tests: New file.
4904         * modules/unictype/category-or-tests: New file.
4905         * modules/unictype/category-test-withtable-tests: New file.
4906         * modules/unictype/combining-class-tests: New file.
4907         * modules/unictype/ctype-alnum-tests: New file.
4908         * modules/unictype/ctype-alpha-tests: New file.
4909         * modules/unictype/ctype-blank-tests: New file.
4910         * modules/unictype/ctype-cntrl-tests: New file.
4911         * modules/unictype/ctype-digit-tests: New file.
4912         * modules/unictype/ctype-graph-tests: New file.
4913         * modules/unictype/ctype-lower-tests: New file.
4914         * modules/unictype/ctype-print-tests: New file.
4915         * modules/unictype/ctype-punct-tests: New file.
4916         * modules/unictype/ctype-space-tests: New file.
4917         * modules/unictype/ctype-upper-tests: New file.
4918         * modules/unictype/ctype-xdigit-tests: New file.
4919         * modules/unictype/decimal-digit-tests: New file.
4920         * modules/unictype/digit-tests: New file.
4921         * modules/unictype/mirror-tests: New file.
4922         * modules/unictype/numeric-tests: New file.
4923         * modules/unictype/property-alphabetic-tests: New file.
4924         * modules/unictype/property-ascii-hex-digit-tests: New file.
4925         * modules/unictype/property-bidi-arabic-digit-tests: New file.
4926         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
4927         * modules/unictype/property-bidi-block-separator-tests: New file.
4928         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
4929         * modules/unictype/property-bidi-common-separator-tests: New file.
4930         * modules/unictype/property-bidi-control-tests: New file.
4931         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
4932         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
4933         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
4934         * modules/unictype/property-bidi-european-digit-tests: New file.
4935         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
4936         * modules/unictype/property-bidi-left-to-right-tests: New file.
4937         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
4938         * modules/unictype/property-bidi-other-neutral-tests: New file.
4939         * modules/unictype/property-bidi-pdf-tests: New file.
4940         * modules/unictype/property-bidi-segment-separator-tests: New file.
4941         * modules/unictype/property-bidi-whitespace-tests: New file.
4942         * modules/unictype/property-byname-tests: New file.
4943         * modules/unictype/property-combining-tests: New file.
4944         * modules/unictype/property-composite-tests: New file.
4945         * modules/unictype/property-currency-symbol-tests: New file.
4946         * modules/unictype/property-dash-tests: New file.
4947         * modules/unictype/property-decimal-digit-tests: New file.
4948         * modules/unictype/property-default-ignorable-code-point-tests: New file.
4949         * modules/unictype/property-deprecated-tests: New file.
4950         * modules/unictype/property-diacritic-tests: New file.
4951         * modules/unictype/property-extender-tests: New file.
4952         * modules/unictype/property-format-control-tests: New file.
4953         * modules/unictype/property-grapheme-base-tests: New file.
4954         * modules/unictype/property-grapheme-extend-tests: New file.
4955         * modules/unictype/property-grapheme-link-tests: New file.
4956         * modules/unictype/property-hex-digit-tests: New file.
4957         * modules/unictype/property-hyphen-tests: New file.
4958         * modules/unictype/property-id-continue-tests: New file.
4959         * modules/unictype/property-id-start-tests: New file.
4960         * modules/unictype/property-ideographic-tests: New file.
4961         * modules/unictype/property-ids-binary-operator-tests: New file.
4962         * modules/unictype/property-ids-trinary-operator-tests: New file.
4963         * modules/unictype/property-ignorable-control-tests: New file.
4964         * modules/unictype/property-iso-control-tests: New file.
4965         * modules/unictype/property-join-control-tests: New file.
4966         * modules/unictype/property-left-of-pair-tests: New file.
4967         * modules/unictype/property-line-separator-tests: New file.
4968         * modules/unictype/property-logical-order-exception-tests: New file.
4969         * modules/unictype/property-lowercase-tests: New file.
4970         * modules/unictype/property-math-tests: New file.
4971         * modules/unictype/property-non-break-tests: New file.
4972         * modules/unictype/property-not-a-character-tests: New file.
4973         * modules/unictype/property-numeric-tests: New file.
4974         * modules/unictype/property-other-alphabetic-tests: New file.
4975         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
4976         * modules/unictype/property-other-grapheme-extend-tests: New file.
4977         * modules/unictype/property-other-id-continue-tests: New file.
4978         * modules/unictype/property-other-id-start-tests: New file.
4979         * modules/unictype/property-other-lowercase-tests: New file.
4980         * modules/unictype/property-other-math-tests: New file.
4981         * modules/unictype/property-other-uppercase-tests: New file.
4982         * modules/unictype/property-paired-punctuation-tests: New file.
4983         * modules/unictype/property-paragraph-separator-tests: New file.
4984         * modules/unictype/property-pattern-syntax-tests: New file.
4985         * modules/unictype/property-pattern-white-space-tests: New file.
4986         * modules/unictype/property-private-use-tests: New file.
4987         * modules/unictype/property-punctuation-tests: New file.
4988         * modules/unictype/property-quotation-mark-tests: New file.
4989         * modules/unictype/property-radical-tests: New file.
4990         * modules/unictype/property-sentence-terminal-tests: New file.
4991         * modules/unictype/property-soft-dotted-tests: New file.
4992         * modules/unictype/property-space-tests: New file.
4993         * modules/unictype/property-terminal-punctuation-tests: New file.
4994         * modules/unictype/property-test-tests: New file.
4995         * modules/unictype/property-titlecase-tests: New file.
4996         * modules/unictype/property-unassigned-code-value-tests: New file.
4997         * modules/unictype/property-unified-ideograph-tests: New file.
4998         * modules/unictype/property-uppercase-tests: New file.
4999         * modules/unictype/property-variation-selector-tests: New file.
5000         * modules/unictype/property-white-space-tests: New file.
5001         * modules/unictype/property-xid-continue-tests: New file.
5002         * modules/unictype/property-xid-start-tests: New file.
5003         * modules/unictype/property-zero-width-tests: New file.
5004         * modules/unictype/scripts-tests: New file.
5005         * modules/unictype/syntax-c-ident-tests: New file.
5006         * modules/unictype/syntax-c-whitespace-tests: New file.
5007         * modules/unictype/syntax-java-ident-tests: New file.
5008         * modules/unictype/syntax-java-whitespace-tests: New file.
5009         * tests/unictype/test-bidi_byname.c: New file.
5010         * tests/unictype/test-bidi_name.c: New file.
5011         * tests/unictype/test-bidi_of.c: New file.
5012         * tests/unictype/test-bidi_test.c: New file.
5013         * tests/unictype/test-block_list.c: New file.
5014         * tests/unictype/test-block_of.c: New file.
5015         * tests/unictype/test-block_test.c: New file.
5016         * tests/unictype/test-categ_and.c: New file.
5017         * tests/unictype/test-categ_and_not.c: New file.
5018         * tests/unictype/test-categ_byname.c: New file.
5019         * tests/unictype/test-categ_name.c: New file.
5020         * tests/unictype/test-categ_none.c: New file.
5021         * tests/unictype/test-categ_of.c: New file.
5022         * tests/unictype/test-categ_or.c: New file.
5023         * tests/unictype/test-categ_test_withtable.c: New file.
5024         * tests/unictype/test-combining.c: New file.
5025         * tests/unictype/test-decdigit.c: New file.
5026         * tests/unictype/test-digit.c: New file.
5027         * tests/unictype/test-mirror.c: New file.
5028         * tests/unictype/test-numeric.c: New file.
5029         * tests/unictype/test-pr_byname.c: New file.
5030         * tests/unictype/test-pr_test.c: New file.
5031         * tests/unictype/test-predicate-part1.h: New file.
5032         * tests/unictype/test-predicate-part2.h: New file.
5033         * tests/unictype/test-scripts.c: New file.
5034         * tests/unictype/test-sy_c_ident.c: New file.
5035         * tests/unictype/test-sy_java_ident.c: New file.
5036
5037         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
5038         for Unicode 5.0.0.
5039         * tests/unictype/test-categ_Cc.c: Likewise.
5040         * tests/unictype/test-categ_Cf.c: Likewise.
5041         * tests/unictype/test-categ_Cn.c: Likewise.
5042         * tests/unictype/test-categ_Co.c: Likewise.
5043         * tests/unictype/test-categ_Cs.c: Likewise.
5044         * tests/unictype/test-categ_L.c: Likewise.
5045         * tests/unictype/test-categ_Ll.c: Likewise.
5046         * tests/unictype/test-categ_Lm.c: Likewise.
5047         * tests/unictype/test-categ_Lo.c: Likewise.
5048         * tests/unictype/test-categ_Lt.c: Likewise.
5049         * tests/unictype/test-categ_Lu.c: Likewise.
5050         * tests/unictype/test-categ_M.c: Likewise.
5051         * tests/unictype/test-categ_Mc.c: Likewise.
5052         * tests/unictype/test-categ_Me.c: Likewise.
5053         * tests/unictype/test-categ_Mn.c: Likewise.
5054         * tests/unictype/test-categ_N.c: Likewise.
5055         * tests/unictype/test-categ_Nd.c: Likewise.
5056         * tests/unictype/test-categ_Nl.c: Likewise.
5057         * tests/unictype/test-categ_No.c: Likewise.
5058         * tests/unictype/test-categ_P.c: Likewise.
5059         * tests/unictype/test-categ_Pc.c: Likewise.
5060         * tests/unictype/test-categ_Pd.c: Likewise.
5061         * tests/unictype/test-categ_Pe.c: Likewise.
5062         * tests/unictype/test-categ_Pf.c: Likewise.
5063         * tests/unictype/test-categ_Pi.c: Likewise.
5064         * tests/unictype/test-categ_Po.c: Likewise.
5065         * tests/unictype/test-categ_Ps.c: Likewise.
5066         * tests/unictype/test-categ_S.c: Likewise.
5067         * tests/unictype/test-categ_Sc.c: Likewise.
5068         * tests/unictype/test-categ_Sk.c: Likewise.
5069         * tests/unictype/test-categ_Sm.c: Likewise.
5070         * tests/unictype/test-categ_So.c: Likewise.
5071         * tests/unictype/test-categ_Z.c: Likewise.
5072         * tests/unictype/test-categ_Zl.c: Likewise.
5073         * tests/unictype/test-categ_Zp.c: Likewise.
5074         * tests/unictype/test-categ_Zs.c: Likewise.
5075         * tests/unictype/test-ctype_alnum.c: Likewise.
5076         * tests/unictype/test-ctype_alpha.c: Likewise.
5077         * tests/unictype/test-ctype_blank.c: Likewise.
5078         * tests/unictype/test-ctype_cntrl.c: Likewise.
5079         * tests/unictype/test-ctype_digit.c: Likewise.
5080         * tests/unictype/test-ctype_graph.c: Likewise.
5081         * tests/unictype/test-ctype_lower.c: Likewise.
5082         * tests/unictype/test-ctype_print.c: Likewise.
5083         * tests/unictype/test-ctype_punct.c: Likewise.
5084         * tests/unictype/test-ctype_space.c: Likewise.
5085         * tests/unictype/test-ctype_upper.c: Likewise.
5086         * tests/unictype/test-ctype_xdigit.c: Likewise.
5087         * tests/unictype/test-decdigit.h: Likewise.
5088         * tests/unictype/test-digit.h: Likewise.
5089         * tests/unictype/test-numeric.h: Likewise.
5090         * tests/unictype/test-pr_alphabetic.c: Likewise.
5091         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
5092         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5093         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
5094         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
5095         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
5096         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
5097         * tests/unictype/test-pr_bidi_control.c: Likewise.
5098         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
5099         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
5100         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5101         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5102         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5103         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5104         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5105         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5106         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
5107         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
5108         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
5109         * tests/unictype/test-pr_combining.c: Likewise.
5110         * tests/unictype/test-pr_composite.c: Likewise.
5111         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5112         * tests/unictype/test-pr_dash.c: Likewise.
5113         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5114         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
5115         * tests/unictype/test-pr_deprecated.c: Likewise.
5116         * tests/unictype/test-pr_diacritic.c: Likewise.
5117         * tests/unictype/test-pr_extender.c: Likewise.
5118         * tests/unictype/test-pr_format_control.c: Likewise.
5119         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5120         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5121         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5122         * tests/unictype/test-pr_hex_digit.c: Likewise.
5123         * tests/unictype/test-pr_hyphen.c: Likewise.
5124         * tests/unictype/test-pr_id_continue.c: Likewise.
5125         * tests/unictype/test-pr_id_start.c: Likewise.
5126         * tests/unictype/test-pr_ideographic.c: Likewise.
5127         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
5128         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
5129         * tests/unictype/test-pr_ignorable_control.c: Likewise.
5130         * tests/unictype/test-pr_iso_control.c: Likewise.
5131         * tests/unictype/test-pr_join_control.c: Likewise.
5132         * tests/unictype/test-pr_left_of_pair.c: Likewise.
5133         * tests/unictype/test-pr_line_separator.c: Likewise.
5134         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
5135         * tests/unictype/test-pr_lowercase.c: Likewise.
5136         * tests/unictype/test-pr_math.c: Likewise.
5137         * tests/unictype/test-pr_non_break.c: Likewise.
5138         * tests/unictype/test-pr_not_a_character.c: Likewise.
5139         * tests/unictype/test-pr_numeric.c: Likewise.
5140         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5141         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
5142         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
5143         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5144         * tests/unictype/test-pr_other_id_start.c: Likewise.
5145         * tests/unictype/test-pr_other_lowercase.c: Likewise.
5146         * tests/unictype/test-pr_other_math.c: Likewise.
5147         * tests/unictype/test-pr_other_uppercase.c: Likewise.
5148         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
5149         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
5150         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
5151         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
5152         * tests/unictype/test-pr_private_use.c: Likewise.
5153         * tests/unictype/test-pr_punctuation.c: Likewise.
5154         * tests/unictype/test-pr_quotation_mark.c: Likewise.
5155         * tests/unictype/test-pr_radical.c: Likewise.
5156         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5157         * tests/unictype/test-pr_soft_dotted.c: Likewise.
5158         * tests/unictype/test-pr_space.c: Likewise.
5159         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5160         * tests/unictype/test-pr_titlecase.c: Likewise.
5161         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5162         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5163         * tests/unictype/test-pr_uppercase.c: Likewise.
5164         * tests/unictype/test-pr_variation_selector.c: Likewise.
5165         * tests/unictype/test-pr_white_space.c: Likewise.
5166         * tests/unictype/test-pr_xid_continue.c: Likewise.
5167         * tests/unictype/test-pr_xid_start.c: Likewise.
5168         * tests/unictype/test-pr_zero_width.c: Likewise.
5169         * tests/unictype/test-sy_c_whitespace.c: Likewise.
5170         * tests/unictype/test-sy_java_whitespace.c: Likewise.
5171
5172 2007-11-12  Bruno Haible  <bruno@clisp.org>
5173
5174         Unicode character classification functions.
5175         * lib/unictype.h: New file.
5176         * modules/unictype/base: New file.
5177         * modules/unictype/category-L: New file.
5178         * modules/unictype/category-Lu: New file.
5179         * modules/unictype/category-Ll: New file.
5180         * modules/unictype/category-Lt: New file.
5181         * modules/unictype/category-Lm: New file.
5182         * modules/unictype/category-Lo: New file.
5183         * modules/unictype/category-M: New file.
5184         * modules/unictype/category-Mn: New file.
5185         * modules/unictype/category-Mc: New file.
5186         * modules/unictype/category-Me: New file.
5187         * modules/unictype/category-N: New file.
5188         * modules/unictype/category-Nd: New file.
5189         * modules/unictype/category-Nl: New file.
5190         * modules/unictype/category-No: New file.
5191         * modules/unictype/category-P: New file.
5192         * modules/unictype/category-Pc: New file.
5193         * modules/unictype/category-Pd: New file.
5194         * modules/unictype/category-Ps: New file.
5195         * modules/unictype/category-Pe: New file.
5196         * modules/unictype/category-Pi: New file.
5197         * modules/unictype/category-Pf: New file.
5198         * modules/unictype/category-Po: New file.
5199         * modules/unictype/category-S: New file.
5200         * modules/unictype/category-Sm: New file.
5201         * modules/unictype/category-Sc: New file.
5202         * modules/unictype/category-Sk: New file.
5203         * modules/unictype/category-So: New file.
5204         * modules/unictype/category-Z: New file.
5205         * modules/unictype/category-Zs: New file.
5206         * modules/unictype/category-Zl: New file.
5207         * modules/unictype/category-Zp: New file.
5208         * modules/unictype/category-C: New file.
5209         * modules/unictype/category-Cc: New file.
5210         * modules/unictype/category-Cf: New file.
5211         * modules/unictype/category-Cs: New file.
5212         * modules/unictype/category-Co: New file.
5213         * modules/unictype/category-Cn: New file.
5214         * modules/unictype/category-or: New file.
5215         * modules/unictype/category-of: New file.
5216         * modules/unictype/category-test: New file.
5217         * modules/unictype/category-test-withtable: New file.
5218         * modules/unictype/category-byname: New file.
5219         * modules/unictype/category-none: New file.
5220         * modules/unictype/category-and: New file.
5221         * modules/unictype/category-and-not: New file.
5222         * modules/unictype/category-name: New file.
5223         * modules/unictype/combining-class: New file.
5224         * modules/unictype/category-all: New file.
5225         * modules/unictype/bidicategory-all: New file.
5226         * modules/unictype/bidicategory-byname: New file.
5227         * modules/unictype/bidicategory-name: New file.
5228         * modules/unictype/bidicategory-of: New file.
5229         * modules/unictype/bidicategory-test: New file.
5230         * modules/unictype/decimal-digit: New file.
5231         * modules/unictype/digit: New file.
5232         * modules/unictype/numeric: New file.
5233         * modules/unictype/mirror: New file.
5234         * modules/unictype/property-white-space: New file.
5235         * modules/unictype/property-alphabetic: New file.
5236         * modules/unictype/property-other-alphabetic: New file.
5237         * modules/unictype/property-not-a-character: New file.
5238         * modules/unictype/property-default-ignorable-code-point: New file.
5239         * modules/unictype/property-other-default-ignorable-code-point: New
5240         file.
5241         * modules/unictype/property-deprecated: New file.
5242         * modules/unictype/property-logical-order-exception: New file.
5243         * modules/unictype/property-variation-selector: New file.
5244         * modules/unictype/property-private-use: New file.
5245         * modules/unictype/property-unassigned-code-value: New file.
5246         * modules/unictype/property-uppercase: New file.
5247         * modules/unictype/property-other-uppercase: New file.
5248         * modules/unictype/property-lowercase: New file.
5249         * modules/unictype/property-other-lowercase: New file.
5250         * modules/unictype/property-titlecase: New file.
5251         * modules/unictype/property-soft-dotted: New file.
5252         * modules/unictype/property-id-start: New file.
5253         * modules/unictype/property-other-id-start: New file.
5254         * modules/unictype/property-id-continue: New file.
5255         * modules/unictype/property-other-id-continue: New file.
5256         * modules/unictype/property-xid-start: New file.
5257         * modules/unictype/property-xid-continue: New file.
5258         * modules/unictype/property-pattern-white-space: New file.
5259         * modules/unictype/property-pattern-syntax: New file.
5260         * modules/unictype/property-join-control: New file.
5261         * modules/unictype/property-grapheme-base: New file.
5262         * modules/unictype/property-grapheme-extend: New file.
5263         * modules/unictype/property-other-grapheme-extend: New file.
5264         * modules/unictype/property-grapheme-link: New file.
5265         * modules/unictype/property-bidi-control: New file.
5266         * modules/unictype/property-bidi-left-to-right: New file.
5267         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
5268         * modules/unictype/property-bidi-arabic-right-to-left: New file.
5269         * modules/unictype/property-bidi-european-digit: New file.
5270         * modules/unictype/property-bidi-eur-num-separator: New file.
5271         * modules/unictype/property-bidi-eur-num-terminator: New file.
5272         * modules/unictype/property-bidi-arabic-digit: New file.
5273         * modules/unictype/property-bidi-common-separator: New file.
5274         * modules/unictype/property-bidi-block-separator: New file.
5275         * modules/unictype/property-bidi-segment-separator: New file.
5276         * modules/unictype/property-bidi-whitespace: New file.
5277         * modules/unictype/property-bidi-non-spacing-mark: New file.
5278         * modules/unictype/property-bidi-boundary-neutral: New file.
5279         * modules/unictype/property-bidi-pdf: New file.
5280         * modules/unictype/property-bidi-embedding-or-override: New file.
5281         * modules/unictype/property-bidi-other-neutral: New file.
5282         * modules/unictype/property-hex-digit: New file.
5283         * modules/unictype/property-ascii-hex-digit: New file.
5284         * modules/unictype/property-ideographic: New file.
5285         * modules/unictype/property-unified-ideograph: New file.
5286         * modules/unictype/property-radical: New file.
5287         * modules/unictype/property-ids-binary-operator: New file.
5288         * modules/unictype/property-ids-trinary-operator: New file.
5289         * modules/unictype/property-zero-width: New file.
5290         * modules/unictype/property-space: New file.
5291         * modules/unictype/property-non-break: New file.
5292         * modules/unictype/property-iso-control: New file.
5293         * modules/unictype/property-format-control: New file.
5294         * modules/unictype/property-dash: New file.
5295         * modules/unictype/property-hyphen: New file.
5296         * modules/unictype/property-punctuation: New file.
5297         * modules/unictype/property-line-separator: New file.
5298         * modules/unictype/property-paragraph-separator: New file.
5299         * modules/unictype/property-quotation-mark: New file.
5300         * modules/unictype/property-sentence-terminal: New file.
5301         * modules/unictype/property-terminal-punctuation: New file.
5302         * modules/unictype/property-currency-symbol: New file.
5303         * modules/unictype/property-math: New file.
5304         * modules/unictype/property-other-math: New file.
5305         * modules/unictype/property-paired-punctuation: New file.
5306         * modules/unictype/property-left-of-pair: New file.
5307         * modules/unictype/property-combining: New file.
5308         * modules/unictype/property-composite: New file.
5309         * modules/unictype/property-decimal-digit: New file.
5310         * modules/unictype/property-numeric: New file.
5311         * modules/unictype/property-diacritic: New file.
5312         * modules/unictype/property-extender: New file.
5313         * modules/unictype/property-ignorable-control: New file.
5314         * modules/unictype/property-test: New file.
5315         * modules/unictype/property-byname: New file.
5316         * modules/unictype/property-all: New file.
5317         * modules/unictype/scripts: New file.
5318         * modules/unictype/scripts-all: New file.
5319         * modules/unictype/block-of: New file.
5320         * modules/unictype/block-test: New file.
5321         * modules/unictype/block-list: New file.
5322         * modules/unictype/block-all: New file.
5323         * modules/unictype/syntax-c-whitespace: New file.
5324         * modules/unictype/syntax-java-whitespace: New file.
5325         * modules/unictype/syntax-c-ident: New file.
5326         * modules/unictype/syntax-java-ident: New file.
5327         * modules/unictype/ctype-alnum: New file.
5328         * modules/unictype/ctype-alpha: New file.
5329         * modules/unictype/ctype-cntrl: New file.
5330         * modules/unictype/ctype-digit: New file.
5331         * modules/unictype/ctype-graph: New file.
5332         * modules/unictype/ctype-lower: New file.
5333         * modules/unictype/ctype-print: New file.
5334         * modules/unictype/ctype-punct: New file.
5335         * modules/unictype/ctype-space: New file.
5336         * modules/unictype/ctype-upper: New file.
5337         * modules/unictype/ctype-xdigit: New file.
5338         * modules/unictype/ctype-blank: New file.
5339         * lib/unictype/bidi_byname.c: New file.
5340         * lib/unictype/bidi_name.c: New file.
5341         * lib/unictype/bidi_of.c: New file.
5342         * lib/unictype/bidi_test.c: New file.
5343         * lib/unictype/bitmap.h: New file.
5344         * lib/unictype/block_test.c: New file.
5345         * lib/unictype/blocks.c: New file.
5346         * lib/unictype/categ_C.c: New file.
5347         * lib/unictype/categ_Cc.c: New file.
5348         * lib/unictype/categ_Cf.c: New file.
5349         * lib/unictype/categ_Cn.c: New file.
5350         * lib/unictype/categ_Co.c: New file.
5351         * lib/unictype/categ_Cs.c: New file.
5352         * lib/unictype/categ_L.c: New file.
5353         * lib/unictype/categ_Ll.c: New file.
5354         * lib/unictype/categ_Lm.c: New file.
5355         * lib/unictype/categ_Lo.c: New file.
5356         * lib/unictype/categ_Lt.c: New file.
5357         * lib/unictype/categ_Lu.c: New file.
5358         * lib/unictype/categ_M.c: New file.
5359         * lib/unictype/categ_Mc.c: New file.
5360         * lib/unictype/categ_Me.c: New file.
5361         * lib/unictype/categ_Mn.c: New file.
5362         * lib/unictype/categ_N.c: New file.
5363         * lib/unictype/categ_Nd.c: New file.
5364         * lib/unictype/categ_Nl.c: New file.
5365         * lib/unictype/categ_No.c: New file.
5366         * lib/unictype/categ_P.c: New file.
5367         * lib/unictype/categ_Pc.c: New file.
5368         * lib/unictype/categ_Pd.c: New file.
5369         * lib/unictype/categ_Pe.c: New file.
5370         * lib/unictype/categ_Pf.c: New file.
5371         * lib/unictype/categ_Pi.c: New file.
5372         * lib/unictype/categ_Po.c: New file.
5373         * lib/unictype/categ_Ps.c: New file.
5374         * lib/unictype/categ_S.c: New file.
5375         * lib/unictype/categ_Sc.c: New file.
5376         * lib/unictype/categ_Sk.c: New file.
5377         * lib/unictype/categ_Sm.c: New file.
5378         * lib/unictype/categ_So.c: New file.
5379         * lib/unictype/categ_Z.c: New file.
5380         * lib/unictype/categ_Zl.c: New file.
5381         * lib/unictype/categ_Zp.c: New file.
5382         * lib/unictype/categ_Zs.c: New file.
5383         * lib/unictype/categ_and.c: New file.
5384         * lib/unictype/categ_and_not.c: New file.
5385         * lib/unictype/categ_byname.c: New file.
5386         * lib/unictype/categ_name.c: New file.
5387         * lib/unictype/categ_none.c: New file.
5388         * lib/unictype/categ_of.c: New file.
5389         * lib/unictype/categ_or.c: New file.
5390         * lib/unictype/categ_test.c: New file.
5391         * lib/unictype/combining.c: New file.
5392         * lib/unictype/ctype_alnum.c: New file.
5393         * lib/unictype/ctype_alpha.c: New file.
5394         * lib/unictype/ctype_blank.c: New file.
5395         * lib/unictype/ctype_cntrl.c: New file.
5396         * lib/unictype/ctype_digit.c: New file.
5397         * lib/unictype/ctype_graph.c: New file.
5398         * lib/unictype/ctype_lower.c: New file.
5399         * lib/unictype/ctype_print.c: New file.
5400         * lib/unictype/ctype_punct.c: New file.
5401         * lib/unictype/ctype_space.c: New file.
5402         * lib/unictype/ctype_upper.c: New file.
5403         * lib/unictype/ctype_xdigit.c: New file.
5404         * lib/unictype/decdigit.c: New file.
5405         * lib/unictype/digit.c: New file.
5406         * lib/unictype/identsyntaxmap.h: New file.
5407         * lib/unictype/mirror.c: New file.
5408         * lib/unictype/numeric.c: New file.
5409         * lib/unictype/pr_alphabetic.c: New file.
5410         * lib/unictype/pr_ascii_hex_digit.c: New file.
5411         * lib/unictype/pr_bidi_arabic_digit.c: New file.
5412         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
5413         * lib/unictype/pr_bidi_block_separator.c: New file.
5414         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
5415         * lib/unictype/pr_bidi_common_separator.c: New file.
5416         * lib/unictype/pr_bidi_control.c: New file.
5417         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
5418         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
5419         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
5420         * lib/unictype/pr_bidi_european_digit.c: New file.
5421         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
5422         * lib/unictype/pr_bidi_left_to_right.c: New file.
5423         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
5424         * lib/unictype/pr_bidi_other_neutral.c: New file.
5425         * lib/unictype/pr_bidi_pdf.c: New file.
5426         * lib/unictype/pr_bidi_segment_separator.c: New file.
5427         * lib/unictype/pr_bidi_whitespace.c: New file.
5428         * lib/unictype/pr_byname.c: New file.
5429         * lib/unictype/pr_byname.gperf: New file.
5430         * lib/unictype/pr_combining.c: New file.
5431         * lib/unictype/pr_composite.c: New file.
5432         * lib/unictype/pr_currency_symbol.c: New file.
5433         * lib/unictype/pr_dash.c: New file.
5434         * lib/unictype/pr_decimal_digit.c: New file.
5435         * lib/unictype/pr_default_ignorable_code_point.c: New file.
5436         * lib/unictype/pr_deprecated.c: New file.
5437         * lib/unictype/pr_diacritic.c: New file.
5438         * lib/unictype/pr_extender.c: New file.
5439         * lib/unictype/pr_format_control.c: New file.
5440         * lib/unictype/pr_grapheme_base.c: New file.
5441         * lib/unictype/pr_grapheme_extend.c: New file.
5442         * lib/unictype/pr_grapheme_link.c: New file.
5443         * lib/unictype/pr_hex_digit.c: New file.
5444         * lib/unictype/pr_hyphen.c: New file.
5445         * lib/unictype/pr_id_continue.c: New file.
5446         * lib/unictype/pr_id_start.c: New file.
5447         * lib/unictype/pr_ideographic.c: New file.
5448         * lib/unictype/pr_ids_binary_operator.c: New file.
5449         * lib/unictype/pr_ids_trinary_operator.c: New file.
5450         * lib/unictype/pr_ignorable_control.c: New file.
5451         * lib/unictype/pr_iso_control.c: New file.
5452         * lib/unictype/pr_join_control.c: New file.
5453         * lib/unictype/pr_left_of_pair.c: New file.
5454         * lib/unictype/pr_line_separator.c: New file.
5455         * lib/unictype/pr_logical_order_exception.c: New file.
5456         * lib/unictype/pr_lowercase.c: New file.
5457         * lib/unictype/pr_math.c: New file.
5458         * lib/unictype/pr_non_break.c: New file.
5459         * lib/unictype/pr_not_a_character.c: New file.
5460         * lib/unictype/pr_numeric.c: New file.
5461         * lib/unictype/pr_other_alphabetic.c: New file.
5462         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
5463         * lib/unictype/pr_other_grapheme_extend.c: New file.
5464         * lib/unictype/pr_other_id_continue.c: New file.
5465         * lib/unictype/pr_other_id_start.c: New file.
5466         * lib/unictype/pr_other_lowercase.c: New file.
5467         * lib/unictype/pr_other_math.c: New file.
5468         * lib/unictype/pr_other_uppercase.c: New file.
5469         * lib/unictype/pr_paired_punctuation.c: New file.
5470         * lib/unictype/pr_paragraph_separator.c: New file.
5471         * lib/unictype/pr_pattern_syntax.c: New file.
5472         * lib/unictype/pr_pattern_white_space.c: New file.
5473         * lib/unictype/pr_private_use.c: New file.
5474         * lib/unictype/pr_punctuation.c: New file.
5475         * lib/unictype/pr_quotation_mark.c: New file.
5476         * lib/unictype/pr_radical.c: New file.
5477         * lib/unictype/pr_sentence_terminal.c: New file.
5478         * lib/unictype/pr_soft_dotted.c: New file.
5479         * lib/unictype/pr_space.c: New file.
5480         * lib/unictype/pr_terminal_punctuation.c: New file.
5481         * lib/unictype/pr_test.c: New file.
5482         * lib/unictype/pr_titlecase.c: New file.
5483         * lib/unictype/pr_unassigned_code_value.c: New file.
5484         * lib/unictype/pr_unified_ideograph.c: New file.
5485         * lib/unictype/pr_uppercase.c: New file.
5486         * lib/unictype/pr_variation_selector.c: New file.
5487         * lib/unictype/pr_white_space.c: New file.
5488         * lib/unictype/pr_xid_continue.c: New file.
5489         * lib/unictype/pr_xid_start.c: New file.
5490         * lib/unictype/pr_zero_width.c: New file.
5491         * lib/unictype/scripts.c: New file.
5492         * lib/unictype/sy_c_ident.c: New file.
5493         * lib/unictype/sy_c_whitespace.c: New file.
5494         * lib/unictype/sy_java_ident.c: New file.
5495         * lib/unictype/sy_java_whitespace.c: New file.
5496
5497         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
5498         Unicode 5.0.0.
5499         * lib/unictype/blocks.h: Likewise.
5500         * lib/unictype/categ_C.h: Likewise.
5501         * lib/unictype/categ_Cc.h: Likewise.
5502         * lib/unictype/categ_Cf.h: Likewise.
5503         * lib/unictype/categ_Cn.h: Likewise.
5504         * lib/unictype/categ_Co.h: Likewise.
5505         * lib/unictype/categ_Cs.h: Likewise.
5506         * lib/unictype/categ_L.h: Likewise.
5507         * lib/unictype/categ_Ll.h: Likewise.
5508         * lib/unictype/categ_Lm.h: Likewise.
5509         * lib/unictype/categ_Lo.h: Likewise.
5510         * lib/unictype/categ_Lt.h: Likewise.
5511         * lib/unictype/categ_Lu.h: Likewise.
5512         * lib/unictype/categ_M.h: Likewise.
5513         * lib/unictype/categ_Mc.h: Likewise.
5514         * lib/unictype/categ_Me.h: Likewise.
5515         * lib/unictype/categ_Mn.h: Likewise.
5516         * lib/unictype/categ_N.h: Likewise.
5517         * lib/unictype/categ_Nd.h: Likewise.
5518         * lib/unictype/categ_Nl.h: Likewise.
5519         * lib/unictype/categ_No.h: Likewise.
5520         * lib/unictype/categ_P.h: Likewise.
5521         * lib/unictype/categ_Pc.h: Likewise.
5522         * lib/unictype/categ_Pd.h: Likewise.
5523         * lib/unictype/categ_Pe.h: Likewise.
5524         * lib/unictype/categ_Pf.h: Likewise.
5525         * lib/unictype/categ_Pi.h: Likewise.
5526         * lib/unictype/categ_Po.h: Likewise.
5527         * lib/unictype/categ_Ps.h: Likewise.
5528         * lib/unictype/categ_S.h: Likewise.
5529         * lib/unictype/categ_Sc.h: Likewise.
5530         * lib/unictype/categ_Sk.h: Likewise.
5531         * lib/unictype/categ_Sm.h: Likewise.
5532         * lib/unictype/categ_So.h: Likewise.
5533         * lib/unictype/categ_Z.h: Likewise.
5534         * lib/unictype/categ_Zl.h: Likewise.
5535         * lib/unictype/categ_Zp.h: Likewise.
5536         * lib/unictype/categ_Zs.h: Likewise.
5537         * lib/unictype/categ_of.h: Likewise.
5538         * lib/unictype/combining.h: Likewise.
5539         * lib/unictype/ctype_alnum.h: Likewise.
5540         * lib/unictype/ctype_alpha.h: Likewise.
5541         * lib/unictype/ctype_blank.h: Likewise.
5542         * lib/unictype/ctype_cntrl.h: Likewise.
5543         * lib/unictype/ctype_digit.h: Likewise.
5544         * lib/unictype/ctype_graph.h: Likewise.
5545         * lib/unictype/ctype_lower.h: Likewise.
5546         * lib/unictype/ctype_print.h: Likewise.
5547         * lib/unictype/ctype_punct.h: Likewise.
5548         * lib/unictype/ctype_space.h: Likewise.
5549         * lib/unictype/ctype_upper.h: Likewise.
5550         * lib/unictype/ctype_xdigit.h: Likewise.
5551         * lib/unictype/decdigit.h: Likewise.
5552         * lib/unictype/digit.h: Likewise.
5553         * lib/unictype/mirror.h: Likewise.
5554         * lib/unictype/numeric.h: Likewise.
5555         * lib/unictype/pr_alphabetic.h: Likewise.
5556         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5557         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5558         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5559         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5560         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5561         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5562         * lib/unictype/pr_bidi_control.h: Likewise.
5563         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5564         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5565         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5566         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5567         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5568         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5569         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5570         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5571         * lib/unictype/pr_bidi_pdf.h: Likewise.
5572         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5573         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5574         * lib/unictype/pr_combining.h: Likewise.
5575         * lib/unictype/pr_composite.h: Likewise.
5576         * lib/unictype/pr_currency_symbol.h: Likewise.
5577         * lib/unictype/pr_dash.h: Likewise.
5578         * lib/unictype/pr_decimal_digit.h: Likewise.
5579         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5580         * lib/unictype/pr_deprecated.h: Likewise.
5581         * lib/unictype/pr_diacritic.h: Likewise.
5582         * lib/unictype/pr_extender.h: Likewise.
5583         * lib/unictype/pr_format_control.h: Likewise.
5584         * lib/unictype/pr_grapheme_base.h: Likewise.
5585         * lib/unictype/pr_grapheme_extend.h: Likewise.
5586         * lib/unictype/pr_grapheme_link.h: Likewise.
5587         * lib/unictype/pr_hex_digit.h: Likewise.
5588         * lib/unictype/pr_hyphen.h: Likewise.
5589         * lib/unictype/pr_id_continue.h: Likewise.
5590         * lib/unictype/pr_id_start.h: Likewise.
5591         * lib/unictype/pr_ideographic.h: Likewise.
5592         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5593         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5594         * lib/unictype/pr_ignorable_control.h: Likewise.
5595         * lib/unictype/pr_iso_control.h: Likewise.
5596         * lib/unictype/pr_join_control.h: Likewise.
5597         * lib/unictype/pr_left_of_pair.h: Likewise.
5598         * lib/unictype/pr_line_separator.h: Likewise.
5599         * lib/unictype/pr_logical_order_exception.h: Likewise.
5600         * lib/unictype/pr_lowercase.h: Likewise.
5601         * lib/unictype/pr_math.h: Likewise.
5602         * lib/unictype/pr_non_break.h: Likewise.
5603         * lib/unictype/pr_not_a_character.h: Likewise.
5604         * lib/unictype/pr_numeric.h: Likewise.
5605         * lib/unictype/pr_other_alphabetic.h: Likewise.
5606         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5607         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5608         * lib/unictype/pr_other_id_continue.h: Likewise.
5609         * lib/unictype/pr_other_id_start.h: Likewise.
5610         * lib/unictype/pr_other_lowercase.h: Likewise.
5611         * lib/unictype/pr_other_math.h: Likewise.
5612         * lib/unictype/pr_other_uppercase.h: Likewise.
5613         * lib/unictype/pr_paired_punctuation.h: Likewise.
5614         * lib/unictype/pr_paragraph_separator.h: Likewise.
5615         * lib/unictype/pr_pattern_syntax.h: Likewise.
5616         * lib/unictype/pr_pattern_white_space.h: Likewise.
5617         * lib/unictype/pr_private_use.h: Likewise.
5618         * lib/unictype/pr_punctuation.h: Likewise.
5619         * lib/unictype/pr_quotation_mark.h: Likewise.
5620         * lib/unictype/pr_radical.h: Likewise.
5621         * lib/unictype/pr_sentence_terminal.h: Likewise.
5622         * lib/unictype/pr_soft_dotted.h: Likewise.
5623         * lib/unictype/pr_space.h: Likewise.
5624         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5625         * lib/unictype/pr_titlecase.h: Likewise.
5626         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5627         * lib/unictype/pr_unified_ideograph.h: Likewise.
5628         * lib/unictype/pr_uppercase.h: Likewise.
5629         * lib/unictype/pr_variation_selector.h: Likewise.
5630         * lib/unictype/pr_white_space.h: Likewise.
5631         * lib/unictype/pr_xid_continue.h: Likewise.
5632         * lib/unictype/pr_xid_start.h: Likewise.
5633         * lib/unictype/pr_zero_width.h: Likewise.
5634         * lib/unictype/scripts.h: Likewise.
5635         * lib/unictype/scripts_byname.gperf: Likewise.
5636         * lib/unictype/sy_c_ident.h: Likewise.
5637         * lib/unictype/sy_c_whitespace.h: Likewise.
5638         * lib/unictype/sy_java_ident.h: Likewise.
5639         * lib/unictype/sy_java_whitespace.h: Likewise.
5640
5641         * lib/unictype/Makefile: New file.
5642         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
5643         glibc.
5644         * lib/unictype/3level.h: New file, copied from glibc.
5645         * lib/unictype/3levelbit.h: New file.
5646
5647 2007-11-11  Bruno Haible  <bruno@clisp.org>
5648
5649         * modules/gperf: New file.
5650         * modules/iconv_open (Depends-on): Add it.
5651         (Makefile.am): Remove the GPERF definition.
5652
5653 2007-11-11  Bruno Haible  <bruno@clisp.org>
5654
5655         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
5656         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
5657
5658 2007-11-11  Bruno Haible  <bruno@clisp.org>
5659
5660         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
5661         (usage): Remove function.
5662
5663 2007-11-11  Bruno Haible  <bruno@clisp.org>
5664
5665         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
5666         gl_FUNC_CEILF_LIBS.
5667         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
5668         gl_FUNC_CEIL_LIBS.
5669         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
5670         gl_FUNC_CEILL_LIBS.
5671         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
5672         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
5673         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
5674
5675 2007-11-11  Bruno Haible  <bruno@clisp.org>
5676
5677         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
5678         roundf were declared but do not exist on functions.
5679         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
5680         roundl were declared but do not exist on functions.
5681         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
5682         HAVE_FLOORL_AND_CEILL, respectively.
5683         Needed for Sun C on Solaris 10.
5684
5685 2007-11-11  Bruno Haible  <bruno@clisp.org>
5686
5687         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
5688         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
5689         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
5690         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
5691         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
5692         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
5693         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
5694         HAVE_DECL_ROUNDF.
5695         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
5696         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
5697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
5698         of HAVE_DECL_ROUND*.
5699         * modules/math (Makefile.am): Update.
5700
5701 2007-11-10  Bruno Haible  <bruno@clisp.org>
5702
5703         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
5704         ptrdiff_t as m4/intl.m4.
5705
5706 2007-11-10  Jim Meyering  <meyering@redhat.com>
5707
5708         Avoid link failure for the argmatch test.
5709         * tests/test-argmatch.c (usage): Define function to avoid a link
5710         failure: argmatch_die requires a usage function.
5711
5712 2007-11-09  Bruno Haible  <bruno@clisp.org>
5713
5714         * doc/functions/snprintf.texi: Mention BeOS deficiency.
5715         * doc/functions/vsnprintf.texi: Likewise.
5716         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
5717         with a size argument < 2.
5718
5719 2007-11-09  Bruno Haible  <bruno@clisp.org>
5720
5721         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
5722         buffer. Fixes an inefficiency introduced on 2007-11-03.
5723
5724 2007-11-09  Bruno Haible  <bruno@clisp.org>
5725
5726         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
5727         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
5728
5729 2007-11-08  Jim Meyering  <meyering@redhat.com>
5730
5731         Change cache variable name prefix "jm_" to "gl_" everywhere.
5732         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
5733         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
5734         * m4/uptime.m4: s/gl_/jm_/
5735
5736 2007-11-07  Bruno Haible  <bruno@clisp.org>
5737
5738         Update to GNU gettext 0.17.
5739         * m4/intl.m4: Update to GNU gettext 0.17.
5740         * m4/po.m4: Likewise.
5741         * modules/gettext (Files): Remove m4/ulonglong.m4.
5742         (configure.ac): Require gettext infrastructure from version 0.17.
5743
5744 2007-11-06  Bruno Haible  <bruno@clisp.org>
5745
5746         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
5747         symbolic values are not defined in a public header.
5748         * lib/freadable.c (freadable) [QNX]: Likewise.
5749         * lib/freadahead.c (freadahead) [QNX]: Likewise.
5750         * lib/freading.c (freading) [QNX]: Likewise.
5751         * lib/fseterr.c (fseterr) [QNX]: Likewise.
5752         * lib/fwritable.c (fwritable) [QNX]: Likewise.
5753         * lib/fwriting.c (fwriting) [QNX]: Likewise.
5754         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
5755         Reported by Alain Magloire.
5756
5757         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
5758
5759 2007-11-05  Bruno Haible  <bruno@clisp.org>
5760
5761         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
5762         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
5763         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
5764         Reported by Eric Blake.
5765
5766 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5767             Bruno Haible  <bruno@clisp.org>
5768
5769         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
5770         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
5771         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
5772         (malloc): Undefine also before including <stdlib.h>.
5773         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
5774         Needed on OSF/1 4.0.
5775
5776 2007-11-05  Jim Meyering  <meyering@redhat.com>
5777
5778         git-version-gen: sync from coreutils.
5779         * build-aux/git-version-gen: Add comments.
5780         Change the first '-' to '.' in the snapshot version string,
5781         e.g., 6.9-377-08144 -> 6.9.377-08144
5782         Remove first parameter.
5783         Don't declare a version "-dirty" merely because a time
5784         stamp has changed.
5785
5786 2007-11-04  Bruno Haible  <bruno@clisp.org>
5787
5788         * lib/lock.h: Protect all macro definitions containing an 'if'
5789         statement through a "do { ... } while (0)".
5790         * lib/tls.h: Likewise.
5791
5792 2007-11-04  Bruno Haible  <bruno@clisp.org>
5793
5794         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
5795
5796 2007-11-04  Bruno Haible  <bruno@clisp.org>
5797
5798         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
5799         * modules/fprintf-posix (Depends-on): Add nocrash.
5800         * modules/snprintf-posix (Depends-on): Likewise.
5801         * modules/sprintf-posix (Depends-on): Likewise.
5802         * modules/vasnprintf-posix (Depends-on): Likewise.
5803         * modules/vasprintf-posix (Depends-on): Likewise.
5804         * modules/vfprintf-posix (Depends-on): Likewise.
5805         * modules/vsnprintf-posix (Depends-on): Likewise.
5806         * modules/vsprintf-posix (Depends-on): Likewise.
5807         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5808         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5809         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5810         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5811         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5812         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5813         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5814
5815 2007-11-04  Bruno Haible  <bruno@clisp.org>
5816
5817         * modules/nocrash: New file.
5818         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
5819         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
5820
5821 2007-11-04  Bruno Haible  <bruno@clisp.org>
5822
5823         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
5824         precision handling.
5825         * tests/test-vasprintf-posix.c (test_function): Likewise.
5826         * tests/test-snprintf-posix.h (test_function): Likewise.
5827         * tests/test-sprintf-posix.h (test_function): Likewise.
5828
5829         Fix *printf behaviour for large precisions on mingw and BeOS.
5830         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
5831         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
5832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
5833         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5834         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5835         gl_PRINTF_PRECISION and test its result. Invoke
5836         gl_PREREQ_VASNPRINTF_PRECISION.
5837         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5838         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5840         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5841         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5843         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5844         * doc/functions/fprintf.texi: Update.
5845         * doc/functions/printf.texi: Update.
5846         * doc/functions/snprintf.texi: Update.
5847         * doc/functions/sprintf.texi: Update.
5848         * doc/functions/vfprintf.texi: Update.
5849         * doc/functions/vprintf.texi: Update.
5850         * doc/functions/vsnprintf.texi: Update.
5851         * doc/functions/vsprintf.texi: Update.
5852
5853 2007-11-04  Bruno Haible  <bruno@clisp.org>
5854
5855         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
5856
5857 2007-11-04  Bruno Haible  <bruno@clisp.org>
5858
5859         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
5860         Reported by Sylvain Beucler <beuc@gnu.org>.
5861
5862 2007-11-03  Bruno Haible  <bruno@clisp.org>
5863
5864         * tests/test-fprintf-posix2.sh: New file.
5865         * tests/test-fprintf-posix2.c: New file.
5866         * modules/fprintf-posix-tests (Files): Add them.
5867         (TESTS): Add test-fprintf-posix2.sh.
5868         (configure.ac): Check for getrlimit and setrlimit.
5869         (check_PROGRAMS): Add test-fprintf-posix2.
5870
5871         * tests/test-printf-posix2.sh: New file.
5872         * tests/test-printf-posix2.c: New file.
5873         * modules/printf-posix-tests (Files): Add them.
5874         (TESTS): Add test-printf-posix2.sh.
5875         (configure.ac): Check for getrlimit and setrlimit.
5876         (check_PROGRAMS): Add test-printf-posix2.
5877
5878         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
5879         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
5880         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
5881         (decode_double): New function, copied from decode_long_double.
5882         (scale10_round_decimal_decoded): New function, extracted from
5883         scale10_round_decimal_long_double.
5884         (scale10_round_decimal_long_double): Use it.
5885         (scale10_round_decimal_double): New function.
5886         (floorlog10): New function.
5887         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
5888         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
5889         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5890         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5891         gl_PRINTF_ENOMEM and test its result. Invoke
5892         gl_PREREQ_VASNPRINTF_ENOMEM.
5893         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5894         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5895         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5896         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5897         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5898         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5899         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5900         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
5901         * modules/snprintf-posix (Depends-on): Likewise.
5902         * modules/sprintf-posix (Depends-on): Likewise.
5903         * modules/vasnprintf-posix (Depends-on): Likewise.
5904         * modules/vasprintf-posix (Depends-on): Likewise.
5905         * modules/vfprintf-posix (Depends-on): Likewise.
5906         * modules/vsnprintf-posix (Depends-on): Likewise.
5907         * modules/vsprintf-posix (Depends-on): Likewise.
5908         * doc/functions/fprintf.texi: Update.
5909         * doc/functions/printf.texi: Update.
5910         * doc/functions/snprintf.texi: Update.
5911         * doc/functions/sprintf.texi: Update.
5912         * doc/functions/vfprintf.texi: Update.
5913         * doc/functions/vprintf.texi: Update.
5914         * doc/functions/vsnprintf.texi: Update.
5915         * doc/functions/vsprintf.texi: Update.
5916
5917 2007-11-03  Bruno Haible  <bruno@clisp.org>
5918
5919         * modules/frexp-nolibm-tests: New file.
5920
5921         * modules/frexp-nolibm: New file.
5922         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
5923
5924 2007-11-03  Bruno Haible  <bruno@clisp.org>
5925
5926         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
5927         value is C99 compliant.
5928         Needed for OSF/1 5.1.
5929
5930 2007-11-03  Bruno Haible  <bruno@clisp.org>
5931
5932         Fix out-of-memory handling of vasnprintf.
5933         * lib/printf-parse.c: Include <errno.h>.
5934         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
5935         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
5936         is already set.
5937
5938 2007-11-02  Eric Blake  <ebb9@byu.net>
5939
5940         Fix tests on cygwin.
5941         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
5942
5943 2007-11-01  Bruno Haible  <bruno@clisp.org>
5944
5945         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
5946         warning.
5947         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
5948         needed for POSIX compatibility.
5949
5950 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5951
5952         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
5953         for compatibility with GNU.
5954
5955 2007-11-01  Bruno Haible  <bruno@clisp.org>
5956
5957         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
5958         (putenv): Renamed from rpl_putenv. Change argument type from
5959         'const char *' to 'char *'.
5960         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
5961         of defining putenv in config.h, just set REPLACE_PUTENV.
5962         * modules/putenv (Depends-on): Add stdlib.
5963         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5964         (Include): Use <stdlib.h>.
5965         * lib/stdlib.in.h (putenv): New declaration.
5966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
5967         REPLACE_PUTENV.
5968         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
5969         REPLACE_PUTENV.
5970         Needed for MacOS X 10.5.0.
5971         Reported by Peter O'Gorman <peter@pogma.com>.
5972
5973 2007-11-01  Jim Meyering  <meyering@redhat.com>
5974
5975         Treat an empty date string exactly like "0".
5976         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
5977         if the remaining date string (to be parsed) is empty, use "0".
5978         Reported by Mischa Molhoek and discussed in this thread:
5979         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
5980
5981 2007-10-31  Bruno Haible  <bruno@clisp.org>
5982
5983         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
5984         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
5985         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
5986         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
5987         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
5988         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
5989
5990 2007-10-31  Bruno Haible  <bruno@clisp.org>
5991
5992         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
5993         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
5994         (AC_TYPE_LONG_LONG_INT): Use it.
5995         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
5996         it as well.
5997         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
5998         to m4/longlong.m4.
5999         * modules/stdint (Files): Remove m4/ulonglong.m4.
6000         * modules/strtoull (Files): Use m4/longlong.m4 instead of
6001         m4/ulonglong.m4.
6002         * modules/strtoumax (Files): Likewise.
6003
6004 2007-10-30  Bruno Haible  <bruno@clisp.org>
6005
6006         * modules/xvasprintf-posix: New file.
6007         Suggested by Eric Blake.
6008
6009 2007-10-30  Bruno Haible  <bruno@clisp.org>
6010
6011         * modules/xprintf-posix-tests: New file.
6012         * tests/test-xprintf-posix.sh: New file.
6013         * tests/test-xprintf-posix.c: New file.
6014         * tests/test-xfprintf-posix.c: New file.
6015
6016         * modules/xprintf-posix: New file.
6017
6018 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6019
6020         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
6021         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
6022         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
6023
6024 2007-10-29  Bruno Haible  <bruno@clisp.org>
6025
6026         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
6027         contain the special marker '_cv_'.
6028         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
6029         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
6030         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
6031         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
6032         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
6033         Reported by Ralf Wildenhues.
6034
6035 2007-10-29  Bruno Haible  <bruno@clisp.org>
6036
6037         * gnulib-tool (func_import): When --lgpl is not specified, set
6038         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
6039         GPLv3.
6040         Reported by Simon Josefsson.
6041
6042 2007-10-28  Bruno Haible  <bruno@clisp.org>
6043
6044         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
6045         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
6046         HAVE_DECL_ISFINITE.
6047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
6048         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
6049         HAVE_DECL_ISFINITE.
6050
6051 2007-10-28  Bruno Haible  <bruno@clisp.org>
6052
6053         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
6054         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
6055
6056 2007-10-28  Bruno Haible  <bruno@clisp.org>
6057
6058         Fix link errors with Sun C 5.0 on Solaris 10.
6059         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
6060         function is declared but not present in the compiler's libm.
6061         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6062         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6063         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
6064         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
6065         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
6066         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
6067         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
6068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
6069         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
6070         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
6071         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
6072         HAVE_DECL_FLOORL.
6073
6074 2007-10-28  Bruno Haible  <bruno@clisp.org>
6075
6076         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
6077         gl_FUNC_FLOORL. Cache the result.
6078         (gl_FUNC_FLOORL): Use it.
6079         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
6080         gl_FUNC_CEILL. Cache the result.
6081         (gl_FUNC_CEILL): Use it.
6082
6083         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
6084         gl_FUNC_FLOOR. Cache the result.
6085         (gl_FUNC_FLOOR): Use it.
6086         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
6087         gl_FUNC_CEIL. Cache the result.
6088         (gl_FUNC_CEIL): Use it.
6089
6090         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
6091         gl_FUNC_FLOORF. Cache the result.
6092         (gl_FUNC_FLOORF): Use it.
6093         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
6094         gl_FUNC_CEILF. Cache the result.
6095         (gl_FUNC_CEILF): Use it.
6096
6097 2007-10-28  Bruno Haible  <bruno@clisp.org>
6098
6099         * gnulib-tool: Allow specifying the LGPL version number through
6100         --lgpl=2 or --lgpl=3.
6101         (func_usage): Document --lgpl with argument.
6102         Handle --lgpl=... arguments.
6103         (func_import): Recognize also gl_LGPL calls with an argument. When
6104         --lgpl=2 is used and the module's license is just LGPL, report an
6105         error. Set sed_transform_lib_file according to the lgpl variable. In
6106         the generated files, use --lgpl or gl_LGPL invocations with argument,
6107         if necessary.
6108         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
6109         an LGPv2+ license.
6110         * doc/gnulib-tool.texi (Modified imports): Update explanation of
6111         gl_LGPL macro.
6112
6113 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6114             Bruno Haible  <bruno@clisp.org>
6115
6116         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
6117         (u16_uctomb_aux): Likewise.
6118         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
6119         !HAVE_INLINE.
6120         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
6121
6122 2007-10-28  Bruno Haible  <bruno@clisp.org>
6123
6124         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
6125         Invoke AM_GETTEXT_OPTION if it exists.
6126         * modules/vasprintf: Likewise.
6127         * modules/verror: Likewise.
6128         * modules/xprintf: Likewise.
6129         * modules/xvasprintf: Likewise.
6130
6131 2007-10-27  Ben Pfaff  <blp@gnu.org>
6132
6133         * lib/math.in.h: Define isfinite macro and prototypes for
6134         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
6135         implementations.
6136         * m4/math_h.m4: New substitutions for isfinite module.
6137         * lib/isfinite.c: New file.
6138         * m4/isfinite.m4: New file.
6139         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
6140         * modules/isfinite: New file.
6141         * modules/isfinite-tests: New file.
6142         * tests/tests-isfinite.c: New file.
6143         * doc/functions/isfinite.texi: Mention isfinite module.
6144         * MODULES.html.sh: Mention new module.
6145
6146 2007-10-27  Ben Pfaff  <blp@gnu.org>
6147
6148         Ralf Wildenhues reported that Tru64 4.0D declares the round
6149         functions but does not have definitions.
6150         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
6151         cannot be found in any library, set the output variable to
6152         "missing" instead of "".
6153         * m4/round.m4: Also use our substitute if we cannot find round in
6154         any library, even if it is declared.
6155         * m4/roundf.m4: Likewise for roundf.
6156         * m4/roundl.m4: Likewise for roundl.
6157         * lib/math.in.h: Undefine roundf, round, roundl before defining
6158         their replacements, to allow for hypothetical systems where these
6159         may be defined as macros but not available in libraries.
6160
6161 2007-10-27  Bruno Haible  <bruno@clisp.org>
6162
6163         * doc/gnulib.texi: Invoke @firstparagraphindent.
6164         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
6165         changes in gnulib.
6166         (Source changes): New section.
6167
6168 2007-10-26  Bruno Haible  <bruno@clisp.org>
6169
6170         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
6171         borrowed from autoconf.
6172
6173 2007-10-26  Bruno Haible  <bruno@clisp.org>
6174
6175         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
6176         strerror returned the empty string. Needed on HP-UX 11.00.
6177
6178 2007-10-24  Micah Cowan  <micah@cowan.name>
6179
6180         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
6181         * build-aux/bootstrap: Remove support for now-unnecessary option,
6182         --cvs-user, and envvars CVS_USER, CVS_RSH.
6183
6184 2007-10-24  Jim Meyering  <meyering@redhat.com>
6185
6186         Avoid diagnostics from sha1sum when there is no cached checksum.
6187         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
6188         if the po.s1 file hasn't been created yet.
6189
6190         * build-aux/bootstrap: Sync from coreutils:
6191         2007-10-24  Jim Meyering  <meyering@redhat.com>
6192         Get gnulib from the git repository, not from an obsolete cvs one.
6193         * build-aux/bootstrap: Suggestion from Micah Cowan.
6194         2007-10-04  Jim Meyering  <jim@meyering.net>
6195         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
6196         (update_po_files): Work also when there are no .po files in po/.
6197
6198 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6199
6200         * README: Append ".git" to git and cg examples.
6201         Problem reported by Benoit Sigoure.
6202
6203 2007-10-23  Micah Cowan  <micah@cowan.name>
6204
6205         * users.txt: Add wget.
6206
6207 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6208
6209         Fix linking of some unistdio tests on FreeBSD.
6210         * modules/unistdio/u16-vsnprintf-tests
6211         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
6212         * modules/unistdio/u16-vsprintf-tests
6213         (test_u16_vsnprintf1_LDADD): Likewise.
6214         * modules/unistdio/u32-vsnprintf-tests
6215         (test_u32_vsnprintf1_LDADD): Likewise.
6216         * modules/unistdio/u32-vsprintf-tests
6217         (test_u32_vsprintf1_LDADD): Likewise.
6218         * modules/unistdio/u8-vsnprintf-tests
6219         (test_u8_vsnprintf1_LDADD): Likewise.
6220         * modules/unistdio/u8-vsprintf-tests
6221         (test_u8_vsprintf1_LDADD): Likewise.
6222         * modules/unistdio/ulc-vsnprintf-tests
6223         (test_ulc_vsnprintf1_LDADD): Likewise.
6224         * modules/unistdio/ulc-vsprintf-tests
6225         (test_ulc_vsprintf1_LDADD): Likewise.
6226
6227         Fix linking of some uniconv tests on FreeBSD.
6228         * modules/uniconv/u16-conv-from-enc-tests
6229         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
6230         * modules/uniconv/u16-conv-to-enc-tests
6231         (test_u16_conv_to_enc_LDADD): Likewise.
6232         * modules/uniconv/u16-strconv-from-enc-tests
6233         (test_u16_strconv_from_enc_LDADD): Likewise.
6234         * modules/uniconv/u16-strconv-to-enc-tests
6235         (test_u16_strconv_to_enc_LDADD): Likewise.
6236         * modules/uniconv/u32-conv-from-enc-tests
6237         (test_u32_conv_from_enc_LDADD): Likewise.
6238         * modules/uniconv/u32-conv-to-enc-tests
6239         (test_u32_conv_to_enc_LDADD): Likewise.
6240         * modules/uniconv/u32-strconv-from-enc-tests
6241         (test_u32_strconv_from_enc_LDADD): Likewise.
6242         * modules/uniconv/u32-strconv-to-enc-tests
6243         (test_u32_strconv_to_enc_LDADD): Likewise.
6244         * modules/uniconv/u8-conv-from-enc-tests
6245         (test_u8_conv_from_enc_LDADD): Likewise.
6246         * modules/uniconv/u8-conv-to-enc-tests
6247         (test_u8_conv_to_enc_LDADD): Likewise.
6248         * modules/uniconv/u8-strconv-from-enc-tests
6249         (test_u8_strconv_from_enc_LDADD): Likewise.
6250         * modules/uniconv/u8-strconv-to-enc-tests
6251         (test_u8_strconv_to_enc_LDADD): Likewise.
6252
6253 2007-10-22  Bruno Haible  <bruno@clisp.org>
6254
6255         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
6256         size.
6257
6258 2007-10-22  Eric Blake  <ebb9@byu.net>
6259
6260         Tweak x*printf documentation.
6261         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
6262         variable name and comments.
6263         Suggested by Bruno Haible.
6264
6265 2007-10-22  Bruno Haible  <bruno@clisp.org>
6266
6267         * lib/acl.c (copy_acl): Fix file name in comment.
6268
6269 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
6270
6271         Fix Tru64 problem with stdbool.h.
6272         * lib/stdbool.in.h (false, true):
6273         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
6274         Don't declare as an enum in this situation; it runs afoul of Tru64.
6275         Problem reported by Steven M. Schweda in
6276         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
6277
6278 2007-10-22  Eric Blake  <ebb9@byu.net>
6279
6280         Also wrap vf?printf.
6281         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
6282         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
6283         (xvprintf, xvfprintf): New functions.
6284
6285 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6286
6287         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
6288         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
6289
6290         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
6291         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
6292
6293 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
6294
6295         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
6296         by Bruno Haible.
6297
6298 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6299
6300         * lib/getloadavg.c
6301         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
6302         Undef `sys' after including sys/table.h, for Tru64 4.0D.
6303
6304         * tests/test-i-ring.c: Work for C89.
6305
6306 2007-10-22  Bruno Haible  <bruno@clisp.org>
6307
6308         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
6309         -1u, in preprocessor expression, so that we don't test for the bug
6310         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
6311         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
6312
6313 2007-10-22  Eric Blake  <ebb9@byu.net>
6314
6315         * tests/test-yesno.sh: Silence stderr during test.
6316
6317 2007-10-22  Simon Josefsson  <simon@josefsson.org>
6318
6319         * modules/crypto/gc-camellia: New file.
6320
6321         * m4/gc-camellia.m4: New file.
6322
6323         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
6324
6325         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
6326
6327 2007-10-22  Simon Josefsson  <simon@josefsson.org>
6328
6329         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
6330         --help to stdout.  Reported by sms@antinode.org (Steven
6331         M. Schweda).
6332
6333 2007-10-22  Simon Josefsson  <simon@josefsson.org>
6334
6335         * users.txt: Fix link to libksba.
6336
6337 2007-10-21  Ben Pfaff  <blp@gnu.org>
6338
6339         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
6340         round.c roundf implementation that depends on floorf and ceilf to
6341         be tested unconditionally.
6342
6343 2007-10-21  Ben Pfaff  <blp@gnu.org>
6344
6345         * m4/check-libm-func.m4: Removed.
6346         * m4/check-math-lib.m4: New file.
6347         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
6348         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
6349         definition and lack of AC_LIBOBJ([roundf]).
6350         * m4/roundl.m4: Ditto, and similarly for roundl.
6351         * modules/round: Reference new m4 file.
6352         * modules/roundf: Ditto.
6353         * modules/roundl: Ditto.
6354         * tests/test-round2.c (main): Use ROUND instead of round.
6355         Bug report from Bruno Haible.
6356
6357 2007-10-21  Bruno Haible  <bruno@clisp.org>
6358
6359         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
6360         context.
6361
6362 2007-10-21  Bruno Haible  <bruno@clisp.org>
6363
6364         * tests/test-wcwidth.c (main): Allow negative result for some control
6365         characters.
6366
6367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
6368         Needed on OSF/1 5.1.
6369
6370 2007-10-21  Bruno Haible  <bruno@clisp.org>
6371
6372         * tests/test-floorf1.c: Include isnanf.h.
6373         (main): Use isnanf() instead of isnan().
6374         * tests/test-ceilf1.c: Include isnanf.h.
6375         (main): Use isnanf() instead of isnan().
6376         * tests/test-truncf1.c: Include isnanf.h.
6377         (main): Use isnanf() instead of isnan().
6378         * tests/test-roundf1.c: Include isnanf.h.
6379         (main): Use isnanf() instead of isnan().
6380
6381 2007-10-21  Eric Blake  <ebb9@byu.net>
6382
6383         * users.txt: Update URL for m4.
6384
6385 2007-10-21  Bruno Haible  <bruno@clisp.org>
6386
6387         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
6388
6389 2007-10-21  Bruno Haible  <bruno@clisp.org>
6390
6391         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
6392         Git's management files if the CVS files are not present.
6393
6394 2007-10-20  Bruno Haible  <bruno@clisp.org>
6395
6396         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
6397         gcc-3.4.x.
6398
6399 2007-10-20  Ben Pfaff  <blp@gnu.org>
6400
6401         * lib/math.in.h: Declare round, roundf, roundl if we are providing
6402         implementations.
6403         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
6404         * lib/round.c: New file.
6405         * lib/roundf.c: New file.
6406         * lib/roundl.c: New file.
6407         * m4/round.m4: New file.
6408         * m4/roundf.m4: New file.
6409         * m4/roundl.m4: New file.
6410         * m4/check-libm-func-m4: New file.
6411         * modules/math: Replace round, roundf, roundl related @VARS@ in
6412         math.in.h.
6413         * modules/round: New file.
6414         * modules/round-tests: New file.
6415         * modules/roundf: New file.
6416         * modules/roundf-tests: New file.
6417         * modules/roundl: New file.
6418         * modules/roundl-tests: New file.
6419         * tests/test-round1.c: New file.
6420         * tests/test-round2.c: New file.
6421         * tests/test-roundf1.c: New file.
6422         * tests/test-roundf2.c: New file.
6423         * tests/test-roundl.c: New file.
6424         * doc/functions/round.texi: Mention round module.
6425         * doc/functions/roundf.texi: Mention roundf module.
6426         * doc/functions/roundl.texi: Mention roundl module.
6427         * MODULES.html.sh: Mention new modules.
6428         Thanks to Bruno Haible for suggestions.
6429
6430 2007-10-20  Jim Meyering  <meyering@redhat.com>
6431
6432         * lib/xprintf.c: Include <config.h> unconditionally.
6433
6434         Change xprintf's license to GPL.
6435         * modules/xprintf (License): s/LGPL/GPL/, since this module
6436         depends on modules (exit and exitfail) which are GPL.
6437         Suggestion from Bruno Haible.
6438
6439         xprintf fixes.
6440         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
6441         Use a clearer diagnostic.
6442         Patch from Bruno Haible.
6443
6444 2007-10-20  Bruno Haible  <bruno@clisp.org>
6445
6446         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
6447         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
6448         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6449
6450 2007-10-20  Bruno Haible  <bruno@clisp.org>
6451
6452         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
6453         precision in the comparison result > x - 1 or similar.
6454         * tests/test-ceilf2.c (correct_result_p): Likewise.
6455         * tests/test-truncf2.c (correct_result_p): Likewise.
6456         * tests/test-trunc2.c (correct_result_p): Likewise.
6457         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6458
6459 2007-10-20  Bruno Haible  <bruno@clisp.org>
6460
6461         * modules/ceil: New file.
6462         * m4/ceil.m4: New file.
6463         * doc/functions/ceil.texi: Mention the 'ceil' module.
6464
6465 2007-10-20  Bruno Haible  <bruno@clisp.org>
6466
6467         * modules/floor: New file.
6468         * m4/floor.m4: New file.
6469         * doc/functions/floor.texi: Mention the 'floor' module.
6470
6471 2007-10-20  Bruno Haible  <bruno@clisp.org>
6472
6473         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
6474         of %a.
6475         * modules/floorf-tests (Depends-on): Likewise.
6476         * modules/truncf-tests (Depends-on): Likewise.
6477         * modules/trunc-tests (Depends-on): Likewise.
6478         Reported by Ben Pfaff.
6479
6480 2007-10-19  Jim Meyering  <meyering@redhat.com>
6481
6482         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
6483         Don't bother testing specific errno values.  Just test ferror.
6484
6485         New module: xprintf
6486         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
6487
6488 2007-10-19  Bruno Haible  <bruno@clisp.org>
6489
6490         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
6491         syntax.
6492         * modules/javaexec (Makefile.am): Likewise.
6493         * modules/relocatable-prog (Makefile.am): Likewise.
6494         Suggested by Jim Meyering.
6495
6496 2007-10-18  Bruno Haible  <bruno@clisp.org>
6497
6498         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
6499         Reported by Jim Meyering.
6500
6501 2007-10-18  Eric Blake  <ebb9@byu.net>
6502
6503         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
6504
6505 2007-10-18  Bruno Haible  <bruno@clisp.org>
6506
6507         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
6508         the format string into writable memory. Needed in Fortify conditions.
6509
6510 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
6511             Bruno Haible  <bruno@clisp.org>
6512
6513         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
6514         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
6515         * modules/trim (Depends-on): Add mbchar.
6516         (configure.ac): Add gl_FUNC_MBRTOWC.
6517         (Makefile.am): Augment lib_SOURCES.
6518
6519 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
6520
6521         Modify glob.c to use fstatat and dirfd, to simplify it.
6522         Suggested by Eric Blake.
6523         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
6524         Don't include <stdbool.h>; not used.
6525         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
6526         (link_exists_p): Simplify implementation, since we can now assume
6527         dirfd and fstatat.
6528         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
6529
6530 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6531
6532         * gnulib-tool (func_get_dependencies): Fix sed script to
6533         match only tests.
6534
6535 2007-10-17  Bruno Haible  <bruno@clisp.org>
6536
6537         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
6538         allow locale names without encoding suffix.
6539         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6540         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6541
6542 2007-10-16  Bruno Haible  <bruno@clisp.org>
6543
6544         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
6545         * lib/getgroups.c (getgroups): Likewise.
6546         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
6547
6548 2007-10-16  Bruno Haible  <bruno@clisp.org>
6549
6550         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
6551         * modules/malloc-posix (License): Likewise.
6552         * modules/realloc-posix (License): Likewise.
6553         * modules/calloc-posix (License): Likewise.
6554         * modules/intprops (License): Change from GPL to LGPL, with
6555         Paul Eggert's approval.
6556
6557 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6558
6559         Merge glibc changes into lib/glob.c.
6560
6561         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
6562         2007-10-15 04:59:03 UTC.  Here are the changes:
6563
6564         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
6565
6566         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
6567
6568         * lib/glob.c: Add some branch prediction throughout.
6569
6570         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
6571
6572         [BZ #5103]
6573         * lib/glob.c (glob): Recognize patterns starting \/.
6574
6575         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
6576
6577         [BZ #3996]
6578         * lib/glob.c (attribute_hidden): Define if not defined.
6579         (glob): Unescape dirname, filename or username when needed and not
6580         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
6581         is NULL.  Handle unescaped [ in pattern without closing ].
6582         Don't pass GLOB_CHECK down to recursive glob for directories.
6583         (__glob_pattern_type): New function.
6584         (__glob_pattern_p): Implement using __glob_pattern_type.
6585         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
6586         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
6587         Remove unreachable code.
6588
6589         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
6590
6591         * lib/glob.c (glob_in_dir): Add some comments and asserts to
6592         explain why there are no leaks.
6593
6594         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
6595
6596         [BZ #3253]
6597         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
6598         time, rather allocate increasingly bigger arrays of pointers, if
6599         possible with alloca, if too large with malloc.
6600
6601 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6602
6603         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
6604         Problem reported by H.Merijn Brand in
6605         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
6606         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
6607         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
6608
6609 2007-10-15  Bruno Haible  <bruno@clisp.org>
6610
6611         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
6612         with explicit rpl_ prefix.
6613         * lib/fopen.c (fopen): Likewise.
6614         * lib/freopen.c (freopen): Likewise.
6615         * lib/iconv.c (iconv): Likewise.
6616         * lib/iconv_close.c (iconv_close): Likewise.
6617
6618 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6619
6620         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
6621
6622 2007-10-15  Bruno Haible  <bruno@clisp.org>
6623
6624         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
6625         <stddef.h> instead of <stdlib.h> since we only need NULL.
6626         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6627
6628 2007-10-15  Bruno Haible  <bruno@clisp.org>
6629
6630         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
6631         Replace paragraph talking about LIBOBJS.
6632         Reported by Colin Watson <cjwatson@debian.org>.
6633
6634 2007-10-15  Bruno Haible  <bruno@clisp.org>
6635
6636         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
6637         <stdlib.h> before using NULL.
6638
6639 2007-10-15  Simon Josefsson  <simon@josefsson.org>
6640
6641         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
6642         Reported by Albert Chin <china@thewrittenword.com>.
6643
6644 2007-10-14  Bruno Haible  <bruno@clisp.org>
6645
6646         * modules/iconv_open-utf-tests: New file.
6647         * tests/test-iconv-utf.c: New file.
6648
6649         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
6650         * modules/iconv_open-utf: New file.
6651         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
6652         (iconv, iconv_close): New declarations.
6653         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
6654         be defined.
6655         (iconv_open): Add special handling of conversion between UTF-8 and
6656         UTF-{16,32}{BE,LE}.
6657         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
6658         * lib/iconv_close.c: New file.
6659         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
6660         gl_FUNC_ICONV_OPEN.
6661         (gl_FUNC_ICONV_OPEN): Use it.
6662         (gl_FUNC_ICONV_OPEN_UTF): New macro.
6663         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
6664         and REPLACE_ICONV_UTF.
6665         * modules/iconv_open (Depends-on): Add c-strcase.
6666         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
6667         ICONV_CONST.
6668         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
6669
6670 2007-10-13  Albert Chin  <china@thewrittenword.com>
6671             Bruno Haible  <bruno@clisp.org>
6672
6673         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
6674         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
6675
6676 2007-10-13  Bruno Haible  <bruno@clisp.org>
6677
6678         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
6679         defined, use the ISO C99 inline semantics.
6680         * lib/argp.h (ARGP_EI): Likewise.
6681
6682 2007-10-13  Bruno Haible  <bruno@clisp.org>
6683
6684         Handle 'inline' change in gcc 4.3.0.
6685         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
6686         argp_fmtstream_write, argp_fmtstream_set_lmargin,
6687         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
6688         argp_fmtstream_point): Disable 'extern' declaration if the function
6689         definition is going to be provided inline.
6690         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
6691         semantics, not the ISO C99 inline semantics.
6692         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
6693         'extern' declaration if the function definition is going to be provided
6694         inline.
6695         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
6696         the GNU C inline semantics, not the ISO C99 inline semantics. With
6697         GCC 4.2, avoid a warning.
6698
6699 2007-10-13  Bruno Haible  <bruno@clisp.org>
6700
6701         * lib/freading.h (freading): Enable the use of __freading for
6702         glibc >= 2.7.
6703         * lib/freading.c (freading): Likewise.
6704
6705 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
6706
6707         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
6708         "warning: C99 inline functions are not supported; using GNU89".
6709
6710 2007-10-12  Bruno Haible  <bruno@clisp.org>
6711
6712         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
6713         of 2.
6714         * tests/test-ceilf2.c: New file.
6715         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
6716
6717         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
6718         * modules/ceilf-tests: Update.
6719
6720 2007-10-12  Bruno Haible  <bruno@clisp.org>
6721
6722         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
6723         of 2.
6724         * tests/test-floorf2.c: New file.
6725         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
6726
6727         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
6728         * modules/floorf-tests: Update.
6729
6730 2007-10-12  Bruno Haible  <bruno@clisp.org>
6731
6732         * tests/test-trunc2.c: New file.
6733         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
6734
6735         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
6736         * modules/trunc-tests: Update.
6737
6738 2007-10-12  Bruno Haible  <bruno@clisp.org>
6739
6740         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
6741         of 2.
6742         * tests/test-truncf2.c: New file.
6743         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
6744
6745         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
6746         * modules/truncf-tests: Update.
6747
6748 2007-10-11  Eric Blake  <ebb9@byu.net>
6749
6750         Don't claim strerror is broken on Interix.
6751         * doc/functions/strerror.texi (strerror): Known broken systems are
6752         now Solaris 8, and not Interix.
6753         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
6754         Interix on cross-compile.
6755         Reported by Martin Koeppe in
6756         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
6757
6758 2007-10-11  Bruno Haible  <bruno@clisp.org>
6759
6760         * modules/i-ring-tests: New file.
6761         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
6762         instead of assert.
6763
6764 2007-10-11  Bruno Haible  <bruno@clisp.org>
6765
6766         * modules/filenamecat-tests: New file.
6767         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
6768         * lib/filenamecat.c: Remove test code.
6769
6770 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
6771
6772         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
6773
6774         * lib/strerror.c: Include <string.h> always, to test interface,
6775         and to remove the need for the dummy.
6776         Include intprops.h to compute width instead of doing it ourselves
6777         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
6778         (strerror): Define it to return NULL if there's no system strerror.
6779         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
6780         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
6781         ancient pre-strerror Unix systems well any more.  Saying "unknown
6782         system error" is enough.
6783         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
6784         simpler strerror.c implementation.
6785         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
6786         Simplify the tests to reflect the simpler strerror implementation.
6787         * modules/strerror (Depends-on): Add intprops.
6788
6789 2007-10-09  Eric Blake  <ebb9@byu.net>
6790
6791         Silence test-fpending.
6792         * modules/fpending-tests (Files): Add wrapper script.
6793         * tests/test-fpending.sh: New file.
6794
6795 2007-10-09  Bruno Haible  <bruno@clisp.org>
6796
6797         * MODULES.html.sh (func_module): Don't create a hyperlink for
6798         function names like 'printf_frexp'.
6799         (Misc): Add crc, memxor.
6800         (Characteristics of floating types): New section.
6801         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
6802         isnanf-nolibm, signbit, trunc, truncf, truncl.
6803         (Enhancements for ISO C 99 functions): New subsection Input/output.
6804         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
6805         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
6806         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
6807         (Compatibility checks for POSIX:2001 functions): Add clock-time.
6808         (Enhancements for POSIX:2001 functions): Add chdir-long.
6809         (File system functions): Add areadlink, chdir-safer, read-file.
6810         Remove cycle-check.
6811         (File system as inode set): New section.
6812         (Date and time): Add gethrxtime.
6813         (Multithreading): Add openmp.
6814         (Internationalization functions): Add localename.
6815         (Unicode string functions): Add unistr/u*-mbsnlen.
6816         (Support for maintaining and releasing projects): Add git-version-gen.
6817         (Lone files): Remove directories.
6818
6819 2007-10-08  Ben Pfaff  <blp@gnu.org>
6820
6821         * lib/xmalloca.h: Fix typo in comment.
6822
6823 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6824
6825         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
6826         when avoiding problems with integer overflow.  Use a portable test
6827         instead.
6828
6829 2007-10-08  Simon Josefsson  <simon@josefsson.org>
6830
6831         * modules/dummy (License): Change to LGPLv2+.
6832         * modules/float (License): Likewise
6833         * modules/realloc (License): Likewise
6834         * modules/stdlib (License): Likewise
6835
6836 2007-10-07  Bruno Haible  <bruno@clisp.org>
6837
6838         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
6839         * floor.c (TWO_MANT_DIG): Likewise.
6840         * ceil.c (TWO_MANT_DIG): Likewise.
6841         Reported by Ben Pfaff.
6842
6843 2007-10-07  Bruno Haible  <bruno@clisp.org>
6844
6845         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
6846         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
6847         * lib/frexp.c (FUNC): Likewise.
6848         * lib/printf-frexp.h (printf_frexp): Likewise.
6849         * lib/printf-frexpl.h (printf_frexpl): Likewise.
6850         * lib/printf-frexp.c (FUNC): Likewise.
6851         Suggested by Jim Meyering.
6852
6853 2007-10-07  Jim Meyering  <meyering@redhat.com>
6854
6855         Make xnanosleep's integer overflow test more robust.
6856         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
6857         so that gcc-4.3.0 doesn't optimize away this test for overflow.
6858
6859 2007-10-07  Bruno Haible  <bruno@clisp.org>
6860
6861         * NEWS: Mention the license change.
6862
6863         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
6864         abbreviations in the modules files.
6865
6866         Change copyright notice from GPLv2+ to GPLv3+.
6867         * README: Change copyright notice.
6868         * MODULES.html.sh: Likewise.
6869         * build-aux/bootstrap.conf: Likewise.
6870         * build-aux/config.libpath: Likewise.
6871         * build-aux/csharpcomp.sh.in: Likewise.
6872         * build-aux/csharpexec.sh.in: Likewise.
6873         * build-aux/install-reloc: Likewise.
6874         * build-aux/javacomp.sh.in: Likewise.
6875         * build-aux/javaexec.sh.in: Likewise.
6876         * build-aux/ldd.sh.in: Likewise.
6877         * build-aux/reloc-ldflags: Likewise.
6878         * build-aux/relocatable.sh.in: Likewise.
6879         * build-aux/x-to-1.in: Likewise.
6880         * check-module: Likewise.
6881         * config/srclistvars.sh: Likewise.
6882         * gnulib-tool: Likewise.
6883         * lib/acl-internal.h: Likewise.
6884         * lib/acl.c: Likewise.
6885         * lib/acl.h: Likewise.
6886         * lib/acl_entries.c: Likewise.
6887         * lib/areadlink-with-size.c: Likewise.
6888         * lib/areadlink.c: Likewise.
6889         * lib/areadlink.h: Likewise.
6890         * lib/argmatch.c: Likewise.
6891         * lib/argmatch.h: Likewise.
6892         * lib/argp-ba.c: Likewise.
6893         * lib/argp-eexst.c: Likewise.
6894         * lib/argp-fmtstream.c: Likewise.
6895         * lib/argp-fmtstream.h: Likewise.
6896         * lib/argp-fs-xinl.c: Likewise.
6897         * lib/argp-help.c: Likewise.
6898         * lib/argp-namefrob.h: Likewise.
6899         * lib/argp-parse.c: Likewise.
6900         * lib/argp-pin.c: Likewise.
6901         * lib/argp-pv.c: Likewise.
6902         * lib/argp-pvh.c: Likewise.
6903         * lib/argp-xinl.c: Likewise.
6904         * lib/argp.h: Likewise.
6905         * lib/at-func.c: Likewise.
6906         * lib/atanl.c: Likewise.
6907         * lib/backupfile.c: Likewise.
6908         * lib/backupfile.h: Likewise.
6909         * lib/basename.c: Likewise.
6910         * lib/binary-io.h: Likewise.
6911         * lib/byteswap.in.h: Likewise.
6912         * lib/c-stack.c: Likewise.
6913         * lib/c-stack.h: Likewise.
6914         * lib/c-strcasestr.c: Likewise.
6915         * lib/c-strcasestr.h: Likewise.
6916         * lib/c-strstr.c: Likewise.
6917         * lib/c-strstr.h: Likewise.
6918         * lib/c-strtod.c: Likewise.
6919         * lib/calloc.c: Likewise.
6920         * lib/canon-host.c: Likewise.
6921         * lib/canon-host.h: Likewise.
6922         * lib/canonicalize-lgpl.c: Likewise.
6923         * lib/canonicalize.c: Likewise.
6924         * lib/canonicalize.h: Likewise.
6925         * lib/ceil.c: Likewise.
6926         * lib/ceilf.c: Likewise.
6927         * lib/ceill.c: Likewise.
6928         * lib/chdir-long.c: Likewise.
6929         * lib/chdir-long.h: Likewise.
6930         * lib/chdir-safer.c: Likewise.
6931         * lib/chdir-safer.h: Likewise.
6932         * lib/chown.c: Likewise.
6933         * lib/classpath.c: Likewise.
6934         * lib/classpath.h: Likewise.
6935         * lib/clean-temp.c: Likewise.
6936         * lib/clean-temp.h: Likewise.
6937         * lib/cloexec.c: Likewise.
6938         * lib/close-stream.c: Likewise.
6939         * lib/closein.c: Likewise.
6940         * lib/closein.h: Likewise.
6941         * lib/closeout.c: Likewise.
6942         * lib/closeout.h: Likewise.
6943         * lib/concat-filename.c: Likewise.
6944         * lib/copy-file.c: Likewise.
6945         * lib/copy-file.h: Likewise.
6946         * lib/count-one-bits.h: Likewise.
6947         * lib/crc.c: Likewise.
6948         * lib/crc.h: Likewise.
6949         * lib/creat-safer.c: Likewise.
6950         * lib/csharpcomp.c: Likewise.
6951         * lib/csharpcomp.h: Likewise.
6952         * lib/csharpexec.c: Likewise.
6953         * lib/csharpexec.h: Likewise.
6954         * lib/cycle-check.c: Likewise.
6955         * lib/cycle-check.h: Likewise.
6956         * lib/diacrit.c: Likewise.
6957         * lib/diacrit.h: Likewise.
6958         * lib/diffseq.h: Likewise.
6959         * lib/dirchownmod.c: Likewise.
6960         * lib/dirent.in.h: Likewise.
6961         * lib/dirfd.c: Likewise.
6962         * lib/dirfd.h: Likewise.
6963         * lib/dirname.c: Likewise.
6964         * lib/dirname.h: Likewise.
6965         * lib/dummy.c: Likewise.
6966         * lib/dup-safer.c: Likewise.
6967         * lib/dup2.c: Likewise.
6968         * lib/eealloc.h: Likewise.
6969         * lib/error.c: Likewise.
6970         * lib/error.h: Likewise.
6971         * lib/euidaccess.c: Likewise.
6972         * lib/exclude.c: Likewise.
6973         * lib/exclude.h: Likewise.
6974         * lib/execute.c: Likewise.
6975         * lib/execute.h: Likewise.
6976         * lib/exitfail.c: Likewise.
6977         * lib/exitfail.h: Likewise.
6978         * lib/expl.c: Likewise.
6979         * lib/fatal-signal.c: Likewise.
6980         * lib/fatal-signal.h: Likewise.
6981         * lib/fbufmode.c: Likewise.
6982         * lib/fbufmode.h: Likewise.
6983         * lib/fchdir.c: Likewise.
6984         * lib/fchmodat.c: Likewise.
6985         * lib/fchownat.c: Likewise.
6986         * lib/fcntl--.h: Likewise.
6987         * lib/fcntl-safer.h: Likewise.
6988         * lib/fcntl.in.h: Likewise.
6989         * lib/fd-safer.c: Likewise.
6990         * lib/fflush.c: Likewise.
6991         * lib/file-has-acl.c: Likewise.
6992         * lib/file-set.c: Likewise.
6993         * lib/file-type.c: Likewise.
6994         * lib/file-type.h: Likewise.
6995         * lib/fileblocks.c: Likewise.
6996         * lib/filemode.c: Likewise.
6997         * lib/filemode.h: Likewise.
6998         * lib/filename.h: Likewise.
6999         * lib/filenamecat.c: Likewise.
7000         * lib/filenamecat.h: Likewise.
7001         * lib/findprog.c: Likewise.
7002         * lib/findprog.h: Likewise.
7003         * lib/float.in.h: Likewise.
7004         * lib/floor.c: Likewise.
7005         * lib/floorf.c: Likewise.
7006         * lib/floorl.c: Likewise.
7007         * lib/fopen-safer.c: Likewise.
7008         * lib/fopen.c: Likewise.
7009         * lib/fpending.c: Likewise.
7010         * lib/fpending.h: Likewise.
7011         * lib/fprintf.c: Likewise.
7012         * lib/fprintftime.h: Likewise.
7013         * lib/fpucw.h: Likewise.
7014         * lib/fpurge.c: Likewise.
7015         * lib/fpurge.h: Likewise.
7016         * lib/freadable.c: Likewise.
7017         * lib/freadable.h: Likewise.
7018         * lib/freadahead.c: Likewise.
7019         * lib/freadahead.h: Likewise.
7020         * lib/freading.c: Likewise.
7021         * lib/freading.h: Likewise.
7022         * lib/free.c: Likewise.
7023         * lib/freopen.c: Likewise.
7024         * lib/frexp.c: Likewise.
7025         * lib/frexpl.c: Likewise.
7026         * lib/fseek.c: Likewise.
7027         * lib/fseterr.c: Likewise.
7028         * lib/fseterr.h: Likewise.
7029         * lib/fstatat.c: Likewise.
7030         * lib/fstrcmp.c: Likewise.
7031         * lib/fstrcmp.h: Likewise.
7032         * lib/fsusage.c: Likewise.
7033         * lib/fsusage.h: Likewise.
7034         * lib/ftell.c: Likewise.
7035         * lib/ftello.c: Likewise.
7036         * lib/fts-cycle.c: Likewise.
7037         * lib/fts.c: Likewise.
7038         * lib/fts_.h: Likewise.
7039         * lib/full-read.c: Likewise.
7040         * lib/full-read.h: Likewise.
7041         * lib/full-write.c: Likewise.
7042         * lib/full-write.h: Likewise.
7043         * lib/fwritable.c: Likewise.
7044         * lib/fwritable.h: Likewise.
7045         * lib/fwriteerror.c: Likewise.
7046         * lib/fwriteerror.h: Likewise.
7047         * lib/fwriting.c: Likewise.
7048         * lib/fwriting.h: Likewise.
7049         * lib/gcd.c: Likewise.
7050         * lib/gcd.h: Likewise.
7051         * lib/getcwd.c: Likewise.
7052         * lib/getdate.h: Likewise.
7053         * lib/getdate.y: Likewise.
7054         * lib/getdomainname.c: Likewise.
7055         * lib/getdomainname.h: Likewise.
7056         * lib/getgroups.c: Likewise.
7057         * lib/gethostname.c: Likewise.
7058         * lib/gethrxtime.c: Likewise.
7059         * lib/gethrxtime.h: Likewise.
7060         * lib/getloadavg.c: Likewise.
7061         * lib/getndelim2.c: Likewise.
7062         * lib/getndelim2.h: Likewise.
7063         * lib/getnline.c: Likewise.
7064         * lib/getnline.h: Likewise.
7065         * lib/getopt.c: Likewise.
7066         * lib/getopt.in.h: Likewise.
7067         * lib/getopt1.c: Likewise.
7068         * lib/getopt_int.h: Likewise.
7069         * lib/getpagesize.h: Likewise.
7070         * lib/getsubopt.c: Likewise.
7071         * lib/gettime.c: Likewise.
7072         * lib/getugroups.c: Likewise.
7073         * lib/getugroups.h: Likewise.
7074         * lib/getusershell.c: Likewise.
7075         * lib/gl_anyavltree_list1.h: Likewise.
7076         * lib/gl_anyavltree_list2.h: Likewise.
7077         * lib/gl_anyhash_list1.h: Likewise.
7078         * lib/gl_anyhash_list2.h: Likewise.
7079         * lib/gl_anylinked_list1.h: Likewise.
7080         * lib/gl_anylinked_list2.h: Likewise.
7081         * lib/gl_anyrbtree_list1.h: Likewise.
7082         * lib/gl_anyrbtree_list2.h: Likewise.
7083         * lib/gl_anytree_list1.h: Likewise.
7084         * lib/gl_anytree_list2.h: Likewise.
7085         * lib/gl_anytree_oset.h: Likewise.
7086         * lib/gl_anytreehash_list1.h: Likewise.
7087         * lib/gl_anytreehash_list2.h: Likewise.
7088         * lib/gl_array_list.c: Likewise.
7089         * lib/gl_array_list.h: Likewise.
7090         * lib/gl_array_oset.c: Likewise.
7091         * lib/gl_array_oset.h: Likewise.
7092         * lib/gl_avltree_list.c: Likewise.
7093         * lib/gl_avltree_list.h: Likewise.
7094         * lib/gl_avltree_oset.c: Likewise.
7095         * lib/gl_avltree_oset.h: Likewise.
7096         * lib/gl_avltreehash_list.c: Likewise.
7097         * lib/gl_avltreehash_list.h: Likewise.
7098         * lib/gl_carray_list.c: Likewise.
7099         * lib/gl_carray_list.h: Likewise.
7100         * lib/gl_linked_list.c: Likewise.
7101         * lib/gl_linked_list.h: Likewise.
7102         * lib/gl_linkedhash_list.c: Likewise.
7103         * lib/gl_linkedhash_list.h: Likewise.
7104         * lib/gl_list.c: Likewise.
7105         * lib/gl_list.h: Likewise.
7106         * lib/gl_oset.c: Likewise.
7107         * lib/gl_oset.h: Likewise.
7108         * lib/gl_rbtree_list.c: Likewise.
7109         * lib/gl_rbtree_list.h: Likewise.
7110         * lib/gl_rbtree_oset.c: Likewise.
7111         * lib/gl_rbtree_oset.h: Likewise.
7112         * lib/gl_rbtreehash_list.c: Likewise.
7113         * lib/gl_rbtreehash_list.h: Likewise.
7114         * lib/gl_sublist.c: Likewise.
7115         * lib/gl_sublist.h: Likewise.
7116         * lib/group-member.c: Likewise.
7117         * lib/group-member.h: Likewise.
7118         * lib/hard-locale.c: Likewise.
7119         * lib/hard-locale.h: Likewise.
7120         * lib/hash-pjw.c: Likewise.
7121         * lib/hash-pjw.h: Likewise.
7122         * lib/hash-triple.c: Likewise.
7123         * lib/hash.c: Likewise.
7124         * lib/hash.h: Likewise.
7125         * lib/human.c: Likewise.
7126         * lib/human.h: Likewise.
7127         * lib/i-ring.c: Likewise.
7128         * lib/i-ring.h: Likewise.
7129         * lib/idcache.c: Likewise.
7130         * lib/imaxabs.c: Likewise.
7131         * lib/imaxdiv.c: Likewise.
7132         * lib/inet_pton.c: Likewise.
7133         * lib/inet_pton.h: Likewise.
7134         * lib/intprops.h: Likewise.
7135         * lib/inttostr.c: Likewise.
7136         * lib/inttostr.h: Likewise.
7137         * lib/inttypes.in.h: Likewise.
7138         * lib/isapipe.c: Likewise.
7139         * lib/isdir.c: Likewise.
7140         * lib/isnan.c: Likewise.
7141         * lib/isnan.h: Likewise.
7142         * lib/isnanf.c: Likewise.
7143         * lib/isnanf.h: Likewise.
7144         * lib/isnanl-nolibm.h: Likewise.
7145         * lib/isnanl.c: Likewise.
7146         * lib/isnanl.h: Likewise.
7147         * lib/javacomp.c: Likewise.
7148         * lib/javacomp.h: Likewise.
7149         * lib/javaexec.c: Likewise.
7150         * lib/javaexec.h: Likewise.
7151         * lib/javaversion.c: Likewise.
7152         * lib/javaversion.h: Likewise.
7153         * lib/javaversion.java: Likewise.
7154         * lib/lbrkprop.h: Likewise.
7155         * lib/lchmod.h: Likewise.
7156         * lib/lchown.c: Likewise.
7157         * lib/ldexpl.c: Likewise.
7158         * lib/linebreak.c: Likewise.
7159         * lib/linebreak.h: Likewise.
7160         * lib/linebuffer.c: Likewise.
7161         * lib/linebuffer.h: Likewise.
7162         * lib/locale.in.h: Likewise.
7163         * lib/logl.c: Likewise.
7164         * lib/long-options.c: Likewise.
7165         * lib/long-options.h: Likewise.
7166         * lib/lstat.c: Likewise.
7167         * lib/lstat.h: Likewise.
7168         * lib/math.in.h: Likewise.
7169         * lib/mbchar.c: Likewise.
7170         * lib/mbchar.h: Likewise.
7171         * lib/mbfile.h: Likewise.
7172         * lib/mbiter.h: Likewise.
7173         * lib/mbscasecmp.c: Likewise.
7174         * lib/mbscasestr.c: Likewise.
7175         * lib/mbschr.c: Likewise.
7176         * lib/mbscspn.c: Likewise.
7177         * lib/mbslen.c: Likewise.
7178         * lib/mbsncasecmp.c: Likewise.
7179         * lib/mbsnlen.c: Likewise.
7180         * lib/mbspbrk.c: Likewise.
7181         * lib/mbspcasecmp.c: Likewise.
7182         * lib/mbsrchr.c: Likewise.
7183         * lib/mbssep.c: Likewise.
7184         * lib/mbsspn.c: Likewise.
7185         * lib/mbsstr.c: Likewise.
7186         * lib/mbstok_r.c: Likewise.
7187         * lib/mbswidth.c: Likewise.
7188         * lib/mbswidth.h: Likewise.
7189         * lib/mbuiter.h: Likewise.
7190         * lib/memcasecmp.c: Likewise.
7191         * lib/memcasecmp.h: Likewise.
7192         * lib/memchr.c: Likewise.
7193         * lib/memcmp.c: Likewise.
7194         * lib/memcoll.c: Likewise.
7195         * lib/memcoll.h: Likewise.
7196         * lib/memcpy.c: Likewise.
7197         * lib/memrchr.c: Likewise.
7198         * lib/mkancesdirs.c: Likewise.
7199         * lib/mkdir-p.c: Likewise.
7200         * lib/mkdir-p.h: Likewise.
7201         * lib/mkdir.c: Likewise.
7202         * lib/mkdirat.c: Likewise.
7203         * lib/mkdtemp.c: Likewise.
7204         * lib/mkstemp-safer.c: Likewise.
7205         * lib/mkstemp.c: Likewise.
7206         * lib/modechange.c: Likewise.
7207         * lib/modechange.h: Likewise.
7208         * lib/mountlist.c: Likewise.
7209         * lib/mountlist.h: Likewise.
7210         * lib/mpsort.c: Likewise.
7211         * lib/nanosleep.c: Likewise.
7212         * lib/obstack.c: Likewise.
7213         * lib/obstack.h: Likewise.
7214         * lib/open-safer.c: Likewise.
7215         * lib/open.c: Likewise.
7216         * lib/openat-die.c: Likewise.
7217         * lib/openat-priv.h: Likewise.
7218         * lib/openat-proc.c: Likewise.
7219         * lib/openat.c: Likewise.
7220         * lib/openat.h: Likewise.
7221         * lib/pagealign_alloc.c: Likewise.
7222         * lib/pagealign_alloc.h: Likewise.
7223         * lib/physmem.c: Likewise.
7224         * lib/physmem.h: Likewise.
7225         * lib/pipe-safer.c: Likewise.
7226         * lib/pipe.c: Likewise.
7227         * lib/pipe.h: Likewise.
7228         * lib/posixtm.c: Likewise.
7229         * lib/posixtm.h: Likewise.
7230         * lib/posixver.c: Likewise.
7231         * lib/printf-frexp.c: Likewise.
7232         * lib/printf-frexp.h: Likewise.
7233         * lib/printf-frexpl.c: Likewise.
7234         * lib/printf-frexpl.h: Likewise.
7235         * lib/printf.c: Likewise.
7236         * lib/progname.c: Likewise.
7237         * lib/progname.h: Likewise.
7238         * lib/progreloc.c: Likewise.
7239         * lib/putenv.c: Likewise.
7240         * lib/quote.c: Likewise.
7241         * lib/quote.h: Likewise.
7242         * lib/quotearg.c: Likewise.
7243         * lib/quotearg.h: Likewise.
7244         * lib/raise.c: Likewise.
7245         * lib/readline.c: Likewise.
7246         * lib/readline.h: Likewise.
7247         * lib/readlink.c: Likewise.
7248         * lib/readtokens.c: Likewise.
7249         * lib/readtokens.h: Likewise.
7250         * lib/readtokens0.c: Likewise.
7251         * lib/readtokens0.h: Likewise.
7252         * lib/readutmp.c: Likewise.
7253         * lib/readutmp.h: Likewise.
7254         * lib/realloc.c: Likewise.
7255         * lib/relocwrapper.c: Likewise.
7256         * lib/rename-dest-slash.c: Likewise.
7257         * lib/rename.c: Likewise.
7258         * lib/rmdir.c: Likewise.
7259         * lib/rpmatch.c: Likewise.
7260         * lib/safe-read.c: Likewise.
7261         * lib/safe-read.h: Likewise.
7262         * lib/safe-write.c: Likewise.
7263         * lib/safe-write.h: Likewise.
7264         * lib/same-inode.h: Likewise.
7265         * lib/same.c: Likewise.
7266         * lib/same.h: Likewise.
7267         * lib/save-cwd.c: Likewise.
7268         * lib/save-cwd.h: Likewise.
7269         * lib/savedir.c: Likewise.
7270         * lib/savedir.h: Likewise.
7271         * lib/savewd.c: Likewise.
7272         * lib/savewd.h: Likewise.
7273         * lib/search.in.h: Likewise.
7274         * lib/setenv.c: Likewise.
7275         * lib/setenv.h: Likewise.
7276         * lib/settime.c: Likewise.
7277         * lib/sh-quote.c: Likewise.
7278         * lib/sh-quote.h: Likewise.
7279         * lib/sig2str.c: Likewise.
7280         * lib/sig2str.h: Likewise.
7281         * lib/signal.in.h: Likewise.
7282         * lib/signbitd.c: Likewise.
7283         * lib/signbitf.c: Likewise.
7284         * lib/signbitl.c: Likewise.
7285         * lib/sigprocmask.c: Likewise.
7286         * lib/sincosl.c: Likewise.
7287         * lib/sleep.c: Likewise.
7288         * lib/sprintf.c: Likewise.
7289         * lib/sqrtl.c: Likewise.
7290         * lib/stat-time.h: Likewise.
7291         * lib/stdio--.h: Likewise.
7292         * lib/stdio-safer.h: Likewise.
7293         * lib/stdlib--.h: Likewise.
7294         * lib/stdlib-safer.h: Likewise.
7295         * lib/stdlib.in.h: Likewise.
7296         * lib/stpcpy.c: Likewise.
7297         * lib/stpncpy.c: Likewise.
7298         * lib/strchrnul.c: Likewise.
7299         * lib/strcspn.c: Likewise.
7300         * lib/strerror.c: Likewise.
7301         * lib/strftime.c: Likewise.
7302         * lib/strftime.h: Likewise.
7303         * lib/striconveh.c: Likewise.
7304         * lib/striconveh.h: Likewise.
7305         * lib/striconveha.c: Likewise.
7306         * lib/striconveha.h: Likewise.
7307         * lib/stripslash.c: Likewise.
7308         * lib/strnlen1.c: Likewise.
7309         * lib/strnlen1.h: Likewise.
7310         * lib/strtod.c: Likewise.
7311         * lib/strtoimax.c: Likewise.
7312         * lib/strtok_r.c: Likewise.
7313         * lib/strtol.c: Likewise.
7314         * lib/strtoll.c: Likewise.
7315         * lib/strtoul.c: Likewise.
7316         * lib/strtoull.c: Likewise.
7317         * lib/sysexits.in.h: Likewise.
7318         * lib/tempname.c: Likewise.
7319         * lib/tempname.h: Likewise.
7320         * lib/timespec.h: Likewise.
7321         * lib/tls.c: Likewise.
7322         * lib/tls.h: Likewise.
7323         * lib/tmpdir.c: Likewise.
7324         * lib/tmpdir.h: Likewise.
7325         * lib/tmpfile-safer.c: Likewise.
7326         * lib/tmpfile.c: Likewise.
7327         * lib/trigl.c: Likewise.
7328         * lib/trigl.h: Likewise.
7329         * lib/trim.c: Likewise.
7330         * lib/trim.h: Likewise.
7331         * lib/trunc.c: Likewise.
7332         * lib/truncf.c: Likewise.
7333         * lib/truncl.c: Likewise.
7334         * lib/tsearch.c: Likewise.
7335         * lib/unicodeio.c: Likewise.
7336         * lib/unicodeio.h: Likewise.
7337         * lib/unistd--.h: Likewise.
7338         * lib/unistd-safer.h: Likewise.
7339         * lib/unistdio/ulc-fprintf.c: Likewise.
7340         * lib/unistdio/ulc-vfprintf.c: Likewise.
7341         * lib/unlinkdir.c: Likewise.
7342         * lib/unlinkdir.h: Likewise.
7343         * lib/unlocked-io.h: Likewise.
7344         * lib/unsetenv.c: Likewise.
7345         * lib/userspec.c: Likewise.
7346         * lib/utime.c: Likewise.
7347         * lib/utimecmp.c: Likewise.
7348         * lib/utimecmp.h: Likewise.
7349         * lib/utimens.c: Likewise.
7350         * lib/verify.h: Likewise.
7351         * lib/verror.c: Likewise.
7352         * lib/verror.h: Likewise.
7353         * lib/version-etc-fsf.c: Likewise.
7354         * lib/version-etc.c: Likewise.
7355         * lib/version-etc.h: Likewise.
7356         * lib/vfprintf.c: Likewise.
7357         * lib/vprintf.c: Likewise.
7358         * lib/vsprintf.c: Likewise.
7359         * lib/w32spawn.h: Likewise.
7360         * lib/wait-process.c: Likewise.
7361         * lib/wait-process.h: Likewise.
7362         * lib/wcwidth.c: Likewise.
7363         * lib/write-any-file.c: Likewise.
7364         * lib/xalloc-die.c: Likewise.
7365         * lib/xalloc.h: Likewise.
7366         * lib/xasprintf.c: Likewise.
7367         * lib/xgetcwd.c: Likewise.
7368         * lib/xgetcwd.h: Likewise.
7369         * lib/xgetdomainname.c: Likewise.
7370         * lib/xgetdomainname.h: Likewise.
7371         * lib/xgethostname.c: Likewise.
7372         * lib/xmalloc.c: Likewise.
7373         * lib/xmalloca.c: Likewise.
7374         * lib/xmalloca.h: Likewise.
7375         * lib/xmemcoll.c: Likewise.
7376         * lib/xnanosleep.c: Likewise.
7377         * lib/xreadlink.c: Likewise.
7378         * lib/xreadlink.h: Likewise.
7379         * lib/xsetenv.c: Likewise.
7380         * lib/xsetenv.h: Likewise.
7381         * lib/xstriconv.c: Likewise.
7382         * lib/xstriconv.h: Likewise.
7383         * lib/xstrndup.c: Likewise.
7384         * lib/xstrndup.h: Likewise.
7385         * lib/xstrtod.c: Likewise.
7386         * lib/xstrtod.h: Likewise.
7387         * lib/xstrtol-error.c: Likewise.
7388         * lib/xstrtol.c: Likewise.
7389         * lib/xstrtol.h: Likewise.
7390         * lib/xtime.h: Likewise.
7391         * lib/xvasprintf.c: Likewise.
7392         * lib/xvasprintf.h: Likewise.
7393         * lib/yesno.c: Likewise.
7394         * lib/yesno.h: Likewise.
7395         * posix-modules: Likewise.
7396         * tests/test-alloca-opt.c: Likewise.
7397         * tests/test-arcfour.c: Likewise.
7398         * tests/test-arctwo.c: Likewise.
7399         * tests/test-argmatch.c: Likewise.
7400         * tests/test-argp-2.sh: Likewise.
7401         * tests/test-argp.c: Likewise.
7402         * tests/test-arpa_inet.c: Likewise.
7403         * tests/test-array_list.c: Likewise.
7404         * tests/test-array_oset.c: Likewise.
7405         * tests/test-atexit.c: Likewise.
7406         * tests/test-avltree_list.c: Likewise.
7407         * tests/test-avltree_oset.c: Likewise.
7408         * tests/test-avltreehash_list.c: Likewise.
7409         * tests/test-base64.c: Likewise.
7410         * tests/test-binary-io.c: Likewise.
7411         * tests/test-byteswap.c: Likewise.
7412         * tests/test-c-ctype.c: Likewise.
7413         * tests/test-c-strcasecmp.c: Likewise.
7414         * tests/test-c-strcasestr.c: Likewise.
7415         * tests/test-c-strncasecmp.c: Likewise.
7416         * tests/test-c-strstr.c: Likewise.
7417         * tests/test-canonicalize-lgpl.c: Likewise.
7418         * tests/test-canonicalize.c: Likewise.
7419         * tests/test-carray_list.c: Likewise.
7420         * tests/test-ceilf.c: Likewise.
7421         * tests/test-ceill.c: Likewise.
7422         * tests/test-count-one-bits.c: Likewise.
7423         * tests/test-crc.c: Likewise.
7424         * tests/test-dirname.c: Likewise.
7425         * tests/test-fbufmode.c: Likewise.
7426         * tests/test-fcntl.c: Likewise.
7427         * tests/test-fflush.c: Likewise.
7428         * tests/test-floorf.c: Likewise.
7429         * tests/test-floorl.c: Likewise.
7430         * tests/test-fopen.c: Likewise.
7431         * tests/test-fprintf-posix.c: Likewise.
7432         * tests/test-fprintf-posix.h: Likewise.
7433         * tests/test-fpurge.c: Likewise.
7434         * tests/test-freadable.c: Likewise.
7435         * tests/test-freadahead.c: Likewise.
7436         * tests/test-freading.c: Likewise.
7437         * tests/test-freopen.c: Likewise.
7438         * tests/test-frexp.c: Likewise.
7439         * tests/test-frexpl.c: Likewise.
7440         * tests/test-fseek.c: Likewise.
7441         * tests/test-fseeko.c: Likewise.
7442         * tests/test-fseterr.c: Likewise.
7443         * tests/test-fstrcmp.c: Likewise.
7444         * tests/test-ftell.c: Likewise.
7445         * tests/test-ftello.c: Likewise.
7446         * tests/test-fwritable.c: Likewise.
7447         * tests/test-fwriting.c: Likewise.
7448         * tests/test-getaddrinfo.c: Likewise.
7449         * tests/test-getpass.c: Likewise.
7450         * tests/test-gettimeofday.c: Likewise.
7451         * tests/test-hmac-md5.c: Likewise.
7452         * tests/test-hmac-sha1.c: Likewise.
7453         * tests/test-iconv.c: Likewise.
7454         * tests/test-iconvme.c: Likewise.
7455         * tests/test-inttypes.c: Likewise.
7456         * tests/test-isnan.c: Likewise.
7457         * tests/test-isnanf.c: Likewise.
7458         * tests/test-isnanl-nolibm.c: Likewise.
7459         * tests/test-isnanl.c: Likewise.
7460         * tests/test-isnanl.h: Likewise.
7461         * tests/test-ldexpl.c: Likewise.
7462         * tests/test-linked_list.c: Likewise.
7463         * tests/test-linkedhash_list.c: Likewise.
7464         * tests/test-locale.c: Likewise.
7465         * tests/test-localename.c: Likewise.
7466         * tests/test-lock.c: Likewise.
7467         * tests/test-lseek.c: Likewise.
7468         * tests/test-malloca.c: Likewise.
7469         * tests/test-math.c: Likewise.
7470         * tests/test-mbscasecmp.c: Likewise.
7471         * tests/test-mbscasestr1.c: Likewise.
7472         * tests/test-mbscasestr2.c: Likewise.
7473         * tests/test-mbscasestr3.c: Likewise.
7474         * tests/test-mbscasestr4.c: Likewise.
7475         * tests/test-mbschr.c: Likewise.
7476         * tests/test-mbscspn.c: Likewise.
7477         * tests/test-mbsncasecmp.c: Likewise.
7478         * tests/test-mbspbrk.c: Likewise.
7479         * tests/test-mbspcasecmp.c: Likewise.
7480         * tests/test-mbsrchr.c: Likewise.
7481         * tests/test-mbsspn.c: Likewise.
7482         * tests/test-mbsstr1.c: Likewise.
7483         * tests/test-mbsstr2.c: Likewise.
7484         * tests/test-mbsstr3.c: Likewise.
7485         * tests/test-md5.c: Likewise.
7486         * tests/test-memmem.c: Likewise.
7487         * tests/test-netinet_in.c: Likewise.
7488         * tests/test-open.c: Likewise.
7489         * tests/test-printf-frexp.c: Likewise.
7490         * tests/test-printf-frexpl.c: Likewise.
7491         * tests/test-printf-posix.c: Likewise.
7492         * tests/test-printf-posix.h: Likewise.
7493         * tests/test-rbtree_list.c: Likewise.
7494         * tests/test-rbtree_oset.c: Likewise.
7495         * tests/test-rbtreehash_list.c: Likewise.
7496         * tests/test-read-file.c: Likewise.
7497         * tests/test-rijndael.c: Likewise.
7498         * tests/test-search.c: Likewise.
7499         * tests/test-signbit.c: Likewise.
7500         * tests/test-sleep.c: Likewise.
7501         * tests/test-snprintf-posix.c: Likewise.
7502         * tests/test-snprintf-posix.h: Likewise.
7503         * tests/test-snprintf.c: Likewise.
7504         * tests/test-sprintf-posix.c: Likewise.
7505         * tests/test-sprintf-posix.h: Likewise.
7506         * tests/test-stat-time.c: Likewise.
7507         * tests/test-stdbool.c: Likewise.
7508         * tests/test-stdint.c: Likewise.
7509         * tests/test-stdio.c: Likewise.
7510         * tests/test-stdlib.c: Likewise.
7511         * tests/test-stpncpy.c: Likewise.
7512         * tests/test-strcasestr.c: Likewise.
7513         * tests/test-striconv.c: Likewise.
7514         * tests/test-striconveh.c: Likewise.
7515         * tests/test-striconveha.c: Likewise.
7516         * tests/test-string.c: Likewise.
7517         * tests/test-sys_select.c: Likewise.
7518         * tests/test-sys_socket.c: Likewise.
7519         * tests/test-sys_stat.c: Likewise.
7520         * tests/test-sys_time.c: Likewise.
7521         * tests/test-sysexits.c: Likewise.
7522         * tests/test-time.c: Likewise.
7523         * tests/test-tls.c: Likewise.
7524         * tests/test-trunc.c: Likewise.
7525         * tests/test-truncf.c: Likewise.
7526         * tests/test-truncl.c: Likewise.
7527         * tests/test-unistd.c: Likewise.
7528         * tests/test-vasnprintf-posix.c: Likewise.
7529         * tests/test-vasnprintf-posix2.c: Likewise.
7530         * tests/test-vasnprintf.c: Likewise.
7531         * tests/test-vasprintf-posix.c: Likewise.
7532         * tests/test-vasprintf.c: Likewise.
7533         * tests/test-verify.c: Likewise.
7534         * tests/test-vfprintf-posix.c: Likewise.
7535         * tests/test-vprintf-posix.c: Likewise.
7536         * tests/test-vsnprintf-posix.c: Likewise.
7537         * tests/test-vsnprintf.c: Likewise.
7538         * tests/test-vsprintf-posix.c: Likewise.
7539         * tests/test-wchar.c: Likewise.
7540         * tests/test-wctype.c: Likewise.
7541         * tests/test-wcwidth.c: Likewise.
7542         * tests/test-xstrtol.c: Likewise.
7543         * tests/test-xvasprintf.c: Likewise.
7544         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
7545         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
7546         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
7547         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
7548         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
7549         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
7550         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
7551         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
7552         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
7553         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
7554         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
7555         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
7556         * tests/uniname/test-uninames.c: Likewise.
7557         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
7558         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
7559         * tests/unistdio/test-u16-printf1.h: Likewise.
7560         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
7561         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
7562         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
7563         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
7564         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
7565         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
7566         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
7567         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
7568         * tests/unistdio/test-u32-printf1.h: Likewise.
7569         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
7570         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
7571         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
7572         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
7573         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
7574         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
7575         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
7576         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
7577         * tests/unistdio/test-u8-printf1.h: Likewise.
7578         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
7579         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
7580         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
7581         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
7582         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
7583         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
7584         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
7585         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
7586         * tests/unistdio/test-ulc-printf1.h: Likewise.
7587         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
7588         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
7589         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
7590         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
7591         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
7592         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
7593         * tests/uniwidth/test-u16-strwidth.c: Likewise.
7594         * tests/uniwidth/test-u16-width.c: Likewise.
7595         * tests/uniwidth/test-u32-strwidth.c: Likewise.
7596         * tests/uniwidth/test-u32-width.c: Likewise.
7597         * tests/uniwidth/test-u8-strwidth.c: Likewise.
7598         * tests/uniwidth/test-u8-width.c: Likewise.
7599         * tests/uniwidth/test-uc_width.c: Likewise.
7600         * config/srclist-update: Likewise.
7601         (fixlicense): Update to GPLv3+.
7602
7603         Change copyright notice from LGPLv2.1+ to LGPLv3+.
7604         * tests/test-tsearch.c: Change copyright notice.
7605
7606         Change copyright notice from LGPLv2.0+ to LGPLv3+.
7607         * lib/c-strcaseeq.h: Change copyright notice.
7608         * lib/streq.h: Likewise.
7609         * lib/uniconv.h: Likewise.
7610         * lib/uniconv/u-conv-from-enc.h: Likewise.
7611         * lib/uniconv/u-conv-to-enc.h: Likewise.
7612         * lib/uniconv/u-strconv-from-enc.h: Likewise.
7613         * lib/uniconv/u-strconv-to-enc.h: Likewise.
7614         * lib/uniconv/u16-conv-from-enc.c: Likewise.
7615         * lib/uniconv/u16-conv-to-enc.c: Likewise.
7616         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
7617         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
7618         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
7619         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
7620         * lib/uniconv/u32-conv-from-enc.c: Likewise.
7621         * lib/uniconv/u32-conv-to-enc.c: Likewise.
7622         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
7623         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
7624         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
7625         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
7626         * lib/uniconv/u8-conv-from-enc.c: Likewise.
7627         * lib/uniconv/u8-conv-to-enc.c: Likewise.
7628         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
7629         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
7630         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
7631         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
7632         * lib/uniname.h: Likewise.
7633         * lib/uniname/uniname.c: Likewise.
7634         * lib/unistdio.h: Likewise.
7635         * lib/unistdio/u-asnprintf.h: Likewise.
7636         * lib/unistdio/u-asprintf.h: Likewise.
7637         * lib/unistdio/u-printf-args.c: Likewise.
7638         * lib/unistdio/u-printf-args.h: Likewise.
7639         * lib/unistdio/u-printf-parse.h: Likewise.
7640         * lib/unistdio/u-snprintf.h: Likewise.
7641         * lib/unistdio/u-sprintf.h: Likewise.
7642         * lib/unistdio/u-vasprintf.h: Likewise.
7643         * lib/unistdio/u-vsnprintf.h: Likewise.
7644         * lib/unistdio/u-vsprintf.h: Likewise.
7645         * lib/unistdio/u16-asnprintf.c: Likewise.
7646         * lib/unistdio/u16-asprintf.c: Likewise.
7647         * lib/unistdio/u16-printf-parse.c: Likewise.
7648         * lib/unistdio/u16-snprintf.c: Likewise.
7649         * lib/unistdio/u16-sprintf.c: Likewise.
7650         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
7651         * lib/unistdio/u16-u16-asprintf.c: Likewise.
7652         * lib/unistdio/u16-u16-snprintf.c: Likewise.
7653         * lib/unistdio/u16-u16-sprintf.c: Likewise.
7654         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
7655         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
7656         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
7657         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
7658         * lib/unistdio/u16-vasnprintf.c: Likewise.
7659         * lib/unistdio/u16-vasprintf.c: Likewise.
7660         * lib/unistdio/u16-vsnprintf.c: Likewise.
7661         * lib/unistdio/u16-vsprintf.c: Likewise.
7662         * lib/unistdio/u32-asnprintf.c: Likewise.
7663         * lib/unistdio/u32-asprintf.c: Likewise.
7664         * lib/unistdio/u32-printf-parse.c: Likewise.
7665         * lib/unistdio/u32-snprintf.c: Likewise.
7666         * lib/unistdio/u32-sprintf.c: Likewise.
7667         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
7668         * lib/unistdio/u32-u32-asprintf.c: Likewise.
7669         * lib/unistdio/u32-u32-snprintf.c: Likewise.
7670         * lib/unistdio/u32-u32-sprintf.c: Likewise.
7671         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
7672         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
7673         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
7674         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
7675         * lib/unistdio/u32-vasnprintf.c: Likewise.
7676         * lib/unistdio/u32-vasprintf.c: Likewise.
7677         * lib/unistdio/u32-vsnprintf.c: Likewise.
7678         * lib/unistdio/u32-vsprintf.c: Likewise.
7679         * lib/unistdio/u8-asnprintf.c: Likewise.
7680         * lib/unistdio/u8-asprintf.c: Likewise.
7681         * lib/unistdio/u8-printf-parse.c: Likewise.
7682         * lib/unistdio/u8-snprintf.c: Likewise.
7683         * lib/unistdio/u8-sprintf.c: Likewise.
7684         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
7685         * lib/unistdio/u8-u8-asprintf.c: Likewise.
7686         * lib/unistdio/u8-u8-snprintf.c: Likewise.
7687         * lib/unistdio/u8-u8-sprintf.c: Likewise.
7688         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
7689         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
7690         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
7691         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
7692         * lib/unistdio/u8-vasnprintf.c: Likewise.
7693         * lib/unistdio/u8-vasprintf.c: Likewise.
7694         * lib/unistdio/u8-vsnprintf.c: Likewise.
7695         * lib/unistdio/u8-vsprintf.c: Likewise.
7696         * lib/unistdio/ulc-asnprintf.c: Likewise.
7697         * lib/unistdio/ulc-asprintf.c: Likewise.
7698         * lib/unistdio/ulc-printf-parse.c: Likewise.
7699         * lib/unistdio/ulc-snprintf.c: Likewise.
7700         * lib/unistdio/ulc-sprintf.c: Likewise.
7701         * lib/unistdio/ulc-vasnprintf.c: Likewise.
7702         * lib/unistdio/ulc-vasprintf.c: Likewise.
7703         * lib/unistdio/ulc-vsnprintf.c: Likewise.
7704         * lib/unistdio/ulc-vsprintf.c: Likewise.
7705         * lib/unistr.h: Likewise.
7706         * lib/unistr/u-cpy-alloc.h: Likewise.
7707         * lib/unistr/u-cpy.h: Likewise.
7708         * lib/unistr/u-endswith.h: Likewise.
7709         * lib/unistr/u-move.h: Likewise.
7710         * lib/unistr/u-set.h: Likewise.
7711         * lib/unistr/u-startswith.h: Likewise.
7712         * lib/unistr/u-stpcpy.h: Likewise.
7713         * lib/unistr/u-stpncpy.h: Likewise.
7714         * lib/unistr/u-strcat.h: Likewise.
7715         * lib/unistr/u-strcpy.h: Likewise.
7716         * lib/unistr/u-strcspn.h: Likewise.
7717         * lib/unistr/u-strdup.h: Likewise.
7718         * lib/unistr/u-strlen.h: Likewise.
7719         * lib/unistr/u-strncat.h: Likewise.
7720         * lib/unistr/u-strncpy.h: Likewise.
7721         * lib/unistr/u-strnlen.h: Likewise.
7722         * lib/unistr/u-strpbrk.h: Likewise.
7723         * lib/unistr/u-strspn.h: Likewise.
7724         * lib/unistr/u-strstr.h: Likewise.
7725         * lib/unistr/u-strtok.h: Likewise.
7726         * lib/unistr/u16-check.c: Likewise.
7727         * lib/unistr/u16-chr.c: Likewise.
7728         * lib/unistr/u16-cmp.c: Likewise.
7729         * lib/unistr/u16-cpy-alloc.c: Likewise.
7730         * lib/unistr/u16-cpy.c: Likewise.
7731         * lib/unistr/u16-endswith.c: Likewise.
7732         * lib/unistr/u16-mblen.c: Likewise.
7733         * lib/unistr/u16-mbsnlen.c: Likewise.
7734         * lib/unistr/u16-mbtouc-aux.c: Likewise.
7735         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
7736         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
7737         * lib/unistr/u16-mbtouc.c: Likewise.
7738         * lib/unistr/u16-mbtoucr.c: Likewise.
7739         * lib/unistr/u16-move.c: Likewise.
7740         * lib/unistr/u16-next.c: Likewise.
7741         * lib/unistr/u16-prev.c: Likewise.
7742         * lib/unistr/u16-set.c: Likewise.
7743         * lib/unistr/u16-startswith.c: Likewise.
7744         * lib/unistr/u16-stpcpy.c: Likewise.
7745         * lib/unistr/u16-stpncpy.c: Likewise.
7746         * lib/unistr/u16-strcat.c: Likewise.
7747         * lib/unistr/u16-strchr.c: Likewise.
7748         * lib/unistr/u16-strcmp.c: Likewise.
7749         * lib/unistr/u16-strcpy.c: Likewise.
7750         * lib/unistr/u16-strcspn.c: Likewise.
7751         * lib/unistr/u16-strdup.c: Likewise.
7752         * lib/unistr/u16-strlen.c: Likewise.
7753         * lib/unistr/u16-strmblen.c: Likewise.
7754         * lib/unistr/u16-strmbtouc.c: Likewise.
7755         * lib/unistr/u16-strncat.c: Likewise.
7756         * lib/unistr/u16-strncmp.c: Likewise.
7757         * lib/unistr/u16-strncpy.c: Likewise.
7758         * lib/unistr/u16-strnlen.c: Likewise.
7759         * lib/unistr/u16-strpbrk.c: Likewise.
7760         * lib/unistr/u16-strrchr.c: Likewise.
7761         * lib/unistr/u16-strspn.c: Likewise.
7762         * lib/unistr/u16-strstr.c: Likewise.
7763         * lib/unistr/u16-strtok.c: Likewise.
7764         * lib/unistr/u16-to-u32.c: Likewise.
7765         * lib/unistr/u16-to-u8.c: Likewise.
7766         * lib/unistr/u16-uctomb-aux.c: Likewise.
7767         * lib/unistr/u16-uctomb.c: Likewise.
7768         * lib/unistr/u32-check.c: Likewise.
7769         * lib/unistr/u32-chr.c: Likewise.
7770         * lib/unistr/u32-cmp.c: Likewise.
7771         * lib/unistr/u32-cpy-alloc.c: Likewise.
7772         * lib/unistr/u32-cpy.c: Likewise.
7773         * lib/unistr/u32-endswith.c: Likewise.
7774         * lib/unistr/u32-mblen.c: Likewise.
7775         * lib/unistr/u32-mbsnlen.c: Likewise.
7776         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
7777         * lib/unistr/u32-mbtouc.c: Likewise.
7778         * lib/unistr/u32-mbtoucr.c: Likewise.
7779         * lib/unistr/u32-move.c: Likewise.
7780         * lib/unistr/u32-next.c: Likewise.
7781         * lib/unistr/u32-prev.c: Likewise.
7782         * lib/unistr/u32-set.c: Likewise.
7783         * lib/unistr/u32-startswith.c: Likewise.
7784         * lib/unistr/u32-stpcpy.c: Likewise.
7785         * lib/unistr/u32-stpncpy.c: Likewise.
7786         * lib/unistr/u32-strcat.c: Likewise.
7787         * lib/unistr/u32-strchr.c: Likewise.
7788         * lib/unistr/u32-strcmp.c: Likewise.
7789         * lib/unistr/u32-strcpy.c: Likewise.
7790         * lib/unistr/u32-strcspn.c: Likewise.
7791         * lib/unistr/u32-strdup.c: Likewise.
7792         * lib/unistr/u32-strlen.c: Likewise.
7793         * lib/unistr/u32-strmblen.c: Likewise.
7794         * lib/unistr/u32-strmbtouc.c: Likewise.
7795         * lib/unistr/u32-strncat.c: Likewise.
7796         * lib/unistr/u32-strncmp.c: Likewise.
7797         * lib/unistr/u32-strncpy.c: Likewise.
7798         * lib/unistr/u32-strnlen.c: Likewise.
7799         * lib/unistr/u32-strpbrk.c: Likewise.
7800         * lib/unistr/u32-strrchr.c: Likewise.
7801         * lib/unistr/u32-strspn.c: Likewise.
7802         * lib/unistr/u32-strstr.c: Likewise.
7803         * lib/unistr/u32-strtok.c: Likewise.
7804         * lib/unistr/u32-to-u16.c: Likewise.
7805         * lib/unistr/u32-to-u8.c: Likewise.
7806         * lib/unistr/u32-uctomb.c: Likewise.
7807         * lib/unistr/u8-check.c: Likewise.
7808         * lib/unistr/u8-chr.c: Likewise.
7809         * lib/unistr/u8-cmp.c: Likewise.
7810         * lib/unistr/u8-cpy-alloc.c: Likewise.
7811         * lib/unistr/u8-cpy.c: Likewise.
7812         * lib/unistr/u8-endswith.c: Likewise.
7813         * lib/unistr/u8-mblen.c: Likewise.
7814         * lib/unistr/u8-mbsnlen.c: Likewise.
7815         * lib/unistr/u8-mbtouc-aux.c: Likewise.
7816         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
7817         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
7818         * lib/unistr/u8-mbtouc.c: Likewise.
7819         * lib/unistr/u8-mbtoucr.c: Likewise.
7820         * lib/unistr/u8-move.c: Likewise.
7821         * lib/unistr/u8-next.c: Likewise.
7822         * lib/unistr/u8-prev.c: Likewise.
7823         * lib/unistr/u8-set.c: Likewise.
7824         * lib/unistr/u8-startswith.c: Likewise.
7825         * lib/unistr/u8-stpcpy.c: Likewise.
7826         * lib/unistr/u8-stpncpy.c: Likewise.
7827         * lib/unistr/u8-strcat.c: Likewise.
7828         * lib/unistr/u8-strchr.c: Likewise.
7829         * lib/unistr/u8-strcmp.c: Likewise.
7830         * lib/unistr/u8-strcpy.c: Likewise.
7831         * lib/unistr/u8-strcspn.c: Likewise.
7832         * lib/unistr/u8-strdup.c: Likewise.
7833         * lib/unistr/u8-strlen.c: Likewise.
7834         * lib/unistr/u8-strmblen.c: Likewise.
7835         * lib/unistr/u8-strmbtouc.c: Likewise.
7836         * lib/unistr/u8-strncat.c: Likewise.
7837         * lib/unistr/u8-strncmp.c: Likewise.
7838         * lib/unistr/u8-strncpy.c: Likewise.
7839         * lib/unistr/u8-strnlen.c: Likewise.
7840         * lib/unistr/u8-strpbrk.c: Likewise.
7841         * lib/unistr/u8-strrchr.c: Likewise.
7842         * lib/unistr/u8-strspn.c: Likewise.
7843         * lib/unistr/u8-strstr.c: Likewise.
7844         * lib/unistr/u8-strtok.c: Likewise.
7845         * lib/unistr/u8-to-u16.c: Likewise.
7846         * lib/unistr/u8-to-u32.c: Likewise.
7847         * lib/unistr/u8-uctomb-aux.c: Likewise.
7848         * lib/unistr/u8-uctomb.c: Likewise.
7849         * lib/unitypes.h: Likewise.
7850         * lib/uniwidth.h: Likewise.
7851         * lib/uniwidth/cjk.h: Likewise.
7852         * lib/uniwidth/u16-strwidth.c: Likewise.
7853         * lib/uniwidth/u16-width.c: Likewise.
7854         * lib/uniwidth/u32-strwidth.c: Likewise.
7855         * lib/uniwidth/u32-width.c: Likewise.
7856         * lib/uniwidth/u8-strwidth.c: Likewise.
7857         * lib/uniwidth/u8-width.c: Likewise.
7858         * lib/uniwidth/width.c: Likewise.
7859
7860 2007-10-07  Bruno Haible  <bruno@clisp.org>
7861
7862         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
7863         The file is still under LGPL (see modules/inttypes).
7864
7865 2007-10-06  Bruno Haible  <bruno@clisp.org>
7866
7867         * modules/trunc (Dependencies): Add 'extensions'.
7868         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
7869         Reported by Ben Pfaff <blp@gnu.org>.
7870
7871 2007-10-06  Bruno Haible  <bruno@clisp.org>
7872
7873         * modules/freopen-tests: New file.
7874         * tests/test-freopen.c: New file.
7875
7876         * modules/fopen-tests: New file.
7877         * tests/test-fopen.c: New file.
7878
7879         * modules/fopen: New file.
7880         * lib/fopen.c: New file.
7881         * m4/fopen.m4: New file.
7882         * modules/freopen: New file.
7883         * lib/freopen.c: New file.
7884         * m4/freopen.m4: New file.
7885         * lib/stdio.in.h (fopen, freopen): New declarations.
7886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
7887         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7888         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
7889         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7890         * doc/functions/fopen.texi: Mention the 'fopen' module.
7891         * doc/functions/freopen.texi: Mention the 'freopen' module.
7892
7893 2007-10-06  Bruno Haible  <bruno@clisp.org>
7894
7895         * modules/open-tests: New file.
7896         * tests/test-open.c: New file.
7897
7898         * modules/open: New file.
7899         * lib/open.c: New file.
7900         * m4/open.m4: New file.
7901         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
7902         lib/open.c does.
7903         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
7904         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
7905         macros.
7906         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
7907         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
7908         REPLACE_OPEN.
7909         * doc/functions/open.texi: Mention the 'open' module.
7910
7911 2007-10-04  Bruno Haible  <bruno@clisp.org>
7912
7913         * modules/ceill-tests: New file.
7914         * tests/test-ceill.c: New file.
7915
7916         * modules/ceill: New file.
7917         * lib/ceill.c: Replace entire file.
7918         * m4/ceill.m4: New file.
7919         * lib/math.in.h (ceill): Replace declaration.
7920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
7921         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
7922         * doc/functions/ceill.texi: Mention the 'ceill' module.
7923         * modules/mathl (Files): Remove lib/ceill.c.
7924         (Depends-on): Add ceill.
7925
7926 2007-10-04  Bruno Haible  <bruno@clisp.org>
7927
7928         * modules/ceilf-tests: New file.
7929         * tests/test-ceilf.c: New file.
7930
7931         * modules/ceilf: New file.
7932         * lib/ceil.c: New file.
7933         * lib/ceilf.c: New file.
7934         * m4/ceilf.m4: New file.
7935         * lib/math.in.h (ceilf): New declaration.
7936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
7937         HAVE_DECL_CEILF.
7938         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
7939         HAVE_DECL_CEILF.
7940         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
7941
7942 2007-10-04  Bruno Haible  <bruno@clisp.org>
7943
7944         * modules/floorl-tests: New file.
7945         * tests/test-floorl.c: New file.
7946
7947         * modules/floorl: New file.
7948         * lib/floorl.c: Replace entire file.
7949         * m4/floorl.m4: New file.
7950         * lib/math.in.h (floorl): Replace declaration.
7951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
7952         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
7953         * doc/functions/floorl.texi: Mention the 'floorl' module.
7954         * modules/mathl (Files): Remove lib/floorl.c.
7955         (Depends-on): Add floorl.
7956
7957 2007-10-04  Bruno Haible  <bruno@clisp.org>
7958
7959         * modules/floorf-tests: New file.
7960         * tests/test-floorf.c: New file.
7961
7962         * modules/floorf: New file.
7963         * lib/floor.c: New file.
7964         * lib/floorf.c: New file.
7965         * m4/floorf.m4: New file.
7966         * lib/math.in.h (floorf): New declaration.
7967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
7968         HAVE_DECL_FLOORF.
7969         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
7970         HAVE_DECL_FLOORF.
7971         * doc/functions/floorf.texi: Mention the 'floorf' module.
7972
7973 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
7974             Bruno Haible  <bruno@clisp.org>
7975
7976         Advertise for the Git server instead of the CVS server.
7977         * doc/gnulib-intro.texi (Steady Development): Mention the Git
7978         repository instead of the CVS one.
7979         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
7980         about all VCS systems generically.
7981         * doc/gnulib.texi (Introduction): Capitalize `Git'.
7982
7983 2007-10-04  Bruno Haible  <bruno@clisp.org>
7984
7985         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
7986         means.
7987         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
7988
7989 2007-10-04  Bruno Haible  <bruno@clisp.org>
7990
7991         * modules/truncl-tests: New file.
7992         * tests/test-truncl.c: New file.
7993
7994         * modules/truncl: New file.
7995         * lib/truncl.c: New file.
7996         * m4/truncl.m4: New file.
7997         * lib/math.in.h (truncl): New declaration.
7998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
7999         HAVE_DECL_TRUNCL.
8000         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
8001         HAVE_DECL_TRUNCL.
8002         * doc/functions/truncl.texi: Mention the 'truncl' module.
8003
8004 2007-10-04  Bruno Haible  <bruno@clisp.org>
8005
8006         * modules/truncf-tests: New file.
8007         * tests/test-truncf.c: New file.
8008
8009         * modules/truncf: New file.
8010         * lib/trunc.c: Make paramerizable through USE_* macros.
8011         * lib/truncf.c: New file.
8012         * m4/truncf.m4: New file.
8013         * lib/math.in.h (truncf): New declaration.
8014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
8015         HAVE_DECL_TRUNCF.
8016         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
8017         HAVE_DECL_TRUNCF.
8018         * doc/functions/truncf.texi: Mention the 'truncf' module.
8019
8020 2007-10-03  Bruno Haible  <bruno@clisp.org>
8021
8022         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
8023         augmentation also for tests modules.
8024         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
8025         * modules/atexit-tests (Makefile.am): Likewise.
8026         * modules/binary-io-tests (Makefile.am): Likewise.
8027         * modules/c-strcase-tests (Makefile.am): Likewise.
8028         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
8029         * modules/canonicalize-tests (Makefile.am): Likewise.
8030         * modules/closein-tests (Makefile.am): Likewise.
8031         * modules/fprintf-posix-tests (Makefile.am): Likewise.
8032         * modules/freadahead-tests (Makefile.am): Likewise.
8033         * modules/fseek-tests (Makefile.am): Likewise.
8034         * modules/fseeko-tests (Makefile.am): Likewise.
8035         * modules/ftell-tests (Makefile.am): Likewise.
8036         * modules/ftello-tests (Makefile.am): Likewise.
8037         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
8038         * modules/isnanl-tests (Makefile.am): Likewise.
8039         * modules/lseek-tests (Makefile.am): Likewise.
8040         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8041         * modules/mbscasestr-tests (Makefile.am): Likewise.
8042         * modules/mbschr-tests (Makefile.am): Likewise.
8043         * modules/mbscspn-tests (Makefile.am): Likewise.
8044         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8045         * modules/mbspbrk-tests (Makefile.am): Likewise.
8046         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8047         * modules/mbsrchr-tests (Makefile.am): Likewise.
8048         * modules/mbsspn-tests (Makefile.am): Likewise.
8049         * modules/mbsstr-tests (Makefile.am): Likewise.
8050         * modules/printf-posix-tests (Makefile.am): Likewise.
8051         * modules/snprintf-posix-tests (Makefile.am): Likewise.
8052         * modules/sprintf-posix-tests (Makefile.am): Likewise.
8053         * modules/tsearch-tests (Makefile.am): Likewise.
8054         * modules/uniname/uniname-tests (Makefile.am): Likewise.
8055         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
8056         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
8057         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
8058         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8059         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
8060         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
8061         * modules/vprintf-posix-tests (Makefile.am): Likewise.
8062         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
8063         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
8064         * modules/xstrtoimax-tests (Makefile.am): Likewise.
8065         * modules/xstrtol-tests (Makefile.am): Likewise.
8066         * modules/xstrtoumax-tests (Makefile.am): Likewise.
8067         * modules/yesno-tests (Makefile.am): Likewise.
8068
8069 2007-10-03  Bruno Haible  <bruno@clisp.org>
8070
8071         * modules/trunc-tests: New file.
8072         * tests/test-trunc.c: New file.
8073
8074         * modules/trunc: New file.
8075         * lib/trunc.c: New file.
8076         * m4/trunc.m4: New file.
8077         * lib/math.in.h (trunc): New declaration.
8078         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
8079         HAVE_DECL_TRUNC.
8080         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
8081         HAVE_DECL_TRUNC.
8082         * doc/functions/trunc.texi: Mention the 'trunc' module.
8083
8084 2007-10-03  Bruno Haible  <bruno@clisp.org>
8085
8086         * tests/test-fpending.c: New file, mostly copied
8087         from coreutils/lib/t-fpending.c.
8088         * modules/fpending-tests: New file.
8089
8090 2007-10-03  Bruno Haible  <bruno@clisp.org>
8091
8092         Port the stdio extensions to QNX (untested).
8093         * lib/fseterr.c (fseterr): Add support for QNX.
8094         * lib/fbufmode.c (fbufmode): Likewise.
8095         * lib/freadable.c (freadable): Likewise.
8096         * lib/fwritable.c (fwritable): Likewise.
8097         * lib/freading.c (freading): Likewise.
8098         * lib/fwriting.c (fwriting): Likewise.
8099         * lib/freadahead.c (freadahed): Likewise.
8100         * lib/fpurge.c (fpurge): Likewise.
8101         * lib/fseeko.c (rpl_fseeko): Likewise.
8102
8103 2007-10-03  Bruno Haible  <bruno@clisp.org>
8104             Jim Meyering  <jim@meyering.net>
8105             Eric Blake  <ebb9@byu.net>
8106
8107         * doc/relocatable.texi: Use @command instead of @program.
8108
8109 2007-10-02  Jim Meyering  <jim@meyering.net>
8110
8111         Perform one more "_.h" -> ".in.h" substitution.
8112         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
8113         instead of unistd_.h here, too.
8114
8115 2007-10-01  Bruno Haible  <bruno@clisp.org>
8116
8117         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
8118         Needed for the alloca-opt module.
8119
8120 2007-09-30  Bruno Haible  <bruno@clisp.org>
8121
8122         * lib/alloca.in.h: Renamed from lib/alloca_.h.
8123         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
8124         alloca_.h.
8125         * lib/argz.in.h: Renamed from lib/argz_.h.
8126         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
8127         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
8128         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
8129         byteswap_.h.
8130         * lib/dirent.in.h: Renamed from lib/dirent_.h.
8131         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
8132         dirent_.h.
8133         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
8134         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
8135         fcntl_.h.
8136         * lib/float.in.h: Renamed from lib/float_.h.
8137         * modules/float (Files, Makefile.am): Use float.in.h instead of
8138         float_.h.
8139         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
8140         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
8141         fnmatch_.h.
8142         * lib/getopt.in.h: Renamed from lib/getopt_.h.
8143         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
8144         getopt_.h.
8145         * lib/glob.in.h: Renamed from lib/glob_.h.
8146         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
8147         * lib/iconv.in.h: Renamed from lib/iconv_.h.
8148         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
8149         iconv_.h.
8150         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
8151         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
8152         inttypes_.h.
8153         * lib/locale.in.h: Renamed from lib/locale_.h.
8154         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
8155         locale_.h.
8156         * lib/math.in.h: Renamed from lib/math_.h.
8157         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
8158         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
8159         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
8160         of netinet_in_.h. Add dependency.
8161         * lib/poll.in.h: Renamed from lib/poll_.h.
8162         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
8163         * lib/search.in.h: Renamed from lib/search_.h.
8164         * modules/search (Files, Makefile.am): Use search.in.h instead of
8165         search_.h.
8166         * lib/signal.in.h: Renamed from lib/signal_.h.
8167         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
8168         _signal.h.
8169         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
8170         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
8171         stdbool_.h.
8172         * lib/stdint.in.h: Renamed from lib/stdint_.h.
8173         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
8174         stdint_.h.
8175         * lib/stdio.in.h: Renamed from lib/stdio_.h.
8176         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
8177         stdio_.h.
8178         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
8179         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
8180         stdlib_.h.
8181         * lib/string.in.h: Renamed from lib/string_.h.
8182         * modules/string (Files, Makefile.am): Use string.in.h instead of
8183         string_.h.
8184         * doc/gnulib-tool.texi (Initial import): Update.
8185         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
8186         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
8187         of sys_select_.h. Add dependency.
8188         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
8189         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
8190         of sys_socket_.h.
8191         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
8192         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
8193         sys_stat_.h.
8194         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
8195         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
8196         sys_time_.h.
8197         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
8198         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
8199         sysexits_.h.
8200         * lib/time.in.h: Renamed from lib/time_.h.
8201         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
8202         * lib/unistd.in.h: Renamed from lib/unistd_.h.
8203         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
8204         unistd_.h.
8205         * lib/wchar.in.h: Renamed from lib/wchar_.h.
8206         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
8207         wchar_.h.
8208         * lib/wctype.in.h: Renamed from lib/wctype_.h.
8209         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
8210         wctype_.h.
8211         * build-aux/bootstrap (slurp): Update.
8212         * lib/.cppi-disable: Update.
8213
8214 2007-09-30  Bruno Haible  <bruno@clisp.org>
8215
8216         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
8217         Needed on BeOS.
8218
8219 2007-09-30  Bruno Haible  <bruno@clisp.org>
8220
8221         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
8222
8223 2007-09-29  Bruno Haible  <bruno@clisp.org>
8224
8225         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
8226
8227 2007-09-29  Bruno Haible  <bruno@clisp.org>
8228
8229         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
8230         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
8231         * build-aux/install-reloc: Compile also areadlink.c.
8232         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
8233
8234 2007-09-29  Bruno Haible  <bruno@clisp.org>
8235
8236         * gnulib-tool (func_emit_initmacro_done): Indentation.
8237
8238 2007-09-29  Bruno Haible  <bruno@clisp.org>
8239
8240         * README: Add CVS checkout update instructions.
8241         Info from Bob Proulx <bob@proulx.com>.
8242
8243 2007-09-28  Eric Blake  <ebb9@byu.net>
8244
8245         Provide move-if-change.
8246         * build-aux/move-if-change: New file, based on best practice
8247         rather than any canonical upstream location.
8248
8249 2007-09-28  Jim Meyering  <jim@meyering.net>
8250
8251         Fix canonicalize loop-detection corner case.
8252         Do not attempt to stat the symlink values stored via seen_triple.
8253         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
8254         on linux-2.6.18, (but not 2.6.22).
8255         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
8256         triple_compare.  The former compares dev,ino,filename, while the latter
8257         would actually stat dirname(filename) when dev and ino were equal.
8258         * lib/hash-triple.c: Install <string.h>.
8259         (STREQ): Define.
8260         (triple_compare_ino_str): New function.
8261         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
8262
8263 2007-09-28  Eric Blake  <ebb9@byu.net>
8264
8265         Enforce that AC_REPLACE_FUNCS files exist.
8266         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
8267         override check for typos.
8268
8269         Fix test-closein on Solaris 10.
8270         * tests/test-closein.c (main): Don't assume stdin can be inherited
8271         closed on all systems.
8272         * tests/test-closein.sh: Likewise.
8273         Reported by Piotr Tarnowski.
8274
8275 2007-09-28  Jim Meyering  <jim@meyering.net>
8276
8277         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
8278
8279 2007-09-27  Jim Meyering  <jim@meyering.net>
8280
8281         canonicalize: Avoid a false-positive cycle failure.
8282         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
8283         Sort.  Remove cycle-check.
8284         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
8285         not cycle-check.h.
8286         (seen_triple): New function.
8287         (canonicalize_filename_mode): Use it instead of cycle-check.
8288         * tests/test-canonicalize.c: Add a test for this bug.
8289         * tests/test-canonicalize.sh: Set up and run the test.
8290
8291         New module, file-set, from coreutils.
8292         * modules/file-set: Define it.
8293         * lib/file-set.c, lib/file-set.h: Implement.
8294
8295         New module, hash-triple, from coreutils.
8296         * modules/hash-triple: Define it.
8297         * lib/hash-triple.c, lib/hash-triple.h: Implement.
8298
8299 2007-09-25  Eric Blake  <ebb9@byu.net>
8300
8301         Fix strerror on Interix.
8302         * lib/string_.h (strerror): Declare replacement.
8303         * doc/functions/strerror.texi (strerror): Document the Interix
8304         shortcoming.
8305         * modules/string (Makefile.am): Support new hooks.
8306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
8307         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
8308         gl_FUNC_STRERROR_SEPARATE.
8309         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
8310         * lib/strerror.c (rpl_strerror): Provide replacement.
8311         * modules/strerror (Depends-on): Add string.
8312         (configure.ac): Detect use of module.
8313         * tests/test-strerror.c: New file.
8314         * modules/strerror-tests: New test module.
8315         * modules/argp (Depends-on): Add strerror.
8316         * modules/error (Depends-on): Likewise.
8317         Reported by Martin Koeppe.
8318
8319 2007-09-24  Bruno Haible  <bruno@clisp.org>
8320
8321         * README: Update git instructions.
8322
8323 2007-09-24  Eric Blake  <ebb9@byu.net>
8324
8325         Revert fpending breakage from 2007-09-08.
8326         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
8327         __fpending.c.
8328
8329 2007-09-24  Jim Meyering  <jim@meyering.net>
8330
8331         filenamecat.c: Add a test.
8332         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
8333         showing how the function works when DIR is the empty string.
8334
8335 2007-09-21  Simon Josefsson  <simon@josefsson.org>
8336
8337         * tests/test-canonicalize.sh: Turn on executable bit.
8338
8339 2007-09-19  Eric Blake  <ebb9@byu.net>
8340
8341         * README: Update CVS instructions.
8342
8343 2007-09-18  Bruno Haible  <bruno@clisp.org>
8344
8345         * modules/areadlink: New file.
8346         * lib/areadlink.h (areadlink): New declaration.
8347         * lib/areadlink.c: New file, based on lib/xreadlink.c.
8348
8349 2007-09-17  Jim Meyering  <jim@meyering.net>
8350
8351         * lib/savewd.c (ESTALE) [!defined]: Define.
8352         Reported to be required on Interix by Martin Koeppe.
8353
8354 2007-09-17  Bruno Haible  <bruno@clisp.org>
8355
8356         * gnulib-tool (func_version): Use $version.
8357
8358 2007-09-16  Bruno Haible  <bruno@clisp.org>
8359
8360         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
8361         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
8362         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
8363         Reported by Greg Schafer <gschafer@zip.com.au>.
8364
8365 2007-09-15  Bruno Haible  <bruno@clisp.org>
8366
8367         * gnulib-tool (sed): Try a little harder to make bash understand the
8368         alias.
8369         Reported by Bruce Korb <bruce.korb@gmail.com>.
8370
8371 2007-09-13  Eric Blake  <ebb9@byu.net>
8372
8373         * ChangeLog: Remove conflict markers.
8374
8375 2007-09-13  Simon Josefsson  <simon@josefsson.org>
8376
8377         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
8378         Reported by Bruno Haible <bruno@clisp.org>.
8379
8380 2007-09-12  Bruno Haible  <bruno@clisp.org>
8381
8382         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
8383         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
8384         is not defined.
8385
8386 2007-09-12  Eric Blake  <ebb9@byu.net>
8387
8388         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
8389         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
8390         Autoconf definition.
8391         * modules/euidaccess (Depends-on): Add extensions, for
8392         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
8393         * modules/fnmatch (Depends-on): Likewise.
8394         * modules/getaddrinfo (Depends-on): Likewise.
8395         * modules/getdelim (Depends-on): Likewise.
8396         * modules/getline (Depends-on): Likewise.
8397         * modules/getsubopt (Depends-on): Likewise.
8398         * modules/gettext (Depends-on): Likewise.
8399         * modules/group-member (Depends-on): Likewise.
8400         * modules/mbchar (Depends-on): Likewise.
8401         * modules/memmem (Depends-on): Likewise.
8402         * modules/mempcpy (Depends-on): Likewise.
8403         * modules/memrchr (Depends-on): Likewise.
8404         * modules/pagealign_alloc (Depends-on): Likewise.
8405         * modules/readutmp (Depends-on): Likewise.
8406         * modules/stpcpy (Depends-on): Likewise.
8407         * modules/stpncpy (Depends-on): Likewise.
8408         * modules/strchrnul (Depends-on): Likewise.
8409         * modules/strndup (Depends-on): Likewise.
8410         * modules/strsep (Depends-on): Likewise.
8411         * modules/strverscmp (Depends-on): Likewise.
8412         * modules/vasprintf (Depends-on): Likewise.
8413         * modules/wcwidth (Depends-on): Likewise.
8414         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
8415         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
8416         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
8417         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
8418         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8419         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8420         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
8421         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
8422         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
8423         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
8424         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8425         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
8426         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
8427         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8428         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
8429         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8430         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8431         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
8432         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8433         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
8434         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
8435         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
8436         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
8437         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
8438         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
8439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8440         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
8441         so that lock.m4 can be used in gettext without extensions module.
8442
8443 2007-09-11  Bruno Haible  <bruno@clisp.org>
8444
8445         * m4/isc-posix.m4: Remove file.
8446         Suggested by Eric Blake.
8447
8448 2007-09-11  Eric Blake  <ebb9@byu.net>
8449
8450         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
8451
8452 2007-09-10  Bruno Haible  <bruno@clisp.org>
8453
8454         * posix-modules: Fix typo in error message.
8455         Reported by Matt <mkraai@beckman.com>.
8456
8457 2007-09-09  Bruno Haible  <bruno@clisp.org>
8458
8459         * doc/functions/getdelim.texi: Update list of platforms lacking the
8460         function.
8461         * doc/functions/getline.texi: Likewise.
8462
8463 2007-09-09  Jim Meyering  <jim@meyering.net>
8464
8465         * lib/hash.c (hash_initialize): Detect calloc failure.
8466         Reported by Bruno Haible.
8467
8468 2007-09-09  Bruno Haible  <bruno@clisp.org>
8469
8470         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
8471         malloc or realloc fails.
8472
8473 2007-09-09  Bruno Haible  <bruno@clisp.org>
8474
8475         * modules/getcwd (Depends-on): Add malloc-posix.
8476         * modules/glob (Depends-on): Likewise.
8477         * modules/putenv (Depends-on): Likewise.
8478         * modules/strdup (Depends-on): Likewise.
8479         * modules/getdelim (Depends-on): Add realloc-posix.
8480         * modules/read-file (Depends-on): Likewise.
8481
8482 2007-09-09  Bruno Haible  <bruno@clisp.org>
8483
8484         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
8485         (gl_FUNC_MALLOC_POSIX): Require it.
8486         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
8487         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
8488         * modules/realloc (Files): Add m4/malloc.m4.
8489         * modules/calloc (Files): Likewise.
8490
8491 2007-09-09  Bruno Haible  <bruno@clisp.org>
8492
8493         * modules/malloc-posix: New file.
8494         * modules/malloc (Depends-on): Add malloc-posix.
8495         * lib/malloc.c: Include errno.h.
8496         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
8497         and a POSIX-compatible malloc into a single function. Set ENOMEM
8498         when returning NULL.
8499         * m4/malloc.m4: New file.
8500         * doc/functions/malloc.texi: Mention the malloc-posix module.
8501         * lib/stdlib_.h (malloc): New declaration.
8502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8503         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
8504         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
8505         and HAVE_MALLOC_POSIX.
8506
8507 2007-09-09  Bruno Haible  <bruno@clisp.org>
8508
8509         * modules/realloc-posix: New file.
8510         * modules/realloc (Depends-on): Add realloc-posix.
8511         * lib/realloc.c: Include errno.h.
8512         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
8513         and a POSIX-compatible realloc into a single function. Set ENOMEM
8514         when returning NULL.
8515         * m4/realloc.m4: New file.
8516         * doc/functions/realloc.texi: Mention the realloc-posix module.
8517         * lib/stdlib_.h (realloc): New declaration.
8518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8519         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
8520         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
8521         and HAVE_REALLOC_POSIX.
8522
8523 2007-09-09  Bruno Haible  <bruno@clisp.org>
8524
8525         * modules/calloc-posix: New file.
8526         * modules/calloc (Depends-on): Add calloc-posix.
8527         * lib/calloc.c: Include errno.h.
8528         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
8529         and a POSIX-compatible calloc into a single function. Set ENOMEM
8530         when returning NULL.
8531         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
8532         * doc/functions/calloc.texi: Mention the calloc-posix module.
8533         * lib/stdlib_.h (calloc): New declaration.
8534         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8535         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
8536         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
8537         and HAVE_CALLOC_POSIX.
8538
8539 2007-09-09  Bruno Haible  <bruno@clisp.org>
8540
8541         Allow for modules to show an arbitrary notice.
8542         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
8543         * gnulib-tool: New option --extract-notice.
8544         (func_usage): Document it.
8545         (sed_extract_prog): Update.
8546         (func_get_notice): New function.
8547         (func_modules_notice): New function.
8548         (func_import, func_create_testdir): Invoke it.
8549         Suggested by Jim Meyering.
8550
8551 2007-09-09  Bruno Haible  <bruno@clisp.org>
8552
8553         * gnulib-tool: New options --verbose, --quiet.
8554         (func_usage): Document them.
8555         (verbose): New variable.
8556         (func_execute_command): New function.
8557         (func_import): Don't show the module list and the file list if
8558         $verbose < 0.
8559         (func_create_testdir): Likewise. Use func_execute_command.
8560         (func_create_megatestdir): Use func_execute_command.
8561
8562 2007-09-08  Bruno Haible  <bruno@clisp.org>
8563
8564         * gnulib-tool (func_import): Prefer rsync over wget when available,
8565         for fetching the PO files.
8566
8567 2007-09-08  Bruno Haible  <bruno@clisp.org>
8568
8569         * posix-modules: New file. Portions copied from gnulib-tool.
8570         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
8571
8572 2007-09-08  Jim Meyering  <jim@meyering.net>
8573
8574         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
8575         * lib/fpending.h: Rename from __fpending.h.
8576         * lib/fpending.c: Rename from __fpending.c.
8577         Include "fpending.h", not "__fpending.h".
8578         * lib/__fpending.h, lib/__fpending.c: Remove files.
8579         * modules/fpending (Files): Reflect new file names.
8580         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
8581
8582 2007-09-08  Bruno Haible  <bruno@clisp.org>
8583
8584         * m4/inttypes-h.m4: Remove stub file.
8585
8586 2007-09-07  Simon Josefsson  <simon@josefsson.org>
8587
8588         * doc/headers/stdint.texi: Discuss #include_next issue.
8589
8590 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8591
8592         * build-aux/bootstrap: Remove obsolete comment about wget --help.
8593
8594 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8595
8596         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
8597         in variable name.
8598
8599 2007-09-03  Jim Meyering  <jim@meyering.net>
8600
8601         New module: git-version-gen.
8602         * modules/git-version-gen: New file.
8603
8604         Import changes from coreutils for bootstrap script.
8605
8606         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
8607
8608         bootstrap: uses rsync to download the .po files
8609         * build-aux/bootstrap (po_download_command_format): New global.
8610         (download_po_files): Use rsync.
8611         (update_po_files): Don't remove .po files after download,
8612         so future rsync runs can take advantage of the copies.
8613
8614         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
8615
8616         Solve the unnecessary-.po-file-regeneration problem once and for all.
8617         * build-aux/bootstrap (download_po_files): New function, renamed from
8618         get_translations.  Now, downloads, but doesn't update LINGUAS.
8619         (update_po_files): New function.
8620
8621         bootstrap: Ignore more.
8622         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
8623         uniwidth to e.g., lib/.gitignore.
8624         (slurp): Handle the sys_stat_.h -> sys mapping, too.
8625
8626         * build-aux/bootstrap: New setting: vc_ignore.
8627         (insert_sorted_if_absent): Create $file if absent.
8628         Adapt to new, possibly empty, list: $vc_ignore.
8629
8630         bootstrap: generate more ignorable names
8631         * build-aux/bootstrap (slurp): When generating ignorable names,
8632         also map .sin to .sed, .gperf to .c, and .y to .c.
8633
8634 2007-09-03  Jim Meyering  <jim@meyering.net>
8635
8636         * build-aux/git-version-gen: New file, from coreutils.  For details, see
8637         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
8638
8639 2007-09-02  Bruno Haible  <bruno@clisp.org>
8640
8641         Fix mis-recognition of 'mcs' on QNX 6.
8642         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
8643         output contains the string "Mono".
8644         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
8645         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
8646
8647 2007-09-01  Bruno Haible  <bruno@clisp.org>
8648
8649         Fix collision between uniwidth/* and linebreak modules.
8650         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
8651         u32_width): Remove declarations.
8652         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
8653         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
8654         streq3, streq2, streq1, streq0): Remove functions.
8655         (STREQ): Remove macro.
8656         (is_cjk_encoding): Remove function.
8657         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
8658         (uc_width, u8_width, u16_width, u32_width): Remove functions.
8659         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
8660         * NEWS: Document the change.
8661
8662 2007-09-01  Bruno Haible  <bruno@clisp.org>
8663
8664         * lib/streq.h: Add double-inclusion guard.
8665
8666 2007-09-01  Karl Berry  <karl@gnu.org>
8667
8668         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
8669
8670 2007-08-28  Jim Meyering  <jim@meyering.net>
8671
8672         Rename mreadlink_with_size to areadlink_with_size.
8673         * NEWS: Document the change.
8674         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
8675         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
8676         * lib/mreadlink.h: Rename this to...
8677         * lib/areadlink.h: ...this.
8678         * modules/mreadlink-with-size: Rename this to...
8679         * modules/areadlink-with-size: ...this.
8680         * lib/canonicalize.c: Reflect the renaming.
8681         * modules/canonicalize: Likewise.
8682
8683 2007-08-26  Bruno Haible  <bruno@clisp.org>
8684
8685         * gnulib-tool (func_import): When deciding which files to remove,
8686         consider also dangling symbolic links.
8687         Reported by Eric Blake.
8688
8689 2007-08-26  Bruno Haible  <bruno@clisp.org>
8690
8691         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
8692
8693 2007-08-23  Simon Josefsson  <simon@josefsson.org>
8694
8695         * lib/readline.c: Don't include getline.h, the prototype is now
8696         found in stdio.h.
8697
8698 2007-08-23  Jim Meyering  <jim@meyering.net>
8699
8700         Getdelim touchup.
8701         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
8702         around the funlockfile call, since funlockfile never sets errno.
8703         Don't set errno upon failed realloc.
8704
8705 2007-08-22  Eric Blake  <ebb9@byu.net>
8706
8707         Getline touchups.
8708         * lib/getdelim.c (getdelim): Revert regression that required *n to
8709         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
8710         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
8711         getdelim, rather than whether implementation is missing.
8712         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
8713         * lib/stdio_.h (getline): Also declare if replacement is
8714         required.
8715         * doc/functions/getdelim.texi: New file.
8716         * doc/functions/getline.texi: Likewise.
8717         * doc/gnulib.texi (Function Substitutes): Add new files.
8718         Reported by Bruno Haible.
8719
8720 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
8721
8722         * users.txt: Add Guile.
8723
8724 2007-08-22  Eric Blake  <ebb9@byu.net>
8725
8726         * tests/test-getdelim.c (main): Use remove, not unlink.
8727         * tests/test-getline.c (main): Likewise.
8728
8729         Move getline and getdelim into stdio.h, per POSIX 200x.
8730         * modules/getline (Files): Remove getline.h.
8731         (Depends-on): Add stdio.
8732         (configure.ac): Add module indicator.
8733         * modules/getdelim (Files): Remove getdelim.h.
8734         (Depends-on): Add stdio.
8735         (configure.ac): Add module indicator.
8736         * modules/stdio (Makefile.am): Work with new indicators.
8737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8738         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
8739         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8740         * lib/getdelim.h: Delete.
8741         * lib/getline.h: Delete.
8742         * lib/stdio_.h (getdelim, getline): Declare.
8743         * modules/getdelim-tests: New module.
8744         * modules/getline-tests: Likewise.
8745         * tests/test-getdelim.c: New file.
8746         * tests/test-getline.c: Likewise.
8747         * NEWS: Document the change.
8748         * lib/getline.c: Update choice of header.
8749         * lib/csharpcomp.c: Likewise.
8750         * lib/getpass.c: Likewise.
8751         * lib/javacomp.c: Likewise.
8752         * lib/javaversion.c: Likewise.
8753         * lib/yesno.c: Likewise.
8754         * lib/getdelim.c: Likewise.
8755         (getdelim): Set errno on failure, and avoid memory leak.
8756
8757 2007-08-19  Bruno Haible  <bruno@clisp.org>
8758
8759         * modules/closein (Depends-on): Add freadahead.
8760         * lib/closein.c: Include freadahead.h.
8761         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
8762         is zero.
8763
8764 2007-08-19  Bruno Haible  <bruno@clisp.org>
8765
8766         * modules/freadahead-tests: New file.
8767         * tests/test-freadahead.sh: New file.
8768         * tests/test-freadahead.c: New file.
8769
8770         * modules/freadahead: New file.
8771         * lib/freadahead.h: New file.
8772         * lib/freadahead.c: New file.
8773         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
8774         fbufmode, fpurge, freadable, fwritable.
8775
8776 2007-08-19  Eric Blake  <ebb9@byu.net>
8777
8778         Test yesno in combination with closein.
8779         * lib/yesno.c (yesno): Document use of stdin.
8780         * modules/yesno-tests (Files): New module.
8781         * tests/test-yesno.c (main): New file.
8782         * tests/test-yesno.sh: Likewise.
8783
8784 2007-08-19  Bruno Haible  <bruno@clisp.org>
8785
8786         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
8787         * lib/fseeko.c (rpl_fseeko): Likewise.
8788         * lib/fseterr.c (fseterr): Likewise.
8789
8790 2007-08-19  Bruno Haible  <bruno@clisp.org>
8791
8792         * tests/test-lseek.c (main): Disable a test for BeOS.
8793         * doc/functions/lseek.texi: Document the BeOS bug.
8794
8795 2007-08-19  Bruno Haible  <bruno@clisp.org>
8796             Eric Blake  <ebb9@byu.net>
8797
8798         * lib/lseek.c: Include <sys/stat.h>.
8799         (rpl_lseek): Add workaround code also for Unix platforms.
8800         Needed for BeOS.
8801         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
8802         * doc/functions/lseek.texi: Document BeOS definiency.
8803
8804 2007-08-18  Bruno Haible  <bruno@clisp.org>
8805
8806         * modules/fstrcmp-tests: New file.
8807         * tests/test-fstrcmp.c: New file.
8808
8809 2007-08-18  Bruno Haible  <bruno@clisp.org>
8810
8811         * modules/fstrcmp: New file, from GNU gettext with modifications.
8812         * lib/fstrcmp.h: New file, from GNU gettext.
8813         * lib/fstrcmp.c: New file, from GNU gettext.
8814         * MODULES.html.sh (String handling): Add fstrcmp.
8815
8816 2007-08-18  Bruno Haible  <bruno@clisp.org>
8817
8818         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
8819         'bool'.
8820         (diag, compareseq): Remove const from the ctxt argument.
8821         (USE_HEURISTIC): Undefine at the end.
8822
8823 2007-08-18  Jim Meyering  <jim@meyering.net>
8824
8825         New file: lib/idcache.h
8826         * NEWS: Mention the addition.
8827         * modules/idcache (Files): Add lib/idcache.h
8828         * lib/idcache.c: Include "idcache.h".
8829         Don't include <sys/types.h>.
8830         Add a FIXME comment.
8831         Move file-scoped "static" declarations to the top.
8832         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
8833
8834 2007-08-17  Bruno Haible  <bruno@clisp.org>
8835         and Paul Eggert  <eggert@cs.ucla.edu>
8836
8837         * MODULES.html.sh: Add diffseq.
8838         * modules/diffseq: New file.
8839         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
8840         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
8841
8842 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
8843
8844         Import changes from coreutils for bootstrap script.
8845
8846         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
8847
8848         * build-aux/bootstrap (slurp): Work even in environments where
8849         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
8850         current code does not slurp files whose names start with ".", and
8851         this looks like it might be a troublesome area.
8852
8853         2007-07-11  Jim Meyering  <jim@meyering.net>
8854
8855         If there's a GPL vN copyright comment, require that N == 3.
8856
8857         2007-07-08  Jim Meyering  <jim@meyering.net>
8858
8859         Run the coreutils-specific code only if tests/Makefile.am.in exists.
8860         * build-aux/bootstrap (mam_template): Move definition out of loop.
8861
8862         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
8863
8864         * build-aux/bootstrap (symlink_to_dir): Rename function from
8865         symlink_to_gnulib.  Add a directory parameter.  Update all
8866         callers.
8867         (cp_mark_as_generated): Also check for -- and link to -- files in
8868         gl/.
8869
8870         2007-07-08  Jim Meyering  <jim@meyering.net>
8871
8872         Adapt to deeper hierarchy in gnulib.
8873         * build-aux/bootstrap (symlink_to_dir): If the destination
8874         directory doesn't exist, create it. This is required at least for
8875         "lib/uniwidth/cjk.h".
8876
8877         2007-05-15  Jim Meyering  <jim@meyering.net>
8878
8879         * build-aux/bootstrap: Now that generated Makefile.am files
8880         are no longer under version control, they must be created at
8881         bootstrap time.
8882
8883 2007-08-14  Ben Pfaff  <blp@gnu.org>
8884
8885         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
8886
8887 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
8888
8889         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
8890         given the changes below.
8891         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
8892         even on hosts that have padding bits beyond the supported 64.
8893
8894 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8895
8896         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
8897         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
8898         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
8899         depends on it.
8900         (xstrtol_error): Remove.
8901         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
8902         but with a different signature.
8903         (ATTRIBUTE_NORETURN, __attribute__): New macros.
8904         * lib/xstrtol-error.c: Include exitfail.h.
8905         (xstrtol_fatal): New function, with a different signature from the
8906         old xstrtol_error, so that the caller need not worry about passing
8907         in an exit status, or about storage management of the option argument.
8908         (xstrtol_error): Now a static function.  Redo signature to
8909         implement xstrtol_fatal.  Output the correct number of hyphens in
8910         front of the option so that the caller need not worry about
8911         storage management.
8912         (N_): New macro.
8913         (_): Remove; not used now.
8914         * modules/xstrtol: Depend on getopt.
8915         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
8916         of old STRTOL_FATAL_ERROR macro.
8917         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
8918         of test program.
8919         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
8920         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
8921
8922 2007-08-08  Eric Blake  <ebb9@byu.net>
8923
8924         * lib/xstrtol-error.c: Add missing include.
8925
8926         Move xstrtol messages into gnulib domain, when --pobase is used.
8927         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
8928         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
8929         * modules/xstrtol (Files): Distribute new file.
8930         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
8931         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
8932         * tests/test-xstrtol.c: ...into new file.
8933         * tests/test-xstrtoul.c: Also test xstrtoul.
8934         * tests/test-xstrtoimax.c: Also test xstrtoimax.
8935         * tests/test-xstrtoumax.c: Also test xstrtoumax.
8936         * tests/test-xstrtol.sh: Drive the tests.
8937         * tests/test-xstrtoimax.sh: Likewise.
8938         * tests/test-xstrtoumax.sh: Likewise.
8939         * modules/xstrtol-tests: New module.
8940         * modules/xstrtoimax-tests: Likewise.
8941         * modules/xstrtoumax-tests: Likewise.
8942
8943 2007-08-08  Jim Meyering  <jim@meyering.net>
8944
8945         New function: mfile_name_concat.
8946         * lib/filenamecat.c (mfile_name_concat): New function, just like
8947         file_name_concat, but return NULL upon failure rather than exiting
8948         with a diagnostic.
8949         * lib/filenamecat.h: Declare it.
8950
8951 2007-08-07  Bruno Haible  <bruno@clisp.org>
8952
8953         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
8954         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
8955         warning from gcc.
8956         Reported by Eric Blake.
8957
8958 2007-08-07  Simon Josefsson  <simon@josefsson.org>
8959
8960         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
8961         * modules/crypto/arcfour (License): Likewise.
8962         * modules/crypto/des-tests (License): Likewise.
8963         * modules/crypto/gc-arctwo-tests (License): Likewise.
8964         * modules/crypto/gc-des-tests (License): Likewise.
8965         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
8966         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
8967         * modules/crypto/gc-md2-tests (License): Likewise.
8968         * modules/crypto/gc-md4-tests (License): Likewise.
8969         * modules/crypto/gc-md5-tests (License): Likewise.
8970         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
8971         * modules/crypto/gc-rijndael-tests (License): Likewise.
8972         * modules/crypto/gc-sha1-tests (License): Likewise.
8973         * modules/crypto/gc-tests (License): Likewise.
8974         * modules/crypto/hmac-md5 (License): Likewise.
8975         * modules/crypto/hmac-sha1 (License): Likewise.
8976         * modules/crypto/md2-tests (License): Likewise.
8977         * modules/crypto/md4-tests (License): Likewise.
8978         * modules/crypto/md5 (License): Likewise.
8979         * modules/crypto/rijndael (License): Likewise.
8980         * modules/crypto/sha1 (License): Likewise.
8981         * modules/memxor (License): Likewise.
8982
8983 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
8984         and Bruno Haible  <bruno@clisp.org>
8985
8986         * NEWS: Describe interface changes to human, xstrtol.
8987         * lib/human.h: Include <xstrtol.h>.
8988         (human_options): Return enum strtol_error, not int.  Remove
8989         bool arg; take int * instead.
8990         * lib/human.c: Don't include "gettext.h".
8991         (_): Remove; no longer used.
8992         Don't include <xstrtol.h>, since human.h does it.
8993         (human_options): Adjust to abovementioned interface changes.
8994         Do not report error to stderr; that's now the caller's
8995         responsibility.
8996         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
8997         interface change.
8998         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
8999         Str, Argument_type_string.  All uses changed.  Put " argument"
9000         in diagnostics to make them clearer.  Change wording of suffix
9001         message for clarity.
9002         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
9003         Argument_type_string.
9004         (STRTOL_FATAL_WARN): Remove; no longer used.
9005         * modules/human (Depends-on): Remove gettext-h.
9006
9007 2007-08-06  Simon Josefsson  <simon@josefsson.org>
9008
9009         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
9010
9011 2007-07-31  Bruno Haible  <bruno@clisp.org>
9012
9013         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
9014         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
9015         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
9016
9017 2007-07-31  Bruno Haible  <bruno@clisp.org>
9018
9019         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
9020         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
9021
9022 2007-07-30  Bruno Haible  <bruno@clisp.org>
9023
9024         * modules/base64 (License): Use the synonymous term "LGPLv2+".
9025         * modules/c-ctype (License): Likewise.
9026         * modules/c-strcase (License): Likewise.
9027         * modules/check-version (License): Likewise.
9028         * modules/iconv (License): Likewise.
9029         * modules/iconv_open (License): Likewise.
9030         * modules/read-file (License): Likewise.
9031         * modules/striconv (License): Likewise.
9032         * modules/strverscmp (License): Likewise.
9033         * modules/vasprintf (License): Likewise.
9034         * modules/crypto/des (License): Likewise.
9035         * modules/crypto/gc (License): Likewise.
9036         * modules/crypto/gc-arcfour (License): Likewise.
9037         * modules/crypto/gc-arctwo (License): Likewise.
9038         * modules/crypto/gc-des (License): Likewise.
9039         * modules/crypto/gc-hmac-md5 (License): Likewise.
9040         * modules/crypto/gc-hmac-sha1 (License): Likewise.
9041         * modules/crypto/gc-md2 (License): Likewise.
9042         * modules/crypto/gc-md4 (License): Likewise.
9043         * modules/crypto/gc-md5 (License): Likewise.
9044         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
9045         * modules/crypto/gc-random (License): Likewise.
9046         * modules/crypto/gc-rijndael (License): Likewise.
9047         * modules/crypto/gc-sha1 (License): Likewise.
9048         * modules/crypto/md2 (License): Likewise.
9049         * modules/crypto/md4 (License): Likewise.
9050
9051 2007-07-30  Jim Meyering  <jim@meyering.net>
9052
9053         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
9054         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
9055         it has valid stat data.  This bug would cause du not to count the
9056         sizes of inaccessible directories.
9057         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
9058         in <http://bugzilla.redhat.com/250077>.
9059
9060 2007-07-25  Peter O'Gorman  <peter@pogma.com>
9061             Bruno Haible  <bruno@clisp.org>
9062
9063         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
9064         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
9065         #include_next, gives a diagnostic about it, but reports no error in
9066         the exit code.
9067         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
9068
9069 2007-07-24  Ben Pfaff  <blp@gnu.org>
9070
9071         Improve name: "count-one-bits" is better than "popcount".
9072         * MODULES.html.sh: Update name.
9073         * lib/popcount.h: Renamed lib/count-one-bits.h.
9074         (popcount): Renamed count_one_bits.
9075         (popcountl): Renamed count_one_bits_l.
9076         (popcountll): Renamed count_one_bits_ll.
9077         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
9078         * modules/popcount: Renamed module/count-one-bits.
9079         * modules/popcount-tests: Renamed module/count-one-bits-tests.
9080         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
9081
9082 2007-07-23  Ben Pfaff  <blp@gnu.org>
9083
9084         * lib/popcount.h (popcount32): Reduce size of constants, to allow
9085         better code generation, and add U to large constants to avoid
9086         warnings, in non-GCC case.
9087         Suggested by Bruno Haible.
9088
9089 2007-07-23  Ben Pfaff  <blp@gnu.org>
9090
9091         * lib/popcount.h: Use verify_true instead of if...abort.
9092         * modules/popcount: Depend on verify module.
9093         Suggested by Jim Meyering.
9094
9095 2007-07-23  Bruno Haible  <bruno@clisp.org>
9096
9097         * gnulib-tool (func_import): Create a .cvsignore file also when the
9098         directory is not yet in CVS but the toplevel directory is. When
9099         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
9100         Reported by Karl Berry.
9101
9102 2007-07-22  Ben Pfaff  <blp@gnu.org>
9103
9104         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
9105         case.
9106         Suggested by Eric Blake.
9107
9108 2007-07-22  Ben Pfaff  <blp@gnu.org>
9109
9110         New module: popcount.
9111         * MODULES.html.sh: Add popcount.
9112         * modules/popcount: New file.
9113         * modules/popcount-tests: New file.
9114         * tests/test-popcount.c: New file.
9115         * lib/popcount.h: New file.
9116         * m4/popcount.m4: New file.
9117
9118 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
9119
9120         * build-aux/announce-gen: Update to GPLv3.
9121
9122         * build-aux/config.guess: Update from config.
9123
9124 2007-07-21  Bruno Haible  <bruno@clisp.org>
9125
9126         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
9127         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
9128
9129 2007-07-20  Jim Meyering  <jim@meyering.net>
9130
9131         * check-module: Diagnose a self-dependency.
9132
9133 2007-07-19  Bruno Haible  <bruno@clisp.org>
9134
9135         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
9136         empty.
9137         Reported by Eric Blake.
9138
9139 2007-07-18  Bruno Haible  <bruno@clisp.org>
9140
9141         * gnulib-tool: New options --po-base, --po-domain.
9142         (func_usage): Document them.
9143         (pobase, po_domain): New variables.
9144         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
9145         DEFAULT_TEXT_DOMAIN.
9146         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
9147         (func_import): Consider pobase and po_domain. Create a po/ directory.
9148         (func_create_testdir): Set pobase and po_domain to empty.
9149         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
9150         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
9151
9152 2007-07-18  Bruno Haible  <bruno@clisp.org>
9153
9154         * gnulib-tool (func_get_automake_snippet): Synthesize also an
9155         EXTRA_DIST augmentation for files in build-aux/.
9156
9157 2007-07-16  Bruno Haible  <bruno@clisp.org>
9158
9159         * modules/lseek (License): Use the synonymous term "LGPLv2+".
9160         * modules/getdelim (License): Likewise.
9161
9162 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9163
9164         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
9165         * modules/d-type (License): Likewise.
9166         * modules/extensions (License): Likewise.
9167         * modules/fnmatch (License): Likewise.
9168         * modules/fseeko (License): Likewise.
9169         * modules/getaddrinfo (License): Likewise.
9170         * modules/getline (License): Likewise.
9171         * modules/getlogin_r (License): Likewise.
9172         * modules/getpass (License): Likewise.
9173         * modules/gettimeofday (License): Likewise.
9174         * modules/glob (License): Likewise.
9175         * modules/inet_ntop (License): Likewise.
9176         * modules/malloc (License): Likewise.
9177         * modules/malloca (License): Likewise.
9178         * modules/memmem (License): Likewise.
9179         * modules/mempcpy (License): Likewise.
9180         * modules/memset (License): Likewise.
9181         * modules/minmax (License): Likewise.
9182         * modules/mktime (License): Likewise.
9183         * modules/netinet_in (License): Likewise.
9184         * modules/pathmax (License): Likewise.
9185         * modules/poll (License): Likewise.
9186         * modules/regex (License): Likewise.
9187         * modules/snprintf (License): Likewise.
9188         * modules/stdbool (License): Likewise.
9189         * modules/stdint (License): Likewise.
9190         * modules/stdio (License): Likewise.
9191         * modules/strcase (License): Likewise.
9192         * modules/strcasestr (License): Likewise.
9193         * modules/strdup (License): Likewise.
9194         * modules/string (License): Likewise.
9195         * modules/strndup (License): Likewise.
9196         * modules/strnlen (License): Likewise.
9197         * modules/strpbrk (License): Likewise.
9198         * modules/strptime (License): Likewise.
9199         * modules/strsep (License): Likewise.
9200         * modules/sys_select (License): Likewise.
9201         * modules/sys_socket (License): Likewise.
9202         * modules/sys_stat (License): Likewise.
9203         * modules/sys_time (License): Likewise.
9204         * modules/time (License): Likewise.
9205         * modules/time_r (License): Likewise.
9206         * modules/timegm (License): Likewise.
9207         * modules/unistd (License): Likewise.
9208         * modules/vsnprintf (License): Likewise.
9209         * modules/wctype (License): Likewise.
9210
9211 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9212
9213         * modules/argz (License): LGPLv2+.
9214
9215 2007-07-15  Karl Berry  <karl@gnu.org>
9216
9217         * doc/gnulib.texi: revise node structure per new fdl.texi.
9218
9219 2007-07-14  Bruno Haible  <bruno@clisp.org>
9220
9221         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
9222         the output file.
9223         * lib/uniname/uninames.h: Regenerated.
9224
9225 2007-07-14  Karl Berry  <karl@gnu.org>
9226
9227         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
9228         omitting sectioning and index commands.
9229
9230 2007-07-13  Bruno Haible  <bruno@clisp.org>
9231
9232         New gnulib-tool option --more-symlinks.
9233         * gnulib-tool (func_usage): Document --more-symlinks.
9234         (do_copyrights): New variable.
9235         Recognize option --more-symlinks.
9236         (func_import): Don't add a copyright notice transform to
9237         sed_transform_lib_file if do_copyrights is empty.
9238
9239 2007-07-13  Bruno Haible  <bruno@clisp.org>
9240
9241         * lib/vasnprintf.c (decimal_point_char): Define also if
9242         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
9243         && !NEED_PRINTF_DIRECTIVE_A.
9244         Reported by Clemens Koller <clemens.koller@anagramm.de> via
9245         Gary V. Vaughan <gary@gnu.org>.
9246
9247 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
9248
9249         * lib/inttypes_.h: Undo previous change, since it was fixed
9250         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
9251
9252 2007-07-13  Bruno Haible  <bruno@clisp.org>
9253
9254         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
9255         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
9256
9257 2007-07-13  Jim Meyering  <jim@meyering.net>
9258
9259         df: Don't fail for Tru64's "file-on-file mount".
9260         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
9261         so we fall through and use statfs instead.  Details here:
9262         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
9263         Reported by Albert Chin.
9264
9265 2007-07-13  Bruno Haible  <bruno@clisp.org>
9266
9267         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
9268         * modules/configmake (License): Likewise.
9269         * modules/gettext (License): Likewise.
9270         * modules/gettext-h (License): Likewise.
9271         * modules/include_next (License): Likewise.
9272         * modules/link-warning (License): Likewise.
9273         * modules/localcharset (License): Likewise.
9274         * modules/localename (License): Likewise.
9275         * modules/lock (License): Likewise.
9276         * modules/relocatable-lib-lgpl (License): Likewise.
9277         * modules/size_max (License): Likewise.
9278         * modules/vasnprintf (License): Likewise.
9279         * modules/wchar (License): Likewise.
9280         * modules/xsize (License): Likewise.
9281
9282 2007-07-13  Bruno Haible  <bruno@clisp.org>
9283
9284         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
9285         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
9286
9287 2007-07-12  Bruno Haible  <bruno@clisp.org>
9288
9289         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
9290         in the modules files.
9291
9292 2007-07-11  Karl Berry  <karl@gnu.org>
9293
9294         * MODULES.html.sh (func_module): use
9295          sed -e '\|^'"${includefile}"'$|d'
9296          instead of /.../d, to avoid errors on $includefile's containing /.
9297
9298 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9299
9300         * gnulib-tool (func_import): Avoid duplication of --avoid
9301         statements
9302         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
9303         names to `_' in variable names.
9304
9305 2007-07-10  Eric Blake  <ebb9@byu.net>
9306
9307         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
9308         * NEWS: Document this change.
9309
9310 2007-07-08  Bruno Haible  <bruno@clisp.org>
9311
9312         Update to Unicode 5.0.
9313         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
9314         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
9315         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
9316         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
9317         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
9318         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
9319         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
9320         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
9321         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
9322         U+10A3F, U+1D242..U+1D244.
9323         (nonspacing_table_ind): Update.
9324         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
9325         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
9326
9327 2007-07-08  Bruno Haible  <bruno@clisp.org>
9328
9329         Update to Unicode 5.0.
9330         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
9331         code transform. Extend the name index field of unicode_name_to_code and
9332         unicode_code_to_name from 16 to 24 bits.
9333         * lib/uniname/uniname.c (unicode_character_name,
9334         unicode_name_character): Add the range 0x12xxx to the code transform.
9335         * lib/uniname/uninames.h: Regenerated.
9336         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
9337
9338 2007-07-07  Bruno Haible  <bruno@clisp.org>
9339
9340         * modules/wcwidth-tests: New file.
9341         * tests/test-wcwidth.c: New file.
9342
9343         Work around MacOS X wcwidth() bug.
9344         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
9345         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
9346         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
9347         original wcwidth in non-UTF-8 locales.
9348         * modules/wcwidth (Depends-on): Add localcharset, streq,
9349         uniwidth/width.
9350         * doc/functions/wcwidth.texi: Update.
9351
9352 2007-07-07  Bruno Haible  <bruno@clisp.org>
9353
9354         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
9355         (wcwidth): New declaration.
9356         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
9357         macros.
9358         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
9359         here. Prepare for creating <wchar.h> unconditionally.
9360         * modules/wchar (Depends-on): Add link-warning.
9361         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
9362         REPLACE_WCWIDTH, and GL_LINK_WARNING.
9363         * lib/wcwidth.h: Remove file.
9364         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
9365         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
9366         * modules/wcwidth (Files): Remove lib/wcwidth.h.
9367         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
9368         (Include): Replace wcwidth.h with <wchar.h>.
9369         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
9370         * lib/mbchar.h: Don't include wcwidth.h.
9371         * lib/mbswidth.c: Likewise.
9372         * NEWS: Mention the change.
9373
9374 2007-07-07  Bruno Haible  <bruno@clisp.org>
9375
9376         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
9377         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
9378         definition with an external declaration.
9379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
9380         defined as a function. Remove AC_C_INLINE requirement.
9381         * modules/wcwidth (Files): Add lib/wcwidth.c.
9382         (Makefile.am): Remove redundant statement.
9383
9384 2007-07-07  Bruno Haible  <bruno@clisp.org>
9385
9386         * MODULES.html.sh (Unicode string functions): Add the new modules.
9387
9388         * tests/uniwidth/test-u32-strwidth.c: New file.
9389         * modules/uniwidth/u32-strwidth-tests: New file.
9390
9391         * lib/uniwidth/u32-strwidth.c: New file.
9392         * modules/uniwidth/u32-strwidth: New file.
9393
9394         * tests/uniwidth/test-u16-strwidth.c: New file.
9395         * modules/uniwidth/u16-strwidth-tests: New file.
9396
9397         * lib/uniwidth/u16-strwidth.c: New file.
9398         * modules/uniwidth/u16-strwidth: New file.
9399
9400         * tests/uniwidth/test-u8-strwidth.c: New file.
9401         * modules/uniwidth/u8-strwidth-tests: New file.
9402
9403         * lib/uniwidth/u8-strwidth.c: New file.
9404         * modules/uniwidth/u8-strwidth: New file.
9405
9406         * tests/uniwidth/test-u32-width.c: New file.
9407         * modules/uniwidth/u32-width-tests: New file.
9408
9409         * lib/uniwidth/u32-width.c: New file.
9410         * modules/uniwidth/u32-width: New file.
9411
9412         * tests/uniwidth/test-u16-width.c: New file.
9413         * modules/uniwidth/u16-width-tests: New file.
9414
9415         * lib/uniwidth/u16-width.c: New file.
9416         * modules/uniwidth/u16-width: New file.
9417
9418         * tests/uniwidth/test-u8-width.c: New file.
9419         * modules/uniwidth/u8-width-tests: New file.
9420
9421         * lib/uniwidth/u8-width.c: New file.
9422         * modules/uniwidth/u8-width: New file.
9423
9424         * tests/uniwidth/test-uc_width.c: New file.
9425         * modules/uniwidth/width-tests: New file.
9426
9427         * lib/uniwidth/width.c: New file, from GNU libiconv.
9428         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
9429         * modules/uniwidth/width: New file.
9430
9431         * lib/uniwidth.h: New file, from GNU libiconv.
9432         * modules/uniwidth/base: New file.
9433
9434 2007-07-07  Bruno Haible  <bruno@clisp.org>
9435
9436         * lib/uniname.h: New file, from GNU gettext.
9437         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
9438         * lib/uniname/uninames.h: New file, from GNU gettext.
9439         * lib/uniname/uniname.c: New file, from GNU gettext.
9440         * tests/uniname/test-uninames.sh: New file.
9441         * tests/uniname/test-uninames.c: New file, from GNU gettext.
9442         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
9443         * modules/uniname/base: New file.
9444         * modules/uniname/uniname: New file.
9445         * modules/uniname/uniname-tests: New file.
9446         * MODULES.html.sh (Unicode string functions): Add the new modules.
9447
9448 2007-07-06  Bruno Haible  <bruno@clisp.org>
9449
9450         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
9451
9452 2007-07-06  Bruno Haible  <bruno@clisp.org>
9453
9454         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
9455         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
9456         includes <cygwin/sys_time.h> which includes <sys/select.h> which
9457         include <sys/time.h>.
9458         Reported by Eric Blake.
9459
9460 2007-07-06  Eric Blake  <ebb9@byu.net>
9461
9462         Fix testing canonicalize on cygwin.
9463         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
9464         Revert patch from 2007-06-19.
9465         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
9466         canonicalize module is also in use.
9467         * tests/test-canonicalize.c: New file.
9468         * tests/test-canonicalize.sh: Likewise.
9469         * modules/canonicalize-tests: Likewise.
9470
9471 2007-07-06  Jim Meyering  <jim@meyering.net>
9472
9473         * lib/getugroups.c (getugroups): Detect getgrent failure.
9474         Adjust comment to reflect reality: this function may return -1.
9475
9476 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9477
9478         * build-aux/bootstrap (TP_URL,get_translations): Update to use
9479         the new TP address.
9480         (usage): Fix typo
9481         (gnulib_mk): New variable.
9482
9483 2007-07-05  Jim Meyering  <jim@meyering.net>
9484
9485         Don't let endgrent clobber errno, no matter how improbable.
9486         * lib/getugroups.c (getugroups): Save and restore errno around
9487         endgrent call.
9488
9489         Close the group DB even when failing with 2^31 or more members.
9490         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
9491
9492 2007-07-04  Jim Meyering  <jim@meyering.net>
9493
9494         * lib/getugroups.h: New file.
9495         * lib/getugroups.c: Include "getugroups.h".
9496         Remove uses of "register" keyword.
9497         Move local variable, "cp", down into scope where used.
9498         Give "username" parameter the "const" attribute.
9499         * modules/getugroups (Files): Add lib/getugroups.h
9500
9501 2007-07-04  Karl Berry  <karl@gnu.org>
9502
9503         * MODULES.html.sh (func_all_modules): Complete rename of
9504         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
9505
9506 2007-07-02  Bruno Haible  <bruno@clisp.org>
9507
9508         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
9509         mode, when inttypes.h comes from gnulib.
9510         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
9511
9512 2007-07-02  Simon Josefsson  <simon@josefsson.org>
9513
9514         * NEWS: Mention lgpl module name change.
9515
9516         * modules/lgpl-2.1: Renamed from lgpl.
9517
9518         * NEWS: Mention gpl module name change.
9519
9520         * modules/gpl-3.0: New file, based on gpl-2.0.
9521
9522         * modules/gpl-2.0: Renamed from gpl.
9523
9524         * modules/gpl: Fix filename, doc/gpl.texi is now found at
9525         doc/gpl-2.0.texi.
9526
9527 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9528
9529         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
9530         #define __STDC_LIMIT_MACROS temporarily while including
9531         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
9532         Problem reported by Joel E. Denny in
9533         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
9534
9535 2007-07-01  Bruno Haible  <bruno@clisp.org>
9536
9537         * lib/unistdio.h: New file.
9538         * lib/unistdio/u-asnprintf.h: New file.
9539         * lib/unistdio/u-asprintf.h: New file.
9540         * lib/unistdio/u-printf-args.c: New file.
9541         * lib/unistdio/u-printf-args.h: New file.
9542         * lib/unistdio/u-printf-parse.h: New file.
9543         * lib/unistdio/u-snprintf.h: New file.
9544         * lib/unistdio/u-sprintf.h: New file.
9545         * lib/unistdio/u-vasprintf.h: New file.
9546         * lib/unistdio/u-vsnprintf.h: New file.
9547         * lib/unistdio/u-vsprintf.h: New file.
9548         * lib/unistdio/ulc-asnprintf.c: New file.
9549         * lib/unistdio/ulc-asprintf.c: New file.
9550         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
9551         * lib/unistdio/ulc-printf-parse.c: New file.
9552         * lib/unistdio/ulc-snprintf.c: New file.
9553         * lib/unistdio/ulc-sprintf.c: New file.
9554         * lib/unistdio/ulc-vasnprintf.c: New file.
9555         * lib/unistdio/ulc-vasprintf.c: New file.
9556         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
9557         * lib/unistdio/ulc-vsnprintf.c: New file.
9558         * lib/unistdio/ulc-vsprintf.c: New file.
9559         * lib/unistdio/u8-asnprintf.c: New file.
9560         * lib/unistdio/u8-asprintf.c: New file.
9561         * lib/unistdio/u8-printf-parse.c: New file.
9562         * lib/unistdio/u8-snprintf.c: New file.
9563         * lib/unistdio/u8-sprintf.c: New file.
9564         * lib/unistdio/u8-vasnprintf.c: New file.
9565         * lib/unistdio/u8-vasprintf.c: New file.
9566         * lib/unistdio/u8-vsnprintf.c: New file.
9567         * lib/unistdio/u8-vsprintf.c: New file.
9568         * lib/unistdio/u8-u8-asnprintf.c: New file.
9569         * lib/unistdio/u8-u8-asprintf.c: New file.
9570         * lib/unistdio/u8-u8-snprintf.c: New file.
9571         * lib/unistdio/u8-u8-sprintf.c: New file.
9572         * lib/unistdio/u8-u8-vasnprintf.c: New file.
9573         * lib/unistdio/u8-u8-vasprintf.c: New file.
9574         * lib/unistdio/u8-u8-vsnprintf.c: New file.
9575         * lib/unistdio/u8-u8-vsprintf.c: New file.
9576         * lib/unistdio/u16-asnprintf.c: New file.
9577         * lib/unistdio/u16-asprintf.c: New file.
9578         * lib/unistdio/u16-printf-parse.c: New file.
9579         * lib/unistdio/u16-snprintf.c: New file.
9580         * lib/unistdio/u16-sprintf.c: New file.
9581         * lib/unistdio/u16-vasnprintf.c: New file.
9582         * lib/unistdio/u16-vasprintf.c: New file.
9583         * lib/unistdio/u16-vsnprintf.c: New file.
9584         * lib/unistdio/u16-vsprintf.c: New file.
9585         * lib/unistdio/u16-u16-asnprintf.c: New file.
9586         * lib/unistdio/u16-u16-asprintf.c: New file.
9587         * lib/unistdio/u16-u16-snprintf.c: New file.
9588         * lib/unistdio/u16-u16-sprintf.c: New file.
9589         * lib/unistdio/u16-u16-vasnprintf.c: New file.
9590         * lib/unistdio/u16-u16-vasprintf.c: New file.
9591         * lib/unistdio/u16-u16-vsnprintf.c: New file.
9592         * lib/unistdio/u16-u16-vsprintf.c: New file.
9593         * lib/unistdio/u32-asnprintf.c: New file.
9594         * lib/unistdio/u32-asprintf.c: New file.
9595         * lib/unistdio/u32-printf-parse.c: New file.
9596         * lib/unistdio/u32-snprintf.c: New file.
9597         * lib/unistdio/u32-sprintf.c: New file.
9598         * lib/unistdio/u32-vasnprintf.c: New file.
9599         * lib/unistdio/u32-vasprintf.c: New file.
9600         * lib/unistdio/u32-vsnprintf.c: New file.
9601         * lib/unistdio/u32-vsprintf.c: New file.
9602         * lib/unistdio/u32-u32-asnprintf.c: New file.
9603         * lib/unistdio/u32-u32-asprintf.c: New file.
9604         * lib/unistdio/u32-u32-snprintf.c: New file.
9605         * lib/unistdio/u32-u32-sprintf.c: New file.
9606         * lib/unistdio/u32-u32-vasnprintf.c: New file.
9607         * lib/unistdio/u32-u32-vasprintf.c: New file.
9608         * lib/unistdio/u32-u32-vsnprintf.c: New file.
9609         * lib/unistdio/u32-u32-vsprintf.c: New file.
9610         * tests/unistdio/test-ulc-asnprintf1.c: New file.
9611         * tests/unistdio/test-ulc-asnprintf1.h: New file.
9612         * tests/unistdio/test-ulc-printf1.h: New file.
9613         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
9614         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
9615         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
9616         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
9617         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
9618         * tests/unistdio/test-ulc-vasprintf1.c: New file.
9619         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
9620         * tests/unistdio/test-ulc-vsprintf1.c: New file.
9621         * tests/unistdio/test-u8-asnprintf1.c: New file.
9622         * tests/unistdio/test-u8-asnprintf1.h: New file.
9623         * tests/unistdio/test-u8-printf1.h: New file.
9624         * tests/unistdio/test-u8-vasnprintf1.c: New file.
9625         * tests/unistdio/test-u8-vasnprintf2.c: New file.
9626         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
9627         * tests/unistdio/test-u8-vasnprintf3.c: New file.
9628         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
9629         * tests/unistdio/test-u8-vasprintf1.c: New file.
9630         * tests/unistdio/test-u8-vsnprintf1.c: New file.
9631         * tests/unistdio/test-u8-vsprintf1.c: New file.
9632         * tests/unistdio/test-u16-asnprintf1.c: New file.
9633         * tests/unistdio/test-u16-asnprintf1.h: New file.
9634         * tests/unistdio/test-u16-printf1.h: New file.
9635         * tests/unistdio/test-u16-vasnprintf1.c: New file.
9636         * tests/unistdio/test-u16-vasnprintf2.c: New file.
9637         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
9638         * tests/unistdio/test-u16-vasnprintf3.c: New file.
9639         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
9640         * tests/unistdio/test-u16-vasprintf1.c: New file.
9641         * tests/unistdio/test-u16-vsnprintf1.c: New file.
9642         * tests/unistdio/test-u16-vsprintf1.c: New file.
9643         * tests/unistdio/test-u32-asnprintf1.c: New file.
9644         * tests/unistdio/test-u32-asnprintf1.h: New file.
9645         * tests/unistdio/test-u32-printf1.h: New file.
9646         * tests/unistdio/test-u32-vasnprintf1.c: New file.
9647         * tests/unistdio/test-u32-vasnprintf2.c: New file.
9648         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
9649         * tests/unistdio/test-u32-vasnprintf3.c: New file.
9650         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
9651         * tests/unistdio/test-u32-vasprintf1.c: New file.
9652         * tests/unistdio/test-u32-vsnprintf1.c: New file.
9653         * tests/unistdio/test-u32-vsprintf1.c: New file.
9654         * modules/unistdio/base: New file.
9655         * modules/unistdio/u-printf-args: New file.
9656         * modules/unistdio/ulc-asnprintf: New file.
9657         * modules/unistdio/ulc-asprintf: New file.
9658         * modules/unistdio/ulc-fprintf: New file.
9659         * modules/unistdio/ulc-printf-parse: New file.
9660         * modules/unistdio/ulc-snprintf: New file.
9661         * modules/unistdio/ulc-sprintf: New file.
9662         * modules/unistdio/ulc-vasnprintf: New file.
9663         * modules/unistdio/ulc-vasprintf: New file.
9664         * modules/unistdio/ulc-vfprintf: New file.
9665         * modules/unistdio/ulc-vsnprintf: New file.
9666         * modules/unistdio/ulc-vsprintf: New file.
9667         * modules/unistdio/u8-asnprintf: New file.
9668         * modules/unistdio/u8-asprintf: New file.
9669         * modules/unistdio/u8-printf-parse: New file.
9670         * modules/unistdio/u8-snprintf: New file.
9671         * modules/unistdio/u8-sprintf: New file.
9672         * modules/unistdio/u8-vasnprintf: New file.
9673         * modules/unistdio/u8-vasprintf: New file.
9674         * modules/unistdio/u8-vsnprintf: New file.
9675         * modules/unistdio/u8-vsprintf: New file.
9676         * modules/unistdio/u8-u8-asnprintf: New file.
9677         * modules/unistdio/u8-u8-asprintf: New file.
9678         * modules/unistdio/u8-u8-snprintf: New file.
9679         * modules/unistdio/u8-u8-sprintf: New file.
9680         * modules/unistdio/u8-u8-vasnprintf: New file.
9681         * modules/unistdio/u8-u8-vasprintf: New file.
9682         * modules/unistdio/u8-u8-vsnprintf: New file.
9683         * modules/unistdio/u8-u8-vsprintf: New file.
9684         * modules/unistdio/u16-asnprintf: New file.
9685         * modules/unistdio/u16-asprintf: New file.
9686         * modules/unistdio/u16-printf-parse: New file.
9687         * modules/unistdio/u16-snprintf: New file.
9688         * modules/unistdio/u16-sprintf: New file.
9689         * modules/unistdio/u16-vasnprintf: New file.
9690         * modules/unistdio/u16-vasprintf: New file.
9691         * modules/unistdio/u16-vsnprintf: New file.
9692         * modules/unistdio/u16-vsprintf: New file.
9693         * modules/unistdio/u16-u16-asnprintf: New file.
9694         * modules/unistdio/u16-u16-asprintf: New file.
9695         * modules/unistdio/u16-u16-snprintf: New file.
9696         * modules/unistdio/u16-u16-sprintf: New file.
9697         * modules/unistdio/u16-u16-vasnprintf: New file.
9698         * modules/unistdio/u16-u16-vasprintf: New file.
9699         * modules/unistdio/u16-u16-vsnprintf: New file.
9700         * modules/unistdio/u16-u16-vsprintf: New file.
9701         * modules/unistdio/u32-asnprintf: New file.
9702         * modules/unistdio/u32-asprintf: New file.
9703         * modules/unistdio/u32-printf-parse: New file.
9704         * modules/unistdio/u32-snprintf: New file.
9705         * modules/unistdio/u32-sprintf: New file.
9706         * modules/unistdio/u32-vasnprintf: New file.
9707         * modules/unistdio/u32-vasprintf: New file.
9708         * modules/unistdio/u32-vsnprintf: New file.
9709         * modules/unistdio/u32-vsprintf: New file.
9710         * modules/unistdio/u32-u32-asnprintf: New file.
9711         * modules/unistdio/u32-u32-asprintf: New file.
9712         * modules/unistdio/u32-u32-snprintf: New file.
9713         * modules/unistdio/u32-u32-sprintf: New file.
9714         * modules/unistdio/u32-u32-vasnprintf: New file.
9715         * modules/unistdio/u32-u32-vasprintf: New file.
9716         * modules/unistdio/u32-u32-vsnprintf: New file.
9717         * modules/unistdio/u32-u32-vsprintf: New file.
9718         * modules/unistdio/ulc-asnprintf-tests: New file.
9719         * modules/unistdio/ulc-vasnprintf-tests: New file.
9720         * modules/unistdio/ulc-vasprintf-tests: New file.
9721         * modules/unistdio/ulc-vsnprintf-tests: New file.
9722         * modules/unistdio/ulc-vsprintf-tests: New file.
9723         * modules/unistdio/u8-asnprintf-tests: New file.
9724         * modules/unistdio/u8-vasnprintf-tests: New file.
9725         * modules/unistdio/u8-vasprintf-tests: New file.
9726         * modules/unistdio/u8-vsnprintf-tests: New file.
9727         * modules/unistdio/u8-vsprintf-tests: New file.
9728         * modules/unistdio/u16-asnprintf-tests: New file.
9729         * modules/unistdio/u16-vasnprintf-tests: New file.
9730         * modules/unistdio/u16-vasprintf-tests: New file.
9731         * modules/unistdio/u16-vsnprintf-tests: New file.
9732         * modules/unistdio/u16-vsprintf-tests: New file.
9733         * modules/unistdio/u32-asnprintf-tests: New file.
9734         * modules/unistdio/u32-vasnprintf-tests: New file.
9735         * modules/unistdio/u32-vasprintf-tests: New file.
9736         * modules/unistdio/u32-vsnprintf-tests: New file.
9737         * modules/unistdio/u32-vsprintf-tests: New file.
9738         * MODULES.html.sh (Unicode string functions): Add the new modules.
9739
9740 2007-07-01  Bruno Haible  <bruno@clisp.org>
9741
9742         * lib/sprintf.c (sprintf): Limit the available length estimation,
9743         to avoid address wraparound.
9744         * lib/vsprintf.c (vsprintf): Likewise.
9745         * modules/sprintf-posix (Dependencies): Add stdint.
9746         * modules/vsprintf-posix (Dependencies): Likewise.
9747
9748 2007-07-01  Bruno Haible  <bruno@clisp.org>
9749
9750         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
9751         Windows PATH as well. Conservative double-quoting. Comments.
9752
9753 2007-07-01  Bruno Haible  <bruno@clisp.org>
9754             Eric Blake  <ebb9@byu.net>
9755             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9756
9757         * gnulib-tool (self_abspathname): Fix algorithm to cope with
9758         empty components in $PATH, denoting '.'.
9759
9760 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9761
9762         * gnulib-tool: Fix indentation.
9763         (func_create_megatestdir): Likewise.
9764         Report by Bruno Haible.
9765
9766 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9767
9768         Sync from Automake.
9769         * build-aux/gnupload: Fix shell portability issues with for loops.
9770         Report by Karl Berry.
9771
9772 2007-06-29  Simon Josefsson  <simon@josefsson.org>
9773
9774         * build-aux/maint.mk (POURL): Use translationproject.org.
9775
9776 2007-06-27  Simon Josefsson  <simon@josefsson.org>
9777             Bruno Haible  <bruno@clisp.org>
9778
9779         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
9780         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
9781         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
9782         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
9783         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
9784
9785 2007-06-27  Bruno Haible  <bruno@clisp.org>
9786
9787         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
9788         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
9789
9790 2007-06-26  Karl Berry  <karl@gnu.org>
9791
9792         * MODULES.html.sh: remove xreadlink-with-size.
9793
9794 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9795
9796         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
9797         method that I hope also handles the double-include problem noted
9798         by Bruno Haible in
9799         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
9800
9801 2007-06-23  Bruno Haible  <bruno@clisp.org>
9802
9803         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9804         Don't let the 'mostlyclean' target fail if the last subdirectory could
9805         not be removed.
9806         Reported by Karl Berry.
9807
9808 2007-06-23  Bruno Haible  <bruno@clisp.org>
9809
9810         * gnulib-tool (echo): Add a speedier workaround for ksh.
9811         * tests/test-echo.sh: Likewise.
9812
9813 2007-06-23  Bruno Haible  <bruno@clisp.org>
9814
9815         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
9816         * tests/test-echo.sh: Likewise.
9817
9818 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9819
9820         * gnulib-tool (IFS): Initialize early, so we don't set it to
9821         empty later.
9822         (self_abspathname): Rewrite algorithm to set it, reindent.
9823         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
9824         (func_create_megatestdir): Merge some sed scripts.
9825
9826 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9827
9828         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
9829         exposed by Sun Studio 11 cc on Solaris 8.
9830
9831 2007-06-22  Bruno Haible  <bruno@clisp.org>
9832
9833         * gnulib-tool (echo): Ensure the echo primitive does not interpret
9834         backslashes.
9835         * tests/test-echo.sh: New file.
9836
9837 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9838
9839         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
9840         simplify `sed_replace_build_aux' scripts, they are portable but
9841         echoing them with `echo' is not.
9842         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
9843
9844 2007-06-21  Karl Berry  <karl@gnu.org>
9845
9846         * config/srclist.txt: guess we can't handle the licenses via
9847         srclist at the moment.
9848
9849 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
9850
9851         * MODULES.html.sh: Add include_next.
9852         * modules/include_next: New file.
9853
9854 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9855
9856         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
9857         INCLUDE_NEXT.
9858         (gl_CHECK_NEXT_HEADERS): New macro.
9859         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
9860         the obsolescent gl_ABSOLUTE_HEADER.
9861         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
9862         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
9863         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
9864         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9865         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9866         * m4/math_h.m4 (gl_MATH_H): Likewise.
9867         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
9868         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9869         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9870         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9871         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9872         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9873         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9874         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9875         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9876         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9877         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9878         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9879         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9880         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9881         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9882         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9883         * m4/inttypes.m4 (gl_INTTYPES_H): Define
9884         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
9885         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
9886         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
9887         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
9888         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
9889         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
9890         * lib/float_.h: Likewise.
9891         * lib/inttypes_.h: Likewise.
9892         * lib/math_.h: Likewise.
9893         * lib/search_.h: Likewise.
9894         * lib/signal_.h: Likewise.
9895         * lib/stdint_.h: Likewise.
9896         * lib/stdio_.h: Likewise.
9897         * lib/stdlib_.h: Likewise.
9898         * lib/string_.h: Likewise.
9899         * lib/sys_stat_.h: Likewise.
9900         * lib/sys_time_.h: Likewise.
9901         * lib/time_.h: Likewise.
9902         * lib/unistd_.h: Likewise.
9903         * lib/wchar_.h: Likewise.
9904         * lib/wctype_.h: Likewise.
9905         * lib/dirent_.h: Likewise.
9906         * lib/iconv_.h: Likewise.
9907         * lib/locale_.h: Likewise.
9908         * lib/netinet_in_.h: Likewise.
9909         * lib/sys_select_.h: Likewise.
9910         * lib/sys_socket_.h: Likewise.
9911         * lib/sysexits_.h: Likewise.
9912         * modules/fcntl (Depends-on): Depend on include_next, not
9913         absolute_header.
9914         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
9915         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
9916         * modules/fchdir: Likewise.
9917         * modules/float: Likewise.
9918         * modules/iconv_open: Likewise.
9919         * modules/inttypes: Likewise.
9920         * modules/locale: Likewise.
9921         * modules/math: Likewise.
9922         * modules/netinet_in: Likewise.
9923         * modules/search: Likewise.
9924         * modules/signal: Likewise.
9925         * modules/stdint: Likewise.
9926         * modules/stdio: Likewise.
9927         * modules/stdlib: Likewise.
9928         * modules/string: Likewise.
9929         * modules/sys_select: Likewise.
9930         * modules/sys_socket: Likewise.
9931         * modules/sys_stat: Likewise.
9932         * modules/sys_time: Likewise.
9933         * modules/sysexits: Likewise.
9934         * modules/time: Likewise.
9935         * modules/unistd: Likewise.
9936         * modules/wchar: Likewise.
9937         * modules/wctype: Likewise.
9938         * modules/sys_stat: Change maintainer to "all".
9939         * modules/unistd: Likewise.
9940
9941 2007-06-20  Karl Berry  <karl@gnu.org>
9942
9943         * config/srclist.txt: track www changes in license files.
9944
9945 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
9946
9947         * build-aux/bootstrap: Remove stray dot.
9948         Make sure build_aux settings are honored when linking
9949         gnulib_extra_files.
9950
9951 2007-06-19  Eric Blake  <ebb9@byu.net>
9952
9953         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
9954         Allow compilation on cygwin.
9955
9956 2007-06-19  Jim Meyering  <jim@meyering.net>
9957
9958         xreadlink-with-size: Remove module.  No longer used.
9959         Ex-callers now use xreadlink or mreadlink-with-size.
9960         * modules/xreadlink-with-size: Remove module.
9961         * lib/xreadlink-with-size.c: Remove file.
9962         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
9963         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
9964         just before the function definition *is* accurate.
9965
9966         Eliminate one way canonicalize_filename_mode could exit.
9967         * lib/canonicalize.c (canonicalize_filename_mode):
9968         Use mreadlink_with_size, not xreadlink_with_size.
9969
9970 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
9971
9972         Detect porting problems to FreeBSD/arm, which has time_t wider than
9973         long int.  Original problem reported for GNU diff by Xin Li in
9974         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
9975         * modules/getdate (Depends-on): Add intprops, verify.
9976         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
9977         is an integer type no wider than long int.
9978
9979 2007-06-18  Jim Meyering  <jim@meyering.net>
9980
9981         New module: mreadlink-with-size.
9982         * MODULES.html.sh: Add mreadlink-with-size.
9983         * modules/mreadlink-with-size: New module
9984         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
9985         not xreadlink-with-size.
9986         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
9987
9988 2007-06-16  Bruno Haible  <bruno@clisp.org>
9989
9990         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
9991         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
9992         Reported by Gary V. Vaughan <gary@gnu.org>.
9993
9994 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9995
9996         Revamp lchown so that it lives in unistd.h where it belongs.
9997         * lib/lchown.h: Remove.
9998         * lib/dirchownmod.c: Don't include lib/lchown.h.
9999         * lib/fchownat.c: Likewise.
10000         * lib/openat.c: Likewise.
10001         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
10002         does not follow symlinks.
10003         (EOPNOTSUPP): Define if not defined.
10004         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
10005         is defined to 0.
10006         (lchown): New decl.
10007         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
10008         Do not check for lchown decl.
10009         Set REPLACE_LCHOWN.
10010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
10011         REPLACE_LCHOWN.
10012         * modules/chown: Make it clear it follows symlinks.
10013         * modules/lchown: Make it clear it doesn't follow symlinks.
10014         (Files): Remove lib/lchown.h
10015         (Depends-on): Add unistd.
10016         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
10017         (Include): Include <unistd.h>, not "lchown.h".
10018         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
10019         REPLACE_LCHOWN.
10020
10021 2007-06-15  Jim Meyering  <jim@meyering.net>
10022
10023         Change license (GPL to LGPL) of fsusage and dependents.
10024         * modules/fsusage (License): Change to LGPL.
10025         * modules/full-read (License): Likewise.
10026         * modules/full-write (License): Likewise.
10027         * modules/safe-read (License): Likewise.
10028         * modules/safe-write (License): Likewise.
10029
10030 2007-06-14  Ben Pfaff  <blp@gnu.org>
10031
10032         Missing part of allocsa -> malloca transition.
10033         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
10034         gl_MALLOCA.
10035
10036 2007-06-12  Bruno Haible  <bruno@clisp.org>
10037
10038         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
10039         to ia64, x86_64, i386.
10040         Reported by Eric Blake.
10041
10042 2007-06-12  Bruno Haible  <bruno@clisp.org>
10043
10044         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
10045         cross-compiling to x86_64.
10046
10047 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
10048
10049         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
10050         glitch reported by Ralf Wildenhues in
10051         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
10052
10053         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
10054         Vin Shelton.
10055
10056 2007-06-11  Bruno Haible  <bruno@clisp.org>
10057
10058         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
10059         replacement string.
10060         Reported by Eric Blake.
10061
10062 2007-06-10  Bruno Haible  <bruno@clisp.org>
10063
10064         Prepare vasnprintf code for use with Unicode strings.
10065         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
10066         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
10067         TYPE_U32_STRING.
10068         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
10069         a_u32_string variants.
10070         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
10071         * lib/printf-args.c: Don't include config.h and the specification
10072         header if PRINTF_FETCHARGS is already defined.
10073         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
10074         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
10075         TYPE_U16_STRING, TYPE_U32_STRING.
10076         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
10077         u16_directive, u16_directives, u32_directive, u32_directives): New
10078         types.
10079         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
10080         New declarations.
10081         * lib/printf-parse.c: Don't include config.h and the specification
10082         header if PRINTF_PARSE is already defined. Eliminate the set of
10083         parameters for WIDE_CHAR_VERSION; the user of this file must provide
10084         them now. Include c-ctype.h.
10085         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
10086         directive and CHAR_T_ONLY_ASCII.
10087         * lib/vasnprintf.c: Don't include config.h and the specification header
10088         if VASNPRINTF is already defined.
10089         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
10090         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
10091         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
10092         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
10093         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
10094         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
10095         code accordingly.
10096         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
10097         pad_ourselves also in this case, with the 'c' and 's' directives, and
10098         with a different notion of "width".
10099         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
10100
10101 2007-06-10  Bruno Haible  <bruno@clisp.org>
10102
10103         * modules/unistr/u32-mbsnlen: New file.
10104         * lib/unistr/u32-mbsnlen.c: New file.
10105
10106         * modules/unistr/u16-mbsnlen: New file.
10107         * lib/unistr/u16-mbsnlen.c: New file.
10108
10109         * modules/unistr/u8-mbsnlen: New file.
10110         * lib/unistr/u8-mbsnlen.c: New file.
10111
10112         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
10113         declarations.
10114
10115 2007-06-10  Bruno Haible  <bruno@clisp.org>
10116
10117         * lib/string_.h (mbsnlen): New declaration.
10118         * lib/mbsnlen.c: New file.
10119         * m4/mbsnlen.m4: New file.
10120         * modules/mbsnlen: New file.
10121         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
10122         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
10123         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
10124
10125 2007-06-10  Bruno Haible  <bruno@clisp.org>
10126
10127         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
10128
10129 2007-06-10  Bruno Haible  <bruno@clisp.org>
10130
10131         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
10132         * lib/mbuiter.h: Likewise.
10133
10134 2007-06-10  Bruno Haible  <bruno@clisp.org>
10135
10136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
10137         declaration.
10138
10139 2007-06-10  Karl Berry  <karl@gnu.org>
10140
10141         * config/srclist.txt: remove gettext entries, Bruno prefers
10142         to update individually.
10143
10144 2007-06-10  Bruno Haible  <bruno@clisp.org>
10145
10146         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
10147         'maxlen'. Ensure only length + width bytes are allocated, not
10148         length + 1 + width.
10149
10150 2007-06-09  Bruno Haible  <bruno@clisp.org>
10151
10152         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
10153         (CHAR_T): Remove macro.
10154         (VASNPRINTF): Update.
10155
10156 2007-06-09  Bruno Haible  <bruno@clisp.org>
10157
10158         * MODULES.html.sh (Unicode string functions): Add the new modules.
10159
10160         * modules/uniconv/u32-conv-to-enc: New file.
10161         * lib/uniconv/u32-conv-to-enc.c: New file.
10162         * modules/uniconv/u32-conv-to-enc-tests: New file.
10163         * tests/uniconv/test-u32-conv-to-enc.c: New file.
10164
10165         * modules/uniconv/u16-conv-to-enc: New file.
10166         * lib/uniconv/u16-conv-to-enc.c: New file.
10167         * lib/uniconv/u-conv-to-enc.h: New file.
10168         * modules/uniconv/u16-conv-to-enc-tests: New file.
10169         * tests/uniconv/test-u16-conv-to-enc.c: New file.
10170
10171         * modules/uniconv/u8-conv-to-enc: New file.
10172         * lib/uniconv/u8-conv-to-enc.c: New file.
10173         * modules/uniconv/u8-conv-to-enc-tests: New file.
10174         * tests/uniconv/test-u8-conv-to-enc.c: New file.
10175
10176         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
10177         u32_conv_to_encoding): New declarations.
10178
10179 2007-06-09  Bruno Haible  <bruno@clisp.org>
10180
10181         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
10182
10183 2007-06-09  Bruno Haible  <bruno@clisp.org>
10184
10185         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
10186         * modules/malloca: Renamed from modules/allocsa, updated.
10187         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
10188         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
10189         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
10190         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
10191         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
10192         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
10193         * modules/xmalloca: Renamed from modules/xallocsa, updated.
10194         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
10195         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
10196         * modules/c-strcasestr (Depends-on): Update.
10197         * lib/c-strcasestr.c: Update.
10198         * modules/c-strstr (Depends-on): Update.
10199         * lib/c-strstr.c: Update.
10200         * modules/canonicalize-lgpl (Depends-on): Update.
10201         * lib/canonicalize-lgpl.c: Update.
10202         * modules/clean-temp (Depends-on): Update.
10203         * lib/clean-temp.c: Update.
10204         * modules/csharpcomp (Depends-on): Update.
10205         * lib/csharpcomp.c: Update.
10206         * modules/csharpexec (Depends-on): Update.
10207         * lib/csharpexec.c: Update.
10208         * modules/javacomp (Depends-on): Update.
10209         * lib/javacomp.c: Update.
10210         * modules/javaexec (Depends-on): Update.
10211         * lib/javaexec.c: Update.
10212         * modules/mbscasestr (Depends-on): Update.
10213         * lib/mbscasestr.c: Update.
10214         * modules/mbsstr (Depends-on): Update.
10215         * lib/mbsstr.c: Update.
10216         * modules/setenv (Depends-on): Update.
10217         * lib/setenv.c: Update.
10218         * modules/strcasestr (Depends-on): Update.
10219         * lib/strcasestr.c: Update.
10220         * modules/striconveha (Depends-on): Update.
10221         * lib/striconveha.c: Update.
10222         * modules/relocatable-prog-wrapper (Files): Update.
10223         * lib/relocwrapper.c: Update.
10224         * build-aux/install-reloc: Update.
10225         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
10226
10227 2007-06-08  Bruno Haible  <bruno@clisp.org>
10228
10229         Port to uClibc.
10230         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
10231         * lib/fpurge.c (fpurge): Likewise.
10232         * lib/freading.c (freading): Likewise.
10233         * lib/fseeko.c (rpl_fseeko): Likewise.
10234         * lib/fseterr.c (fseterr): Likewise.
10235         * lib/fwriting.c (fwriting): Likewise.
10236         * tests/test-fflush.c (main): Avoid a failure on uClibc.
10237
10238 2007-06-08  Bruno Haible  <bruno@clisp.org>
10239
10240         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
10241         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
10242         * modules/gettext (Files): Add m4/intlmacosx.m4.
10243
10244 2007-06-07  Bruno Haible  <bruno@clisp.org>
10245
10246         * modules/localename-tests: New file.
10247         * tests/test-localename.c: New file.
10248
10249         New module 'localename'.
10250         * lib/localename.h: New file.
10251         * lib/localename.c: New file, from GNU gettext.
10252         * m4/localename.m4: New file.
10253         * modules/localename: New file.
10254
10255 2007-06-07  Bruno Haible  <bruno@clisp.org>
10256
10257         Work around the lack of <wchar.h> on some builds of uClibc.
10258         * doc/headers/wchar.texi: Update.
10259         * lib/wchar_.h: Include <wchar.h> only if it exists.
10260         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
10261         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
10262         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
10263         doesn't exist.
10264         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
10265         * modules/mbfile (Depends-on): Add wchar.
10266         * modules/mbiter (Depends-on): Likewise.
10267         * modules/mbuiter (Depends-on): Likewise.
10268         Reported by Simon Josefsson.
10269
10270 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10271
10272         Work around problem reported by Steven M. Schweda in
10273         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
10274         Tru64 5.1B with the Compaq compiler environment installed declares
10275         an 'isblank' function but does not define it in the C library.
10276         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
10277         * lib/regex_internal.h (isblank): Likewise.
10278         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
10279         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10280
10281 2007-06-05  Bruno Haible  <bruno@clisp.org>
10282
10283         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
10284         ia64.
10285         * modules/printf-safe: New file.
10286         * modules/fprintf-posix (Depends-on): Add printf-safe.
10287         * modules/printf-posix (Depends-on): Likewise.
10288         * modules/snprintf-posix (Depends-on): Likewise.
10289         * modules/sprintf-posix (Depends-on): Likewise.
10290         * modules/vasnprintf-posix (Depends-on): Likewise.
10291         * modules/vasprintf-posix (Depends-on): Likewise.
10292         * modules/vfprintf-posix (Depends-on): Likewise.
10293         * modules/vprintf-posix (Depends-on): Likewise.
10294         * modules/vsnprintf-posix (Depends-on): Likewise.
10295         * modules/vsprintf-posix (Depends-on): Likewise.
10296         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10297         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
10298         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
10299         "no" on i386, x86_64, ia64.
10300         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
10301         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10302         on i386, x86_64, ia64.
10303         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
10304         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10305         on i386, x86_64, ia64.
10306         * tests/test-vasnprintf-posix.c: Include float.h.
10307         (LDBL80_WORDS): New macro.
10308         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10309         on i386, x86_64, ia64.
10310         * tests/test-vasprintf-posix.c: Include float.h.
10311         (LDBL80_WORDS): New macro.
10312         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10313         on i386, x86_64, ia64.
10314         * tests/test-snprintf-posix.c: Include float.h.
10315         * tests/test-sprintf-posix.c: Likewise.
10316         * tests/test-vsnprintf-posix.c: Likewise.
10317         * tests/test-vsprintf-posix.c: Likewise.
10318
10319 2007-06-05  Bruno Haible  <bruno@clisp.org>
10320
10321         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
10322         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
10323         non-IEEE numbers on i386, x86_64, ia64.
10324         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
10325         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
10326         * tests/test-isnanl.h: Include float.h.
10327         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
10328
10329 2007-06-05  Bruno Haible  <bruno@clisp.org>
10330
10331         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
10332         also the %a / %A. Handle the %a / %A code before this extra handling.
10333
10334 2007-06-05  Bruno Haible  <bruno@clisp.org>
10335
10336         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
10337         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
10338
10339 2007-06-05  Bruno Haible  <bruno@clisp.org>
10340
10341         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
10342         typo in variable name.
10343
10344 2007-06-05  Eric Blake  <ebb9@byu.net>
10345
10346         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
10347         Reported by Simon Josefsson.
10348
10349 2007-06-04  Bruno Haible  <bruno@clisp.org>
10350
10351         Avoid test failures on some PowerPC platforms.
10352         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
10353         Define differently for PowerPC.
10354         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
10355         Reported by Gary V. Vaughan <gary@gnu.org>.
10356
10357 2007-06-02  Bruno Haible  <bruno@clisp.org>
10358
10359         Fix test-stdint failure on FreeBSD/ia64.
10360         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
10361         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
10362         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
10363         * doc/headers/stdint.texi: Update.
10364
10365 2007-06-01  Bruno Haible  <bruno@clisp.org>
10366
10367         * tests/test-binary-io.c (main): Pass a third argument to open().
10368         Reported by Gary V. Vaughan <gary@gnu.org>.
10369
10370 2007-06-01  Bruno Haible  <bruno@clisp.org>
10371
10372         * doc/functions/frexpl.texi: Update for mingw.
10373
10374 2007-06-01  Bruno Haible  <bruno@clisp.org>
10375
10376         * tests/test-lseek.c (main): Disable test of errno for invalid third
10377         argument.
10378         * doc/functions/lseek.texi: Update.
10379         Reported by Gary V. Vaughan <gary@gnu.org>.
10380
10381 2007-05-28  Bruno Haible  <bruno@clisp.org>
10382
10383         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
10384
10385 2007-05-31  Eric Blake  <ebb9@byu.net>
10386
10387         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
10388         cross compiling.
10389
10390 2007-05-30  Eric Blake  <ebb9@byu.net>
10391         and Bruno Haible  <bruno@clisp.org>
10392
10393         Work around mingw test failures exposed by m4-1.4.9b.
10394         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
10395         * tests/test-unistd.c: Disable uid_t and git_t tests for the
10396         moment.
10397
10398 2007-05-30  Bruno Haible  <bruno@clisp.org>
10399
10400         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
10401         assuming that they are closed. Needed on HP-UX 11.
10402
10403 2007-05-29  Bruno Haible  <bruno@clisp.org>
10404
10405         Fix a problem with #include_next.
10406         * lib/dirent_.h: Split the double-inclusion guard.
10407         * lib/fcntl_.h: Likewise.
10408         * lib/float_.h: Likewise.
10409         * lib/iconv_.h: Likewise.
10410         * lib/inttypes_.h: Likewise.
10411         * lib/locale_.h: Likewise.
10412         * lib/math_.h: Likewise.
10413         * lib/netinet_in_.h: Likewise.
10414         * lib/search_.h: Likewise.
10415         * lib/signal_.h: Likewise.
10416         * lib/stdint_.h: Likewise.
10417         * lib/stdio_.h: Likewise.
10418         * lib/stdlib_.h: Likewise.
10419         * lib/string_.h: Likewise.
10420         * lib/sys_select_.h: Likewise.
10421         * lib/sys_socket_.h: Likewise.
10422         * lib/sys_stat_.h: Likewise.
10423         * lib/sys_time_.h: Likewise.
10424         * lib/sysexits_.h: Likewise.
10425         * lib/time_.h: Likewise.
10426         * lib/unistd_.h: Likewise.
10427         * lib/wchar_.h: Likewise.
10428         * lib/wctype_.h: Likewise.
10429
10430 2007-05-29  Bruno Haible  <bruno@clisp.org>
10431
10432         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
10433         for the moment.
10434
10435 2007-05-29  Bruno Haible  <bruno@clisp.org>
10436
10437         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
10438         invocation.
10439         Reported by Eric Blake.
10440
10441 2007-05-29  Bruno Haible  <bruno@clisp.org>
10442
10443         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
10444         compiling case.
10445
10446 2007-05-29  Eric Blake  <ebb9@byu.net>
10447             Bruno Haible  <bruno@clisp.org>
10448
10449         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
10450         cross compiles.
10451
10452 2007-05-28  Eric Blake  <ebb9@byu.net>
10453
10454         * modules/closein-tests (test_closein_LDADD): Support test on
10455         cygwin with libtool.
10456
10457 2007-05-28  Bruno Haible  <bruno@clisp.org>
10458
10459         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
10460         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10461         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10462         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10463         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10464         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10465         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10466         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10467         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10468
10469 2007-05-28  Eric Blake  <ebb9@byu.net>
10470
10471         Unconditionally include <config.h> in unit tests.
10472         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
10473         * tests/test-allocsa.c, tests/test-arcfour.c,
10474         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
10475         tests/test-array_list.c, tests/test-array_oset.c,
10476         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
10477         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
10478         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
10479         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
10480         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
10481         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
10482         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
10483         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
10484         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
10485         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
10486         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
10487         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
10488         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
10489         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
10490         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
10491         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
10492         test-md5.c, test-memmem.c, test-printf-posix.c,
10493         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
10494         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
10495         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
10496         test-strcasestr.c, test-striconv.c, test-striconveh.c,
10497         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
10498         test-vasnprintf-posix2.c, test-vasnprintf.c,
10499         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
10500         test-vfprintf-posix.c, test-vprintf-posix.c,
10501         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
10502         test-xvasprintf.c: Likewise.
10503
10504 2007-05-28  Bruno Haible  <bruno@clisp.org>
10505
10506         * gnulib-tool (func_import): Remember the --with-tests command-line
10507         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
10508         Reported by Eric Blake.
10509
10510 2007-05-28  Bruno Haible  <bruno@clisp.org>
10511
10512         * modules/ftell-tests: New file.
10513         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
10514         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
10515
10516         * lib/ftell.c: New file.
10517         * modules/ftell: New file.
10518         * m4/ftell.m4: New file.
10519         * doc/functions/ftell.texi: Update.
10520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
10521         REPLACE_FTELL.
10522         * lib/stdio_.h (rpl_ftell): New declaration.
10523         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
10524         REPLACE_FTELL.
10525
10526 2007-05-28  Eric Blake  <ebb9@byu.net>
10527
10528         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
10529
10530 2007-05-28  Bruno Haible  <bruno@clisp.org>
10531
10532         * modules/fseek-tests: New file.
10533         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
10534         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
10535
10536         * lib/fseek.c: New file.
10537         * modules/fseek: New file.
10538         * m4/fseek.m4: New file.
10539         * doc/functions/fseek.texi: Update.
10540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
10541         REPLACE_FSEEK.
10542         * lib/stdio_.h (rpl_fseek): New declaration.
10543         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
10544         REPLACE_FSEEK.
10545
10546 2007-05-28  Bruno Haible  <bruno@clisp.org>
10547
10548         * lib/stdio_.h (fflush): More comments.
10549
10550 2007-05-28  Bruno Haible  <bruno@clisp.org>
10551
10552         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
10553         runtime test.
10554
10555 2007-05-28  Eric Blake  <ebb9@byu.net>
10556
10557         Improve lseek module.
10558         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
10559         * lib/unistd_.h (lseek): Scale back link warning message.
10560         * tests/test-lseek.c: Beef up test.
10561         * tests/test-lseek.sh: Exercise more facets of lseek.
10562         Reported by Bruno Haible.
10563
10564 2007-05-28  Bruno Haible  <bruno@clisp.org>
10565
10566         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
10567         to define.
10568
10569 2007-05-27  Bruno Haible  <bruno@clisp.org>
10570
10571         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
10572
10573 2007-05-27  Bruno Haible  <bruno@clisp.org>
10574
10575         * modules/openmp: New file.
10576         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
10577         Noah Misch.
10578
10579 2007-05-26  Bruno Haible  <bruno@clisp.org>
10580
10581         * modules/chdir-long (Depends-on): Add fchdir.
10582         * modules/chdir-safer (Depends-on): Likewise.
10583         * modules/fts (Depends-on): Likewise.
10584         * modules/fts-lgpl (Depends-on): Likewise.
10585         * modules/openat (Depends-on): Likewise.
10586         * modules/savewd (Depends-on): Likewise.
10587
10588 2007-05-24  Eric Blake  <ebb9@byu.net>
10589
10590         Fix lseek on mingw.
10591         * modules/lseek: New module.
10592         * m4/lseek.m4: New file.
10593         * lib/lseek.c: New file.
10594         * modules/lseek-tests: New file.
10595         * tests/test-lseek.c: New file.
10596         * tests/test-lseek.sh: New file.
10597         * MODULES.html.sh: Document lseek module.
10598         * modules/fflush (Depends-on): Add lseek, fseeko.
10599         * modules/fseeko (Depends-on): Likewise.
10600         * modules/ftello (Depends-on): Likewise.
10601         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
10602         broken.
10603         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
10604         broken.
10605         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
10606         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
10607         * lib/ftello.c (rpl_ftello): Likewise.
10608         * tests/test-fseeko.c (main): Test this.
10609         * tests/test-fseeko.sh: Likewise.
10610         * tests/test-ftello.c (main): Likewise.
10611         * tests/test-ftello.sh: Likewise.
10612         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
10613         implies replacing fseek.
10614         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
10615         HAVE_FTELLO.
10616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
10617         * modules/unistd (Makefile.am): Likewise.
10618         * lib/unistd_.h (lseek): Declare a replacement.
10619         * doc/functions/lseek.texi (lseek): Document this fix.
10620         * doc/functions/fseek.texi (fseek): Likewise.
10621         * doc/functions/ftell.texi (ftell): Likewise.
10622
10623 2007-05-24  Bruno Haible  <bruno@clisp.org>
10624
10625         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
10626         in the printed representation of a NaN.
10627         * tests/test-vasprintf-posix.c (test_function): Likewise.
10628         * tests/test-snprintf-posix.h (test_function): Likewise.
10629         * tests/test-sprintf-posix.h (test_function): Likewise.
10630         Reported by Eric Blake.
10631
10632 2007-05-23  Eric Blake  <ebb9@byu.net>
10633
10634         Fix fseeko/ftello on cygwin 1.5.24.
10635         * doc/functions/fseeko.texi (fseeko): Document the fix.
10636         * doc/functions/ftello.texi (ftello): Document the fix.
10637         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
10638         * doc/functions/stdout.text (stdout): New file.
10639         * doc/functions/stderr.text (stderr): New file.
10640         * doc/gnulib.texi (Function Substitutes): Use new files.
10641         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
10642         prior to 1.7.0.
10643         * tests/test-ftello.c (main): Likewise for ftello.
10644         * tests/test-fseeko.sh: New file.
10645         * tests/test-ftello.sh: New file.
10646         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
10647         with seekable stdin.
10648         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
10649         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
10650         (gl_REPLACE_FSEEKO): New macro.
10651         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
10652         * modules/fseeko (Files): Distribute fseeko.c.
10653         * modules/ftello (Files): Distribute ftello.c.
10654         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
10655         mode.
10656         * lib/ftello.c (rpl_ftello): New file.
10657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
10658         fseeko, ftello.
10659         (gl_STDIN_LARGE_OFFSET): New macro.
10660         * modules/stdio (Makefile.am): Perform the replacement.
10661         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
10662
10663 2007-05-23  Bruno Haible  <bruno@clisp.org>
10664
10665         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
10666         GNULIB_POSIXCHECK is defined.
10667
10668 2007-05-21  Bruno Haible  <bruno@clisp.org>
10669
10670         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
10671         Check also the output for NaN arguments. When cross-compiling, guess
10672         no on IRIX.
10673         * lib/vasnprintf.c: Update comments.
10674         * tests/test-vasnprintf-posix.c (strisnan): New function.
10675         (test_function): Use it.
10676         * tests/test-vasprintf-posix.c (strisnan): New function.
10677         (test_function): Use it.
10678         * tests/test-snprintf-posix.h (strisnan): New function.
10679         (test_function): Use it.
10680         * tests/test-sprintf-posix.h (strisnan): New function.
10681         (test_function): Use it.
10682         Reported by Eric Blake.
10683
10684 2007-05-20  Bruno Haible  <bruno@clisp.org>
10685
10686         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
10687         numbers that fails on BeOS.
10688         * doc/functions/frexpl.texi: Update.
10689
10690 2007-05-20  Jim Meyering  <jim@meyering.net>
10691
10692         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
10693         forced upon us by glibc-2.6.
10694
10695 2007-05-20  Bruno Haible  <bruno@clisp.org>
10696
10697         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
10698         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
10699         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
10700         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
10701         NEED_PRINTF_INFINITE.
10702         (is_infinitel): New function.
10703         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
10704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
10705         gl_PREREQ_VASNPRINTF_INFINITE.
10706         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
10707         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10708         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
10709         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
10710         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
10711         gl_PREREQ_VASNPRINTF_INFINITE.
10712         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10713         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10714         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10715         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10716         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10717         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10718         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10719         * doc/functions/fprintf.texi: Update.
10720         * doc/functions/printf.texi: Update.
10721         * doc/functions/snprintf.texi: Update.
10722         * doc/functions/sprintf.texi: Update.
10723         * doc/functions/vfprintf.texi: Update.
10724         * doc/functions/vprintf.texi: Update.
10725         * doc/functions/vsnprintf.texi: Update.
10726         * doc/functions/vsprintf.texi: Update.
10727
10728 2007-05-20  Bruno Haible  <bruno@clisp.org>
10729
10730         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
10731         was not found in libc.
10732         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10733
10734 2007-05-20  Bruno Haible  <bruno@clisp.org>
10735
10736         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10737         printed as "-nan" instead of "nan".
10738         * tests/test-vasprintf-posix.c (test_function): Likewise.
10739         * tests/test-snprintf-posix.h (test_function): Likewise.
10740         * tests/test-sprintf-posix.h (test_function): Likewise.
10741         Needed for HP-UX 11.
10742
10743 2007-05-20  Jim Meyering  <jim@meyering.net>
10744
10745         Fix buggy test for the fchownat-deref bug.
10746         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
10747         symlink required for the run-test.  Without it, this test would
10748         always declare that fchownat doesn't work, and client code would
10749         unnecessarily use the replacement function with fixed libc.
10750         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
10751         Reported by Greg Schafer.
10752
10753 2007-05-19  Bruno Haible  <bruno@clisp.org>
10754
10755         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
10756         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
10757         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
10758         Needed for IRIX 6.5 and Solaris 2.5.1.
10759
10760 2007-05-19  Bruno Haible  <bruno@clisp.org>
10761
10762         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
10763         (test_function): Skip tests involving -0.0 on platforms where
10764         -0.0 = 0.0.
10765         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
10766         (test_function): Skip tests involving -0.0 on platforms where
10767         -0.0 = 0.0.
10768         * tests/test-snprintf-posix.h (have_minus_zero): New function.
10769         (test_function): Skip tests involving -0.0 on platforms where
10770         -0.0 = 0.0.
10771         * tests/test-sprintf-posix.h (have_minus_zero): New function.
10772         (test_function): Skip tests involving -0.0 on platforms where
10773         -0.0 = 0.0.
10774         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
10775         tests.
10776         * tests/test-printf-posix.h (test_function): Likewise.
10777         * tests/test-printf-posix.output: Remove all -0.0 related results.
10778         Needed for IRIX 6.5.
10779
10780 2007-05-19  Bruno Haible  <bruno@clisp.org>
10781
10782         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10783         printed as "nan0x7fffffff" instead of "nan".
10784         * tests/test-vasprintf-posix.c (test_function): Likewise.
10785         * tests/test-snprintf-posix.h (test_function): Likewise.
10786         * tests/test-sprintf-posix.h (test_function): Likewise.
10787         * tests/test-fprintf-posix.h (NaN): Remove macro.
10788         (test_function): Remove all NaN related tests.
10789         * tests/test-printf-posix.h (NaN): Remove macro.
10790         (test_function): Remove all NaN related tests.
10791         * tests/test-printf-posix.output: Remove all NaN related results.
10792         Needed for IRIX 6.5.
10793
10794 2007-05-19  Bruno Haible  <bruno@clisp.org>
10795
10796         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
10797         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10798
10799 2007-05-19  Bruno Haible  <bruno@clisp.org>
10800
10801         * lib/float_.h: New file.
10802         * m4/float_h.m4: New file.
10803         * modules/float: New file.
10804         * modules/isnanl (Dependencies): Add float.
10805         * modules/isnanl-nolibm (Dependencies): Likewise.
10806         * modules/mathl (Dependencies): Likewise.
10807         * modules/printf-frexpl (Dependencies): Likewise.
10808         * modules/signbit (Dependencies): Likewise.
10809         * modules/vasnprintf (Dependencies): Likewise.
10810         * doc/headers/float.texi: Update.
10811
10812 2007-05-19  Jim Meyering  <jim@meyering.net>
10813
10814         * lib/utimens.c (gl_futimens): Rename from futimens,
10815         now that glibc-2.6 declares futimens.
10816         * lib/utimens.h: Likewise.
10817
10818 2007-05-19  Bruno Haible  <bruno@clisp.org>
10819
10820         Avoid test failures on mingw.
10821         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
10822         * tests/test-printf-posix.sh: Likewise.
10823         * tests/test-vfprintf-posix.sh: Likewise.
10824         * tests/test-vprintf-posix.sh: Likewise.
10825
10826 2007-05-19  Bruno Haible  <bruno@clisp.org>
10827
10828         Fix *printf result for NaN, Inf, -0.0 on mingw.
10829         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
10830         * lib/vasnprintf.c: Include math.h and isnan.h.
10831         (is_infinite_or_zero): New function.
10832         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
10833         values in the %f, %F, %e, %E, %g, %G directives.
10834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
10835         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10836         gl_PRINTF_INFINITE and test its result. Invoke
10837         gl_PREREQ_VASNPRINTF_INFINITE.
10838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10839         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10840         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10841         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10842         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10844         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10845         * doc/functions/fprintf.texi: Update.
10846         * doc/functions/printf.texi: Update.
10847         * doc/functions/snprintf.texi: Update.
10848         * doc/functions/sprintf.texi: Update.
10849         * doc/functions/vfprintf.texi: Update.
10850         * doc/functions/vprintf.texi: Update.
10851         * doc/functions/vsnprintf.texi: Update.
10852         * doc/functions/vsprintf.texi: Update.
10853
10854 2007-05-19  Bruno Haible  <bruno@clisp.org>
10855
10856         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
10857         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
10858         Instead of multiplying with 10^k, set extra_zeroes to k.
10859         (scale10_round_long_double): Remove function.
10860
10861 2007-05-18  Bruno Haible  <bruno@clisp.org>
10862
10863         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
10864         introduced on 2007-05-06.
10865
10866 2007-05-18  Bruno Haible  <bruno@clisp.org>
10867
10868         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
10869         %g directives.
10870         * tests/test-vasprintf-posix.c (test_function): Likewise.
10871         * tests/test-snprintf-posix.h (test_function): Likewise.
10872         * tests/test-sprintf-posix.h (test_function): Likewise.
10873
10874 2007-05-18  Bruno Haible  <bruno@clisp.org>
10875
10876         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
10877         (strmatch): New function.
10878         (test_function): Test the %f directive on numbers of various exponents.
10879         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
10880         (strmatch): New function.
10881         (test_function): Test the %f directive on numbers of various exponents.
10882         * tests/test-snprintf-posix.h (strmatch): New function.
10883         (test_function): Test the %f directive on numbers of various exponents.
10884         * tests/test-sprintf-posix.h (strmatch): New function.
10885         (test_function): Test the %f directive on numbers of various exponents.
10886         * tests/test-snprintf-posix.c (SIZEOF): New macro.
10887         * tests/test-sprintf-posix.c (SIZEOF): New macro.
10888         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
10889         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
10890
10891 2007-05-18  Bruno Haible  <bruno@clisp.org>
10892
10893         Add support for 'long double' number output.
10894         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
10895         * lib/vasnprintf.c: Include math.h and float+.h.
10896         (mp_limb_t): New type.
10897         (GMP_LIMB_BITS): New macro.
10898         (mp_twolimb_t): New type.
10899         (GMP_TWOLIMB_BITS): New macro.
10900         (mpn_t): New type.
10901         (multiply, divide, convert_to_decimal, decode_long_double,
10902         scale10_round_long_double, scale10_round_decimal_long_double,
10903         floorlog10l): New functions.
10904         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
10905         for the %f, %F, %e, %E, %g, %G directives.
10906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
10907         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10908         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
10909         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
10910         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10911         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10912         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10913         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10914         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10915         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10916         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10917         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
10918         * modules/snprintf-posix (Depends-on): Likewise.
10919         * modules/sprintf-posix (Depends-on): Likewise.
10920         * modules/vasnprintf-posix (Depends-on): Likewise.
10921         * modules/vasprintf-posix (Depends-on): Likewise.
10922         * modules/vfprintf-posix (Depends-on): Likewise.
10923         * modules/vsnprintf-posix (Depends-on): Likewise.
10924         * modules/vsprintf-posix (Depends-on): Likewise.
10925         * modules/vasnprintf (Files): Add lib/float+.h.
10926         * doc/functions/fprintf.texi: Update.
10927         * doc/functions/printf.texi: Update.
10928         * doc/functions/snprintf.texi: Update.
10929         * doc/functions/sprintf.texi: Update.
10930         * doc/functions/vfprintf.texi: Update.
10931         * doc/functions/vprintf.texi: Update.
10932         * doc/functions/vsnprintf.texi: Update.
10933         * doc/functions/vsprintf.texi: Update.
10934
10935 2007-05-18  Bruno Haible  <bruno@clisp.org>
10936
10937         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
10938
10939 2007-05-18  Bruno Haible  <bruno@clisp.org>
10940
10941         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
10942         for printing 64-bit integers. Needed for mingw.
10943
10944 2007-05-18  Bruno Haible  <bruno@clisp.org>
10945
10946         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
10947         gl_FUNC_FREXPL_WORKS.
10948         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
10949
10950 2007-05-18  Bruno Haible  <bruno@clisp.org>
10951
10952         * modules/frexpl-nolibm-tests: New file.
10953
10954         * modules/frexpl-nolibm: New file.
10955         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
10956
10957 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10958
10959         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
10960         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
10961         GCC 4.2, which otherwise issues a lot of warnings.
10962         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
10963         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
10964         Likewise.
10965         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
10966         * modules/iconv_open (iconv.h): Likewise.
10967         * modules/locale (locale.h): Likewise.
10968         * modules/netinet_in (netinet/in.h): Likewise.
10969         * modules/sys_select (sys_select.h): Likewise.
10970         * modules/sys_socket (sys/socket.h): Likewise.
10971         * modules/sys_stat (sys/stat.h): Likewise.
10972         * modules/sysexits (sysexits.h): Likewise.
10973         * modules/unistd (unistd.h): Likewise.
10974
10975 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10976
10977         * modules/closein-tests (Makefile.am): Distribute
10978         `test-closein.sh'.
10979
10980 2007-05-17  Bruno Haible  <bruno@clisp.org>
10981
10982         * tests/test-printf-posix.output: Renamed from
10983         tests/test-fprintf-posix.out.
10984         * modules/fprintf-posix-tests: Update.
10985         * modules/printf-posix-tests: Update.
10986         * modules/vfprintf-posix-tests: Update.
10987         * modules/vprintf-posix-tests: Update.
10988         * tests/test-fprintf-posix.sh: Update.
10989         * tests/test-printf-posix.sh: Update.
10990         * tests/test-vfprintf-posix.sh: Update.
10991         * tests/test-vprintf-posix.sh: Update.
10992         Reported by Ralf Wildenhues.
10993
10994 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10995
10996         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
10997         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
10998         GCC 4.2, which otherwise issues a lot of warnings.
10999         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
11000         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
11001         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
11002         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
11003         it should no longer be needed.
11004         * lib/string_.h: Likewise.
11005         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
11006         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
11007         * modules/inttypes (inttypes.h): Likewise.
11008         * modules/math (math.h): Likewise.
11009         * modules/search (search.h): Likewise.
11010         * modules/signal (signal.h): Likewise.
11011         * modules/stdint (stdint.h): Likewise.
11012         * modules/stdio (stdio.h): Likewise.
11013         * modules/stdlib (stdlib.h): Likewise.
11014         * modules/string (string.h): Likewise.
11015         * modules/sys_time (sys/time.h): Likewise.
11016         * modules/time (time.h): Likewise.
11017         * modules/wchar (wchar.h): Likewise.
11018         * modules/wctype (wtype.h): Likewise.
11019
11020 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11021
11022         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
11023
11024 2007-05-13  Bruno Haible  <bruno@clisp.org>
11025
11026         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
11027         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11028         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
11029         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
11030         (gl_PREREQ_STRTOK_R): Don't require it here.
11031
11032 2007-05-13  Bruno Haible  <bruno@clisp.org>
11033
11034         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
11035         when used in C++ mode.
11036
11037 2007-05-12  Bruno Haible  <bruno@clisp.org>
11038
11039         * lib/linebuffer.h: Tweak doc.
11040         * lib/linebuffer.c: Likewise.
11041
11042 2007-05-12  James Youngman  <jay@gnu.org>
11043
11044         * lib/linebuffer.c (readlinebuffer_delim): New function,
11045         like readlinebuffer, but use a caller-specified delimiter.
11046         (readlinebuffer): Just call readlinebuffer_delim with '\n'
11047         as the delimiter.
11048         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
11049
11050 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11051
11052         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
11053         * modules/openat (Files): Remove openat-die.c.
11054         (Depends-on): Add openat-die.
11055         * modules/openat-die: New module.
11056
11057 2007-05-06  Bruno Haible  <bruno@clisp.org>
11058
11059         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
11060         Update with info about Cygwin.
11061         * doc/functions/fprintf.texi: Update.
11062         * doc/functions/printf.texi: Update.
11063         * doc/functions/snprintf.texi: Update.
11064         * doc/functions/sprintf.texi: Update.
11065         * doc/functions/vfprintf.texi: Update.
11066         * doc/functions/vprintf.texi: Update.
11067         * doc/functions/vsnprintf.texi: Update.
11068         * doc/functions/vsprintf.texi: Update.
11069         Reported by Eric Blake.
11070
11071 2007-05-06  Bruno Haible  <bruno@clisp.org>
11072
11073         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
11074         padding ourselves for the floating-point directives.
11075         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
11076         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
11077         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11078         gl_PRINTF_FLAG_ZERO and test its result. Invoke
11079         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
11080         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11081         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
11082         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11083         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11084         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11085         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11086         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11087         * tests/test-snprintf-posix.h (test_function): Also check the width
11088         and some flags in the %f directive.
11089         * tests/test-sprintf-posix.h (test_function): Likewise.
11090         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11091         * tests/test-vasprintf-posix.c (test_function): Likewise.
11092         * doc/functions/fprintf.texi: Update.
11093         * doc/functions/printf.texi: Update.
11094         * doc/functions/snprintf.texi: Update.
11095         * doc/functions/sprintf.texi: Update.
11096         * doc/functions/vfprintf.texi: Update.
11097         * doc/functions/vprintf.texi: Update.
11098         * doc/functions/vsnprintf.texi: Update.
11099         * doc/functions/vsprintf.texi: Update.
11100
11101 2007-05-06  Bruno Haible  <bruno@clisp.org>
11102
11103         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
11104         pass the ' flag character to sprintf or snprintf.
11105         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
11106         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
11107         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11108         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
11109         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
11110         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11111         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
11112         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11113         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11114         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11115         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11116         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11117         * tests/test-snprintf-posix.h (test_function): Also check the grouping
11118         flag.
11119         * tests/test-sprintf-posix.h (test_function): Likewise.
11120         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11121         * tests/test-vasprintf-posix.c (test_function): Likewise.
11122         * doc/functions/fprintf.texi: Update.
11123         * doc/functions/printf.texi: Update.
11124         * doc/functions/snprintf.texi: Update.
11125         * doc/functions/sprintf.texi: Update.
11126         * doc/functions/vfprintf.texi: Update.
11127         * doc/functions/vprintf.texi: Update.
11128         * doc/functions/vsnprintf.texi: Update.
11129         * doc/functions/vsprintf.texi: Update.
11130
11131 2007-05-01  Bruno Haible  <bruno@clisp.org>
11132
11133         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
11134
11135 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
11136
11137         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
11138         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
11139
11140 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
11141
11142         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
11143         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
11144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
11145
11146 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
11147
11148         * lib/argp-help.c (struct hol_entry): New member `ord'.
11149         (HOL_ENTRY_PTRCMP): Use ord for comparison
11150         (hol_sort): Initialize ord.
11151
11152 2007-05-01  Bruno Haible  <bruno@clisp.org>
11153
11154         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
11155         Reported by Eric Blake.
11156         * doc/gnulib.texi (Function Substitutes): Update.
11157
11158 2007-05-01  Bruno Haible  <bruno@clisp.org>
11159
11160         * doc/functions.texi: Remove file, now redundant through
11161         doc/functions/*.texi.
11162
11163 2007-05-01  Bruno Haible  <bruno@clisp.org>
11164
11165         * modules/argp (Depends-on): Add sleep.
11166
11167 2007-05-01  Bruno Haible  <bruno@clisp.org>
11168
11169         * modules/sleep-tests: New file.
11170         * tests/test-sleep.c: New file.
11171
11172         * modules/sleep: New file.
11173         * lib/sleep.c: New file.
11174         * m4/sleep.m4: New file.
11175         * lib/unistd_.h (sleep): New declaration.
11176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
11177         HAVE_SLEEP.
11178         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
11179         * doc/functions/sleep.texi: Document the sleep module.
11180
11181 2007-05-01  Bruno Haible  <bruno@clisp.org>
11182
11183         * lib/sigprocmask.h: Remove file.
11184         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
11185         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
11186         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
11187         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
11188         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11189         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
11190         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
11191         HAVE_SIGSET_T as a shell variable.
11192         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
11193         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
11194         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
11195         (Depends-on): Add signal. Remove verify.
11196         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
11197         (Include): Mention <signal.h> instead of sigprocmask.h.
11198         * NEWS: Mention the change.
11199         * lib/fatal-signal.c: Don't include sigprocmask.h.
11200
11201 2007-05-01  Bruno Haible  <bruno@clisp.org>
11202
11203         * modules/signal: New file.
11204         * lib/signal_.h: New file.
11205         * m4/signal_h.m4: New file.
11206
11207 2007-05-01  Bruno Haible  <bruno@clisp.org>
11208
11209         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
11210         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
11211         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
11212         HAVE_WCTYPE_CTMP_BUG into wctype.h.
11213
11214 2007-05-01  Bruno Haible  <bruno@clisp.org>
11215
11216         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
11217         configure time.
11218         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
11219         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
11220         * modules/sys_stat (Makefile.am): Substitute their values into
11221         sys/stat.h.
11222
11223 2007-05-01  Bruno Haible  <bruno@clisp.org>
11224
11225         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
11226         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
11227         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
11228
11229 2007-05-01  Bruno Haible  <bruno@clisp.org>
11230
11231         * doc/header/assert.texi: Undo last change: don't mention the gnulib
11232         'assert' module here.
11233
11234 2007-05-01  Bruno Haible  <bruno@clisp.org>
11235
11236         * doc/functions/*.texi: New files.
11237         * doc/functions/google-ranking.txt: New file.
11238         * doc/gnulib.texi (Function Substitutes): New chapter.
11239         (ctime, inet_ntoa): Remove sections.
11240         * doc/ctime.texi: Remove file.
11241         * doc/inet_ntoa.texi: Remove file.
11242         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
11243         dependencies.
11244         (%.info): New rule, specifying a --reference-limit.
11245
11246 2007-05-01  Bruno Haible  <bruno@clisp.org>
11247
11248         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
11249
11250 2007-05-01  Bruno Haible  <bruno@clisp.org>
11251
11252         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
11253         the portability of 'mkdir' to mingw systems.
11254
11255 2007-05-01  Bruno Haible  <bruno@clisp.org>
11256
11257         * doc/headers/google-ranking.txt: New file.
11258
11259 2007-04-30  Eric Blake  <ebb9@byu.net>
11260
11261         Prefer fseeko to fseek.
11262         * modules/getpass (Depends-on): Add fseeko.
11263         * lib/getpass.c (getpass): Use fseeko, not fseek.
11264
11265 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
11266
11267         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
11268         assumes the sorting is stable, while most qsort implementations
11269         are not.  Use argument addresses to ensure they never compare as
11270         equal.
11271
11272         * tests/test-argp-2.sh (usage-indent test): Fix output
11273         (func_compare): Restore diff options
11274         * tests/test-argp.c: Restore #include "progname.h"
11275
11276 2007-04-29  Bruno Haible  <bruno@clisp.org>
11277
11278         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
11279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11280         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
11281         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11282         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
11283         (configure.ac): Define CHECK_SNPRINTF_POSIX.
11284         (TESTS, check_PROGRAMS): Add test-snprintf.
11285         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
11286         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
11287         (TESTS, check_PROGRAMS): Add test-vsnprintf.
11288         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
11289         assertions that fail on HP-UX, OSF/1, or IRIX.
11290         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
11291
11292 2007-04-29  Bruno Haible  <bruno@clisp.org>
11293
11294         * MODULES.html.sh (posix_functions): Remove 'contents'.
11295
11296 2007-04-29  Karl Berry  <karl@gnu.org>
11297
11298         * config/srclist.txt (gendocs_template_min): new entry.
11299
11300 2007-04-29  Bruno Haible  <bruno@clisp.org>
11301
11302         Work around fpurge bug on BSD systems.
11303         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
11304         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
11305         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
11306         fpurge to rpl_fpurge if the system already has this function.
11307         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
11308         the case where the system already has this function. Correct invariants
11309         on BSD systems.
11310         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
11311         BSD systems.
11312
11313 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
11314
11315         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
11316         proposed by Sven Verdoolaege.
11317
11318         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
11319         options.
11320         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
11321         (usage and help tests): Update
11322
11323 2007-04-29  Bruno Haible  <bruno@clisp.org>
11324
11325         * tests/test-fflush.c (main): Use a file of size 17, not 10.
11326         Print more information in case of failure. Disable a test on BeOS.
11327
11328 2007-04-29  Bruno Haible  <bruno@clisp.org>
11329
11330         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
11331         This helps debugging on systems on which no gdb is available.
11332
11333 2007-04-29  Bruno Haible  <bruno@clisp.org>
11334
11335         * lib/freading.h: Improve comments.
11336         * lib/fwriting.h: Likewise.
11337         * tests/test-freading.c (main): Don't check freading immediately after
11338         repositioning. Needed for glibc.
11339
11340 2007-04-29  Bruno Haible  <bruno@clisp.org>
11341
11342         * lib/freading.c (freading): Trivial simplification.
11343
11344 2007-04-28  Bruno Haible  <bruno@clisp.org>
11345
11346         * tests/test-fwriting.c (main): Also test the interaction between
11347         fflush and fwriting.
11348         * modules/fwriting-tests (Depends-on): Add fflush.
11349
11350         * tests/test-freading.c (main): Also test the interaction between
11351         fflush and freading.
11352         * modules/freading-tests (Depends-on): Add fflush.
11353
11354 2007-04-28  Bruno Haible  <bruno@clisp.org>
11355
11356         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
11357         fseeko and ftello.
11358         Suggested by Eric Blake.
11359
11360 2007-04-28  Jim Meyering  <jim@meyering.net>
11361
11362         Avoid false-negative in gl_STDINT_H's C99 conformance test.
11363         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
11364         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
11365
11366 2007-04-27  Eric Blake  <ebb9@byu.net>
11367
11368         * doc/headers/assert.texi (assert.h): Document assert module use.
11369
11370 2007-04-27  Bruno Haible  <bruno@clisp.org>
11371
11372         * doc/headers/*.texi: New files.
11373         * doc/gnulib.texi (Header File Substitutes): New chapter.
11374         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
11375         dependencies.
11376         (standards.info ,standards.html, standards.dvi): Update dependencies.
11377         (mostlyclean, clean): New targets.
11378
11379 2007-04-27  Bruno Haible  <bruno@clisp.org>
11380
11381         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
11382         * modules/sysexits (Files, Makefile.am): Update.
11383
11384         * lib/sys_socket_.h: Renamed from lib/socket_.h.
11385         * modules/sys_socket (Files, Makefile.am): Update.
11386
11387         * lib/sys_stat_.h: Renamed from lib/stat_.h.
11388         * modules/sys_stat (Files, Makefile.am): Update.
11389
11390 2007-04-27  Eric Blake  <ebb9@byu.net>
11391
11392         * lib/freading.h: Improve comments.
11393         * lib/fwriting.h: Likewise.
11394         * lib/fflush.c: Likewise.
11395
11396         Fix closein for mingw.
11397         * modules/closein-tests: Add tests for closein.
11398         * tests/test-closein.c: New file.
11399         * tests/test-closein.sh: Likewise.
11400         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
11401         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
11402
11403 2007-04-27  Bruno Haible  <bruno@clisp.org>
11404
11405         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
11406         version is < 6.
11407         * lib/math_.h [__DECC]: Likewise.
11408         * lib/stdio_.h [__DECC]: Likewise.
11409         * lib/stdlib_.h [__DECC]: Likewise.
11410         * lib/string_.h [__DECC]: Likewise.
11411         * lib/time_.h [__DECC]: Likewise.
11412         * lib/wchar_.h [__DECC]: Likewise.
11413         * lib/wctype_.h [__DECC]: Likewise.
11414
11415 2007-04-27  Bruno Haible  <bruno@clisp.org>
11416
11417         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
11418
11419 2007-04-27  Bruno Haible  <bruno@clisp.org>
11420
11421         * lib/fflush.c: Add comments.
11422         * modules/fpurge-tests (Depends-on): Add fflush.
11423         * modules/freadable-tests (Depends-on): Likewise.
11424         * modules/fwritable-tests (Depends-on): Likewise.
11425
11426 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
11427
11428         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
11429         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
11430         Report by Bruno Haible <bruno@clisp.org>.
11431
11432 2007-04-26  Eric Blake  <ebb9@byu.net>
11433
11434         Fix fflush on mingw.
11435         * modules/fflush (Depends-on): Add freading.
11436         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
11437         but unread data.
11438
11439 2007-04-26  Eric Blake  <ebb9@byu.net>
11440         and Bruno Haible  <bruno@clisp.org>
11441
11442         Implement freading and fwriting.
11443         * lib/freading.c: New file.
11444         * lib/freading.h: Likewise.
11445         * m4/freading.m4: Likewise.
11446         * modules/freading: Likewise.
11447         * modules/freading-tests: Likewise.
11448         * tests/test-freading.c: Likewise.
11449         * lib/fwriting.c: New file.
11450         * lib/fwriting.h: Likewise.
11451         * m4/fwriting.m4: Likewise.
11452         * modules/fwriting: Likewise.
11453         * modules/fwriting-tests: Likewise.
11454         * tests/test-fwriting.c: Likewise.
11455         * MODULES.html.sh (File stream based Input/Output): Mention them.
11456
11457 2007-04-26  Bruno Haible  <bruno@clisp.org>
11458
11459         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
11460         'long' when we assume it.
11461         Suggested by Eric Blake.
11462
11463 2007-04-26  Bruno Haible  <bruno@clisp.org>
11464
11465         Ensure fseeko, ftello are declared on glibc systems.
11466         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
11467         * modules/fseeko (configure.ac-early): Likewise.
11468         * modules/ftello (configure.ac-early): Likewise.
11469         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
11470         AC_FUNC_FSEEKO for this.
11471         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
11472         (gl_CHECK_FSEEKO): Remove macro.
11473
11474 2007-04-26  Bruno Haible  <bruno@clisp.org>
11475
11476         * tests/test-fflush.c (main): Also check the ftell result after
11477         fflush and fseek/fseeko.
11478         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
11479         file descriptor position cache in the stream.
11480         * lib/fseeko.c (rpl_fseeko): Likewise.
11481
11482 2007-04-26  Bruno Haible  <bruno@clisp.org>
11483
11484         * modules/fflush-tests (Depends-on): Add fseeko.
11485
11486 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
11487             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11488
11489         * lib/argz_.h: ensure error_t definition is obtained in same
11490         mechanism system argz.h would have.
11491         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
11492         argz facilities are known bad.  Err on the side of caution if
11493         cross-compiling.
11494
11495 2007-04-25  Eric Blake  <ebb9@byu.net>
11496
11497         * lib/fpurge.c (includes): Use stdlib.h for free.
11498         * tests/test-fflush.c (main): Also test fflush-fseeko.
11499
11500 2007-04-25  Bruno Haible  <bruno@clisp.org>
11501
11502         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
11503         * lib/fseeko.c: New file.
11504         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
11505         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
11506         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
11507         gl_FUNC_FSEEKO.
11508         (gl_FUNC_FSEEKO): Invoke it.
11509         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
11510         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
11511         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
11512
11513 2007-04-25  Bruno Haible  <bruno@clisp.org>
11514
11515         * modules/fflush (Depends-on): Add ftello.
11516
11517 2007-04-25  Bruno Haible  <bruno@clisp.org>
11518
11519         * modules/ftello-tests: New file.
11520         * tests/test-ftello.c: New file.
11521
11522         * modules/ftello: New file.
11523         * m4/ftello.m4: New file.
11524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
11525         HAVE_FTELLO.
11526         * lib/stdio_.h (ftello): New declaration.
11527         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
11528         HAVE_FTELLO.
11529
11530 2007-04-25  Bruno Haible  <bruno@clisp.org>
11531
11532         * modules/fseeko-tests: New file.
11533         * tests/test-fseeko.c: New file.
11534
11535         * modules/fseeko: New file.
11536         * m4/fseeko.m4: New file.
11537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
11538         HAVE_FSEEKO.
11539         * lib/stdio_.h (fseeko): New declaration.
11540         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
11541         HAVE_FSEEKO.
11542
11543 2007-04-25  Bruno Haible  <bruno@clisp.org>
11544
11545         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
11546
11547 2007-04-25  Bruno Haible  <bruno@clisp.org>
11548
11549         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
11550         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
11551         * tests/test-unistd.c: Likewise.
11552         * tests/test-fcntl.c: Likewise.
11553
11554 2007-04-23  Eric Blake  <ebb9@byu.net>
11555
11556         * lib/fflush.c: Fix missing include.
11557         Reported by Bruno Haible.
11558
11559 2007-04-23  Bruno Haible  <bruno@clisp.org>
11560
11561         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
11562         Reported by Eric Blake.
11563
11564 2007-04-23  Bruno Haible  <bruno@clisp.org>
11565
11566         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
11567
11568 2007-04-23  Bruno Haible  <bruno@clisp.org>
11569
11570         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
11571
11572 2007-04-23  Bruno Haible  <bruno@clisp.org>
11573
11574         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
11575         Needed on HP-UX 11.
11576
11577 2007-04-16  Eric Blake  <ebb9@byu.net>
11578
11579         Make fflush rely on fpurge.
11580         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
11581         open coding all variants.
11582         * modules/fflush (Depends-on): Add fpurge and unistd.
11583         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
11584         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
11585
11586         Fix --with-tests compilation on cygwin.
11587         * modules/argmatch-tests (Makefile.am): List gnulib library first
11588         in LDADD.
11589         * modules/argp-tests (Makefile.am): Likewise.
11590         * modules/array-list-tests (Makefile.am): Likewise.
11591         * modules/array-oset-tests (Makefile.am): Likewise.
11592         * modules/avltree-list-tests (Makefile.am): Likewise.
11593         * modules/avltree-oset-tests (Makefile.am): Likewise.
11594         * modules/avltreehash-list-tests (Makefile.am): Likewise.
11595         * modules/carray-list-tests (Makefile.am): Likewise.
11596         * modules/dirname-tests (Makefile.am): Likewise.
11597         * modules/frexp-tests (Makefile.am): Likewise.
11598         * modules/isnanl-tests (Makefile.am): Likewise.
11599         * modules/linked-list-tests (Makefile.am): Likewise.
11600         * modules/linkedhash-list-tests (Makefile.am): Likewise.
11601         * modules/lock-tests (Makefile.am): Likewise.
11602         * modules/rbtree-list-tests (Makefile.am): Likewise.
11603         * modules/rbtree-oset-tests (Makefile.am): Likewise.
11604         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11605         * modules/tls-tests (Makefile.am): Likewise.
11606         * modules/tsearch-tests (Makefile.am): Likewise.
11607         * modules/xvasprintf-tests (Makefile.am): Likewise.
11608
11609         Fix fpurge for cygwin.
11610         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
11611         value.
11612         * modules/fpurge-tests (Depends-on): Clean up trash.
11613
11614 2007-04-16  Simon Josefsson  <simon@josefsson.org>
11615
11616         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
11617
11618         * m4/autobuild.m4: Re-indent.
11619
11620 2007-04-13  Bruno Haible  <bruno@clisp.org>
11621
11622         * modules/fpurge-tests: New file.
11623         * tests/test-fpurge.c: New file.
11624
11625         * modules/fpurge: New file.
11626         * lib/fpurge.h: New file.
11627         * lib/fpurge.c: New file.
11628         * m4/fpurge.m4: New file.
11629
11630 2007-04-13  Bruno Haible  <bruno@clisp.org>
11631
11632         * modules/fbufmode-tests: New file.
11633         * tests/test-fbufmode.c: New file.
11634
11635         * modules/fbufmode: New file.
11636         * lib/fbufmode.h: New file.
11637         * lib/fbufmode.c: New file.
11638         * m4/fbufmode.m4: New file.
11639
11640 2007-04-13  Bruno Haible  <bruno@clisp.org>
11641
11642         * modules/fwritable-tests: New file.
11643         * tests/test-fwritable.c: New file.
11644
11645         * modules/fwritable: New file.
11646         * lib/fwritable.h: New file.
11647         * lib/fwritable.c: New file.
11648         * m4/fwritable.m4: New file.
11649
11650 2007-04-13  Bruno Haible  <bruno@clisp.org>
11651
11652         * modules/freadable-tests: New file.
11653         * tests/test-freadable.c: New file.
11654
11655         * modules/freadable: New file.
11656         * lib/freadable.h: New file.
11657         * lib/freadable.c: New file.
11658         * m4/freadable.m4: New file.
11659
11660 2007-04-13  Bruno Haible  <bruno@clisp.org>
11661
11662         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
11663         MOSTLYCLEANFILES.
11664
11665 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
11666
11667         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
11668         gzip bootstrap.conf to avoid dragging in i18n machinery.
11669         (gnulib_tool_option): Use it.
11670
11671 2007-04-13  Bruno Haible  <bruno@clisp.org>
11672
11673         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
11674         %F directives.
11675         * tests/test-vasprintf-posix.c (test_function): Likewise.
11676         * tests/test-snprintf-posix.h (test_function): Likewise.
11677         * tests/test-sprintf-posix.h (test_function): Likewise.
11678         * tests/test-fprintf-posix.h (test_function): Likewise.
11679         * tests/test-printf-posix.h (test_function): Likewise.
11680         * tests/test-fprintf-posix.out: Likewise.
11681
11682 2007-04-13  Bruno Haible  <bruno@clisp.org>
11683
11684         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
11685         * modules/tls-tests (configure.ac): Likewise.
11686         Reported by Arto C. Nirkko <anirkko@insel.ch>.
11687
11688 2007-04-13  Bruno Haible  <bruno@clisp.org>
11689
11690         * lib/tls.c (glthread_tls_get): Fix return type.
11691         Patch by Arto C. Nirkko <anirkko@insel.ch>.
11692
11693 2007-04-12  Eric Blake  <ebb9@byu.net>
11694
11695         * modules/gettime (Depends-on): Remove gettime.
11696         Reported by Dmitry V. Levin.
11697
11698 2007-04-12  Bruno Haible  <bruno@clisp.org>
11699
11700         * modules/fflush (Include): Mention <stdio.h>.
11701         * modules/strtoimax (Include): Mention <inttypes.h>.
11702         * modules/strtoumax (Include): Likewise.
11703
11704 2007-04-12  Eric Blake  <ebb9@byu.net>
11705
11706         * .cvsignore: New file.
11707         * .gitignore: Likewise.
11708
11709 2007-04-12  Bruno Haible  <bruno@clisp.org>
11710
11711         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
11712         not before, since $(LDADD) often contains libgnu.a.
11713         * modules/striconv-tests (test_striconv_LDADD): Likewise.
11714         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
11715         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
11716         Needed on Cygwin.
11717
11718 2007-04-12  Eric Blake  <ebb9@byu.net>
11719
11720         Work around glibc's failure to flush stdin on fclose.
11721         * lib/closein.c (close_stdin): Flush stdin before closing.
11722
11723         Work around glibc's failure to reset seekable stdin on exit.
11724         * modules/closein: New module.
11725         * lib/closein.c: New file.
11726         * lib/closein.h: Likewise.
11727         * m4/closein.m4: Likewise.
11728         * MODULES.html.sh (File stream based Input/Output): Document it.
11729
11730 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11731
11732         * gnulib-tool: Rename generated 'autobuild' script to
11733         'do-autobuild' in --create-megatestdir output.
11734
11735         * doc/gnulib.texi (Build robot for gnulib): Fix.
11736
11737 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11738
11739         * modules/sysexits (Depends-on): Add absolute-header.
11740
11741 2007-04-12  Eric Blake  <ebb9@byu.net>
11742
11743         No need to preserve errno on success.
11744         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
11745         Reported by Bruno Haible.
11746
11747 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11748
11749         * MODULES.html.sh (Support for maintaining and releasing
11750         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
11751
11752 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11753
11754         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
11755
11756 2007-04-12  Simon Josefsson  <simon@josefsson.org>
11757
11758         * modules/autobuild: New module.
11759
11760         * m4/autobuild.m4: New file.
11761
11762 2007-04-11  Bruno Haible  <bruno@clisp.org>
11763
11764         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
11765         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
11766         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
11767         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
11768         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11769         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11770         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11771         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11772         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11773         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11774         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
11775         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11776         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11777         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
11778         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11779         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11780         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
11781         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11782         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11783         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
11784         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11785         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11786         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
11787         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11788         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11789         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
11790         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11791         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11792         Reported by Eric Blake.
11793
11794 2007-04-11  Bruno Haible  <bruno@clisp.org>
11795
11796         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
11797
11798 2007-04-10  Bruno Haible  <bruno@clisp.org>
11799
11800         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
11801         for NaN and Infinity. Needed on FreeBSD 6.1.
11802         * tests/test-vasnprintf-posix.c (test_function): Undo last change
11803         regarding results for "%010a" of Infinity and NaN.
11804         * tests/test-vasprintf-posix.c (test_function): Likewise.
11805         * tests/test-snprintf-posix.h (test_function): Likewise.
11806         * tests/test-sprintf-posix.h (test_function): Likewise.
11807         * tests/test-fprintf-posix.h (test_function): Likewise.
11808         * tests/test-printf-posix.h (test_function): Likewise.
11809         * tests/test-fprintf-posix.out: Likewise.
11810
11811 2007-04-10  Bruno Haible  <bruno@clisp.org>
11812
11813         * modules/locale-tests: New file.
11814         * tests/test-locale.c: New file.
11815
11816         * modules/locale: New file.
11817         * lib/locale_.h: New file.
11818         * m4/locale_h.m4: New file.
11819
11820 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
11821             Bruno Haible  <bruno@clisp.org>
11822
11823         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
11824         be determined, test for availability of the copysignf, copysign,
11825         copysignl functions.
11826         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
11827         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
11828         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
11829
11830 2007-04-09  Eric Blake  <ebb9@byu.net>
11831
11832         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
11833         * modules/stdio (Makefile.am): Support fflush.
11834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11835         * modules/fflush: New file.
11836         * lib/fflush.c: Likewise.
11837         * m4/fflush.m4: Likewise.
11838         * modules/fflush-tests: New test.
11839         * tests/test-fflush.c: Likewise.
11840         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
11841
11842 2007-04-06  Bruno Haible  <bruno@clisp.org>
11843
11844         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
11845         (VASNPRINTF): Use signbit for faster determination whether to print a
11846         minus sign.
11847         * modules/vasnprintf (Files): Remove lib/float+.h.
11848         * modules/fprintf-posix (Depends-on): Add signbit.
11849         * modules/snprintf-posix (Depends-on): Likewise.
11850         * modules/sprintf-posix (Depends-on): Likewise.
11851         * modules/vasnprintf-posix (Depends-on): Likewise.
11852         * modules/vasprintf-posix (Depends-on): Likewise.
11853         * modules/vfprintf-posix (Depends-on): Likewise.
11854         * modules/vsnprintf-posix (Depends-on): Likewise.
11855         * modules/vsprintf-posix (Depends-on): Likewise.
11856
11857 2007-04-06  Bruno Haible  <bruno@clisp.org>
11858
11859         * tests/test-frexp.c (main): Test also the sign bit of zero results.
11860         * tests/test-frexpl.c (main): Likewise.
11861         * tests/test-ldexpl.c (main): Likewise.
11862         * modules/frexp-tests (Depends-on): Add signbit.
11863         * modules/frexpl-tests (Depdends-on): Likewise.
11864         * modules/ldexpl-tests (Depdends-on): Likewise.
11865
11866 2007-04-06  Bruno Haible  <bruno@clisp.org>
11867
11868         * modules/signbit-tests: New file.
11869         * tests/test-signbit.c: New file.
11870
11871         * modules/signbit: New file.
11872         * lib/signbitf.c: New file.
11873         * lib/signbitd.c: New file.
11874         * lib/signbitl.c: New file.
11875         * m4/signbit.m4: New file.
11876         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
11877         (signbit): New macro.
11878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
11879         REPLACE_SIGNBIT.
11880         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
11881         REPLACE_FREXPL into math.h.
11882
11883 2007-04-06  Bruno Haible  <bruno@clisp.org>
11884
11885         * modules/isnanf-nolibm-tests: New file.
11886         * tests/test-isnanf.c: New file.
11887
11888         * modules/isnanf-nolibm: New file.
11889         * lib/isnanf.h: New file.
11890         * lib/isnanf.c: New file.
11891         * lib/isnan.c: Consider the USE_FLOAT macro.
11892         * m4/isnanf.m4: New file.
11893
11894 2007-04-06  Bruno Haible  <bruno@clisp.org>
11895
11896         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
11897         (Link): New section.
11898
11899         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
11900
11901 2007-04-06  Bruno Haible  <bruno@clisp.org>
11902
11903         Assume the 'long double' type.
11904         * m4/longdouble.m4: Remove file.
11905         * config/srclist.txt: Don't mention longdouble.m4.
11906         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
11907         * lib/float+.h: Likewise.
11908         * lib/frexp.c: Likewise.
11909         * lib/printf-args.h: Likewise.
11910         * lib/printf-args.c: Likewise.
11911         * lib/printf-frexp.c: Likewise.
11912         * lib/printf-parse.c: Likewise.
11913         * lib/vasnprintf.c: Likewise.
11914         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
11915         * m4/intl.m4: Likewise.
11916         * m4/isnanl.m4: Likewise.
11917         * m4/printf.m4: Likewise.
11918         * m4/printf-frexpl.m4: Likewise.
11919         * m4/vasnprintf.m4: Likewise.
11920         * modules/allocsa (Files): Remove m4/longdouble.m4.
11921         * modules/gettext (Files): Likewise.
11922         * modules/relocatable-prog-wrapper (Files): Likewise.
11923         * modules/vasnprintf (Files): Likewise.
11924         * modules/isnanl (Files): Likewise.
11925         (Include): Simplify.
11926         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
11927         (Include): Simplify.
11928         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
11929         (Include): Simplify.
11930         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
11931         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11932         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
11933         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11934         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11935         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11936         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
11937         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11938         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11939         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11940         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
11941         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11942         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
11943         * tests/test-isnanl.c: Likewise.
11944         * tests/test-snprintf-posix.h: Likewise.
11945         * tests/test-sprintf-posix.h: Likewise.
11946         * tests/test-vasnprintf-posix.c: Likewise.
11947         * tests/test-vasnprintf-posix2.c: Likewise.
11948         * tests/test-vasprintf-posix.c: Likewise.
11949
11950 2007-04-06  Bruno Haible  <bruno@clisp.org>
11951
11952         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
11953         * lib/math_.h [__DECC]: Include the overridden include file through
11954         #include_next, outside the double-inclusion guard.
11955         * lib/stdio_.h [__DECC]: Likewise.
11956         * lib/stdlib_.h [__DECC]: Likewise.
11957         * lib/string_.h [__DECC]: Likewise.
11958         * lib/time_.h [__DECC]: Likewise.
11959         * lib/wchar_.h [__DECC]: Likewise.
11960         * lib/wctype_.h [__DECC]: Likewise.
11961         * lib/inttypes_.h [__DECC]: Likewise.
11962         Reported by Albert Chin <china@thewrittenword.com> in
11963         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
11964
11965 2007-04-04  Eric Blake  <ebb9@byu.net>
11966
11967         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
11968         1.5.x.
11969
11970 2007-04-04  Bruno Haible  <bruno@clisp.org>
11971
11972         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
11973         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
11974
11975 2007-04-04  Bruno Haible  <bruno@clisp.org>
11976
11977         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
11978         results for "%010a" of Infinity and NaN.
11979         * tests/test-vasprintf-posix.c (test_function): Likewise.
11980         * tests/test-snprintf-posix.h (test_function): Likewise.
11981         * tests/test-sprintf-posix.h (test_function): Likewise.
11982         * tests/test-fprintf-posix.h (test_function): Remove these tests.
11983         * tests/test-printf-posix.h (test_function): Likewise.
11984         * tests/test-fprintf-posix.out: Update.
11985         Needed for FreeBSD 6.1.
11986
11987 2007-04-04  Bruno Haible  <bruno@clisp.org>
11988
11989         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
11990         directly used by the gnulib modules nor by gnulib-tool.
11991
11992 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
11993
11994         * DEPENDENCIES: Give overall description of version dependency
11995         desirability.  Use more-typical names for apps.
11996         Add shell, coreutils, diffutils, grep, tar, gzip.
11997
11998 2007-04-04  Simon Josefsson  <simon@josefsson.org>
11999
12000         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
12001
12002 2007-04-04  Karl Berry  <karl@gnu.org>
12003
12004         * MODULES.html.sh (func_module): missing '.
12005
12006 2007-04-03  Bruno Haible  <bruno@clisp.org>
12007
12008         * modules/argmatch-tests (Makefile.am): New variable
12009         test_argmatch_LDADD.
12010         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
12011         * modules/array-list-tests (Makefile.am): New variable
12012         test_array_list_LDADD.
12013         * modules/array-oset-tests (Makefile.am): New variable
12014         test_array_oset_LDADD.
12015         * modules/avltree-list-tests (Makefile.am): New variable
12016         test_avltree_list_LDADD.
12017         * modules/avltree-oset-tests (Makefile.am): New variable
12018         test_avltree_oset_LDADD.
12019         * modules/avltreehash-list-tests (Makefile.am): New variable
12020         test_avltreehash_list_LDADD.
12021         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
12022         test_canonicalize_lgpl_LDADD.
12023         * modules/carray-list-tests (Makefile.am): New variable
12024         test_carray_list_LDADD.
12025         * modules/dirname-tests (Makefile.am): New variable
12026         test_dirname_LDADD.
12027         * modules/linked-list-tests (Makefile.am): New variable
12028         test_linked_list_LDADD.
12029         * modules/linkedhash-list-tests (Makefile.am): New variable
12030         test_linkedhash_list_LDADD.
12031         * modules/rbtree-list-tests (Makefile.am): New variable
12032         test_rbtree_list_LDADD.
12033         * modules/rbtree-oset-tests (Makefile.am): New variable
12034         test_rbtree_oset_LDADD.
12035         * modules/rbtreehash-list-tests (Makefile.am): New variable
12036         test_rbtreehash_list_LDADD.
12037         * modules/xvasprintf-tests (Makefile.am): New variable
12038         test_xvasprintf_LDADD.
12039         Reported by Eric Blake.
12040
12041 2007-04-03  Eric Blake  <ebb9@byu.net>
12042
12043         * DEPENDENCIES: Weaken m4 requirements.
12044
12045 2007-04-03  Bruno Haible  <bruno@clisp.org>
12046
12047         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
12048         * modules/isnanl-tests (configure.ac): Likewise.
12049
12050 2007-04-03  Ben Pfaff  <blp@gnu.org>
12051
12052         * modules/iconv_open: Add $(srcdir)/ to source directory
12053         references in Makefile fragments that call gperf, to fix VPATH
12054         builds.
12055
12056 2007-04-03  Bruno Haible  <bruno@clisp.org>
12057
12058         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
12059         * lib/ldexpl.c: Undo last change.
12060
12061 2007-04-03  Bruno Haible  <bruno@clisp.org>
12062
12063         * modules/printf-frexpl (Depends-on): Undo last change.
12064         (Files): Add m4/ldexpl.m4.
12065
12066 2007-04-03  Bruno Haible  <bruno@clisp.org>
12067
12068         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
12069         * modules/isnanl (Link): New section.
12070
12071         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
12072         * modules/frexp (Link): New section.
12073
12074         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
12075         * modules/frexpl (Link): New section.
12076
12077         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
12078         * modules/ldexpl (Link): New section.
12079
12080 2007-04-03  Bruno Haible  <bruno@clisp.org>
12081
12082         * modules/TEMPLATE-EXTENDED: New file.
12083         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
12084
12085 2007-04-03  Bruno Haible  <bruno@clisp.org>
12086
12087         * DEPENDENCIES: New file.
12088         Suggested by Simon Josefsson.
12089
12090 2007-04-03  Bruno Haible  <bruno@clisp.org>
12091
12092         * doc/gnulib.texi: Escape @.
12093
12094 2007-04-03  James Youngman  <jay@gnu.org>
12095         and Paul Eggert  <eggert@cs.ucla.edu>
12096
12097         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
12098         birthtime on all systems that have birthtime, not just those which
12099         use st_birthtimensec rather than st_birthtim.  Putting zero in
12100         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
12101         that the birth time is not available for files on an NFS mount.
12102
12103 2007-04-03  Simon Josefsson  <simon@josefsson.org>
12104
12105         * modules/memxor: Move back from crypto/, suggested by Bruno.
12106         * modules/crypto/hmac-sha1: Fix memxor dependency.
12107
12108         * modules/crypto/gc: Moved from ../.
12109
12110 2007-04-02  Eric Blake  <ebb9@byu.net>
12111
12112         * lib/ldexpl.c (includes): Avoid libm.
12113
12114         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
12115
12116 2007-04-02  Bruno Haible  <bruno@clisp.org>
12117
12118         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
12119         on IRIX.
12120
12121 2007-04-02  Bruno Haible  <bruno@clisp.org>
12122
12123         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
12124         x86 or x86_64 platforms running MacOS X.
12125         Reported by Ryan Schmidt <@ryandesign.com>.
12126
12127 2007-04-02  Bruno Haible  <bruno@clisp.org>
12128
12129         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
12130         i386.
12131
12132 2007-04-01  Simon Josefsson  <simon@josefsson.org>
12133
12134         * modules/crypto/arcfour: Moved from ../.
12135         * modules/crypto/arcfour-tests: Moved from ../.
12136         * modules/crypto/arctwo: Moved from ../.
12137         * modules/crypto/arctwo-tests: Moved from ../.
12138         * modules/crypto/des: Moved from ../.
12139         * modules/crypto/des-tests: Moved from ../.
12140         * modules/crypto/gc-arcfour: Moved from ../.
12141         * modules/crypto/gc-arcfour-tests: Moved from ../.
12142         * modules/crypto/gc-arctwo: Moved from ../.
12143         * modules/crypto/gc-arctwo-tests: Moved from ../.
12144         * modules/crypto/gc-des: Moved from ../.
12145         * modules/crypto/gc-des-tests: Moved from ../.
12146         * modules/crypto/gc-hmac-md5: Moved from ../.
12147         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
12148         * modules/crypto/gc-hmac-sha1: Moved from ../.
12149         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
12150         * modules/crypto/gc-md2: Moved from ../.
12151         * modules/crypto/gc-md2-tests: Moved from ../.
12152         * modules/crypto/gc-md4: Moved from ../.
12153         * modules/crypto/gc-md4-tests: Moved from ../.
12154         * modules/crypto/gc-md5: Moved from ../.
12155         * modules/crypto/gc-md5-tests: Moved from ../.
12156         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
12157         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
12158         * modules/crypto/gc-random: Moved from ../.
12159         * modules/crypto/gc-rijndael: Moved from ../.
12160         * modules/crypto/gc-rijndael-tests: Moved from ../.
12161         * modules/crypto/gc-sha1: Moved from ../.
12162         * modules/crypto/gc-sha1-tests: Moved from ../.
12163         * modules/crypto/gc-tests: Moved from ../.
12164         * modules/crypto/hmac-md5: Moved from ../.
12165         * modules/crypto/hmac-md5-tests: Moved from ../.
12166         * modules/crypto/hmac-sha1: Moved from ../.
12167         * modules/crypto/hmac-sha1-tests: Moved from ../.
12168         * modules/crypto/md2: Moved from ../.
12169         * modules/crypto/md2-tests: Moved from ../.
12170         * modules/crypto/md4: Moved from ../.
12171         * modules/crypto/md4-tests: Moved from ../.
12172         * modules/crypto/md5: Moved from ../.
12173         * modules/crypto/md5-tests: Moved from ../.
12174         * modules/crypto/memxor: Moved from ../.
12175         * modules/crypto/rijndael: Moved from ../.
12176         * modules/crypto/rijndael-tests: Moved from ../.
12177         * modules/crypto/sha1: Moved from ../.
12178
12179 2007-03-30  James Youngman  <jay@gnu.org>
12180
12181         * tests/test-stat-time.c (prepare_test): use chmod() rather than
12182         rename() to change the ctime of a file (because ctime is unaffected
12183         by rename on jfs2 on AIX 5.1).
12184         (main): Start by doing cleanup, in case a previous run failed leaving
12185         test files behind.
12186
12187 2007-03-31  Bruno Haible  <bruno@clisp.org>
12188
12189         Support old proprietary implementations of iconv.
12190         * modules/iconv_open: New file.
12191         * lib/iconv_.h: New file.
12192         * m4/iconv_h.m4: New file.
12193         * lib/iconv_open.c: New file.
12194         * lib/iconv_open-aix.gperf: New file.
12195         * lib/iconv_open-hpux.gperf: New file.
12196         * lib/iconv_open-irix.gperf: New file.
12197         * lib/iconv_open-osf.gperf: New file.
12198         * m4/iconv_open.m4: New file.
12199         * modules/linebreak (Depends-on): Add iconv_open.
12200         * modules/striconv (Depends-on): Likewise.
12201         * modules/striconveh (Depends-on): Likewise.
12202         * modules/unicodeio (Depends-on): Likewise.
12203         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
12204         (iconv_t)(-1).
12205         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
12206         conversion if cd is (iconv_t)(-1).
12207         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
12208         is not possible.
12209
12210 2007-03-31  Bruno Haible  <bruno@clisp.org>
12211
12212         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
12213         work on Solaris either. Protect also second use of "autodetect_jp".
12214
12215 2007-03-31  Bruno Haible  <bruno@clisp.org>
12216
12217         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
12218         the function is not present.
12219
12220 2007-03-31  Bruno Haible  <bruno@clisp.org>
12221
12222         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
12223         the function is not present.
12224
12225 2007-03-31  Bruno Haible  <bruno@clisp.org>
12226
12227         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
12228         a bug in HP-UX iconv_open().
12229
12230 2007-03-31  Bruno Haible  <bruno@clisp.org>
12231
12232         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
12233         (Mathematics <math.h>): New section, add fpieee.
12234         (Input/output <stdio.h>): Add fseterr.
12235         (Mathematics <math.h>): New section, add printf-frexp.
12236         (Container data structures): Add sublist.
12237         (Core language properties): Add fpucw, inline.
12238         (Functions for greatest-width integer types <inttypes.h>): Add
12239         imaxabs, imaxdiv, inttypes.
12240         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
12241         isnanl-nolibm, ldexp.
12242         (Mathematics <math.h>): New section, add printf-frexpl.
12243         (Support for systems lacking POSIX:2001): Add fprintf-posix,
12244         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
12245         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
12246         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
12247         (Unicode string functions): Add unistr/u*-mbtoucr.
12248         (Java): Add javacomp-script, javaexec-script.
12249         (C#): Add csharpcomp-script, csharpexec-script.
12250         (Support for building libraries and executables): Add havelib,
12251         relocatable-*.
12252         (Support for maintaining and releasing projects): Renamed from
12253         'Support for maintaining and release projects'. Add announce-gen.
12254
12255 2007-03-31  Bruno Haible  <bruno@clisp.org>
12256
12257         * README: Talk primarily about git.
12258         (git and CVS): Renamed from CVS.
12259         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
12260         gnulib is available through git.
12261         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
12262
12263 2007-03-30  Bruno Haible  <bruno@clisp.org>
12264
12265         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
12266         * lib/poll_.h: Likewise.
12267         * lib/stat_.h: Likewise.
12268         * lib/sys_time_.h: Likewise.
12269         * lib/sysexit_.h: Likewise.
12270         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
12271         * lib/stdbool_.h: Likewise.
12272         * lib/byteswap_.h: Add double-inclusion guard.
12273
12274 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
12275
12276         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
12277
12278 2007-03-30  Karl Berry  <karl@gnu.org>
12279
12280         * config/srclist-update: double space after USA in the license
12281         substitution, since that's how it's usually (?) written.
12282
12283 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
12284
12285         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
12286         reported by Bruno Haible.
12287
12288 2007-03-29  Bruno Haible  <bruno@clisp.org>
12289
12290         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
12291         a bug in AIX iconv().
12292
12293 2007-03-29  Bruno Haible  <bruno@clisp.org>
12294
12295         * modules/ldexpl-tests: New file.
12296         * tests/test-ldexpl.c: New file.
12297
12298 2007-03-29  Bruno Haible  <bruno@clisp.org>
12299
12300         * lib/ldexpl.c: Include fpucw.h.
12301         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
12302         multiplication.
12303         * modules/ldexpl (Depends-on): Add fpucw.
12304
12305 2007-03-29  Bruno Haible  <bruno@clisp.org>
12306
12307         * modules/ldexpl: New file.
12308         * m4/ldexpl.m4: New file.
12309         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
12310         set.
12311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
12312         REPLACE_LDEXPL.
12313         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
12314         REPLACE_LDEXPL.
12315         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
12316         gl_FUNC_LDEXPL_WORKS.
12317         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
12318         * modules/mathl (Files): Remove lib/ldexpl.c.
12319         (Depends-on): Add ldexpl.
12320
12321 2007-03-29  Bruno Haible  <bruno@clisp.org>
12322
12323         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
12324
12325 2007-03-29  Bruno Haible  <bruno@clisp.org>
12326
12327         * tests/test-striconveh.c (main): Don't assume that a direct conversion
12328         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
12329         and possibly also HP-UX.
12330         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
12331         work on AIX, IRIX, HP-UX, OSF/1.
12332         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12333         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12334         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12335         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12336         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
12337         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12338
12339 2007-03-29  Bruno Haible  <bruno@clisp.org>
12340
12341         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
12342
12343 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
12344
12345         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
12346         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
12347
12348 2007-03-29  Eric Blake  <ebb9@byu.net>
12349
12350         * lib/acl-internal.h: Remove redundant include.
12351         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
12352         Cygwin when a file is locked.
12353
12354 2007-03-29  Bruno Haible  <bruno@clisp.org>
12355
12356         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
12357         file.
12358         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
12359
12360 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
12361
12362         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
12363         try to remove a parent directory if the child couldn't be removed
12364         (except for the first rmdir, which could fail because the child
12365         doesn't exist).  Problem reported by Jeff Blaine in
12366         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
12367
12368 2007-03-28  Bruno Haible  <bruno@clisp.org>
12369
12370         * lib/striconveh.c (utf8conv_carefully): New function.
12371         (mem_cd_iconveh_internal): Invoke it.
12372
12373 2007-03-28  Bruno Haible  <bruno@clisp.org>
12374
12375         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
12376         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
12377         input.
12378         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
12379         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
12380         unistr/u8-uctomb.
12381
12382 2007-03-28  Bruno Haible  <bruno@clisp.org>
12383
12384         * modules/unistr/u8-mbtoucr: New file.
12385         * lib/unistr/u8-mbtoucr.c: New file.
12386         * modules/unistr/u16-mbtoucr: New file.
12387         * lib/unistr/u16-mbtoucr.c: New file.
12388         * modules/unistr/u16-mbtoucr: New file.
12389         * lib/unistr/u16-mbtoucr.c: New file.
12390         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
12391
12392 2007-03-27  Simon Josefsson  <simon@josefsson.org>
12393             Bruno Haible  <bruno@clisp.org>
12394
12395         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
12396         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
12397         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
12398
12399         * m4/stdio_h.m4: Add stubs for vasprintf too.
12400
12401         * modules/stdio: Support vasprintf in sed command.
12402
12403         * modules/vasprintf: Depend on stdio for prototypes.  Remove
12404         vasprintf.h.  Add stdio module indicator.
12405
12406         * lib/stdio_.h: Declare asprintf and vasprintf, based on
12407         vasprintf.h.
12408
12409         * lib/vasprintf.h: File removed.
12410
12411         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
12412         * lib/vasprintf.c: Ditto.
12413         * lib/xvasprintf.c: Ditto.
12414         * tests/test-vasprintf-posix.c: Ditto.
12415         * tests/test-vasprintf.c: Ditto.
12416
12417 2007-03-27  Bruno Haible  <bruno@clisp.org>
12418
12419         Make vasnprintf multithread-safe.
12420         * lib/vasnprintf.c (decimal_point_char): New function.
12421         (VASNPRINTF): Use it.
12422         Suggested by Simon Josefsson.
12423
12424 2007-03-27  Eric Blake  <ebb9@byu.net>
12425
12426         Support sub-second birthtime on cygwin.
12427         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
12428         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
12429         (get_stat_birthtime): Also work with st_birthtim.
12430
12431 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
12432
12433         * lib/stat-time.h (USE_BIRTHTIME): Remove.
12434         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
12435         (get_stat_birthtime_ns): Do not try to use "spare" fields.
12436         (get_stat_birthtime_ns): Simplify compile-time tests.
12437         (get_stat_birthtime): Change the API to look like
12438         get_stat_mtime etc., except return a negative tv_nsec on error.
12439         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
12440         Don't check for "spare" fields.
12441         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
12442         or for struct stat.st_birthtime, as these tests aren't used.
12443         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
12444
12445 2007-03-27  Bruno Haible  <bruno@clisp.org>
12446
12447         * lib/stat-time.h: Include <sys/stat.h>.
12448
12449 2007-03-27  James Youngman  <jay@gnu.org>
12450
12451         * lib/stat-time.h (get_stat_birthtime): New function for
12452           retrieving st_birthtime as provided by UFS2 (hence *BSD).
12453         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
12454           and its variants.
12455         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
12456         * modules/stat-time-test: New file.
12457         * tests/test-stat-time.c: New test, devised by Bruno Haible.
12458
12459 2007-03-26  Bruno Haible  <bruno@clisp.org>
12460
12461         Better support of signalling NaNs.
12462         * lib/atanl.c: Include isnanl.h.
12463         (atanl): Perform test for NaN at the beginning of the function and
12464         through a call to isnanl.
12465         * lib/cosl.c: Include isnanl.h.
12466         (cosl): Perform test for NaN at the beginning of the function and
12467         through a call to isnanl.
12468         * lib/ldexpl.c: Include isnanl.h.
12469         (ldexpl): Perform test for NaN through a call to isnanl.
12470         * lib/logl.c: Include isnanl.h.
12471         (logl): Perform test for NaN at the beginning of the function and
12472         through a call to isnanl.
12473         * lib/sinl.c: Include isnanl.h.
12474         (sinl): Perform test for NaN at the beginning of the function and
12475         through a call to isnanl.
12476         * lib/sqrtl.c: Include isnanl.h.
12477         (sqrtl): Perform test for NaN at the beginning of the function and
12478         through a call to isnanl.
12479         * lib/tanl.c: Include isnanl.h.
12480         (tanl): Perform test for NaN at the beginning of the function and
12481         through a call to isnanl.
12482         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
12483         * modules/mathl (Depends-on): Add isnanl.
12484
12485 2007-03-26  Eric Blake  <ebb9@byu.net>
12486
12487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
12488         regression in logic sense of previous patch.
12489
12490 2007-03-26  Bruno Haible  <bruno@clisp.org>
12491
12492         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
12493         unportable shell command "if ! ...".
12494         Reported by Ralf Wildenhues.
12495
12496 2007-03-25  Bruno Haible  <bruno@clisp.org>
12497
12498         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
12499         <sysexits.h> file, and only add EX_CONFIG.
12500         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
12501         absolute file name and whether it is sufficient. Substitute also
12502         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
12503         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
12504         ABSOLUTE_SYSEXITS_H into sysexits.h.
12505
12506 2007-03-25  Bruno Haible  <bruno@clisp.org>
12507
12508         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
12509         hints is NULL.
12510
12511 2007-03-25  Bruno Haible  <bruno@clisp.org>
12512
12513         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
12514         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
12515
12516 2007-03-25  Bruno Haible  <bruno@clisp.org>
12517
12518         * lib/vasnprintf.c: Include langinfo.h.
12519         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
12520         multithread-safe.
12521         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
12522         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
12523         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12524         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12525         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12526         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12527         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12528         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
12529         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12530         Reported by Simon Josefsson.
12531
12532 2007-03-25  Bruno Haible  <bruno@clisp.org>
12533
12534         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
12535         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
12536         * modules/vasnprintf (Depends-on): Add stdint.
12537
12538 2007-03-25  Bruno Haible  <bruno@clisp.org>
12539
12540         * modules/fpieee: New file.
12541         * m4/fpieee.m4: New file.
12542         * modules/isnan-nolibm (Depends-on): Add fpieee.
12543         * modules/isnanl-nolibm (Depends-on): Add fpieee.
12544         * modules/isnanl (Depends-on): Add fpieee.
12545
12546 2007-03-25  Bruno Haible  <bruno@clisp.org>
12547
12548         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
12549
12550 2007-03-25  Bruno Haible  <bruno@clisp.org>
12551
12552         Avoid test failures on IRIX 6.5.
12553         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
12554         (main): Use it.
12555         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
12556         macros.
12557         (main): Use them.
12558
12559 2007-03-25  Bruno Haible  <bruno@clisp.org>
12560
12561         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
12562         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
12563         exists but doesn't work.
12564         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
12565         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
12566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
12567         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
12568
12569 2007-03-25  Bruno Haible  <bruno@clisp.org>
12570
12571         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
12572         returns inf. Needed on IRIX 6.5.
12573
12574 2007-03-25  Bruno Haible  <bruno@clisp.org>
12575
12576         * tests/test-frexpl.c: Include isnanl-nolibm.h.
12577         (main): Use isnanl instead of x != x idiom.
12578         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
12579
12580         * tests/test-frexp.c: Include isnan.h.
12581         (main): Use isnan instead of x != x idiom.
12582         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
12583
12584 2007-03-25  Bruno Haible  <bruno@clisp.org>
12585
12586         * tests/test-frexp.c (NaN): New function/macro.
12587         (main): Use it instead of 0.0 / 0.0.
12588         * tests/test-isnan.c (NaN): New function/macro.
12589         (main): Use it instead of 0.0 / 0.0.
12590         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
12591         (test_function): Use it instead of 0.0 / 0.0.
12592         * tests/test-vasprintf-posix.c (NaN): New function/macro.
12593         (test_function): Use it instead of 0.0 / 0.0.
12594         * tests/test-snprintf-posix.h (NaN): New function/macro.
12595         (test_function): Use it instead of 0.0 / 0.0.
12596         * tests/test-sprintf-posix.h (NaN): New function/macro.
12597         (test_function): Use it instead of 0.0 / 0.0.
12598         * tests/test-fprintf-posix.h (NaN): New function/macro.
12599         (test_function): Use it instead of 0.0 / 0.0.
12600         * tests/test-printf-posix.h (NaN): New function/macro.
12601         (test_function): Use it instead of 0.0 / 0.0.
12602
12603         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
12604
12605 2007-03-25  Bruno Haible  <bruno@clisp.org>
12606
12607         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
12608
12609 2007-03-25  Bruno Haible  <bruno@clisp.org>
12610
12611         * lib/regexec.c (merge_state_with_log): Make static.
12612
12613 2007-03-25  Bruno Haible  <bruno@clisp.org>
12614
12615         * lib/trigl.c (kernel_rem_pio2): Make static.
12616
12617 2007-03-25  Bruno Haible  <bruno@clisp.org>
12618
12619         * lib/sincosl.c (sincosl_table): Make static.
12620
12621 2007-03-25  Bruno Haible  <bruno@clisp.org>
12622
12623         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
12624         if the compiler does not support C99.
12625
12626 2007-03-25  Bruno Haible  <bruno@clisp.org>
12627
12628         * modules/time (Makefile.am): Ensure all rule action lines start with a
12629         tab.
12630
12631 2007-03-24  Bruno Haible  <bruno@clisp.org>
12632
12633         * modules/tsearch-tests: New file.
12634         * tests/test-tsearch.sh: New file.
12635         * tests/test-tsearch.c: New file, mostly copied from glibc.
12636
12637         * modules/search-tests: New file.
12638         * tests/test-search.c: New file.
12639
12640         * modules/search: New file.
12641         * lib/search_.h: New file, incorporating lib/tsearch.h.
12642         * m4/search_h.m4: New file.
12643         * lib/tsearch.h: Remove file.
12644         * lib/tsearch.c: Include search.h instead of tsearch.h.
12645         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
12646         HAVE_TSEARCH.
12647         * modules/tsearch (Files): Remove lib/tsearch.h.
12648         (Depends-on): Add search.
12649         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
12650         (Include): Change tsearch.h into search.h.
12651
12652 2007-03-24  Bruno Haible  <bruno@clisp.org>
12653
12654         * modules/fpucw: New file.
12655         * lib/fpucw.h: New file.
12656         * lib/frexp.c: Include fpucw.h.
12657         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12658         (FUNC): Use them.
12659         * lib/printf-frexp.c: Include fpucw.h.
12660         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12661         (FUNC): Use them.
12662         * lib/vasnprintf.c: Include fpucw.h.
12663         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
12664         'long double' calculations.
12665         * tests/test-frexpl.c: Include fpucw.h.
12666         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12667         * tests/test-printf-frexpl.c: Include fpucw.h.
12668         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12669         * modules/frexpl (Depends-on): Add fpucw.
12670         * modules/printf-frexpl (Depends-on): Likewise.
12671         * modules/fprintf-posix (Depends-on): Likewise.
12672         * modules/snprintf-posix (Depends-on): Likewise.
12673         * modules/sprintf-posix (Depends-on): Likewise.
12674         * modules/vasnprintf-posix (Depends-on): Likewise.
12675         * modules/vasprintf-posix (Depends-on): Likewise.
12676         * modules/vfprintf-posix (Depends-on): Likewise.
12677         * modules/vsnprintf-posix (Depends-on): Likewise.
12678         * modules/vsprintf-posix (Depends-on): Likewise.
12679         * modules/frexpl-tests (Depends-on): Likewise.
12680         * modules/printf-frexpl-tests (Depends-on): Likewise.
12681
12682 2007-03-24  Bruno Haible  <bruno@clisp.org>
12683
12684         * lib/float+.h: New file.
12685         * lib/isnan.c: Include float+.h.
12686         (SIZE): New macro.
12687         (FUNC): Compare only SIZE bytes of the value.
12688         * lib/vasnprintf.c: Include float+.h.
12689         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
12690         SIZEOF_LDBL or SIZEOF_DBL bytes.
12691         * modules/isnan-nolibm (Files): Add lib/float+.h.
12692         * modules/isnanl-nolibm (Files): Add lib/float+.h.
12693         * modules/isnanl (Files): Add lib/float+.h.
12694         * modules/vasnprintf (Files): Add lib/float+.h.
12695
12696 2007-03-24  Bruno Haible  <bruno@clisp.org>
12697
12698         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
12699         include isnanl-nolibm.h.
12700
12701 2007-03-24  Bruno Haible  <bruno@clisp.org>
12702
12703         * tests/test-read-file.c (main): Don't produce spurious output for
12704         expected situations. Make the test fail if it encountered unexpected
12705         results.
12706
12707 2007-03-24  Bruno Haible  <bruno@clisp.org>
12708
12709         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
12710         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
12711
12712 2007-03-24  Bruno Haible  <bruno@clisp.org>
12713
12714         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
12715
12716 2007-03-24  Bruno Haible  <bruno@clisp.org>
12717
12718         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
12719         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
12720
12721         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
12722         * modules/utf8-ucs4: Turn into a symbolic link to module
12723         unistr/u8-mbtouc.
12724
12725         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
12726         utf8-ucs4-unsafe.
12727         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
12728         unistr/u8-mbtouc-unsafe.
12729
12730         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
12731         * modules/utf16-ucs4: Turn into a symbolic link to module
12732         unistr/u16-mbtouc.
12733
12734         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
12735         utf16-ucs4-unsafe.
12736         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
12737         unistr/u16-mbtouc-unsafe.
12738
12739         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
12740         * modules/ucs4-utf8: Turn into a symbolic link to module
12741         unistr/u8-ubtomb.
12742
12743         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
12744         * modules/ucs4-utf16: Turn into a symbolic link to module
12745         unistr/u16-ubtomb.
12746
12747 2007-03-24  Bruno Haible  <bruno@clisp.org>
12748
12749         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
12750         Enable the function only if HAVE_INLINE.
12751         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
12752         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12753         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
12754         Enable the function only if HAVE_INLINE.
12755         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
12756         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12757         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
12758         Enable the function only if HAVE_INLINE.
12759         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
12760         Enable the function only if HAVE_INLINE.
12761         * modules/utf8-ucs4: Update.
12762         * modules/utf8-ucs4-unsafe: Update.
12763         * modules/utf16-ucs4: Update.
12764         * modules/utf16-ucs4-unsafe: Update.
12765         * modules/ucs4-utf8: Update.
12766         * modules/ucs4-utf16: Update.
12767
12768 2007-03-24  Bruno Haible  <bruno@clisp.org>
12769
12770         * lib/utf8-ucs4.h: Remove file.
12771         * lib/utf8-ucs4-unsafe.h: Remove file.
12772         * lib/utf16-ucs4.h: Remove file.
12773         * lib/utf16-ucs4-unsafe.h: Remove file.
12774         * lib/ucs4-utf8.h: Remove file.
12775         * lib/ucs4-utf16.h: Remove file.
12776         * lib/unistr.h: Include their previous contents.
12777         * m4/utf-ucs4.m4: Remove file.
12778         * m4/ucs4-utf.m4: Remove file.
12779         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
12780         (Depends-on): Add unistr/base.
12781         (configure.ac): Remove gl_UTF_UCS4.
12782         (Makefile.am): Update.
12783         (Include): Change to unistr.h.
12784         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
12785         (Depends-on): Add unistr/base.
12786         (configure.ac): Remove gl_UTF_UCS4.
12787         (Makefile.am): Update.
12788         (Include): Change to unistr.h.
12789         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
12790         (Depends-on): Add unistr/base.
12791         (configure.ac): Remove gl_UTF_UCS4.
12792         (Makefile.am): Update.
12793         (Include): Change to unistr.h.
12794         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
12795         (Depends-on): Add unistr/base.
12796         (configure.ac): Remove gl_UTF_UCS4.
12797         (Makefile.am): Update.
12798         (Include): Change to unistr.h.
12799         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
12800         (Depends-on): Add unistr/base.
12801         (configure.ac): Remove gl_UCS4_UTF.
12802         (Makefile.am): Update.
12803         (Include): Change to unistr.h.
12804         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
12805         (Depends-on): Add unistr/base.
12806         (configure.ac): Remove gl_UCS4_UTF.
12807         (Makefile.am): Update.
12808         (Include): Change to unistr.h.
12809         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
12810         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
12811         utf8-ucs4-unsafe.h.
12812         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
12813         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
12814         utf16-ucs4-unsafe.h.
12815         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
12816         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
12817         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
12818         * lib/unistr/u8-strchr.c: Likewise.
12819         * lib/unistr/u8-strrchr.c: Likewise.
12820         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
12821         * lib/unistr/u16-strchr.c: Likewise.
12822         * lib/unistr/u16-strrchr.c: Likewise.
12823         * lib/striconveh.c: Update.
12824         * lib/linebreak.c: Update.
12825
12826 2007-03-24  Bruno Haible  <bruno@clisp.org>
12827
12828         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
12829         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
12830
12831 2007-03-22  Bruno Haible  <bruno@clisp.org>
12832
12833         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
12834
12835 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
12836
12837         * MODULES.html.sh (File system functions): New module write-any-file.
12838         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
12839         * m4/write-any-file.m4: New files.
12840
12841 2007-03-23  Eric Blake  <ebb9@byu.net>
12842
12843         * gnulib-tool: Rearrange space-tab sequences, since some editors
12844         like to eat them.
12845
12846 2007-03-23  Eric Blake  <ebb9@byu.net>
12847
12848         * lib/version-etc.c (version_etc_va): Update license wording to
12849         be more concise.  Recommended by Richard Stallman.
12850
12851 2007-03-22  Bruno Haible  <bruno@clisp.org>
12852
12853         * lib/poll.c (MSG_PEEK): New fallback definition.
12854
12855 2007-03-22  Bruno Haible  <bruno@clisp.org>
12856
12857         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
12858         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
12859         (main): Update.
12860         Fixes a compilation error on BeOS.
12861
12862 2007-03-22  Bruno Haible  <bruno@clisp.org>
12863
12864         * modules/frexpl-tests: New file.
12865         * tests/test-frexpl.c: New file.
12866
12867         * modules/frexpl: New file.
12868         * m4/frexpl.m4: New file.
12869         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
12870         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
12871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
12872         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
12873         (Depends-on): Add frexpl. Remove isnanl-nolibm.
12874         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
12875
12876 2007-03-22  Bruno Haible  <bruno@clisp.org>
12877
12878         * lib/frexpl.c: Share code with lib/frexp.c.
12879         * modules/mathl (Files): Add lib/frexp.c.
12880         (Depends-on): Add isnanl-nolibm.
12881
12882 2007-03-22  Bruno Haible  <bruno@clisp.org>
12883
12884         * modules/printf-frexp (Files): Add m4/frexp.m4.
12885         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
12886         only if the found frexp function actually works.
12887
12888 2007-03-22  Bruno Haible  <bruno@clisp.org>
12889
12890         * lib/frexp.c: Remove older implementation that uses divisions.
12891
12892 2007-03-21  Bruno Haible  <bruno@clisp.org>
12893
12894         * modules/frexp-tests: New file.
12895         * tests/test-frexp.c: New file.
12896
12897         * modules/frexp: New file.
12898         * lib/frexp.c: New file.
12899         * m4/frexp.m4: New file.
12900         * lib/math_.h (frexp): New declaration.
12901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
12902         REPLACE_FREXP.
12903         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
12904
12905 2007-03-21  Bruno Haible  <bruno@clisp.org>
12906
12907         * modules/isnanl-tests: New file.
12908         * tests/test-isnanl.c: New file.
12909
12910         * modules/isnanl: New file.
12911         * lib/isnanl.h: New file.
12912         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
12913         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
12914         gl_FUNC_ISNANL_WORKS.
12915         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
12916         New macros.
12917
12918 2007-03-21  Bruno Haible  <bruno@clisp.org>
12919
12920         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
12921         lib/isnanl.h.
12922         (Include): Update.
12923         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
12924         * lib/vasnprintf.c: Update.
12925         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
12926         tests/test-isnanl.h, remove tests/test-isnanl.c.
12927         (Makefile.am): Update.
12928         * tests/test-isnanl-nolibm.c: New file.
12929         * tests/test-isnanl.h: New file.
12930         * tests/test-isnanl.c: Remove file.
12931
12932 2007-03-21  Jim Meyering  <jim@meyering.net>
12933
12934         When trying to open ".", treat ESTALE like EACCES.
12935         * lib/savewd.c (savewd_save): Resort to forking not just upon
12936         failure with EACCES, but also when errno is ESTALE.
12937
12938 2007-03-20  Bruno Haible  <bruno@clisp.org>
12939
12940         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
12941         Needed on AIX 5.1. Reported by Matthew Woehlke.
12942
12943 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12944
12945         Suggestions by Bruno Haible:
12946         * lib/acl-internal.h: Include "gettext.h" rather than rolling
12947         our own.
12948         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
12949         * modules/acl (Depends-on): Add gettext.
12950
12951 2007-03-19  Bruno Haible  <bruno@clisp.org>
12952
12953         * modules/iconvme: Remove file.
12954         * lib/iconvme.h: Remove file.
12955         * lib/iconvme.c: Remove file.
12956         * m4/iconvme.m4: Remove file.
12957
12958 2007-03-19  Bruno Haible  <bruno@clisp.org>
12959
12960         * doc/relocatable-maint.texi: Break long shell script line.
12961         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12962
12963 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12964
12965         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
12966         handle file_has_acl.
12967         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
12968         * lib/acl.c: Move header inclusions and related macro defns into
12969         lib/acl-internal.h.
12970         (S_ISLNK): Remove defn, since that's now done for us.
12971         (file_has_acl): Move to lib/file-has-acl.c.
12972         Call acl_trivial if available.  This is the crucial part of the fix.
12973         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
12974         shared within the library.  Rewrite a bit, partly to make it compatible
12975         with the GNU coding style.
12976         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
12977         Remove unnecessary double-quotes.
12978         Don't test for acl_to_text; the build will catch that.
12979         Replace acl_entries if it doesn't exist and it is needed.
12980         Check for -lsec and acl_trivial (as used on Solaris 10).
12981         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
12982         lib/file-has-acl.c.
12983         (Depends-on): Add sys_stat, for S_ISLNK.
12984
12985 2007-03-19  Ben Pfaff  <blp@gnu.org>
12986
12987         * doc/gnulib.texi: Fix typos.
12988         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12989
12990 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12991
12992         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
12993         If size is zero here, buf must be zero.
12994
12995 2007-03-19  Simon Josefsson  <simon@josefsson.org>
12996
12997         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
12998         <bruno@clisp.org>.
12999
13000 2007-03-18  Bruno Haible  <bruno@clisp.org>
13001
13002         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
13003         Suggested by Eric Blake.
13004
13005 2007-03-18  Ben Pfaff  <blp@gnu.org>
13006
13007         * doc/relocatable.texi: Recommend using as prefix a directory
13008         that does not exist and will never be created.  Based on
13009         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
13010         and others.
13011
13012 2007-03-17  Bruno Haible  <bruno@clisp.org>
13013
13014         * lib/fchownat.c: Include lchown.h.
13015
13016 2007-03-17  Bruno Haible  <bruno@clisp.org>
13017
13018         Fix endless loop when the given allocated size was > INT_MAX.
13019         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
13020         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
13021         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
13022         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
13023         * lib/sprintf.c (sprintf): Likewise.
13024
13025 2007-03-17  Bruno Haible  <bruno@clisp.org>
13026
13027         * tests/test-argp-2.sh (func_compare): Output a context diff.
13028
13029 2007-03-17  Bruno Haible  <bruno@clisp.org>
13030
13031         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
13032         locale's decimal-point character.
13033
13034 2007-03-17  Bruno Haible  <bruno@clisp.org>
13035
13036         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
13037         before comparing it. Needed because on some platforms (e.g. x86) a
13038         'long double' occupies less bytes than sizeof (long double).
13039
13040 2007-03-17  Bruno Haible  <bruno@clisp.org>
13041
13042         * tests/test-crc.c (main): Make printf statements 64-bit clean.
13043         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
13044         * tests/test-getaddrinfo.c (simple): Likewise.
13045         * tests/test-read-file.c (main): Likewise.
13046
13047 2007-03-17  Bruno Haible  <bruno@clisp.org>
13048
13049         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
13050
13051 2007-03-17  Bruno Haible  <bruno@clisp.org>
13052
13053         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
13054         unused variable.
13055
13056 2007-03-17  Bruno Haible  <bruno@clisp.org>
13057
13058         * tests/test-c-strcasecmp.c: Include c-strcase.h.
13059         * tests/test-c-strncasecmp.c: Likewise.
13060
13061 2007-03-17  Bruno Haible  <bruno@clisp.org>
13062
13063         * modules/stdlib (Depends-on): Add unistd.
13064         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
13065         Needed for MacOS X 10.3.
13066
13067 2007-03-17  Bruno Haible  <bruno@clisp.org>
13068
13069         * lib/unistr/u-strdup.h: Include <stdlib.h>.
13070
13071 2007-03-17  Bruno Haible  <bruno@clisp.org>
13072
13073         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
13074
13075 2007-03-17  Bruno Haible  <bruno@clisp.org>
13076
13077         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
13078         to reflect files copied from gnulib (with or without modifications).
13079         Suggested by Jim Meyering.
13080
13081 2007-03-17  Eric Blake  <ebb9@byu.net>
13082
13083         * NEWS: Document stdlib change from 2007-02-18.
13084
13085 2007-03-17  Jim Meyering  <jim@meyering.net>
13086
13087         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
13088         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
13089         someone uses a name containing shell meta-characters.
13090         Reported by Alfred M. Szmidt.
13091
13092         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
13093
13094 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
13095
13096         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
13097         and copy gettext configuration files only if configure.ac contains
13098         a use of AM_GNU_GETTEXT_VERSION.
13099
13100 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
13101
13102         * build-aux/bootstrap (gnulib_name): New variable.
13103         (gnulib_tool_options): Use it.
13104
13105 2007-03-13  Simon Josefsson  <simon@josefsson.org>
13106
13107         * tests/test-des.c: Use new namespace.
13108
13109 2007-03-15  Bruno Haible  <bruno@clisp.org>
13110
13111         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
13112         Reported by James Youngman <jay@gnu.org>.
13113
13114 2007-03-15  Bruno Haible  <bruno@clisp.org>
13115
13116         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
13117         declared prototype. Needed with cc on OSF/1 5.1.
13118
13119 2007-03-15  Bruno Haible  <bruno@clisp.org>
13120
13121         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
13122         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
13123         (struct gl_list_implementation): Add dispose_fn argument to the
13124         'create_empty', 'create' methods.
13125         (struct gl_list_impl_base): Add field 'dispose_fn'.
13126         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
13127         argument.
13128         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
13129         dispose_fn argument.
13130         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
13131         dispose_fn on the dropped values.
13132         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
13133         dispose_fn argument.
13134         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
13135         dropped values.
13136         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
13137         (gl_tree_remove_node): Call dispose_fn on the dropped value.
13138         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
13139         (gl_tree_remove_node): Call dispose_fn on the dropped value.
13140         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
13141         argument.
13142         (gl_tree_list_free): Call dispose_fn on the dropped values.
13143         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
13144         the dropped values.
13145         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
13146         Add dispose_fn argument.
13147         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
13148         Call dispose_fn on the dropped values.
13149         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
13150         Add dispose_fn argument.
13151         (gl_sublist_create): Initialize the 'dispose_fn' field.
13152         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
13153         * tests/test-array_list.c (main): Update.
13154         * tests/test-carray_list.c (main): Update.
13155         * tests/test-avltree_list.c (main): Update.
13156         * tests/test-rbtree_list.c (main): Update.
13157         * tests/test-avltreehash_list.c (main): Update.
13158         * tests/test-rbtreehash_list.c (main): Update.
13159         * tests/test-linked_list.c (main): Update.
13160         * tests/test-linkedhash_list.c (main): Update.
13161         * tests/test-array_oset.c (main): Update.
13162
13163 2007-03-15  Bruno Haible  <bruno@clisp.org>
13164
13165         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
13166         (gl_oset_create_empty): Add dispose_fn argument.
13167         (struct gl_oset_implementation): Add dispose_fn argument to
13168         'create_empty' method.
13169         (struct gl_oset_impl_base): Add dispose_fn field.
13170         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
13171         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
13172         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
13173         values.
13174         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
13175         (gl_tree_oset_free): Call dispose_fn on the dropped values.
13176         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
13177         dropped value.
13178         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
13179         dropped value.
13180         * tests/test-array_oset.c (main): Update.
13181         * tests/test-avltree_oset.c (main): Update.
13182         * tests/test-rbtree_oset.c (main): Update.
13183         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
13184
13185 2007-03-13  Bruno Haible  <bruno@clisp.org>
13186
13187         * tests/test-stdbool.c (i): Update after last patch.
13188
13189 2007-03-12  Bruno Haible  <bruno@clisp.org>
13190
13191         * lib/quotearg.c: Include <wctype.h> early, before the definition of
13192         the iswprint macro. Needed on Solaris 2.5.1.
13193
13194 2007-03-12  Bruno Haible  <bruno@clisp.org>
13195
13196         * tests/test-printf-frexp.c (main): Declare x as volatile.
13197
13198 2007-03-12  Simon Josefsson  <simon@josefsson.org>
13199
13200         * doc/gnulib.texi (Build robot for gnulib): New section.
13201
13202 2007-03-12  Jim Meyering  <jim@meyering.net>
13203
13204         * build-aux/bootstrap: New file.
13205         * build-aux/bootstrap.conf: New file, from coreutils.
13206
13207 2007-03-11  Bruno Haible  <bruno@clisp.org>
13208
13209         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
13210
13211 2007-03-12  Simon Josefsson  <simon@josefsson.org>
13212
13213         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
13214         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
13215         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
13216
13217 2007-03-11  Bruno Haible  <bruno@clisp.org>
13218
13219         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
13220         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
13221
13222 2007-03-11  Bruno Haible  <bruno@clisp.org>
13223
13224         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
13225         formula. Needed for SunPRO C 5.0.
13226
13227 2007-03-11  Bruno Haible  <bruno@clisp.org>
13228
13229         * modules/long-options (Depends-on): Add getopt.
13230
13231 2007-03-11  Bruno Haible  <bruno@clisp.org>
13232
13233         * modules/modechange (Depends-on): Add stdbool.
13234
13235 2007-03-11  Bruno Haible  <bruno@clisp.org>
13236
13237         * modules/i-ring (Depends-on): Add stdbool.
13238
13239 2007-03-11  Bruno Haible  <bruno@clisp.org>
13240
13241         * modules/gc-des (Depends-on): Add stdbool.
13242
13243 2007-03-11  Bruno Haible  <bruno@clisp.org>
13244
13245         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
13246
13247 2007-03-11  Bruno Haible  <bruno@clisp.org>
13248
13249         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
13250
13251 2007-03-11  Bruno Haible  <bruno@clisp.org>
13252
13253         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
13254
13255 2007-03-11  Bruno Haible  <bruno@clisp.org>
13256
13257         * lib/vasnprintf.c (sprintf): Undefine.
13258
13259 2007-03-11  Bruno Haible  <bruno@clisp.org>
13260
13261         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
13262         initializers in SunPRO C and Compaq C compilers.
13263
13264 2007-03-11  Bruno Haible  <bruno@clisp.org>
13265
13266         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
13267         decrementing code ANSI C compliant.
13268
13269 2007-03-11  Bruno Haible  <bruno@clisp.org>
13270
13271         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
13272         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
13273
13274 2007-03-11  Bruno Haible  <bruno@clisp.org>
13275
13276         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
13277         <stdbool.h> substitute doesn't pass.
13278
13279 2007-03-11  Bruno Haible  <bruno@clisp.org>
13280
13281         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
13282
13283 2007-03-11  Bruno Haible  <bruno@clisp.org>
13284
13285         * gnulib-tool (func_create_megatestdir): Create also an autobuild
13286         script, for submission to autobuild.josefsson.org.
13287
13288 2007-03-10  Bruno Haible  <bruno@clisp.org>
13289
13290         * modules/canonicalize-lgpl-tests: New file.
13291         * tests/test-canonicalize-lgpl.sh: New file.
13292         * tests/test-canonicalize-lgpl.c: New file.
13293
13294         * modules/c-strcase-tests: New file.
13295         * tests/test-c-strcase.sh: New file.
13296         * tests/test-c-strcasecmp.c: New file.
13297         * tests/test-c-strncasecmp.c: New file.
13298
13299         * modules/atexit-tests: New file.
13300         * tests/test-atexit.sh: New file.
13301         * tests/test-atexit.c: New file.
13302
13303 2007-03-10  Bruno Haible  <bruno@clisp.org>
13304
13305         * tests/test-binary-io.sh: Use temporary filenames that are not so
13306         likely to clash with those of other tests (in a parallel make).
13307         * tests/test-binary-io.c: Likewise.
13308
13309 2007-03-10  Bruno Haible  <bruno@clisp.org>
13310
13311         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
13312         fallback; use #error instead.
13313         Suggested by Simon Josefsson.
13314
13315 2007-03-10  Bruno Haible  <bruno@clisp.org>
13316
13317         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
13318         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
13319         first and the last.
13320
13321 2007-03-10  Bruno Haible  <bruno@clisp.org>
13322
13323         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
13324
13325 2007-03-10  Bruno Haible  <bruno@clisp.org>
13326
13327         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
13328         "make distcheck".
13329         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
13330         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
13331         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
13332
13333 2007-03-10  Bruno Haible  <bruno@clisp.org>
13334
13335         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
13336         variable.
13337         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
13338         variable.
13339
13340 2007-03-09  Eric Blake  <ebb9@byu.net>
13341         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
13342
13343         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
13344         types are not being provided by gnulib.
13345         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
13346         types are supported.
13347
13348 2007-03-10  Bruno Haible  <bruno@clisp.org>
13349
13350         * lib/stdio_.h (__attribute__): New macro.
13351         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
13352         vsprintf): Specify __attribute__ __format__ for GCC.
13353         Suggested by Eric Blake.
13354
13355 2007-03-09  Bruno Haible  <bruno@clisp.org>
13356
13357         * modules/printf-posix-tests: New file.
13358         * tests/test-printf-posix.sh: New file.
13359         * tests/test-printf-posix.c: New file.
13360
13361         * modules/printf-posix: New file.
13362         * lib/printf.c: New file.
13363         * m4/printf-posix-rpl.m4: New file.
13364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
13365         REPLACE_PRINTF.
13366         * lib/stdio_.h (printf): New declaration.
13367         (format, __format__, ____printf____, ____scanf____, ____strftime____,
13368         ____strfmon____): New macros.
13369         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
13370         REPLACE_PRINTF.
13371
13372 2007-03-09  Bruno Haible  <bruno@clisp.org>
13373
13374         * tests/test-vasnprintf-posix2.sh: New file.
13375         * tests/test-vasnprintf-posix2.c: New file.
13376         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
13377         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
13378         (Makefile.am): Activate test-vasnprintf-posix2.sh.
13379
13380         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
13381         a locale dependent decimal point, rather than always '.'.
13382
13383 2007-03-09  Eric Blake  <ebb9@byu.net>
13384
13385         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
13386         spite of platforms like Tandem/NSK that define it to -1.
13387
13388 2007-03-08  Bruno Haible  <bruno@clisp.org>
13389
13390         * modules/vprintf-posix-tests: New file.
13391         * tests/test-vprintf-posix.sh: New file.
13392         * tests/test-vprintf-posix.c: New file.
13393         * tests/test-printf-posix.h: New file.
13394
13395         * modules/vprintf-posix: New file.
13396         * lib/vprintf.c: New file.
13397         * m4/vprintf-posix.m4: New file.
13398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
13399         REPLACE_VPRINTF.
13400         * lib/stdio_.h (vprintf): New declaration.
13401         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
13402         REPLACE_VPRINTF.
13403
13404 2007-03-08  Bruno Haible  <bruno@clisp.org>
13405
13406         * modules/fprintf-posix-tests: New file.
13407         * tests/test-fprintf-posix.sh: New file.
13408         * tests/test-fprintf-posix.c: New file.
13409
13410         * modules/fprintf-posix: New file.
13411         * lib/fprintf.c: New file.
13412         * m4/fprintf-posix.m4: New file.
13413         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
13414         REPLACE_FPRINTF.
13415         * lib/stdio_.h (fprintf): New declaration.
13416         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
13417         REPLACE_FPRINTF.
13418
13419 2007-03-08  Bruno Haible  <bruno@clisp.org>
13420
13421         * modules/vfprintf-posix-tests: New file.
13422         * tests/test-vfprintf-posix.sh: New file.
13423         * tests/test-vfprintf-posix.c: New file.
13424         * tests/test-fprintf-posix.h: New file.
13425         * tests/test-fprintf-posix.out: New file.
13426
13427         * modules/vfprintf-posix: New file.
13428         * lib/vfprintf.c: New file.
13429         * m4/vfprintf-posix.m4: New file.
13430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
13431         REPLACE_VFPRINTF.
13432         * lib/stdio_.h (vfprintf): New declaration.
13433         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
13434         REPLACE_VFPRINTF.
13435
13436 2007-03-08  Bruno Haible  <bruno@clisp.org>
13437
13438         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
13439
13440 2007-03-08  Bruno Haible  <bruno@clisp.org>
13441
13442         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
13443         instead of 'expr' invocations.
13444         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13445         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13447         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13448         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13449         Suggested by Paul Eggert.
13450
13451 2007-03-08  Bruno Haible  <bruno@clisp.org>
13452
13453         * modules/fseterr-tests: New file.
13454         * tests/test-fseterr.c: New file.
13455
13456         * modules/fseterr: New file.
13457         * lib/fseterr.h: New file.
13458         * lib/fseterr.c: New file.
13459
13460 2007-03-08  Bruno Haible  <bruno@clisp.org>
13461
13462         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
13463         * lib/getopt_.h: Likewise.
13464         * lib/mbswidth.h: Likewise.
13465         * lib/setenv.h: Likewise.
13466         * lib/vasnprintf.h: Likewise.
13467         * lib/vasprintf.h: Likewise.
13468         * lib/verror.h: Likewise.
13469         * lib/xsetenv.h: Likewise.
13470         * lib/xvasprintf.h: Likewise.
13471
13472 2007-03-08  Jim Meyering  <jim@meyering.net>
13473
13474         * users.txt: Add parted.
13475
13476         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
13477
13478 2007-03-07  Bruno Haible  <bruno@clisp.org>
13479
13480         * m4/printf.m4: Make the shell script snippets copy&pastable.
13481
13482 2007-03-02  Bruno Haible  <bruno@clisp.org>
13483
13484         * lib/netinet_in_.h: New file.
13485         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
13486         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
13487         * modules/netinet_in (Files): Add lib/netinet_in_.h.
13488         (Depends-on): Add absolute-header.
13489         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
13490         into netinet/in.h.
13491
13492 2007-03-03  Bruno Haible  <bruno@clisp.org>
13493
13494         * lib/sys_select_.h: New file.
13495         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
13496         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
13497         * modules/sys_select (Files): Add lib/sys_select_.h.
13498         (Depends-on): Add absolute-header.
13499         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
13500         into sys/select.h.
13501
13502 2007-03-02  Bruno Haible  <bruno@clisp.org>
13503
13504         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
13505         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
13506         values.
13507         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
13508         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
13509         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
13510         * modules/sys_socket (Depends-on): Add absolute-header.
13511         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
13512         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
13513         (Include): Remove requirement of inclusion of <sys/types.h>.
13514
13515 2007-03-02  Bruno Haible  <bruno@clisp.org>
13516
13517         * lib/byteswap_.h (bswap_32): Fix formula.
13518
13519 2007-03-06  Bruno Haible  <bruno@clisp.org>
13520
13521         * modules/sprintf-posix-tests: New file.
13522         * tests/test-sprintf-posix.c: New file.
13523
13524         * modules/sprintf-posix: New file.
13525         * lib/sprintf.c: New file.
13526         * m4/sprintf-posix.m4: New file.
13527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
13528         REPLACE_SPRINTF.
13529         * lib/stdio_.h (sprintf): New declaration.
13530         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
13531         REPLACE_SPRINTF.
13532
13533 2007-03-06  Bruno Haible  <bruno@clisp.org>
13534
13535         * modules/vsprintf-posix-tests: New file.
13536         * tests/test-vsprintf-posix.c: New file.
13537         * tests/test-sprintf-posix.h: New file.
13538
13539         * modules/vsprintf-posix: New file.
13540         * lib/vsprintf.c: New file.
13541         * m4/vsprintf-posix.m4: New file.
13542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
13543         REPLACE_VSPRINTF.
13544         * lib/stdio_.h (vsprintf): New declaration.
13545         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
13546         REPLACE_VSPRINTF.
13547
13548 2007-03-06  Bruno Haible  <bruno@clisp.org>
13549
13550         * modules/vsnprintf (Depend-on): Remove minmax.
13551
13552 2007-03-06  Bruno Haible  <bruno@clisp.org>
13553
13554         * modules/snprintf-posix-tests: New file.
13555         * tests/test-snprintf-posix.c: New file.
13556
13557         * modules/snprintf-posix: New file.
13558         * m4/snprintf-posix.m4: New file.
13559         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
13560         gl_FUNC_SNPRINTF.
13561         (gl_FUNC_SNPRINTF): Invoke it.
13562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
13563         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
13564         is set.
13565         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
13566
13567 2007-03-06  Bruno Haible  <bruno@clisp.org>
13568
13569         * modules/vsnprintf-posix-tests: New file.
13570         * tests/test-vsnprintf-posix.c: New file.
13571         * tests/test-snprintf-posix.h: New file.
13572
13573         * modules/vsnprintf-posix: New file.
13574         * m4/vsnprintf-posix.m4: New file.
13575         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
13576         gl_FUNC_VSNPRINTF.
13577         (gl_FUNC_VSNPRINTF): Invoke it.
13578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
13579         * lib/stdio_.h (vsnprintf): Define as a replacement if
13580         REPLACE_VSNPRINTF is set.
13581         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
13582
13583 2007-03-06  Bruno Haible  <bruno@clisp.org>
13584
13585         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
13586         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
13587
13588 2007-03-06  Bruno Haible  <bruno@clisp.org>
13589
13590         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
13591         (asinl): Declare also if HAVE_DECL_ASINL is set.
13592         (atanl): Declare also if HAVE_DECL_ATANL is set.
13593         (ceill): Declare also if HAVE_DECL_CEILL is set.
13594         (cosl): Declare also if HAVE_DECL_COSL is set.
13595         (expl): Declare also if HAVE_DECL_EXPL is set.
13596         (floorl): Declare also if HAVE_DECL_FLOORL is set.
13597         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
13598         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
13599         (logl): Declare also if HAVE_DECL_LOGL is set.
13600         (sinl): Declare also if HAVE_DECL_SINL is set.
13601         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
13602         (tanl): Declare also if HAVE_DECL_TANL is set.
13603         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
13604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
13605         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
13606         declaration of frexpl, ldexpl.
13607         * modules/printf-frexpl (Depends-on): Add math.
13608         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
13609
13610 2007-03-05  Bruno Haible  <bruno@clisp.org>
13611
13612         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
13613         frexpl and ldexpl are declared.
13614         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
13615
13616 2007-03-05  Bruno Haible  <bruno@clisp.org>
13617
13618         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
13619         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
13620
13621 2007-03-05  Bruno Haible  <bruno@clisp.org>
13622
13623         * lib/stdio_.h: Include <stddef.h>.
13624
13625 2007-03-05  Bruno Haible  <bruno@clisp.org>
13626
13627         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
13628
13629 2007-03-05  Bruno Haible  <bruno@clisp.org>
13630
13631         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
13632         NetBSD 4, from Ralf Wildenhues.
13633
13634 2007-03-04  Bruno Haible  <bruno@clisp.org>
13635
13636         * lib/vasprintf.h: Update #if logic for the case when the functions
13637         exist but are overridden.
13638
13639 2007-03-04  Bruno Haible  <bruno@clisp.org>
13640
13641         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
13642         implementations: glibc-2.4 and MacOS X 10.3.
13643         * tests/test-vasnprintf-posix.c (test_function): Test also the case
13644         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
13645         * tests/test-vasprintf-posix.c (test_function): Likewise.
13646
13647 2007-03-04  Bruno Haible  <bruno@clisp.org>
13648
13649         * modules/vasprintf-posix-tests: New file.
13650         * tests/test-vasprintf-posix.c: New file.
13651
13652         * modules/vasprintf-posix: New file.
13653         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
13654         defined.
13655         * m4/vasprintf-posix.m4: New file.
13656         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
13657         gl_FUNC_VASPRINTF.
13658         (gl_FUNC_VASPRINTF): Invoke it.
13659         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
13660         here.
13661         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
13662
13663 2007-03-04  Bruno Haible  <bruno@clisp.org>
13664
13665         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
13666         REPLACE_GETTIMEOFDAY.
13667         * modules/sys_time (Makefile.am): Likewise.
13668         * m4/sys_time_h.m4: Likewise.
13669         * m4/gettimeofday.m4: Likewise.
13670
13671 2007-03-04  Bruno Haible  <bruno@clisp.org>
13672
13673         * modules/vasnprintf-posix-tests: New file.
13674         * tests/test-vasnprintf-posix.c: New file.
13675
13676         * modules/vasnprintf-posix: New file.
13677         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
13678         printf-frexpl.h.
13679         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
13680         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
13681         REPLACE_VASNPRINTF is defined.
13682         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
13683         gl_FUNC_VASNPRINTF.
13684         (gl_FUNC_VASNPRINTF): Invoke it.
13685         * m4/vasnprintf-posix.m4: New file.
13686         * m4/printf.m4: New file.
13687
13688 2007-03-04  Bruno Haible  <bruno@clisp.org>
13689
13690         Compile progreloc.c only if --enable-relocatable is specified.
13691         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
13692         if --enable-relocatable was specified.
13693         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
13694         lib_SOURCES.
13695
13696 2007-03-04  Jim Meyering  <jim@meyering.net>
13697
13698         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
13699         Use it consistently, rather than enumerating errno constants.
13700
13701 2007-03-04  Bruno Haible  <bruno@clisp.org>
13702
13703         * modules/xvasprintf-tests: New file.
13704         * tests/test-xvasprintf.c: New file.
13705
13706         * modules/vasprintf-tests: New file.
13707         * tests/test-vasprintf.c: New file.
13708
13709         * modules/vasnprintf-tests: New file.
13710         * tests/test-vasnprintf.c: New file.
13711
13712         * modules/vsnprintf-tests: New file.
13713         * tests/test-vsnprintf.c: New file.
13714
13715         * modules/snprintf-tests: New file.
13716         * tests/test-snprintf.c: New file.
13717
13718 2007-03-04  Bruno Haible  <bruno@clisp.org>
13719
13720         Compile relocatable.c only if --enable-relocatable is specified.
13721         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
13722         gl_RELOCATABLE_LIBRARY.
13723         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
13724         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
13725         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
13726         gl_RELOCATABLE_LIBRARY.
13727         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
13728         (Makefile.am): Remove lib_SOURCES.
13729         * modules/relocatable-lib-lgpl (configure.ac): Invoke
13730         gl_RELOCATABLE_LIBRARY.
13731         (Makefile.am): Remove lib_SOURCES.
13732         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
13733         always.
13734         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13735         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
13736
13737 2007-03-04  Bruno Haible  <bruno@clisp.org>
13738
13739         * modules/argmatch-tests: New file.
13740         * tests/test-argmatch.c: New file.
13741
13742         * tests/test-allocsa.c (main): Halve the number of loop runs.
13743
13744         * modules/alloca-opt-tests: New file.
13745         * tests/test-alloca-opt.c: New file.
13746
13747 2007-03-04  Jim Meyering  <jim@meyering.net>
13748
13749         Work around difference between Linux ACLs and Solaris 10 ZFS.
13750         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
13751         for EINVAL.
13752
13753 2007-03-03  Bruno Haible  <bruno@clisp.org>
13754
13755         * modules/relocatable-prog (Depends-on): Add back progreloc's
13756         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
13757
13758 2007-03-03  Bruno Haible  <bruno@clisp.org>
13759
13760         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
13761         * modules/relocatable-lib: New file.
13762
13763 2007-03-03  Bruno Haible  <bruno@clisp.org>
13764
13765         * modules/relocatable-prog: Renamed from modules/relocatable.
13766         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
13767
13768 2007-03-03  Bruno Haible  <bruno@clisp.org>
13769
13770         * modules/relocatable-script (Files): Add doc/relocatable.texi,
13771         m4/relocatable-lib.m4.
13772         (Depends-on): Remove 'relocatable'.
13773         (configure.ac): Add gl_RELOCATABLE_NOP.
13774
13775 2007-03-03  Bruno Haible  <bruno@clisp.org>
13776
13777         * modules/relocatable-prog-wrapper: New file.
13778         * modules/relocatable (Depends-on): Add it. Remove all other
13779         dependencies except progname.
13780         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
13781
13782         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
13783         (gl_FUNC_STRERROR): Nop.
13784         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
13785
13786         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
13787         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
13788
13789         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
13790         (gl_FUNC_READLINK): Update.
13791
13792         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
13793
13794 2007-03-03  Bruno Haible  <bruno@clisp.org>
13795
13796         * lib/xreadlink.c: Include <unistd.h> unconditionally.
13797         * modules/xreadlink (Depends-on): Add unistd.
13798         * modules/xreadlink-with-size (Depends-on): Likewise.
13799
13800 2007-03-03  Bruno Haible  <bruno@clisp.org>
13801
13802         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
13803         extracted from gt_FUNC_SETENV.
13804         (gt_FUNC_SETENV): Remove macro.
13805         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
13806         remove gt_FUNC_SETENV.
13807
13808 2007-03-03  Bruno Haible  <bruno@clisp.org>
13809
13810         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
13811         ENABLE_RELOCATABLE here.
13812         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
13813
13814 2007-03-03  Bruno Haible  <bruno@clisp.org>
13815
13816         * modules/rbtreehash-list-tests (Depends-on): Add progname.
13817         * tests/test-rbtreehash_list.c: Include progname.h.
13818         (main): Call set_program_name.
13819
13820         * modules/rbtree-oset-tests (Depends-on): Add progname.
13821         * tests/test-rbtree_oset.c: Include progname.h.
13822         (main): Call set_program_name.
13823
13824         * modules/rbtree-list-tests (Depends-on): Add progname.
13825         * tests/test-rbtree_list.c: Include progname.h.
13826         (main): Call set_program_name.
13827
13828         * modules/linked-list-tests (Depends-on): Add progname.
13829         * tests/test-linked_list.c: Include progname.h.
13830         (main): Call set_program_name.
13831
13832 2007-03-03  Bruno Haible  <bruno@clisp.org>
13833
13834         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
13835         All uses of __restrict changed to _Restrict_.
13836         * lib/glob_.h (__restrict): Remove macro.
13837
13838 2007-03-02  Bruno Haible  <bruno@clisp.org>
13839
13840         * modules/gettext (configure.ac): Require gettext infrastructure
13841         from version 0.16.1.
13842
13843 2007-03-02  Bruno Haible  <bruno@clisp.org>
13844
13845         * modules/linkedhash-list-tests (Depends-on): Add progname.
13846         * tests/test-linkedhash_list.c: Include progname.h.
13847         (main): Call set_program_name.
13848
13849         * modules/carray-list-tests (Depends-on): Add progname.
13850         * tests/test-carray_list.c: Include progname.h.
13851         (main): Call set_program_name.
13852
13853         * modules/avltreehash-list-tests (Depends-on): Add progname.
13854         * tests/test-avltreehash_list.c: Include progname.h.
13855         (main): Call set_program_name.
13856
13857         * modules/avltree-oset-tests (Depends-on): Add progname.
13858         * tests/test-avltree_oset.c: Include progname.h.
13859         (main): Call set_program_name.
13860
13861         * modules/avltree-list-tests (Depends-on): Add progname.
13862         * tests/test-avltree_list.c: Include progname.h.
13863         (main): Call set_program_name.
13864
13865         * modules/array-oset-tests (Depends-on): Add progname.
13866         * tests/test-array_oset.c: Include progname.h.
13867         (main): Call set_program_name.
13868
13869         * modules/array-list-tests (Depends-on): Add progname.
13870         * tests/test-array_list.c: Include progname.h.
13871         (main): Call set_program_name.
13872
13873         * modules/argp-tests (Depends-on): Add progname.
13874         * tests/test-argp.c: Include argp.h first. Include progname.h.
13875         (main): Call set_program_name.
13876
13877 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
13878
13879         * doc/gnulib-tool.texi (Initial import): Reword description of
13880         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
13881         limited effect even if defined after the first system include.
13882
13883 2007-03-01  Bruno Haible  <bruno@clisp.org>
13884
13885         * build-aux/config.libpath: Update to libtool-1.5.22.
13886         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13887
13888 2007-03-01  Bruno Haible  <bruno@clisp.org>
13889
13890         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
13891         foo_CFLAGS.
13892         Reported by Ralf Wildenhues.
13893
13894 2007-03-01  Bruno Haible  <bruno@clisp.org>
13895
13896         * build-aux/install-reloc: Remove object files left over by some
13897         compilers.
13898         Reported by Ralf Wildenhues.
13899
13900 2007-03-01  Bruno Haible  <bruno@clisp.org>
13901
13902         * build-aux/install-reloc: Break long lines.
13903
13904 2007-03-01  Bruno Haible  <bruno@clisp.org>
13905
13906         * doc/relocatable.texi: Document that it may not work on OpenBSD.
13907         Reported by Ralf Wildenhues.
13908
13909 2007-03-01  Bruno Haible  <bruno@clisp.org>
13910
13911         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
13912         include ordering constraints.
13913
13914 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
13915
13916         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
13917         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
13918         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
13919         as another example.
13920         * lib/time_.h: Fix misspelling.
13921         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
13922         Require gl_HEADER_TIME_H_DEFAULTS.
13923         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
13924         * m4/time_r.m4 (gl_TIME_R): Likewise.
13925         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
13926
13927 2007-03-01  Bruno Haible  <bruno@clisp.org>
13928
13929         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
13930         * m4/utimens.m4 (gl_UTIMENS): Likewise.
13931
13932 2007-03-01  Jim Meyering  <jim@meyering.net>
13933
13934         * modules/xreadlink (Maintainer): Add my name.
13935         * modules/xreadlink-with-size (Depends-on): Alphabetize.
13936
13937 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
13938             Bruno Haible  <bruno@clisp.org>
13939
13940         * build-aux/install-reloc: Compile also c-ctype.c.
13941         * build-aux/relocatable.sh.in: New file.
13942         * doc/relocatable.texi: New file.
13943         * doc/relocatable-maint.texi: New file.
13944         * doc/gnulib.texi: Include relocatable-maint.texi.
13945         * lib/progreloc.c: Include unistd.h unconditionally.
13946         * lib/relocwrapper.c: Include unistd.h unconditionally.
13947         Include c-ctype.h.
13948         (add_dotbin): Use c_tolower.
13949         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
13950         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
13951         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
13952         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
13953         to m4/relocatable-lib.m4.
13954         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
13955         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
13956         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
13957         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
13958         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
13959         * modules/relocatable: New file.
13960         * modules/relocatable-lib: New file.
13961         * modules/relocatable-script: New file.
13962
13963 2007-02-28  Bruno Haible  <bruno@clisp.org>
13964
13965         Import --enable-relocatable infrastructure.
13966         * build-aux/config.libpath: New file, from GNU gettext.
13967         * build-aux/install-reloc: New file, from GNU gettext.
13968         * build-aux/reloc-ldflags: New file, from GNU gettext.
13969         * lib/relocatable.h: New file, from GNU gettext.
13970         * lib/relocatable.c: New file, from GNU gettext.
13971         * lib/relocwrapper.c: New file, from GNU gettext.
13972         * m4/relocatable.m4: New file, from GNU gettext.
13973
13974 2007-02-28  Bruno Haible  <bruno@clisp.org>
13975
13976         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
13977
13978         * modules/xreadlink: New file, from GNU gettext with modifications.
13979         * lib/xreadlink.c: New file, from GNU gettext.
13980         * lib/xreadlink.h: Add comments.
13981         (xreadlink): New declaration.
13982
13983         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
13984         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
13985         lib/xreadlink-with-size.c.
13986         (configure.ac): Remove gl_XREADLINK invocation.
13987         (Makefile.am): Augment lib_SOURCES.
13988         * m4/xreadlink.m4: Remove file.
13989         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
13990         (xreadlink_with_size): Renamed from xreadink.
13991         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
13992         * modules/canonicalize (Depends-on): Replace xreadlink with
13993         xreadlink-with-size.
13994         * lib/canonicalize.c (canonicalize_filename_mode): Update.
13995
13996 2007-02-25  Jim Meyering  <jim@meyering.net>
13997
13998         * build-aux/announce-gen: When complaining about excess arguments,
13999         list them.
14000
14001 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14002
14003         * README: Document signed integer overflow situation more
14004         accurately.
14005
14006 2007-02-25  Bruno Haible  <bruno@clisp.org>
14007
14008         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
14009         'a' or 'A' conversion.
14010
14011 2007-02-25  Bruno Haible  <bruno@clisp.org>
14012
14013         * modules/filename: Renamed from modules/pathname.
14014         (Files): Replace lib/pathname.h with lib/filename.h. Replace
14015         lib/concatpath.c with lib/concat-filename.c.
14016         (Makefile.am): Update.
14017         (Include): Replace pathname.h with filename.h.
14018         * lib/filename.h: Renamed from lib/pathname.h.
14019         (concatenated_filename): Renamed from concatenated_pathname.
14020         * lib/concat-filename.c: Renamed from lib/concatpath.c.
14021         (concatenated_filename): Renamed from concatenated_pathname.
14022         * lib/findprog.c: Include filename.h instead of pathname.h.
14023         (find_in_path): Update.
14024         * lib/javacomp.c: Include filename.h instead of pathname.h.
14025         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
14026         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
14027         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
14028         is_oldgcj_14_13_usable, is_javac_usable): Update.
14029         * lib/javaexec.c: Include filename.h instead of pathname.h.
14030         (execute_java_class): Update.
14031         * modules/findprog: Update.
14032         * modules/javacomp: Update.
14033         * modules/javaexec: Update.
14034         * MODULES.html.sh (File system functions): Add 'filename', remove
14035         'pathname'.
14036
14037 2007-02-25  Bruno Haible  <bruno@clisp.org>
14038
14039         * modules/printf-frexpl-tests: New file.
14040         * tests/test-printf-frexpl.c: New file.
14041
14042         * modules/printf-frexpl: New file.
14043         * lib/printf-frexpl.h: New file.
14044         * lib/printf-frexpl.c: New file.
14045         * m4/printf-frexpl.m4: New file.
14046
14047 2007-02-25  Bruno Haible  <bruno@clisp.org>
14048
14049         * modules/printf-frexp-tests: New file.
14050         * tests/test-printf-frexp.c: New file.
14051
14052         * modules/printf-frexp: New file.
14053         * lib/printf-frexp.h: New file.
14054         * lib/printf-frexp.c: New file.
14055         * m4/printf-frexp.m4: New file.
14056
14057 2007-02-25  Bruno Haible  <bruno@clisp.org>
14058
14059         Assume automake >= 1.10 for the tests.
14060         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
14061         * modules/arctwo-tests: Likewise.
14062         * modules/argp-tests: Likewise.
14063         * modules/avltree-list-tests: Likewise.
14064         * modules/avltree-oset-tests: Likewise.
14065         * modules/avltreehash-list-tests: Likewise.
14066         * modules/carray-list-tests: Likewise.
14067         * modules/crc-tests: Likewise.
14068         * modules/des-tests: Likewise.
14069         * modules/gc-arcfour-tests: Likewise.
14070         * modules/gc-arctwo-tests: Likewise.
14071         * modules/gc-des-tests: Likewise.
14072         * modules/gc-hmac-md5-tests: Likewise.
14073         * modules/gc-hmac-sha1-tests: Likewise.
14074         * modules/gc-md2-tests: Likewise.
14075         * modules/gc-md4-tests: Likewise.
14076         * modules/gc-md5-tests: Likewise.
14077         * modules/gc-pbkdf2-sha1-tests: Likewise.
14078         * modules/gc-rijndael-tests: Likewise.
14079         * modules/gc-sha1-tests: Likewise.
14080         * modules/gc-tests: Likewise.
14081         * modules/getaddrinfo-tests: Likewise.
14082         * modules/hmac-md5-tests: Likewise.
14083         * modules/hmac-sha1-tests: Likewise.
14084         * modules/linked-list-tests: Likewise.
14085         * modules/linkedhash-list-tests: Likewise.
14086         * modules/lock-tests: Likewise.
14087         * modules/md2-tests: Likewise.
14088         * modules/md4-tests: Likewise.
14089         * modules/md5-tests: Likewise.
14090         * modules/rbtree-list-tests: Likewise.
14091         * modules/rbtree-oset-tests: Likewise.
14092         * modules/rbtreehash-list-tests: Likewise.
14093         * modules/read-file-tests: Likewise.
14094         * modules/rijndael-tests: Likewise.
14095         * modules/stdint-tests: Likewise.
14096         * modules/tls-tests: Likewise.
14097
14098 2007-02-24  Bruno Haible  <bruno@clisp.org>
14099
14100         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
14101         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
14102         function; instead check whether isnan with a double argument links.
14103         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
14104         function; instead check whether isnan with a 'long double' argument
14105         links.
14106         Reported by Eric Blake <ebb9@byu.net>.
14107
14108 2007-02-24  Bruno Haible  <bruno@clisp.org>
14109
14110         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
14111         defined.
14112         * lib/isnanl.c: Remove all code. Just include isnan.c.
14113         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
14114
14115 2007-02-25  Jim Meyering  <jim@meyering.net>
14116
14117         Avoid conflicting types for 'unsetenv' on FreeBSD.
14118         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
14119         conflicting with FreeBSD's (5.0 and 6.1) function declaration
14120         in stdlib.h.
14121
14122 2007-02-24  Bruno Haible  <bruno@clisp.org>
14123
14124         * modules/isnanl-nolibm-tests: New file.
14125         * tests/test-isnanl.c: New file.
14126
14127         * modules/isnanl-nolibm: New file.
14128         * lib/isnanl.h: New file.
14129         * lib/isnanl.c: New file.
14130         * m4/isnanl.m4: New file.
14131
14132 2007-02-24  Bruno Haible  <bruno@clisp.org>
14133
14134         * modules/isnan-nolibm-tests: New file.
14135         * tests/test-isnan.c: New file.
14136
14137         * modules/isnan-nolibm: New file.
14138         * lib/isnan.h: New file.
14139         * lib/isnan.c: New file.
14140         * m4/isnan.m4: New file.
14141
14142 2007-02-24  Bruno Haible  <bruno@clisp.org>
14143
14144         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
14145         assume that an exponent fits in 20 bits.
14146
14147 2007-02-24  Jim Meyering  <jim@meyering.net>
14148
14149         * m4/regex.m4: Update the description of the configure-time option,
14150         --without-included-regex, to state accurately what the defaults are,
14151         and perhaps to give people an idea why using this option is risky.
14152
14153 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14154
14155         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
14156         loops on small arguments.  This attempts to avoid the problem
14157         Bruno Haible reported for AIX 4.3.2 in
14158         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
14159
14160 2007-02-23  Bruno Haible  <bruno@clisp.org>
14161
14162         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
14163         Needed for help2man.
14164
14165 2007-02-23  Karl Berry  <karl@gnu.org>
14166
14167         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
14168         exists, foo.h should be cvs-ignored, not committed.
14169
14170 2007-02-23  Eric Blake  <ebb9@byu.net>
14171
14172         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
14173         * lib/stat-time.h (includes): Likewise.
14174         * lib/utimecmp.c (includes): Likewise.
14175         * lib/utimens.h (includes): Likewise.
14176         * lib/getdate.y (includes): Also include "timespec.h" for use
14177         internal to the module.
14178         * modules/utimens (Depends-on): Revert yesterday's patch.
14179         * modules/nanosleep (Depends-on): Add missing dependency.
14180
14181 2007-02-22  Bruno Haible  <bruno@clisp.org>
14182
14183         * lib/glob.c: Don't include getlogin_r.h.
14184
14185 2007-02-22  Jim Meyering  <jim@meyering.net>
14186
14187         * modules/utimens (Depends-on): Add timespec, required for
14188         utimens.h's inclusion of timespec.h.
14189
14190 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14191
14192         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
14193         long unreadable paths in GNU/Linux.  Problem reported by Andreas
14194         Schwab in
14195         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
14196         I'll try to think of a better way to fix the Solaris problem.
14197
14198         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
14199         like glibc; on Solaris 10, it fails with errno == EINVAL.
14200         POSIX says the behavior is unspecified if the first argument is NULL,
14201         so play it safe and never pass NULL to the system getcwd.
14202
14203 2007-02-21  Jim Meyering  <jim@meyering.net>
14204
14205         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
14206         of gettimeofday.  It would conflict with the one now always
14207         provided via sys_time_.h.  Reported by Matthew Woehlke, as
14208         an IRIX 6.5 build failure.
14209
14210 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14211
14212         Minor fixups to port to Solaris 10 with Sun C 5.8.
14213         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
14214         * modules/getcwd (Depends-on): Add dirfd.
14215         * lib/putenv.c (putenv): #undef it.
14216         (rpl_putenv): New decl.
14217         (malloc, free): Include <stdlib.h> rather than prototyping separately.
14218
14219 2007-02-20  Bruno Haible  <bruno@clisp.org>
14220
14221         * modules/stdio-tests: New file.
14222         * tests/test-stdio.c: New file.
14223
14224         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
14225         (Depends-on): Add stdio.
14226         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14227         (Include): Use <stdio.h> instead of vsnprintf.h.
14228         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
14229         HAVE_DECL_VSNPRINTF.
14230         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
14231
14232         * modules/snprintf (Files): Remove lib/snprintf.h.
14233         (Depends-on): Add stdio.
14234         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14235         (Include): Use <stdio.h> instead of snprintf.h.
14236         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
14237         HAVE_DECL_SNPRINTF.
14238         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
14239         * lib/getaddrinfo.c: Likewise.
14240
14241         * modules/stdio: New file.
14242         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
14243         * lib/snprintf.h: Remove file.
14244         * lib/vsnprintf.h: Remove file.
14245         * lib/.cppi-disable: Remove snprintf.h.
14246         * m4/stdio_h.m4: New file.
14247         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
14248
14249 2007-02-20  Jim Meyering  <jim@meyering.net>
14250
14251         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
14252         used by e.g., mingw.  From Bruno Haible.
14253
14254 2007-02-19  Bruno Haible  <bruno@clisp.org>
14255
14256         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
14257         warnings.
14258         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14259
14260 2007-02-19  Bruno Haible  <bruno@clisp.org>
14261
14262         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
14263         from mingw users.
14264
14265 2007-02-19  Bruno Haible  <bruno@clisp.org>
14266
14267         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
14268         warnings.
14269         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
14270
14271 2007-02-19  Jim Meyering  <jim@meyering.net>
14272
14273         Don't use FD after a successful "fdopendir (fd)".
14274         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
14275         Reset it by calling dirfd on the just-obtained DIR*.
14276
14277         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
14278         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
14279
14280 2007-02-18  Bruno Haible  <bruno@clisp.org>
14281
14282         * lib/readlink.c: Include <unistd.h>.
14283         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
14284         HAVE_READLINK.
14285         * modules/readlink (Depends-on): Add unistd.
14286         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14287         (Include): Add <unistd.h>.
14288
14289         * lib/getlogin_r.h: Remove file.
14290         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
14291         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
14292         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
14293         HAVE_DECL_GETLOGIN_R.
14294         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
14295         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14296         (Include): Use <unistd.h> instead of getlogin_r.h.
14297
14298         * lib/getcwd.h: Remove file.
14299         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
14300         * lib/xgetcwd.c: Likewise.
14301         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
14302         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
14303         * modules/getcwd (Files): Remove lib/getcwd.h.
14304         (Depends-on): Add unistd.
14305         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14306         (Include): Use <unistd.h> instad of getcwd.h.
14307
14308         * lib/ftruncate.c: Include <unistd.h> first.
14309         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
14310         Set HAVE_FTRUNCATE.
14311         * modules/ftruncate (Depends-on): Add unistd.
14312         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14313
14314         * lib/fchdir.c: Include <unistd.h> first.
14315         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
14316         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
14317         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
14318         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14319         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
14320
14321         * lib/dup2.c: Include <unistd.h> first.
14322         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
14323         HAVE_DUP2.
14324         * modules/dup2 (Depends-on): Add unistd.
14325         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14326
14327         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
14328         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
14329         REPLACE_CHOWN. Don't define chown as a macro here.
14330         * modules/chown (Depends-on): Add unistd.
14331         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14332
14333         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
14334         Add definition for GL_LINK_WARNING.
14335         (chown, dup2): New declarations.
14336         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
14337         link warning.
14338         (ftruncate): New declaration.
14339         (getcwd): New declaration, taken from old getcwd.h.
14340         (getlogin_r): New declaration, taken from old getlogin_r.h.
14341         (readlink): New declaration.
14342         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
14343         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
14344         (gl_PREREQ_UNISTD): Remove macro.
14345         (gl_UNISTD_MODULE_INDICATOR): New macro.
14346         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
14347         many new variables. Don't set UNISTD_H.
14348         * modules/unistd (Description): Change.
14349         (Depends-on): Add link-warning.
14350         (configure.ac): Update.
14351         (Makefile.am): Create unistd.h always. Substitute many new variables
14352         into it.
14353
14354 2007-02-18  Bruno Haible  <bruno@clisp.org>
14355
14356         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
14357         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
14358         HAVE_GETSUBOPT.
14359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
14360         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
14361         * lib/getsubopt.h: Remove file.
14362         * modules/getsubopt (Files): Remove lib/getsubopt.h.
14363         (Depends-on): Add stdlib.
14364         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14365         (Includes): Use <stdlib.h> instead of getsubopt.h.
14366         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
14367         Set HAVE_GETSUBOPT.
14368         * lib/getsubopt.c: Don't include getsubopt.h.
14369
14370 2007-02-18  Bruno Haible  <bruno@clisp.org>
14371
14372         * modules/fchdir (Depends-on): Add dup2.
14373
14374 2007-02-18  Bruno Haible  <bruno@clisp.org>
14375
14376         * lib/stdlib_.h: Handle glibc's special invocation convention
14377         specially.
14378
14379 2007-02-18  Bruno Haible  <bruno@clisp.org>
14380
14381         * modules/stdlib-tests: New file.
14382         * tests/test-stdlib.c: New file.
14383
14384         * modules/mkstemp (Files): Remove lib/mkstemp.h.
14385         (Depends-on): Add stdlib.
14386         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14387         (Includes): Use <stdlib.h> instead of mkstemp.h.
14388         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
14389         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
14390         * lib/mkstemp.c: Don't include mkstemp.h.
14391         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
14392         * lib/stdlib--.h: Don't include mkstemp.h.
14393
14394         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
14395         (Depends-on): Add stdlib.
14396         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14397         (Includes): Use <stdlib.h> instead of mkdtemp.h.
14398         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
14399         HAVE_MKDTEMP.
14400         * lib/mkdtemp.c: Don't include mkdtemp.h.
14401         * lib/clean-temp.c: Don't include mkdtemp.h.
14402
14403         * modules/exit (Files): Remove lib/exit.h.
14404         (Depends-on): Add stdlib.
14405         (Makefile.am): Remove lib_SOURCES.
14406         (Include): Use <stdlib.h> instead of exit.h.
14407         * lib/argmatch.c: Don't include exit.h.
14408         * lib/execute.c: Likewise.
14409         * lib/pagealign_alloc.c: Likewise.
14410         * lib/pipe.c: Likewise.
14411         * lib/wait-process.c: Likewise.
14412         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
14413         * lib/exitfail.c: Likewise.
14414         * lib/savewd.c: Likewise.
14415         * lib/xsetenv.c: Likewise.
14416
14417         * modules/stdlib: New file.
14418         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
14419         and extra comments about mkstemp().
14420         * lib/exit.h: Remove file.
14421         * lib/mkdtemp.h: Remove file.
14422         * lib/mkstemp.h: Remove file.
14423         * m4/stdlib_h.m4: New file.
14424         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
14425
14426 2007-02-18  Bruno Haible  <bruno@clisp.org>
14427
14428         * modules/math-tests: New file.
14429         * tests/test-math.c: New file.
14430
14431         * modules/math: New file.
14432         * modules/mathl (Files): Remove lib/mathl.h.
14433         (Depends-on): Add math.
14434         (Makefile.am): Don't mention mathl.h.
14435         (Include): Use <math.h> instead of mathl.h.
14436         * lib/math_.h: New file.
14437         * lib/mathl.h: Remove file.
14438         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
14439         mathl.h.
14440         * lib/asinl.c: Likewise.
14441         * lib/atanl.c: Likewise.
14442         * lib/ceill.c: Likewise.
14443         * lib/cosl.c: Likewise.
14444         * lib/expl.c: Likewise.
14445         * lib/floorl.c: Likewise.
14446         * lib/frexpl.c: Likewise.
14447         * lib/ldexpl.c: Likewise.
14448         * lib/logl.c: Likewise.
14449         * lib/sincosl.c: Likewise.
14450         * lib/sinl.c: Likewise.
14451         * lib/sqrtl.c: Likewise.
14452         * lib/tanl.c: Likewise.
14453         * lib/trigl.c: Likewise.
14454         * m4/math_h.m4: New file.
14455         * MODULES.html.sh (Mathematics): Add math.
14456
14457 2007-02-17  Bruno Haible  <bruno@clisp.org>
14458
14459         * modules/wctype-tests: New file.
14460         * tests/test-wctype.c: New file.
14461
14462         * modules/wchar-tests: New file.
14463         * tests/test-wchar.c: New file.
14464
14465         * modules/unistd-tests: New file.
14466         * tests/test-unistd.c: New file.
14467
14468         * modules/time-tests: New file.
14469         * tests/test-time.c: New file.
14470
14471         * modules/sysexits-tests: New file.
14472         * tests/test-sysexits.c: New file.
14473
14474         * modules/sys_time-tests: New file.
14475         * tests/test-sys_time.c: New file.
14476
14477         * modules/sys_stat-tests: New file.
14478         * tests/test-sys_stat.c: New file.
14479
14480         * modules/sys_socket-tests: New file.
14481         * tests/test-sys_socket.c: New file.
14482
14483         * modules/sys_select-tests: New file.
14484         * tests/test-sys_select.c: New file.
14485
14486         * modules/string-tests: New file.
14487         * tests/test-string.c: New file.
14488
14489         * modules/stdbool-tests: New file.
14490         * tests/test-stdbool.c: New file.
14491
14492         * modules/netinet_in-tests: New file.
14493         * tests/test-netinet_in.c: New file.
14494
14495         * modules/inttypes-tests: New file.
14496         * tests/test-inttypes.c: New file.
14497
14498         * modules/fcntl-tests: New file.
14499         * tests/test-fcntl.c: New file.
14500
14501         * modules/byteswap-tests: New file.
14502         * tests/test-byteswap.c: New file.
14503
14504         * modules/arpa_inet-tests: New file.
14505         * tests/test-arpa_inet.c: New file.
14506
14507 2007-02-17  Bruno Haible  <bruno@clisp.org>
14508
14509         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
14510         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
14511         if the corresponding module is not enabled. Emit link warnings if
14512         the function is used nevertheless.
14513         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
14514         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
14515         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
14516         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
14517         * modules/inttypes (Depends-on): Add link-warning.
14518         (Makefile.am): Copy the contents of build-aux/link-warning.h into
14519         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
14520         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
14521         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
14522         * modules/imaxdiv (configure.ac): Likewise.
14523         * modules/strtoimax (configure.ac): Likewise.
14524         * modules/strtoumax (configure.ac): Likewise.
14525
14526 2007-02-17  Bruno Haible  <bruno@clisp.org>
14527
14528         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
14529         gl_STRING_MODULE_INDICATOR_DEFAULTS.
14530         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
14531         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
14532
14533 2007-02-17  Bruno Haible  <bruno@clisp.org>
14534
14535         * modules/link-warning: New file.
14536         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
14537         * lib/string_.h (GL_LINK_WARNING): Remove definition.
14538         * modules/string (Depends-on): Add link-warning.
14539         (Makefile.am): Copy the contents of build-aux/link-warning.h into
14540         string.h.
14541         * MODULES.html.sh (Support for building libraries and executables): Add
14542         link-warning.
14543
14544 2007-02-17  Bruno Haible  <bruno@clisp.org>
14545
14546         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
14547         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
14548         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
14549         long lines.
14550
14551 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
14552             Bruno Haible  <bruno@clisp.org>
14553
14554         * modules/tmpfile: New file.
14555         * lib/tmpfile.c: New file.
14556         * m4/tmpfile.m4: New file.
14557         * MODULES.html.sh (func_all_modules): New section "Input/output".
14558
14559 2007-02-15  Bruno Haible  <bruno@clisp.org>
14560
14561         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
14562         (supports_delete_on_close): New function.
14563         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
14564
14565 2007-02-14  Bruno Haible  <bruno@clisp.org>
14566
14567         * modules/mbspcasecmp-tests: New file.
14568         * tests/test-mbspcasecmp.sh: New file.
14569         * tests/test-mbspcasecmp.c: New file.
14570
14571         New module mbspcasecmp.
14572         * modules/mbspcasecmp: New file.
14573         * lib/mbspcasecmp.c: New file.
14574         * lib/string_.h (strncasecmp): Change warning message.
14575         (mbspcasecmp): New declaration.
14576         * m4/mbspcasecmp.m4: New file.
14577         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14578         GNULIB_MBSPCASECMP.
14579         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
14580         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
14581
14582 2007-02-14  Bruno Haible  <bruno@clisp.org>
14583
14584         * modules/mbsncasecmp-tests: New file.
14585         * tests/test-mbsncasecmp.sh: New file.
14586         * tests/test-mbsncasecmp.c: New file.
14587
14588         New module mbsncasecmp.
14589         * modules/mbsncasecmp: New file.
14590         * lib/mbsncasecmp.c: New file.
14591         * lib/string_.h (mbsncasecmp): New declaration.
14592         * m4/mbsncasecmp.m4: New file.
14593         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14594         GNULIB_MBSNCASECMP.
14595         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
14596         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
14597
14598 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
14599
14600         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
14601         Verify that it doesn't overlap with our flags.
14602         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
14603         do not have the desired effect in multibyte locales; instead, use
14604         mbscasecmp.
14605         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
14606         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
14607         we don't require GNU fnmatch ourselves (if our users require it, they
14608         should do so explicitly).
14609
14610         Fix regex code so it doesn't rely on strcasecmp.
14611         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
14612         Otherwise, include gnulib's langinfo.h.
14613         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
14614         undesirable behavior in non-C locales.  Instead, rely on localecharset.
14615         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
14616         * modules/regex (FILES): Remove m4/codeset.m4.
14617         (Depends-on): Add localcharset.  Remove strcase.
14618
14619 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14620
14621         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
14622         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14623
14624 2007-02-13  Bruno Haible  <bruno@clisp.org>
14625
14626         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
14627         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14628
14629 2007-02-12  Bruno Haible  <bruno@clisp.org>
14630
14631         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
14632         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
14633         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
14634         time warning rather than a link error.
14635
14636 2007-02-12  Bruno Haible  <bruno@clisp.org>
14637
14638         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
14639         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14640         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14641
14642 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14643
14644         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
14645         args, not 2.
14646
14647 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14648
14649         New module 'time', so that apps can include <time.h> as per
14650         POSIX and GNU instead of separate include files like time_r.h
14651         and timegm.h.  This implementation tries out a simpler approach
14652         for replacing decls in standard include files (as compared to
14653         the string module), somewhat as an experiment.
14654
14655         * config/srclist.txt: Comment out mktime.c for now.
14656         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
14657         since it doesn't apply any more.  Use generic wording instead.
14658         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
14659         'time'.
14660         * lib/time_.h, m4/time_h.m4, modules/time: New files.
14661         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
14662         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
14663         Don't include <sys/types.h>; no longer needed since we assume C89.
14664         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
14665         * lib/strftime.c: Likewise.
14666         * lib/time_r.c: Likewise.
14667         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
14668         * lib/nanosleep.c: Include <time.h> first, to check interface.
14669         * lib/strptime.c: Likewise.
14670         * lib/time_r.c: Likewise.
14671         * lib/timegm.c: Likewise.
14672         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
14673         needed.
14674         * lib/timegm.c: Don't include timegm.h; no longer needed.
14675         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
14676         time.h now handles any problems in that area.
14677         (struct timespec, nanosleep): Remove; time.h now arranges for these.
14678         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
14679         that time.h defines struct timespec.
14680         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
14681         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
14682         handles that.
14683         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
14684         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
14685         needed.  Set REPLACE_LOCALTIME.
14686         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
14687         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
14688         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
14689         nanosleep; time_h.m4 now does that.  Don't require
14690         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
14691         module handles this now.
14692         * modules/getdate (Depends-on): Remove timespec.  Add time.
14693         * modules/nanosleep (Depends-on): Likewise.
14694         * modules/stat-time (Depends-on): Likewise.
14695         * modules/nanosleep (Include): Include time.h, not timespec.h.
14696         * modules/strptime (Files): Remove lib/strptime.h.
14697         (Depends-on): Add extensions, time.
14698         (Include): Include time.h, not strptime.h.
14699         * modules/time_r (Files): Remove lib/time_r.h.
14700         (Depends-on): Add time.
14701         (Include): Include time.h, not time_r.h.
14702         * modules/timegm: Likewise.
14703         * modules/timespec (Description): Now does timespec-related decls
14704         of our own, instead of struct timespec itself.
14705         (Depends-on): Add time; remove extensions.
14706         (Maintainer): Add self.
14707         * modules/utimecmp (Depends-on): Add time; remove timespec.
14708         * modules/utimens (Depends-on): Likewise.
14709         * modules/xnanosleep (Depends-on): Likewise.
14710
14711 2007-02-11  Bruno Haible  <bruno@clisp.org>
14712
14713         * lib/c-strstr.c: Include allocsa.h.
14714         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14715         * lib/c-strcasestr.c: Include allocsa.h.
14716         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14717         * lib/strcasestr.c: Include allocsa.h.
14718         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14719         * lib/mbsstr.c: Include allocsa.h.
14720         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14721         allocsa/freesa instead of malloc/free.
14722         * lib/mbscasestr.c: Include allocsa.h.
14723         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14724         allocsa/freesa instead of malloc/free.
14725         * modules/c-strstr (Depends-on): Add allocsa.
14726         * modules/c-strcasestr (Depends-on): Likewise.
14727         * modules/strcasestr (Depends-on): Likewise.
14728         * modules/mbsstr (Depends-on): Likewise.
14729         * modules/mbscasestr (Depends-on): Likewise.
14730
14731 2007-02-11  Bruno Haible  <bruno@clisp.org>
14732
14733         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
14734
14735         * modules/mbsspn-tests: New file.
14736         * tests/test-mbsspn.sh: New file.
14737         * tests/test-mbsspn.c: New file.
14738
14739 2007-02-11  Bruno Haible  <bruno@clisp.org>
14740
14741         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
14742
14743         * modules/mbspbrk-tests: New file.
14744         * tests/test-mbspbrk.sh: New file.
14745         * tests/test-mbspbrk.c: New file.
14746
14747 2007-02-11  Bruno Haible  <bruno@clisp.org>
14748
14749         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
14750         unneeded cast.
14751
14752         * modules/mbscspn-tests: New file.
14753         * tests/test-mbscspn.sh: New file.
14754         * tests/test-mbscspn.c: New file.
14755
14756 2007-02-11  Bruno Haible  <bruno@clisp.org>
14757
14758         * modules/mbscasecmp-tests: New file.
14759         * tests/test-mbscasecmp.sh: New file.
14760         * tests/test-mbscasecmp.c: New file.
14761
14762 2007-02-11  Bruno Haible  <bruno@clisp.org>
14763
14764         Ensure O(n) worst-case complexity of mbscasestr.
14765         * lib/mbscasestr.c: Include stdbool.h.
14766         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14767         functions.
14768         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
14769         the bookkeeping indicates that it's worth it.
14770         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
14771
14772         * modules/mbscasestr-tests: New file.
14773         * tests/test-mbscasestr1.c: New file.
14774         * tests/test-mbscasestr2.sh: New file.
14775         * tests/test-mbscasestr2.c: New file.
14776         * tests/test-mbscasestr3.sh: New file.
14777         * tests/test-mbscasestr3.c: New file.
14778         * tests/test-mbscasestr4.sh: New file.
14779         * tests/test-mbscasestr4.c: New file.
14780         * m4/locale-tr.m4: New file.
14781
14782 2007-02-11  Bruno Haible  <bruno@clisp.org>
14783
14784         Ensure O(n) worst-case complexity of mbsstr.
14785         * lib/mbsstr.c: Include stdbool.h.
14786         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14787         functions.
14788         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
14789         bookkeeping indicates that it's worth it.
14790         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
14791
14792         * modules/mbsstr-tests: New file.
14793         * tests/test-mbsstr1.c: New file.
14794         * tests/test-mbsstr2.sh: New file.
14795         * tests/test-mbsstr2.c: New file.
14796         * tests/test-mbsstr3.sh: New file.
14797         * tests/test-mbsstr3.c: New file.
14798         * m4/locale-fr.m4: New file.
14799
14800 2007-02-11  Bruno Haible  <bruno@clisp.org>
14801
14802         * lib/mbsrchr.c (mbsrchr): Fix bug.
14803
14804         * modules/mbsrchr-tests: New file.
14805         * tests/test-mbsrchr.sh: New file.
14806         * tests/test-mbsrchr.c: New file.
14807
14808 2007-02-11  Bruno Haible  <bruno@clisp.org>
14809
14810         * lib/mbschr.c (mbschr): Fix bug.
14811
14812         * modules/mbschr-tests: New file.
14813         * tests/test-mbschr.sh: New file.
14814         * tests/test-mbschr.c: New file.
14815         * m4/locale-zh.m4: New file.
14816
14817 2007-02-11  Bruno Haible  <bruno@clisp.org>
14818
14819         Support for copying multibyte string iterators.
14820         * lib/mbiter.h: Include <string.h>.
14821         (mbiter_multi_copy): New function.
14822         (mbi_copy): New macro.
14823         * lib/mbuiter.h: Include <string.h>.
14824         (mbuiter_multi_copy): New function.
14825         (mbui_copy): New macro.
14826
14827 2007-02-11  Bruno Haible  <bruno@clisp.org>
14828
14829         New module mbslen.
14830         * modules/mbslen: New file.
14831         * lib/mbslen.c: New file.
14832         * lib/string_.h (mbslen): New declaration.
14833         * m4/mbslen.m4: New file.
14834         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14835         GNULIB_MBSLEN.
14836         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
14837         * MODULES.html.sh (Internationalization functions): Add mbslen.
14838
14839 2007-02-11  Bruno Haible  <bruno@clisp.org>
14840
14841         Ensure O(n) worst-case complexity of strcasestr substitute.
14842         * lib/strcasestr.c: Include stdbool.h.
14843         (knuth_morris_pratt): New function.
14844         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14845         bookkeeping indicates that it's worth it.
14846         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
14847
14848         * modules/strcasestr-tests: New file.
14849         * tests/test-strcasestr.c: New file.
14850
14851 2007-02-11  Bruno Haible  <bruno@clisp.org>
14852
14853         Ensure O(n) worst-case complexity of c_strcasestr.
14854         * lib/c-strcasestr.c: Include stdbool.h, string.h.
14855         (knuth_morris_pratt): New function.
14856         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
14857         the bookkeeping indicates that it's worth it.
14858         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
14859
14860         * modules/c-strcasestr-tests: New file.
14861         * tests/test-c-strcasestr.c: New file.
14862
14863 2007-02-11  Bruno Haible  <bruno@clisp.org>
14864
14865         Ensure O(n) worst-case complexity of c_strstr.
14866         * lib/c-strstr.c: Include stdbool.h, string.h.
14867         (knuth_morris_pratt): New function.
14868         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14869         bookkeeping indicates that it's worth it.
14870         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
14871
14872         * lib/c-strstr.c: Complete rewrite for maintainability.
14873
14874         * modules/c-strstr-tests: New file.
14875         * tests/test-c-strstr.c: New file.
14876
14877 2007-02-11  Bruno Haible  <bruno@clisp.org>
14878
14879         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
14880         5.2.1 and earlier, whereby \055 was treated just like the range
14881         delimiter '-'.
14882         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
14883
14884 2007-02-08  Bruno Haible  <bruno@clisp.org>
14885
14886         * modules/regex (Depends-on): Add stdbool.
14887         Reported by Dalibor Topic <robilad@kaffe.org>.
14888
14889 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
14890
14891         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
14892         Prefer returning from main to exiting from it.
14893         Remove unnecessary parens after sizeof.
14894
14895 2007-02-05  Bruno Haible  <bruno@clisp.org>
14896
14897         New module mbssep.
14898         * modules/mbssep: New file.
14899         * lib/mbssep.c: New file.
14900         * lib/string_.h (strsep): Add a conditional link warning.
14901         (mbssep): New declaration.
14902         * m4/mbssep.m4: New file.
14903         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14904         GNULIB_MBSSEP.
14905         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
14906         * MODULES.html.sh (Internationalization functions): Add mbssep.
14907
14908 2007-02-05  Bruno Haible  <bruno@clisp.org>
14909
14910         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
14911         Optimize search in case of 1 delimiter.
14912
14913 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
14914
14915         * lib/acl.h: Include sys/types.h before sys/acl.h.
14916
14917 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
14918
14919         Merge upstream fix for glibc bugzilla #3957:
14920
14921         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
14922
14923         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
14924         bit for RE_HAT_LISTS_NOT_NEWLINE.
14925         (build_charclass_op): Remove bogus comment.
14926
14927 2007-02-05  Simon Josefsson  <simon@josefsson.org>
14928
14929         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
14930
14931 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14932
14933         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
14934         * lib/memmem.c [!defined _LIBC]: Include config.h.
14935
14936 2007-02-04  Bruno Haible  <bruno@clisp.org>
14937
14938         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
14939         warning message.
14940
14941 2007-02-04  Bruno Haible  <bruno@clisp.org>
14942
14943         New module mbstok_r.
14944         * modules/mbstok_r: New file.
14945         * lib/mbstok_r.c: New file.
14946         * lib/string_.h (strtok_r): Change argument names to match the
14947         comments. Add a conditional link warning.
14948         (mbstok_r): New declaration.
14949         * m4/mbstok_r.m4: New file.
14950         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14951         GNULIB_MBSTOK_R.
14952         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
14953         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
14954
14955 2007-02-04  Bruno Haible  <bruno@clisp.org>
14956
14957         New module mbsspn.
14958         * modules/mbsspn: New file.
14959         * lib/mbsspn.c: New file.
14960         * lib/string_.h (strspn): Add a conditional link warning.
14961         (mbsspn): New declaration.
14962         * m4/mbsspn.m4: New file.
14963         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14964         GNULIB_MBSSPN.
14965         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
14966         * MODULES.html.sh (Internationalization functions): Add mbsspn.
14967
14968 2007-02-04  Bruno Haible  <bruno@clisp.org>
14969
14970         New module mbspbrk.
14971         * modules/mbspbrk: New file.
14972         * lib/mbspbrk.c: New file.
14973         * lib/string_.h (strpbrk): Add a conditional link warning.
14974         (mbspbrk): New declaration.
14975         * m4/mbspbrk.m4: New file.
14976         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14977         GNULIB_MBSPBRK.
14978         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
14979         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
14980
14981 2007-02-04  Bruno Haible  <bruno@clisp.org>
14982
14983         New module mbscspn.
14984         * modules/mbscspn: New file.
14985         * lib/mbscspn.c: New file.
14986         * lib/string_.h (strcspn): Add a conditional link warning.
14987         (mbscspn): New declaration.
14988         * m4/mbscspn.m4: New file.
14989         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14990         GNULIB_MBSCSPN.
14991         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
14992         * MODULES.html.sh (Internationalization functions): Add mbscspn.
14993
14994 2007-02-04  Bruno Haible  <bruno@clisp.org>
14995
14996         New module mbscasestr, reduced goal of strcasestr.
14997         * modules/mbscasestr: New file.
14998         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
14999         (mbscasestr): Renamed from strcasestr.
15000         * lib/strcasestr.c: Don't include mbuiter.h.
15001         (strcasestr): Remove support for multibyte locales.
15002         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
15003         Change the conditional link warning.
15004         (mbscasestr): New declaration.
15005         * m4/mbscasestr.m4: New file.
15006         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
15007         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
15008         REPLACE_STRCASESTR.
15009         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
15010         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15011         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
15012         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
15013         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
15014         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
15015         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
15016         (Depends-on): Remove mbuiter.
15017         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
15018
15019 2007-02-04  Bruno Haible  <bruno@clisp.org>
15020
15021         Simplify handling of strncasecmp.
15022         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
15023         the conditional link warning.
15024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15025         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
15026         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
15027         * modules/strcase (configure.ac): Don't invoke
15028         gl_STRING_MODULE_INDICATOR.
15029         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
15030
15031 2007-02-04  Bruno Haible  <bruno@clisp.org>
15032
15033         New module mbscasecmp, reduced goal of strcasecmp.
15034         * modules/mbscasecmp: New file.
15035         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
15036         (mbscasecmp): Renamed from strcasecmp.
15037         * lib/strcasecmp.c: Don't include mbuiter.h.
15038         (strcasecmp): Remove support for multibyte locales.
15039         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
15040         Change the conditional link warning.
15041         (mbscasecmp): New declaration.
15042         * m4/mbscasecmp.m4: New file.
15043         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
15044         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
15045         REPLACE_STRCASECMP.
15046         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
15047         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15048         GNULIB_MBSCASECMP.
15049         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
15050         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
15051         * modules/strcase (Files): Remove m4/mbrtowc.m4.
15052         (Depends-on): Remove mbuiter.
15053         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
15054
15055 2007-02-04  Bruno Haible  <bruno@clisp.org>
15056
15057         New module mbsstr. Remove module strstr.
15058         * modules/mbsstr: New file.
15059         * modules/strstr: Remove file.
15060         * lib/mbsstr.c: Renamed from lib/strstr.c.
15061         (mbsstr): Renamed from strstr.
15062         * lib/string_.h (strstr): Remove declaration. Change the conditional
15063         link warning.
15064         (mbsstr): New declaration.
15065         * m4/mbsstr.m4: New file.
15066         * m4/strstr.m4: Remove file.
15067         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15068         REPLACE_STRSTR.
15069         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
15070         Don't initialize GNULIB_STRSTR.
15071         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
15072         substitute GNULIB_STRSTR and REPLACE_STRSTR.
15073         * MODULES.html.sh (Internationalization functions): Add mbsstr.
15074         (Support for systems lacking ANSI C 89): Remove strstr.
15075
15076 2007-02-04  Bruno Haible  <bruno@clisp.org>
15077
15078         New module mbsrchr.
15079         * modules/mbsrchr: New file.
15080         * lib/mbsrchr.c: New file.
15081         * lib/string_.h (strrchr): Add a conditional link warning.
15082         (mbsrchr): New declaration.
15083         * m4/mbsrchr.m4: New file.
15084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15085         GNULIB_MBSRCHR.
15086         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
15087         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
15088
15089 2007-02-04  Bruno Haible  <bruno@clisp.org>
15090
15091         New module mbschr.
15092         * modules/mbschr: New file.
15093         * lib/mbschr.c: New file.
15094         * lib/string_.h (strchr): Add a conditional link warning.
15095         (mbschr): New declaration.
15096         * m4/mbschr.m4: New file.
15097         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15098         GNULIB_MBSCHR.
15099         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
15100         * MODULES.html.sh (Internationalization functions): Add mbschr.
15101
15102 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15103
15104         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
15105
15106         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
15107
15108 2007-02-04  Bruno Haible  <bruno@clisp.org>
15109
15110         New module description section 'configure.ac-early'.
15111         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
15112         (func_get_autoconf_early_snippet): New function.
15113         (func_import, func_create_testdir): Use it. Remove special cases for
15114         modules 'extensions' and 'lock'.
15115         * modules/extensions (configure.ac-early): Require
15116         gl_USE_SYSTEM_EXTENSIONS.
15117         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
15118
15119 2007-02-04  Bruno Haible  <bruno@clisp.org>
15120
15121         Make use of gcj-4.3's -fsource and -ftarget option.
15122         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
15123         and if so try the options -fsource and -ftarget.
15124         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
15125         source_version, ftarget_option, target_version arguments.
15126         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
15127         (is_envjavac_oldgcj_14_14_usable): Renamed from
15128         is_envjavac_gcj_14_14_usable.
15129         (is_envjavac_oldgcj_14_13_usable): Renamed from
15130         is_envjavac_gcj_14_13_usable.
15131         (is_gcj_present): Update.
15132         (is_gcj_43, is_gcj43_usable): New functions.
15133         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
15134         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
15135         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
15136         try the options -fsource and -ftarget.
15137
15138 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
15139
15140         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
15141         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
15142         larger value.
15143
15144 2007-02-03  Jim Meyering  <jim@meyering.net>
15145
15146         Give tools a better chance to allocate space for very large buffers.
15147         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
15148
15149         Make pwd and readlink work also when run with an unreadable parent dir
15150         on systems with openat support.
15151         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
15152         provided getcwd function, even when we have openat support.
15153         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
15154
15155 2007-02-02  Bruno Haible  <bruno@clisp.org>
15156
15157         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
15158         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
15159         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
15160         portability problems if one of these functions is only used on specific
15161         platforms.
15162         Reported by Paul Eggert.
15163
15164 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
15165
15166         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
15167         is causing more trouble than it's curing.
15168         * lib/regex_internal.h (__mempcpy): Remove.
15169         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
15170         (and make the code a tad smaller to boot).
15171         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
15172
15173 2007-02-02  Jim Meyering  <jim@meyering.net>
15174
15175         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
15176         section, not in the Makefile.am: one.
15177
15178 2007-02-02  Eric Blake  <ebb9@byu.net>
15179
15180         * lib/strchrnul.c: Always include config.h first.
15181
15182         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
15183         gnulib strstr is not necessary here.
15184
15185 2007-02-02  Simon Josefsson  <simon@josefsson.org>
15186
15187         * m4/socklen.m4: Fix typo.
15188
15189 2007-02-02  Eric Blake  <ebb9@byu.net>
15190
15191         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
15192         * modules/netinet_in (Makefile.am): Likewise.
15193
15194 2007-02-01  Bruno Haible  <bruno@clisp.org>
15195
15196         * lib/string_.h (GL_LINK_WARNING): New macro.
15197         (strcasecmp, strstr, strcasestr): If provided by the system,
15198         conditionally define as a macro that leads to a warning instead of to
15199         an error.
15200         (strncasecmp): Conditionally define as a macro that leads to a warning.
15201
15202 2007-02-01  Karl Berry  <karl@gnu.org>
15203
15204         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
15205
15206 2007-02-01  Bruno Haible  <bruno@clisp.org>
15207
15208         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
15209         renamings.
15210
15211 2007-02-01  Eric Blake  <ebb9@byu.net>
15212
15213         * modules/regex (Depends-on): Revert dependence on mempcpy.
15214         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
15215         module's definition of mempcpy.
15216         Reported by Paul Eggert.
15217
15218 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
15219
15220         * lib/string_.h: If the gnulib module XYZ is not present, undefine
15221         the symbol XYZ before redefining it.  This fixes a problem with
15222         programs that don't use XYZ, when compiled on systems that define
15223         XYZ to something else.
15224
15225 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
15226
15227         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
15228         occurs when "mkdir -m foo" creates a setgid directory that is (1)
15229         writeable to group or other and (2) is intended to have a special
15230         mode bit that is set or cleared.  In such a case, the directory
15231         should be neither group- nor other-writeable until the special
15232         mode bits are right.
15233
15234 2007-01-31  Eric Blake  <ebb9@byu.net>
15235
15236         * modules/mountlist (Depends-on): Add strstr.
15237
15238         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
15239         bug.
15240         * modules/string (Makefile.am): Remove redundant replacement.
15241         * modules/regex (Depends-on): Add mempcpy.
15242
15243 2007-01-31  Bruno Haible  <bruno@clisp.org>
15244
15245         New module description field 'Link'.
15246         * gnulib-tool (func_usage): Document --extract-link-directive.
15247         (sed_extract_prog): Recognize 'Link' directive.
15248         (func_get_link_directive): New function.
15249         (func_import): Show summary of link directives.
15250         Handle --extract-link-directive option.
15251         * modules/acl (Link): New section.
15252         * modules/clock-time (Link): New section.
15253         * modules/euidaccess (Link): New section.
15254         * modules/gettext (Link): New section.
15255         * modules/iconv (Link): New section.
15256         * modules/lock (Link): New section.
15257         * modules/nanosleep (Link): New section.
15258         * modules/readline (Link): New section.
15259
15260 2007-01-27  Bruno Haible  <bruno@clisp.org>
15261
15262         Enforce the use of gnulib modules for unportable <string.h> functions.
15263         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
15264         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
15265         (gl_HEADER_STRING_H_BODY): Require it.
15266         * lib/string_.h: If the gnulib module XYZ is not present, redefine
15267         the symbol XYZ to one that gives a link error.
15268         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
15269         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
15270         * modules/mempcpy (configure.ac): Likewise.
15271         * modules/memrchr (configure.ac): Likewise.
15272         * modules/stpcpy (configure.ac): Likewise.
15273         * modules/stpncpy (configure.ac): Likewise.
15274         * modules/strcase (configure.ac): Likewise.
15275         * modules/strcasestr (configure.ac): Likewise.
15276         * modules/strchrnul (configure.ac): Likewise.
15277         * modules/strdup (configure.ac): Likewise.
15278         * modules/strndup (configure.ac): Likewise.
15279         * modules/strnlen (configure.ac): Likewise.
15280         * modules/strpbrk (configure.ac): Likewise.
15281         * modules/strsep (configure.ac): Likewise.
15282         * modules/strstr (configure.ac): Likewise.
15283         * modules/strtok_r (configure.ac): Likewise.
15284
15285 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
15286
15287         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
15288
15289 2007-01-30  Jim Meyering  <jim@meyering.net>
15290
15291         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
15292
15293 2007-01-29  Bruno Haible  <bruno@clisp.org>
15294
15295         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
15296         * lib/execute.c: Likewise.
15297         * lib/pipe.c: Likewise.
15298         * lib/printf-args.h: Likewise.
15299         * lib/printf-args.c: Likewise.
15300         * lib/printf-parse.c: Likewise.
15301         * lib/vasnprintf.c: Likewise.
15302
15303 2007-01-29  Eric Blake  <ebb9@byu.net>
15304
15305         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
15306         declaration.
15307
15308 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15309
15310         * lib/strptime.h (strptime): Use 'restrict' for args where
15311         POSIX requires this.
15312         * lib/strptime.c (strptime): Likewise.
15313         Change license notice from LGPL to GPL, since gnulib-tool will
15314         change this as needed.
15315         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
15316         defined.
15317         Include "strptime.h" first, to check interface.
15318         Do not #undef _LIBC and _NL_CURRENT.
15319         Do not include <stdlib.h>; no longer needed.
15320         Include "time_r.h" and declare ptime_locale_status
15321         only if _LIBC is not defined.
15322         (__P): Remove unused macro.
15323         (match_string): Bring back glibc version, but use it only if _LIBC
15324         is defined.
15325         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
15326         Remove unnecessary assertion and abort() call.
15327         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
15328         * m4/strptime.m4: Fix serial number comment.
15329         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
15330         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
15331         (Depends-on): Add time_r.
15332
15333 2007-01-29  Bruno Haible  <bruno@clisp.org>
15334
15335         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15336         strptime.
15337         * modules/strptime (Depends-on): Add stdbool.
15338         * lib/strptime.h: Include <time.h> always. Add comments.
15339
15340 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15341
15342         * modules/strptime: New file.
15343         * lib/strptime.h: New file.
15344         * lib/strptime.c: New file.
15345         * m4/strptime.m4: New file.
15346
15347 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15348
15349         * MODULES.html.sh: New module mpsort.
15350         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
15351
15352         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
15353         a circularity problem with HP-UX ia64 reported by Bob Proulx in
15354         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
15355         All uses changed.
15356         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
15357         All uses changed.
15358         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
15359         to _Restrict_.
15360         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
15361         the parameter matches the prototype.
15362
15363 2007-01-28  Jim Meyering  <jim@meyering.net>
15364
15365         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
15366         sys/time.h here, reverting that part of the previous patch:
15367         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
15368
15369 2007-01-28  Bruno Haible  <bruno@clisp.org>
15370
15371         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
15372         value of $(SYS_TIME_H).
15373         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
15374         remove it conditionally, too. [added by Jim Meyering]
15375         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
15376         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
15377         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
15378         GETTIMEOFDAY_REPLACEMENT to 1.
15379
15380 2007-01-28  Bruno Haible  <bruno@clisp.org>
15381
15382         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
15383         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
15384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
15385         Set UNISTD_H instead of UNISTD_H2.
15386         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
15387
15388 2007-01-28  Bruno Haible  <bruno@clisp.org>
15389
15390         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
15391         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
15392
15393 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15394
15395         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
15396         (func_create_testdir): Ensure C locale for `grep' and `tr'
15397         character ranges.
15398         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
15399         ACLOCAL_AMFLAGS parsing state machine.
15400
15401 2007-01-27  Bruno Haible  <bruno@clisp.org>
15402
15403         * modules/unistr/base: Update.
15404
15405 2007-01-27  Bruno Haible  <bruno@clisp.org>
15406
15407         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
15408         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
15409         * modules/unistr/u32-mbtouc-unsafe: Renamed from
15410         modules/unistr/u32-mbtouc.
15411         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
15412         * lib/unistr.h: Update.
15413         * lib/linebreak.c: Update.
15414         * modules/unistr/u32-mbtouc: Renamed from
15415         modules/unistr/u32-mbtouc-safe.
15416         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
15417         * lib/unistr.h: Update.
15418         * lib/unistr/u32-to-u8.c: Update.
15419         * lib/unistr/u32-to-u16.c: Update.
15420
15421 2007-01-27  Bruno Haible  <bruno@clisp.org>
15422
15423         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
15424         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
15425         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
15426         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
15427         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
15428         * modules/unistr/u16-mbtouc-unsafe: Renamed from
15429         modules/unistr/u16-mbtouc.
15430         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
15431         * lib/unistr.h: Update.
15432         * lib/linebreak.c: Update.
15433         * modules/linebreak: Update.
15434         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
15435         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
15436         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
15437         * modules/unistr/u16-mbtouc: Renamed from
15438         modules/unistr/u16-mbtouc-safe.
15439         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
15440         * lib/unistr.h: Update.
15441         * lib/unistr/u16-to-u8.c: Update.
15442         * modules/unistr/u16-to-u8: Update.
15443         * lib/unistr/u16-to-u32.c: Update.
15444         * modules/unistr/u16-to-u32: Update.
15445
15446 2007-01-27  Bruno Haible  <bruno@clisp.org>
15447
15448         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
15449         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
15450         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
15451         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
15452         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
15453         * modules/unistr/u8-mbtouc-unsafe: Renamed from
15454         modules/unistr/u8-mbtouc.
15455         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
15456         * lib/unistr.h: Update.
15457         * lib/striconveh.c: Update.
15458         * modules/striconveh: Update.
15459         * lib/linebreak.c: Update.
15460         * modules/linebreak: Update.
15461         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
15462         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
15463         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
15464         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
15465         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
15466         * lib/unistr.h: Update.
15467         * lib/striconveh.c: Update.
15468         * modules/striconveh: Update.
15469         * lib/unistr/u8-to-u16.c: Update.
15470         * modules/unistr/u8-to-u16: Update.
15471         * lib/unistr/u8-to-u32.c: Update.
15472         * modules/unistr/u8-to-u32: Update.
15473
15474 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15475
15476         Sync from Libtool.
15477         * lib/argz.c: Do not include strings.h nor memory.h, include
15478         string.h unconditionally.  Patch by Simon Josefsson.
15479
15480 2007-01-27  Bruno Haible  <bruno@clisp.org>
15481
15482         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
15483         from gl_HEADER_STRING_H_BODY.
15484         (gl_HEADER_STRING_H_BODY): Require it.
15485         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
15486         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
15487         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
15488         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
15489         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15490         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
15491         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15492         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
15493         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
15494         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
15495         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
15496         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
15497         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
15498         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15499         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15500
15501 2007-01-27  Bruno Haible  <bruno@clisp.org>
15502
15503         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
15504         check_PROGRAMS into noinst_PROGRAMS.
15505         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
15506         check_PROGRAMS in this case.
15507         (func_import): Set for_test to false.
15508         (func_create_testdir): Set for_test to true.
15509
15510 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15511             Bruno Haible  <bruno@clisp.org>
15512
15513         * modules/strcasestr (Files): Remove lib/strcasestr.h.
15514         (Depends-on): Add string.
15515         (Includes): Use <string.h> instead of strcasestr.h.
15516         * modules/string (Makefile.am): Also substitute the value of
15517         REPLACE_STRCASESTR.
15518         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
15519         assume strcasestr is declared in <string.h> not <strings.h>. Also
15520         set REPLACE_STRCASESTR.
15521         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
15522         REPLACE_STRCASESTR.
15523         * lib/strcasestr.h: Remove file.
15524         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
15525         * lib/string_.h (strcasestr): New declaration.
15526
15527 2007-01-27  Bruno Haible  <bruno@clisp.org>
15528
15529         * lib/string_.h: Use 'extern'.
15530
15531 2007-01-27  Jim Meyering  <jim@meyering.net>
15532
15533         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
15534         of set-but-not-used local, "q".
15535
15536         * lib/mempcpy.c: Include <config.h> before <string.h>.
15537         This fixes a compilation error on HP-UX, due to the system's
15538         "restrict"-using mempcpy prototype.
15539
15540 2007-01-26  Bruno Haible  <bruno@clisp.org>
15541
15542         Small optimization.
15543         * lib/javacomp.c: Include c-strstr.h.
15544          (is_envjavac_gcj): Use c_strstr instead of strstr.
15545         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
15546
15547 2007-01-26  Bruno Haible  <bruno@clisp.org>
15548
15549         * MODULES.html.sh (Unicode string functions): Add the new modules.
15550
15551         * modules/uniconv/u32-strconv-to-locale: New file.
15552         * lib/uniconv/u32-strconv-to-locale.c: New file.
15553
15554         * modules/uniconv/u16-strconv-to-locale: New file.
15555         * lib/uniconv/u16-strconv-to-locale.c: New file.
15556
15557         * modules/uniconv/u8-strconv-to-locale: New file.
15558         * lib/uniconv/u8-strconv-to-locale.c: New file.
15559
15560         * modules/uniconv/u32-strconv-from-locale: New file.
15561         * lib/uniconv/u32-strconv-from-locale.c: New file.
15562
15563         * modules/uniconv/u16-strconv-from-locale: New file.
15564         * lib/uniconv/u16-strconv-from-locale.c: New file.
15565
15566         * modules/uniconv/u8-strconv-from-locale: New file.
15567         * lib/uniconv/u8-strconv-from-locale.c: New file.
15568
15569         * modules/uniconv/u32-strconv-to-enc: New file.
15570         * lib/uniconv/u32-strconv-to-enc.c: New file.
15571         * modules/uniconv/u32-strconv-to-enc-tests: New file.
15572         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
15573
15574         * modules/uniconv/u16-strconv-to-enc: New file.
15575         * lib/uniconv/u16-strconv-to-enc.c: New file.
15576         * lib/uniconv/u-strconv-to-enc.h: New file.
15577         * modules/uniconv/u16-strconv-to-enc-tests: New file.
15578         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
15579
15580         * modules/uniconv/u8-strconv-to-enc: New file.
15581         * lib/uniconv/u8-strconv-to-enc.c: New file.
15582         * modules/uniconv/u8-strconv-to-enc-tests: New file.
15583         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
15584
15585         * modules/uniconv/u32-strconv-from-enc: New file.
15586         * lib/uniconv/u32-strconv-from-enc.c: New file.
15587         * modules/uniconv/u32-strconv-from-enc-tests: New file.
15588         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
15589
15590         * modules/uniconv/u16-strconv-from-enc: New file.
15591         * lib/uniconv/u16-strconv-from-enc.c: New file.
15592         * modules/uniconv/u16-strconv-from-enc-tests: New file.
15593         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
15594
15595         * modules/uniconv/u8-strconv-from-enc: New file.
15596         * lib/uniconv/u8-strconv-from-enc.c: New file.
15597         * lib/uniconv/u-strconv-from-enc.h: New file.
15598         * modules/uniconv/u8-strconv-from-enc-tests: New file.
15599         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
15600
15601         * modules/uniconv/u32-conv-from-enc: New file.
15602         * lib/uniconv/u32-conv-from-enc.c: New file.
15603         * modules/uniconv/u32-conv-from-enc-tests: New file.
15604         * tests/uniconv/test-u32-conv-from-enc.c: New file.
15605
15606         * modules/uniconv/u16-conv-from-enc: New file.
15607         * lib/uniconv/u16-conv-from-enc.c: New file.
15608         * lib/uniconv/u-conv-from-enc.h: New file.
15609         * modules/uniconv/u16-conv-from-enc-tests: New file.
15610         * tests/uniconv/test-u16-conv-from-enc.c: New file.
15611
15612         * modules/uniconv/u8-conv-from-enc: New file.
15613         * lib/uniconv/u8-conv-from-enc.c: New file.
15614         * modules/uniconv/u8-conv-from-enc-tests: New file.
15615         * tests/uniconv/test-u8-conv-from-enc.c: New file.
15616
15617         * modules/uniconv/base: New file.
15618         * lib/uniconv.h: New file.
15619
15620 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
15621
15622         * doc/gnulib-tool.texi (Initial import): Update to match current
15623         behavior with strdup module.
15624         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
15625         * lib/memmem.h: Remove; all uses removed.  This is now done
15626         by <string.h>.
15627         * lib/mempcpy.h: Likewise.
15628         * lib/memrchr.h: Likewise.
15629         * lib/stpcpy.h: Likewise.
15630         * lib/stpncpy.h: Likewise.
15631         * lib/strcase.h: Likewise.
15632         * lib/strchrnul.h: Likewise.
15633         * lib/strdup.h: Likewise.
15634         * lib/strndup.h: Likewise.
15635         * lib/strnlen.h: Likewise.
15636         * lib/strpbrk.h: Likewise.
15637         * lib/strsep.h: Likewise.
15638         * lib/strstr.h: Likewise.
15639         * lib/strtok_r.h: Likewise.
15640         * lib/string_.h: New file.
15641         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
15642         Rely on <string.h> instead.
15643         * lib/canon-host.c: Likewise.
15644         * lib/chdir-long.c: Likewise.
15645         * lib/concatpath.c: Likewise.
15646         * lib/exclude.c: Likewise.
15647         * lib/fchdir.c: Likewise.
15648         * lib/getaddrinfo.c: Likewise.
15649         * lib/getcwd.c: Likewise.
15650         * lib/getsubopt.c: Likewise.
15651         * lib/glob.c: Likewise.
15652         * lib/hard-locale.c: Likewise.
15653         * lib/iconvme.c: Likewise.
15654         * lib/javacomp.c: Likewise.
15655         * lib/mempcpy.c: Likewise.
15656         * lib/memrchr.c: Likewise.
15657         * lib/regex_internal.h: Likewise.
15658         * lib/stpncpy.c: Likewise.
15659         * lib/strcasecmp.c: Likewise.
15660         * lib/strchrnul.c: Likewise.
15661         * lib/strdup.c: Likewise.
15662         * lib/striconv.c: Likewise.
15663         * lib/striconveh.c: Likewise.
15664         * lib/striconveha.c: Likewise.
15665         * lib/strncasecmp.c: Likewise.
15666         * lib/strndup.c: Likewise.
15667         * lib/strnlen.c: Likewise.
15668         * lib/strsep.c: Likewise.
15669         * lib/strstr.c: Likewise.
15670         * lib/strtok_r.c: Likewise.
15671         * lib/userspec.c: Likewise.
15672         * lib/w32spawn.h: Likewise.
15673         * lib/xstrndup.c: Likewise.
15674         * lib/mountlist.c (strstr): Remove decl.
15675         * m4/string_h.m4: New file.
15676         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
15677         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
15678         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
15679         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
15680         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
15681         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
15682         Set REPLACE_STRCASECMP if necessary.
15683         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
15684         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
15685         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
15686         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
15687         HAVE_DECL_STRDUP if necessary.
15688         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
15689         since gl_FUNC_STRNDUP does that now.
15690         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
15691         Check for decl here...
15692         (gl_PREREQ_STRNLEN): ... not here.
15693         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
15694         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
15695         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
15696         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
15697         necessary.
15698         * modules/string: New file.
15699         * modules/memmem (Files): Remove special-purpose include file.
15700         (Depends-on): Add string.
15701         (Include): Include <string.h>, not the removed file.
15702         * modules/mempcpy: Likewise.
15703         * modules/memrchr: Likewise.
15704         * modules/stpcpy: Likewise.
15705         * modules/stpncpy: Likewise.
15706         * modules/strcase: Likewise.
15707         * modules/strchrnul: Likewise.
15708         * modules/strdup: Likewise.
15709         * modules/strndup: Likewise.
15710         * modules/strnlen: Likewise.
15711         * modules/strpbrk: Likewise.
15712         * modules/strsep: Likewise.
15713         * modules/strstr: Likewise.
15714         * modules/strtok_r: Likewise.
15715         * tests/test-dirname.c: Don't include "strdup.h", since
15716         <string.h> now suffices.
15717         * tests/test-memmem.c: Don't include "memmem.h", since
15718         <string.h> now suffices.
15719
15720 2007-01-25  Bruno Haible  <bruno@clisp.org>
15721
15722         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
15723         *resultp is 0.
15724
15725         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
15726         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
15727         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
15728         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
15729
15730         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
15731         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
15732         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
15733         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
15734         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
15735         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
15736
15737 2007-01-24  Bruno Haible  <bruno@clisp.org>
15738
15739         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
15740         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
15741         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
15742         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
15743         gl_FUNC_FTS_CORE.
15744         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
15745         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
15746         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15747         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
15748         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
15749         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
15750         gl_FUNC_FCHOWNAT.
15751         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
15752         gl_FUNC_STRFTIME.
15753         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
15754         Reported by Ralf Wildenhues.
15755
15756 2007-01-24  Bruno Haible  <bruno@clisp.org>
15757
15758         Drop AC_REQUIRE calls that are redundant with the module dependencies.
15759         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
15760         gl_GETADDRINFO.
15761         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
15762         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
15763         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
15764
15765 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
15766
15767         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
15768         Don't use 'exit'; just return from 'main'.
15769         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
15770
15771         * lib/fnmatch_.h: Readjust white space and comments to match
15772         glibc, to avoid spurious diffs.
15773
15774 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15775
15776         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
15777         2004-12-01 change by Jakub Jelinek, since this code won't compile
15778         if !LIBC.  Problem reported by Bob Proulx.
15779
15780 2007-01-23  Bruno Haible  <bruno@clisp.org>
15781
15782         * lib/striconveh.c: Include c-strcaseeq.h.
15783         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
15784         * modules/striconveh (Depends-on): Add c-strcaseeq.
15785
15786 2007-01-23  Bruno Haible  <bruno@clisp.org>
15787
15788         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
15789
15790         * modules/c-strcaseeq: New file.
15791         * lib/c-strcaseeq.h: New file.
15792
15793         * modules/streq: New file.
15794         * lib/streq.h: New file.
15795
15796 2007-01-23  Bruno Haible  <bruno@clisp.org>
15797
15798         * modules/striconveha-tests: New file.
15799         * tests/test-striconveha.c: New file.
15800
15801         * lib/striconveha.h: Include <stdbool.h>.
15802         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
15803         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
15804         (mem_iconveha_notranslit): Renamed from mem_iconveha.
15805         (mem_iconveha): New function.
15806         (str_iconveha_notranslit): Renamed from str_iconveha.
15807         (str_iconveha): New function.
15808         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
15809         c-strcase.
15810
15811 2007-01-23  Bruno Haible  <bruno@clisp.org>
15812
15813         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
15814         encodings without forgiving before trying any encoding with handler.
15815         (str_iconveha): Try all encodings without forgiving before trying any
15816         encoding with handler.
15817
15818 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15819
15820         Import the following changes from libc.
15821
15822         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
15823
15824         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
15825
15826         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
15827
15828         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
15829         normal_bracket label.
15830
15831         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
15832
15833         [BZ #361]
15834         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
15835         to normal_bracket after fetching the next character.
15836
15837 2007-01-22  Bruno Haible  <bruno@clisp.org>
15838
15839         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
15840         argument.
15841         * lib/striconveh.c (iconv_carefully_1): New function.
15842         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
15843         argument.
15844         (str_cd_iconveh): Update.
15845         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
15846         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
15847         * tests/test-striconveh.c (MAGIC): New macro.
15848         (new_offsets): New function.
15849         (main): Test call with and without offsets.
15850
15851 2007-01-22  Bruno Haible  <bruno@clisp.org>
15852
15853         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
15854         * modules/sys_select (Makefile.am): Likewise.
15855         * modules/sys_socket (Makefile.am): Likewise.
15856         * modules/sys_time (Makefile.am): Likewise.
15857
15858 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15859
15860         * modules/gettimeofday (License): Change from GPL to LGPL, since
15861         gettimeofday is a library function.
15862
15863 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15864
15865         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
15866
15867 2007-01-21  Bruno Haible  <bruno@clisp.org>
15868
15869         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
15870
15871 2007-01-21  Bruno Haible  <bruno@clisp.org>
15872
15873         * modules/striconveha: New file.
15874         * lib/striconveha.h: New file.
15875         * lib/striconveha.c: New file.
15876         * MODULES.html.sh (Internationalization functions): Add striconveha.
15877         * lib/striconv.c (str_iconv): Optimize the case of an empty input
15878         string.
15879         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
15880
15881 2007-01-21  Bruno Haible  <bruno@clisp.org>
15882
15883         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
15884         * lib/striconveh.c (str_iconveh): Likewise.
15885
15886 2007-01-21  Bruno Haible  <bruno@clisp.org>
15887
15888         * lib/striconveh.h (mem_iconveh): New declaration.
15889         * lib/striconveh.c (mem_iconveh): New function.
15890         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
15891
15892 2007-01-21  Bruno Haible  <bruno@clisp.org>
15893
15894         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
15895
15896         * lib/striconveh.h (mem_cd_iconveh): Change specification.
15897         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
15898         original result buffer.
15899         (str_cd_iconveh): Update.
15900         * tests/test-striconveh.c (main): Update.
15901
15902         * lib/striconv.h (mem_cd_iconv): Change specification.
15903         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
15904         result buffer.
15905         (str_cd_iconv): Update.
15906         * tests/test-striconv.c (main): Update.
15907
15908 2007-01-21  Bruno Haible  <bruno@clisp.org>
15909
15910         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
15911
15912 2007-01-20  Jim Meyering  <jim@meyering.net>
15913
15914         * lib/userspec.c (parse_with_separator): If a user or group string
15915         starts with "+", skip the corresponding name-to-ID look-up, since
15916         such a look-up must fail: user and group names may not include "+".
15917
15918 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15919
15920         * lib/poll.c: Include sys/time.h and time.h unconditionally,
15921         since we now assume the sys_time module.
15922         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
15923         check for sys/time.h; no longer needed.
15924         * modules/poll (Depends-on): Depend on sys_time.
15925
15926 2007-01-18  Bruno Haible  <bruno@clisp.org>
15927
15928         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
15929         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15930
15931         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
15932         gettimeofday.
15933
15934         * tests/test-gettimeofday.c: Include <time.h>.
15935         (dummy): Remove variable.
15936
15937         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
15938         gl_HEADER_SYS_TIME_H.
15939         (gl_HEADER_SYS_TIME_H): New macro.
15940
15941         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
15942         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15943         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15944         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
15945         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15946         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
15947         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
15948         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15949         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
15950         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
15951         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15952
15953         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
15954         last change; it caused a compilation error when cross-compiling to
15955         Cygwin.
15956
15957 2007-01-18  Jim Meyering  <jim@meyering.net>
15958
15959         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
15960         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
15961         than the race-prone "test -d sys || mkdir sys".
15962         (configure.ac): Use AC_PROG_MKDIR_P.
15963         * modules/sys_select: Likewise.
15964         * modules/sys_socket: Likewise.
15965         * modules/sys_time: Likewise.
15966
15967 2007-01-18  Eric Blake  <ebb9@byu.net>
15968
15969         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
15970         replace gettimeofday.
15971         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
15972         name, to avoid infinite recursion.
15973
15974 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
15975
15976         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
15977         module sys_time.
15978         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
15979         assume timespec.h defines struct timeval.
15980         * lib/settime.c: Likewise.
15981         * lib/utimens.c: Likewise.
15982         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
15983         since we now assume the gettimeofday module.
15984         * lib/tempname.c (__gen_tempname): Likewise.
15985         * lib/gettimeofday.h: Remove.
15986         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
15987         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
15988         Include <time.h>, for 'time()'.
15989         (localtime_buffer_addr): Also use this workaround if
15990         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
15991         to simplify the uses.  All uses changed.
15992         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
15993         that #undef is inside {}, and 'const' follows type name consistently.
15994         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
15995         (gettimeofday): Do not use the maximum possible value for
15996         tv->tv_usec, since that might break usages other than ls.c.
15997         Instead, we'll leave ls.c alone.  This undoes today's patch
15998         by Bruno.  Add a compile-time warning for 1s-clock resolution;
15999         we've never observed the problem but might as well keep the
16000         canary.
16001         * lib/nanosleep.c: Include timespec.h first, for interface check.
16002         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
16003         now assume the sys_time module.
16004         * lib/tempname.c: Likewise.
16005         * lib/timespec.h: Likewise.
16006         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
16007         needed.
16008         * lib/strftime.c: Likewise.
16009         * lib/timespec.h: Likewise.
16010         * lib/posixtm.c: Include posixtm.h first, for interface check.
16011         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
16012         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
16013         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
16014         * lib/sys_time_.h: New file.
16015         * lib/timespec.h (struct timespec): Use long int, not long.
16016         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
16017         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
16018         Remove obsolescent call to AC_HEADER_TIME.
16019         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16020         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16021         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
16022         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
16023         Likewise.
16024         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
16025         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
16026         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
16027         into the sys_time module.  Check for gettimeofday just once.
16028         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
16029         for gettimeofday signature to just check the signature.  Merely
16030         compile it, since linking doesn't test signature.  Improve test for
16031         whether gettimeofday.o is actually needed.
16032         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
16033         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
16034         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
16035         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
16036         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
16037         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
16038         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
16039         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
16040         than worrying about sys/time.h.
16041         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
16042         Don't bother worrying about TIME_WITH_SYS_TIME.
16043         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16044         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
16045         * m4/sys_time_h.m4: New file.
16046         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
16047         Don't include sys/time.h.  Return from main rather than exiting.
16048         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
16049         all uses changed.
16050         * modules/gethrxtime (Depends-on): Add sys_time.
16051         * modules/gettime (Depends-on): Likewise.
16052         * modules/gettimeofday (Depends-on): Likewise.
16053         * modules/nanosleep (Depends-on): Likewise.
16054         * modules/settime (Depends-on): Likewise.
16055         * modules/tempname (Depends-on): Likewise.
16056         * modules/utimens (Depends-on): Likewise.
16057         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
16058         (Include:) Change back to <sys/time.h>.
16059         (Maintainer:) Add self.
16060         * modules/sys_time: New file.
16061         * modules/tempname (Depends-on): Add gettimeofday.
16062         * tests/test-gettimeofday.c: Include <sys/time.h>
16063         rather than gettimeofday.h.
16064
16065 2007-01-17  Bruno Haible  <bruno@clisp.org>
16066
16067         * gnulib-tool (func_get_license): Revert last patch. Instead, let
16068         the license default to GPL.
16069         (func_create_testdir): Don't complain if a module is LGPL and its
16070         tests module depends on GPLed modules.
16071
16072 2007-01-17  Bruno Haible  <bruno@clisp.org>
16073
16074         * lib/gettimeofday.c (gettimeofday): Add code for the case
16075         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
16076         maximum possible value for tv->tv_usec, rather than the minimum one.
16077
16078 2005-10-08  Martin Lambers  <marlam@marlam.de>
16079 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16080 2007-01-16  Bruno Haible  <bruno@clisp.org>
16081
16082         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
16083         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
16084         gl_FUNC_GETTIMEOFDAY.
16085         (Include): Add gettimeofday.h.
16086         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
16087         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
16088         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
16089         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
16090         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
16091         * lib/gettimeofday.h: New file.
16092         * lib/gettimeofday.c: Include <sys/timeb.h>.
16093         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
16094         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
16095         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
16096         fall back on time().
16097
16098         * tests/test-gettimeofday.c: New file.
16099         * modules/gettimeofday-tests: New file.
16100
16101 2007-01-16  Eric Blake  <ebb9@byu.net>
16102
16103         * modules/fnmatch (Depends-on): Depend on wchar.
16104         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
16105         * m4/fnmatch.m4: Likewise.
16106         * modules/mbchar (Makefile.am): Assume <wchar.h>.
16107         * m4/mbchar.m4: Likewise.
16108         * modules/mbswidth (Depends-on): Depend on wchar.
16109         * lib/mbswidth.c: Assume <wchar.h>.
16110         * m4/mbswidth.m4: Likewise.
16111         * modules/quotearg (Depends-on): Depend on wchar.
16112         * lib/quotearg.c: Assume <wchar.h>.
16113         * m4/quotearg.m4: Likewise.
16114         * modules/regex (Depends-on): Depend on wchar.
16115         * lib/regex_internal.h: Assume <wchar.h>.
16116         * m4/regex.m4: Likewise.
16117         * modules/stdint (Depends-on): Depend on wchar.
16118         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
16119         * m4/stdint.m4: Likewise.
16120         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
16121         * modules/strftime (Depends-on): Depend on wchar.
16122         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
16123         * modules/strtol (Depends-on): Depend on wchar.
16124         * lib/strtol.c: Assume <wchar.h>.
16125         * modules/wcwidth (Depends-on): Depend on wchar.
16126         * lib/wcwidth.h: Assume <wchar.h>.
16127         * m4/wcwidth.m4: Likewise.
16128
16129 2007-01-16  Bruno Haible  <bruno@clisp.org>
16130
16131         * modules/csharpexec-script: New, created from...
16132         * modules/csharpexec: ... this.
16133
16134 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
16135
16136         * modules/javaexec-script: New, created from...
16137         * modules/javaexec: ... this.
16138
16139 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16140
16141         * modules/poll (Dependencies): Add sys_select.
16142
16143 2007-01-15  Jim Meyering  <jim@meyering.net>
16144
16145         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
16146         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
16147         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
16148         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
16149
16150 2007-01-15  Bruno Haible  <bruno@clisp.org>
16151
16152         * modules/striconveh: New file.
16153         * lib/striconveh.h: New file.
16154         * lib/striconveh.c: New file.
16155         * MODULES.html.sh (Internationalization functions): Add striconveh.
16156
16157         * modules/striconveh-tests: New file.
16158         * tests/test-striconveh.c: New file.
16159
16160 2007-01-15  Bruno Haible  <bruno@clisp.org>
16161
16162         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
16163         not from GNU libiconv or GNU libc.
16164
16165 2007-01-15  Bruno Haible  <bruno@clisp.org>
16166
16167         * doc/gnulib-intro.texi (Copyright): Explain the different license
16168         terms for module descriptions, autoconf macros, tests, documentation.
16169
16170 2007-01-14  Bruno Haible  <bruno@clisp.org>
16171
16172         * modules/striconv-tests: New file.
16173         * tests/test-striconv.c: New file.
16174
16175 2007-01-14  Bruno Haible  <bruno@clisp.org>
16176
16177         * modules/iconv-tests: New file.
16178         * tests/test-iconv.c: New file.
16179
16180 2007-01-14  Bruno Haible  <bruno@clisp.org>
16181
16182         * gnulib-tool (func_get_license): For test modules, use the license of
16183         the main module.
16184
16185 2007-01-14  Bruno Haible  <bruno@clisp.org>
16186
16187         * modules/iconv (Include): Clarify that <iconv.h> can only be included
16188         if iconv is found to exist.
16189
16190 2007-01-14  Bruno Haible  <bruno@clisp.org>
16191
16192         * modules/c-ctype-tests: New file.
16193         * tests/test-c-ctype.c: New file.
16194
16195 2007-01-14  Bruno Haible  <bruno@clisp.org>
16196
16197         * modules/binary-io-tests: New file.
16198         * tests/test-binary-io.sh: New file.
16199         * tests/test-binary-io.c: New file.
16200
16201 2007-01-14  Bruno Haible  <bruno@clisp.org>
16202
16203         * modules/array-oset-tests: New file.
16204         * tests/test-array_oset.c: New file.
16205
16206 2007-01-14  Bruno Haible  <bruno@clisp.org>
16207
16208         * modules/array-list-tests: New file.
16209         * tests/test-array_list.c: New file.
16210
16211 2007-01-14  Bruno Haible  <bruno@clisp.org>
16212
16213         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
16214         and make.
16215         Reported by Simon Josefsson in
16216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
16217
16218 2007-01-14  Bruno Haible  <bruno@clisp.org>
16219
16220         * modules/allocsa-tests: New file.
16221         * tests/test-allocsa.c: New file.
16222
16223 2007-01-14  Bruno Haible  <bruno@clisp.org>
16224
16225         * modules/fchdir (Depends-on): Add absolute-header.
16226         * modules/unistd (Depends-on): Likewise.
16227
16228 2006-12-30  Bruno Haible  <bruno@clisp.org>
16229
16230         * modules/fchdir: New file.
16231         * modules/unistd (Files): Add lib/unistd_.h.
16232         (Makefile.am): Generate unistd.h from unistd_.h.
16233         * lib/fchdir.c: New file.
16234         * lib/dirent_.h: New file.
16235         * lib/unistd_.h: New file.
16236         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
16237         * m4/fchdir.m4: New file.
16238         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
16239         (gl_HEADER_UNISTD): Invoke it.
16240         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
16241         function.
16242         * lib/backupfile.c (opendir, closedir): Undefine.
16243         * lib/chown.c (open, close): Undefine.
16244         * lib/clean-temp.c (open, close): Undefine.
16245         * lib/copy-file.c (open, close): Undefine.
16246         * lib/execute.c (open, close): Undefine.
16247         * lib/fsusage.c (open, close): Undefine.
16248         * lib/gc-gnulib.c (open, close): Undefine.
16249         * lib/getcwd.c (opendir, closedir): Undefine.
16250         * lib/glob.c (opendir, closedir): Undefine.
16251         * lib/javacomp.c (open, close): Undefine.
16252         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
16253         * lib/openat-proc.c (open, close): Undefine.
16254         * lib/pagealign_alloc.c (open, close): Undefine.
16255         * lib/pipe.c (open, close): Undefine.
16256         * lib/progreloc.c (open, close): Undefine.
16257         * lib/savedir.c (opendir, closedir): Undefine.
16258         * lib/utime.c (open, close): Undefine.
16259         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
16260
16261 2007-01-10  Bruno Haible  <bruno@clisp.org>
16262
16263         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
16264
16265 2007-01-12  Eric Blake  <ebb9@byu.net>
16266
16267         Provide a robust <wchar.h>.  Further simplifications are now
16268         possible in other modules, but not included here.
16269         * modules/wchar: New module.
16270         * m4/wchar.m4: New file.
16271         * lib/wchar_.h: Likewise.
16272         * modules/mbchar (Depends-on): Depend on wchar, as the first use
16273         of the new module.
16274         * MODULES.html.sh (Extended multibyte and wide character utilities):
16275         New section.
16276
16277 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
16278
16279         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
16280         to a reasonable default for memory allocation.
16281         (xreadlink): Don't allocate a huge buffer, to work around a buggy
16282         file system that reports garbage st_size values for symlinks.
16283         Problem reported by Liyang Hu.
16284
16285 2007-01-11  Simon Josefsson  <simon@josefsson.org>
16286
16287         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
16288         Emacs .#* auto-save files).
16289
16290 2007-01-11  Bruno Haible  <bruno@clisp.org>
16291
16292         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
16293         directory.
16294
16295 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16296
16297         Use @...@ consistently in lib/wctype_.h.
16298         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
16299         on it being set to 1 or 0.
16300         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
16301         go back to AC_SUBSTing it.
16302         * modules/wctype (Makefile.am): Undo previous change.
16303
16304 2007-01-10  Eric Blake  <ebb9@byu.net>
16305
16306         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
16307         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
16308         * modules/wctype (Makefile.am): Likewise.
16309         Reported by Chris McGuire.
16310
16311 2007-01-10  Jim Meyering  <jim@meyering.net>
16312
16313         fts.c: a small readability/maintainability improvement
16314         * lib/fts.c (fts_read): Make this code slightly more readable and
16315         maintainable by hoisting the "sp->fts_cur = p" assignments to
16316         immediately follow the statements that set P.  Derived from
16317         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
16318
16319 2007-01-10  Eric Blake  <ebb9@byu.net>
16320
16321         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
16322         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
16323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16324         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16325         Reported by Chris McGuire.
16326
16327 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16328
16329         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
16330         in sed script.
16331
16332 2007-01-09  Bruno Haible  <bruno@clisp.org>
16333
16334         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
16335         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
16336         variables.
16337         (func_module): Use them.
16338
16339 2007-01-09  Bruno Haible  <bruno@clisp.org>
16340
16341         * modules/unistr/base: New file.
16342         * lib/unistr.h: New file.
16343
16344         * modules/unistr/u8-to-u16: New file.
16345         * lib/unistr/u8-to-u16.c: New file.
16346
16347         * modules/unistr/u8-to-u32: New file.
16348         * lib/unistr/u8-to-u32.c: New file.
16349
16350         * modules/unistr/u16-to-u8: New file.
16351         * lib/unistr/u16-to-u8.c: New file.
16352
16353         * modules/unistr/u16-to-u32: New file.
16354         * lib/unistr/u16-to-u32.c: New file.
16355
16356         * modules/unistr/u32-to-u8: New file.
16357         * lib/unistr/u32-to-u8.c: New file.
16358
16359         * modules/unistr/u32-to-u16: New file.
16360         * lib/unistr/u32-to-u16.c: New file.
16361
16362         * modules/unistr/u8-check: New file.
16363         * modules/unistr/u16-check: New file.
16364         * modules/unistr/u32-check: New file.
16365         * lib/unistr/u8-check.c: New file.
16366         * lib/unistr/u16-check.c: New file.
16367         * lib/unistr/u32-check.c: New file.
16368
16369         * modules/unistr/u8-chr: New file.
16370         * modules/unistr/u16-chr: New file.
16371         * modules/unistr/u32-chr: New file.
16372         * lib/unistr/u8-chr.c: New file.
16373         * lib/unistr/u16-chr.c: New file.
16374         * lib/unistr/u32-chr.c: New file.
16375
16376         * modules/unistr/u8-cmp: New file.
16377         * modules/unistr/u16-cmp: New file.
16378         * modules/unistr/u32-cmp: New file.
16379         * lib/unistr/u8-cmp.c: New file.
16380         * lib/unistr/u16-cmp.c: New file.
16381         * lib/unistr/u32-cmp.c: New file.
16382
16383         * modules/unistr/u8-cpy: New file.
16384         * modules/unistr/u16-cpy: New file.
16385         * modules/unistr/u32-cpy: New file.
16386         * lib/unistr/u8-cpy.c: New file.
16387         * lib/unistr/u16-cpy.c: New file.
16388         * lib/unistr/u32-cpy.c: New file.
16389         * lib/unistr/u-cpy.h: New file.
16390
16391         * modules/unistr/u8-cpy-alloc: New file.
16392         * modules/unistr/u16-cpy-alloc: New file.
16393         * modules/unistr/u32-cpy-alloc: New file.
16394         * lib/unistr/u8-cpy-alloc.c: New file.
16395         * lib/unistr/u16-cpy-alloc.c: New file.
16396         * lib/unistr/u32-cpy-alloc.c: New file.
16397         * lib/unistr/u-cpy-alloc.h: New file.
16398
16399         * modules/unistr/u8-endswith: New file.
16400         * modules/unistr/u16-endswith: New file.
16401         * modules/unistr/u32-endswith: New file.
16402         * lib/unistr/u8-endswith.c: New file.
16403         * lib/unistr/u16-endswith.c: New file.
16404         * lib/unistr/u32-endswith.c: New file.
16405         * lib/unistr/u-endswith.h: New file.
16406
16407         * modules/unistr/u8-mblen: New file.
16408         * modules/unistr/u16-mblen: New file.
16409         * modules/unistr/u32-mblen: New file.
16410         * lib/unistr/u8-mblen.c: New file.
16411         * lib/unistr/u16-mblen.c: New file.
16412         * lib/unistr/u32-mblen.c: New file.
16413
16414         * modules/unistr/u8-mbtouc: New file.
16415         * modules/unistr/u16-mbtouc: New file.
16416         * modules/unistr/u32-mbtouc: New file.
16417         * lib/unistr/u8-mbtouc.c: New file.
16418         * lib/unistr/u16-mbtouc.c: New file.
16419         * lib/unistr/u32-mbtouc.c: New file.
16420
16421         * modules/unistr/u8-mbtouc-safe: New file.
16422         * modules/unistr/u16-mbtouc-safe: New file.
16423         * modules/unistr/u32-mbtouc-safe: New file.
16424         * lib/unistr/u8-mbtouc-safe.c: New file.
16425         * lib/unistr/u16-mbtouc-safe.c: New file.
16426         * lib/unistr/u32-mbtouc-safe.c: New file.
16427
16428         * modules/unistr/u8-move: New file.
16429         * modules/unistr/u16-move: New file.
16430         * modules/unistr/u32-move: New file.
16431         * lib/unistr/u8-move.c: New file.
16432         * lib/unistr/u16-move.c: New file.
16433         * lib/unistr/u32-move.c: New file.
16434         * lib/unistr/u-move.h: New file.
16435
16436         * modules/unistr/u8-next: New file.
16437         * modules/unistr/u16-next: New file.
16438         * modules/unistr/u32-next: New file.
16439         * lib/unistr/u8-next.c: New file.
16440         * lib/unistr/u16-next.c: New file.
16441         * lib/unistr/u32-next.c: New file.
16442
16443         * modules/unistr/u8-prev: New file.
16444         * modules/unistr/u16-prev: New file.
16445         * modules/unistr/u32-prev: New file.
16446         * lib/unistr/u8-prev.c: New file.
16447         * lib/unistr/u16-prev.c: New file.
16448         * lib/unistr/u32-prev.c: New file.
16449
16450         * modules/unistr/u8-set: New file.
16451         * modules/unistr/u16-set: New file.
16452         * modules/unistr/u32-set: New file.
16453         * lib/unistr/u8-set.c: New file.
16454         * lib/unistr/u16-set.c: New file.
16455         * lib/unistr/u32-set.c: New file.
16456         * lib/unistr/u-set.h: New file.
16457
16458         * modules/unistr/u8-startswith: New file.
16459         * modules/unistr/u16-startswith: New file.
16460         * modules/unistr/u32-startswith: New file.
16461         * lib/unistr/u8-startswith.c: New file.
16462         * lib/unistr/u16-startswith.c: New file.
16463         * lib/unistr/u32-startswith.c: New file.
16464         * lib/unistr/u-startswith.h: New file.
16465
16466         * modules/unistr/u8-stpcpy: New file.
16467         * modules/unistr/u16-stpcpy: New file.
16468         * modules/unistr/u32-stpcpy: New file.
16469         * lib/unistr/u8-stpcpy.c: New file.
16470         * lib/unistr/u16-stpcpy.c: New file.
16471         * lib/unistr/u32-stpcpy.c: New file.
16472         * lib/unistr/u-stpcpy.h: New file.
16473
16474         * modules/unistr/u8-stpncpy: New file.
16475         * modules/unistr/u16-stpncpy: New file.
16476         * modules/unistr/u32-stpncpy: New file.
16477         * lib/unistr/u8-stpncpy.c: New file.
16478         * lib/unistr/u16-stpncpy.c: New file.
16479         * lib/unistr/u32-stpncpy.c: New file.
16480         * lib/unistr/u-stpncpy.h: New file.
16481
16482         * modules/unistr/u8-strcat: New file.
16483         * modules/unistr/u16-strcat: New file.
16484         * modules/unistr/u32-strcat: New file.
16485         * lib/unistr/u8-strcat.c: New file.
16486         * lib/unistr/u16-strcat.c: New file.
16487         * lib/unistr/u32-strcat.c: New file.
16488         * lib/unistr/u-strcat.h: New file.
16489
16490         * modules/unistr/u8-strchr: New file.
16491         * modules/unistr/u16-strchr: New file.
16492         * modules/unistr/u32-strchr: New file.
16493         * lib/unistr/u8-strchr.c: New file.
16494         * lib/unistr/u16-strchr.c: New file.
16495         * lib/unistr/u32-strchr.c: New file.
16496
16497         * modules/unistr/u8-strcmp: New file.
16498         * modules/unistr/u16-strcmp: New file.
16499         * modules/unistr/u32-strcmp: New file.
16500         * lib/unistr/u8-strcmp.c: New file.
16501         * lib/unistr/u16-strcmp.c: New file.
16502         * lib/unistr/u32-strcmp.c: New file.
16503
16504         * modules/unistr/u8-strcpy: New file.
16505         * modules/unistr/u16-strcpy: New file.
16506         * modules/unistr/u32-strcpy: New file.
16507         * lib/unistr/u8-strcpy.c: New file.
16508         * lib/unistr/u16-strcpy.c: New file.
16509         * lib/unistr/u32-strcpy.c: New file.
16510         * lib/unistr/u-strcpy.h: New file.
16511
16512         * modules/unistr/u8-strcspn: New file.
16513         * modules/unistr/u16-strcspn: New file.
16514         * modules/unistr/u32-strcspn: New file.
16515         * lib/unistr/u8-strcspn.c: New file.
16516         * lib/unistr/u16-strcspn.c: New file.
16517         * lib/unistr/u32-strcspn.c: New file.
16518         * lib/unistr/u-strcspn.h: New file.
16519
16520         * modules/unistr/u8-strdup: New file.
16521         * modules/unistr/u16-strdup: New file.
16522         * modules/unistr/u32-strdup: New file.
16523         * lib/unistr/u8-strdup.c: New file.
16524         * lib/unistr/u16-strdup.c: New file.
16525         * lib/unistr/u32-strdup.c: New file.
16526         * lib/unistr/u-strdup.h: New file.
16527
16528         * modules/unistr/u8-strlen: New file.
16529         * modules/unistr/u16-strlen: New file.
16530         * modules/unistr/u32-strlen: New file.
16531         * lib/unistr/u8-strlen.c: New file.
16532         * lib/unistr/u16-strlen.c: New file.
16533         * lib/unistr/u32-strlen.c: New file.
16534         * lib/unistr/u-strlen.h: New file.
16535
16536         * modules/unistr/u8-strmblen: New file.
16537         * modules/unistr/u16-strmblen: New file.
16538         * modules/unistr/u32-strmblen: New file.
16539         * lib/unistr/u8-strmblen.c: New file.
16540         * lib/unistr/u16-strmblen.c: New file.
16541         * lib/unistr/u32-strmblen.c: New file.
16542
16543         * modules/unistr/u8-strmbtouc: New file.
16544         * modules/unistr/u16-strmbtouc: New file.
16545         * modules/unistr/u32-strmbtouc: New file.
16546         * lib/unistr/u8-strmbtouc.c: New file.
16547         * lib/unistr/u16-strmbtouc.c: New file.
16548         * lib/unistr/u32-strmbtouc.c: New file.
16549
16550         * modules/unistr/u8-strncat: New file.
16551         * modules/unistr/u16-strncat: New file.
16552         * modules/unistr/u32-strncat: New file.
16553         * lib/unistr/u8-strncat.c: New file.
16554         * lib/unistr/u16-strncat.c: New file.
16555         * lib/unistr/u32-strncat.c: New file.
16556         * lib/unistr/u-strncat.h: New file.
16557
16558         * modules/unistr/u8-strncmp: New file.
16559         * modules/unistr/u16-strncmp: New file.
16560         * modules/unistr/u32-strncmp: New file.
16561         * lib/unistr/u8-strncmp.c: New file.
16562         * lib/unistr/u16-strncmp.c: New file.
16563         * lib/unistr/u32-strncmp.c: New file.
16564
16565         * modules/unistr/u8-strncpy: New file.
16566         * modules/unistr/u16-strncpy: New file.
16567         * modules/unistr/u32-strncpy: New file.
16568         * lib/unistr/u8-strncpy.c: New file.
16569         * lib/unistr/u16-strncpy.c: New file.
16570         * lib/unistr/u32-strncpy.c: New file.
16571         * lib/unistr/u-strncpy.h: New file.
16572
16573         * modules/unistr/u8-strnlen: New file.
16574         * modules/unistr/u16-strnlen: New file.
16575         * modules/unistr/u32-strnlen: New file.
16576         * lib/unistr/u8-strnlen.c: New file.
16577         * lib/unistr/u16-strnlen.c: New file.
16578         * lib/unistr/u32-strnlen.c: New file.
16579         * lib/unistr/u-strnlen.h: New file.
16580
16581         * modules/unistr/u8-strpbrk: New file.
16582         * modules/unistr/u16-strpbrk: New file.
16583         * modules/unistr/u32-strpbrk: New file.
16584         * lib/unistr/u8-strpbrk.c: New file.
16585         * lib/unistr/u16-strpbrk.c: New file.
16586         * lib/unistr/u32-strpbrk.c: New file.
16587         * lib/unistr/u-strpbrk.h: New file.
16588
16589         * modules/unistr/u8-strrchr: New file.
16590         * modules/unistr/u16-strrchr: New file.
16591         * modules/unistr/u32-strrchr: New file.
16592         * lib/unistr/u8-strrchr.c: New file.
16593         * lib/unistr/u16-strrchr.c: New file.
16594         * lib/unistr/u32-strrchr.c: New file.
16595
16596         * modules/unistr/u8-strspn: New file.
16597         * modules/unistr/u16-strspn: New file.
16598         * modules/unistr/u32-strspn: New file.
16599         * lib/unistr/u8-strspn.c: New file.
16600         * lib/unistr/u16-strspn.c: New file.
16601         * lib/unistr/u32-strspn.c: New file.
16602         * lib/unistr/u-strspn.h: New file.
16603
16604         * modules/unistr/u8-strstr: New file.
16605         * modules/unistr/u16-strstr: New file.
16606         * modules/unistr/u32-strstr: New file.
16607         * lib/unistr/u8-strstr.c: New file.
16608         * lib/unistr/u16-strstr.c: New file.
16609         * lib/unistr/u32-strstr.c: New file.
16610         * lib/unistr/u-strstr.h: New file.
16611
16612         * modules/unistr/u8-strtok: New file.
16613         * modules/unistr/u16-strtok: New file.
16614         * modules/unistr/u32-strtok: New file.
16615         * lib/unistr/u8-strtok.c: New file.
16616         * lib/unistr/u16-strtok.c: New file.
16617         * lib/unistr/u32-strtok.c: New file.
16618         * lib/unistr/u-strtok.h: New file.
16619
16620         * modules/unistr/u8-uctomb: New file.
16621         * modules/unistr/u16-uctomb: New file.
16622         * modules/unistr/u32-uctomb: New file.
16623         * lib/unistr/u8-uctomb.c: New file.
16624         * lib/unistr/u16-uctomb.c: New file.
16625         * lib/unistr/u32-uctomb.c: New file.
16626
16627         * MODULES.html.sh (Unicode string functions): Add the new modules.
16628
16629 2007-01-08  Bruno Haible  <bruno@clisp.org>
16630
16631         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
16632         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
16633         subdirectories.
16634
16635 2007-01-08  Karl Berry  <karl@gnu.org>
16636
16637         * doc/error.texi: mention that main() fns must set program_name
16638         when progname is used.
16639
16640 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
16641
16642         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
16643         WCTYPE_H is empty, for the benefit of builds from non-distclean
16644         directories.  Problem reported by Eric Blake in
16645         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
16646
16647 2007-01-08  Bruno Haible  <bruno@clisp.org>
16648
16649         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
16650         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
16651         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
16652         PROVIDE_CANONICALIZE_FILENAME_MODE.
16653         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
16654
16655 2007-01-08  Bruno Haible  <bruno@clisp.org>
16656
16657         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
16658         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
16659         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
16660         * lib/fts.c: Likewise.
16661         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
16662
16663 2006-12-25  Bruno Haible  <bruno@clisp.org>
16664
16665         * modules/utf8-ucs4-safe: New file.
16666         * lib/utf8-ucs4-safe.h: New file.
16667         * lib/unistr/utf8-ucs4-safe.c: New file.
16668
16669         * modules/utf16-ucs4-safe: New file.
16670         * lib/utf16-ucs4-safe.h: New file.
16671         * lib/unistr/utf16-ucs4-safe.c: New file.
16672
16673         * MODULES.html.sh (Unicode string functions): Add the new modules.
16674
16675 2007-01-08  Bruno Haible  <bruno@clisp.org>
16676
16677         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
16678         (Depends-on): Add unitypes.
16679         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16680         (u8_mbtouc_aux): Move out to separate file.
16681         (u8_mbtouc): Use ucs4_t, uint8_t types.
16682         * lib/unistr/utf8-ucs4.c: New file.
16683
16684         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
16685         (Depends-on): Add unitypes.
16686         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16687         (u16_mbtouc_aux): Move out to separate file.
16688         (u16_mbtouc): Use ucs4_t, uint16_t types.
16689         * lib/unistr/utf16-ucs4.c: New file.
16690
16691         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
16692         (Depends-on): Add unitypes.
16693         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
16694         (u8_uctomb_aux): Move out to separate file.
16695         (u8_uctomb): Use ucs4_t, uint8_t types.
16696         * lib/unistr/ucs4-utf8.c: New file.
16697
16698         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
16699         (Depends-on): Add unitypes.
16700         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
16701         (u16_uctomb_aux): Move out to separate file.
16702         (u16_uctomb): Use ucs4_t, uint16_t types.
16703         * lib/unistr/ucs4-utf16.c: New file.
16704
16705 2006-12-25  Bruno Haible  <bruno@clisp.org>
16706
16707         * modules/unitypes: New file.
16708         * lib/unitypes.h: New file.
16709         * MODULES.html.sh (func_all_modules): New section "Unicode string
16710         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
16711         this section. Add unitypes.
16712
16713 2007-01-08  Bruno Haible  <bruno@clisp.org>
16714
16715         Avoid variable names that conflict with those from libtool.
16716         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
16717         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
16718         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
16719         library_names_spec to acl_library_names_spec, hardcode_* to
16720         acl_hardcode_*.
16721         Reported by Ralf Wildenhues.
16722
16723 2007-01-08  Bruno Haible  <bruno@clisp.org>
16724
16725         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
16726         definition.
16727         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
16728         definition.
16729         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
16730         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
16731         definition.
16732         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
16733         definition.
16734         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
16735         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
16736         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
16737         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
16738         definition.
16739         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
16740         definition.
16741         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
16742         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
16743         GC_USE_<algorithm>.
16744         * lib/gc-libgcrypt.c: Likewise.
16745         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
16746         * modules/gc-arctwo (configure.ac): Likewise.
16747         * modules/gc-des (configure.ac): Likewise.
16748         * modules/gc-hmac-md5 (configure.ac): Likewise.
16749         * modules/gc-hmac-sha1 (configure.ac): Likewise.
16750         * modules/gc-md2 (configure.ac): Likewise.
16751         * modules/gc-md4 (configure.ac): Likewise.
16752         * modules/gc-md5 (configure.ac): Likewise.
16753         * modules/gc-random (configure.ac): Likewise.
16754         * modules/gc-rijndael (configure.ac): Likewise.
16755         * modules/gc-sha1 (configure.ac): Likewise.
16756
16757 2007-01-08  Bruno Haible  <bruno@clisp.org>
16758
16759         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
16760         macro definition.
16761         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
16762         definition.
16763         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
16764         definition.
16765         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
16766         * modules/fcntl-safer (configure.ac): Likewise.
16767         * modules/fopen-safer (configure.ac): Likewise.
16768         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
16769         GNULIB_FWRITEERROR macro definition.
16770
16771 2007-01-08  Bruno Haible  <bruno@clisp.org>
16772
16773         * m4/gnulib-common.m4: New file.
16774         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
16775         (func_get_filelist): Add m4/gnulib-common.m4.
16776
16777 2007-01-08  Bruno Haible  <bruno@clisp.org>
16778
16779         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
16780         command.
16781
16782 2007-01-08  Jim Meyering  <jim@meyering.net>
16783
16784         Use a more robust test for a "can't happen" condition.
16785         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
16786         narrowed the st_size value.  Presuming the "can't happen" condition
16787         is true, that narrowing could conceivably convert an invalid st_size
16788         value into a valid one.  Instead, use a change based on Matthew
16789         Woehlke's original patch.
16790
16791         Slight readability improvement: use an assert-like macro
16792         in place of literal "abort ()" uses.
16793         * lib/fts.c (fts_assert): Define.
16794         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
16795         Use this macro instead of a bare 'abort'.
16796
16797 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16798
16799         Don't worry about using IRIX 5.3's wctype.h broken definitions;
16800         simply work around them.
16801         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
16802         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
16803         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
16804         declaring.
16805         Don't bother to define as macros, since the standard doesn't require it.
16806         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
16807         longer worry about IRIX 5.3.
16808         (HAVE_WCTYPE_CTMP_BUG): Remove.
16809
16810 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
16811
16812         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
16813         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
16814         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
16815         Problems reported by Georg Schwarz for IRIX 5.3.
16816
16817         * gnulib-tool (autoconf_minversion): Take the maximum version number
16818         found, not the minimum.  Problem reported by James Youngman.
16819
16820 2007-01-03  Karl Berry  <karl@gnu.org>
16821
16822         * doc/error.texi: new file, explaining interaction with progname.
16823         * doc/gnulib.texi: include it.  Update copyright.
16824
16825 2007-01-03  Simon Josefsson  <simon@josefsson.org>
16826
16827         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
16828         AC_CANONICAL_HOST, to improve autobuild outputs.
16829
16830 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
16831             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16832
16833         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
16834         sockets, server sockets, and other file descriptors.  Count errors
16835         to compute the return value.  Reorder the code a bit to be easier
16836         to follow.  Don't set event bits that were not requested (except
16837         POLLERR and POLLHUP).
16838
16839 2007-01-01  Bruno Haible  <bruno@clisp.org>
16840
16841         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
16842
16843 2007-01-03  Jim Meyering  <jim@meyering.net>
16844
16845         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
16846
16847 2007-01-02  Bruno Haible  <bruno@clisp.org>
16848
16849         * modules/settime (Include): Require timespec.h.
16850         * modules/nanosleep (Include): Likewise.
16851
16852 2007-01-01  Bruno Haible  <bruno@clisp.org>
16853
16854         * gnulib-tool (func_emit_copyright_notice): Bump year.
16855         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
16856
16857 2007-01-01  Bruno Haible  <bruno@clisp.org>
16858
16859         Improve support for OpenBSD.
16860         * build-aux/config.rpath (libname_spec): Export.
16861         (library_names_spec): New variable. Export.
16862         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
16863         library_names_spec from the config.rpath output. Locate shared library
16864         through the name pattern in library_names_spec.
16865
16866 2007-01-01  Eric Blake  <ebb9@byu.net>
16867
16868         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
16869
16870 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16871
16872         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
16873         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
16874         assume the C locale, and avoid an "eval" that could cause trouble.
16875         Problem with SORT reported by Bob Proulx.
16876
16877         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
16878         Define.  Trivial patch from Henning Nielsen Lund, originally
16879         sent to bug-grep@gnu.org today.
16880
16881 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16882
16883         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
16884         struct stat.  Problem reported by Henning Nielsen Lund.
16885         * lib/acl.c: Include acl.h first, to check interface.  Don't
16886         bother to include sys/types.h and sys/stat.h again.
16887
16888 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16889
16890         Import the following change from libc; problem reported by
16891         Sven Verdoolaege.
16892
16893         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
16894
16895         [BZ #1373]
16896         * lib/argp.h: Remove __NTH for __argp_usage inline function.
16897
16898 2006-12-28  Jim Meyering  <jim@meyering.net>
16899
16900         * build-aux/announce-gen: Do not assume that the package
16901         builds any of tar.gz, tar.bz2, and .xdelta files.
16902         Suggestion from Simon Josefsson.
16903
16904 2006-12-28  Simon Josefsson  <simon@josefsson.org>
16905
16906         * modules/announce-gen: New file.
16907
16908 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16909
16910         * lib/mbchar.h: Just include <wctype.h>; the wctype module
16911         handles its gotchas now.
16912         * lib/mbswidth.c: Likewise.
16913         * lib/wcwidth.h: Likewise.
16914         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
16915         and iswcntrl; the wctype module does this stuff now.
16916         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16917         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16918         * modules/mbchar (Depends-on): Add wctype.
16919         * modules/mbswidth (Depends-on): Likewise.
16920         * modules/wcwidth (Depends-on): Likewise.
16921
16922 2006-12-27  Eric Blake  <ebb9@byu.net>
16923
16924         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
16925         module uses more than what <wctype.h> is required to provide.
16926
16927 2006-12-26  Eric Blake  <ebb9@byu.net>
16928
16929         * gnulib-tool (sed_extract_prog): Avoid space-tab.
16930
16931 2006-12-26  Eric Blake  <ebb9@byu.net>
16932
16933         * modules/absolute-header: New module.
16934         * modules/fcntl (Depends-on): Depend on it.
16935         * modules/inttypes (Depends-on): Likewise.
16936         * modules/stdint (Depends-on): Likewise.
16937         * modules/sys_stat (Depends-on): Likewise.
16938         * modules/wctype (Depends-on): Likewise.
16939         * MODULES.html.sh (Support for building libraries and
16940         executables): Document it.
16941
16942 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16943
16944         * gnulib-tool (SED): Remove, undoing previous change.
16945         The problem was that it broke coreutils on Solaris, because
16946         "sed --posix" leaked into a makefile.
16947         (sed): New alias, if 'alias' and GNU sed.
16948
16949 2006-12-24  Jim Meyering  <jim@meyering.net>
16950
16951         Work around an fchownat bug in glibc-2.4:
16952         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
16953         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
16954         in spite of the -P option.
16955         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
16956         New macros.
16957         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
16958         * modules/openat (Files): Add lib/fchownat.c.
16959         * lib/openat.c (fchownat): Don't define here.  Move to...
16960         * lib/fchownat.c: ...this new file.
16961
16962 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16963
16964         Fix bug reported by Bruno Haible in
16965         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
16966         where quotearg.c didn't compile on Mac OS X 10.2 because it
16967         lacks <wchar.h> and wint_t.
16968         * lib/wctype_.h (__wctype_wint_t): New type.
16969         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
16970         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
16971         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
16972         Arg is now of type __wctype_wint_t, not wint_t.
16973         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
16974         substitute HAVE_WINT_T.
16975         * modules/wctype (Files): Add m4/wint_t.m4.
16976         (wctype.h): Substitute HAVE_WINT_T.
16977
16978 2006-12-23  Bruno Haible  <bruno@clisp.org>
16979
16980         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
16981
16982 2006-12-23  Bruno Haible  <bruno@clisp.org>
16983
16984         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
16985         S_ISLNK.
16986         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
16987         mingw.
16988
16989 2006-12-22  Bruno Haible  <bruno@clisp.org>
16990
16991         * lib/copy-file.c: Include acl.h.
16992         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
16993         Close the file descriptors only after being done with copy_acl.
16994         * modules/copy-file (Depends-on): Add acl.
16995
16996 2006-12-22  Bruno Haible  <bruno@clisp.org>
16997
16998         * gnulib-tool (SED): New variable.
16999         Use $SED instead of sed everywhere.
17000
17001 2006-12-22  Bruno Haible  <bruno@clisp.org>
17002
17003         * modules/no-c++: New file.
17004         * m4/no-c++.m4: New file.
17005         * MODULES.html.sh (Support for building libraries and executables):
17006         Add no-c++.
17007
17008 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17009
17010         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
17011         Include <limits.h>, and use its INT_MAX to rewrite the
17012         j loop so that it does not overflow 'int'.  Problem reported by
17013         Ralf Wildenhues in
17014         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
17015         Play it safe by shifting left by 1 rather than multiplying by 2,
17016         as GCC is less likely to optimize this away when the value
17017         is signed (when it assumes overflow leads to undefined behavior).
17018         Also, don't assume time_t uses two's complement.
17019
17020 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17021
17022         * MODULES.html.sh: New module wctype.
17023         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
17024         * lib/fnmatch.c: Don't bother to include <wchar.h> before
17025         <wctype.h>, since the new wctype module should fix this.
17026         * lib/quotearg.c: Include <wctype.h> unconditionally, since
17027         the wctype module should arrange for it.
17028         * lib/regex_internal.h: Likewise.
17029         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
17030         since the wctype module should handle this now.
17031         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
17032         * modules/fnmatch (Depends-on): Add wctype.
17033         * modules/quotearg (Depends-on): Likewise.
17034         * modules/regex (Depends-on): Likewise.
17035
17036 2006-12-19  Bruno Haible  <bruno@clisp.org>
17037
17038         * lib/strdup.h [C++]: Wrap definitions in extern "C".
17039         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
17040
17041 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17042
17043         * modules/savewd (Depends-on): Fix dependency on fcntl.
17044
17045 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17046
17047         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
17048         conforms to C99, rather than relying on the user's environment
17049         setting of STDINT_H.
17050
17051 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17052         and Eric Blake  <ebb9@byu.net>
17053
17054         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
17055         This is more consistent with the other defines here.
17056         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
17057         Port to z/OS.  Problem reported by Paul Gilmartin.
17058         Change local vars to use gl_ prefix rather than ac_.
17059         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
17060         with other defines.
17061         * modules/double-slash-root: New module.
17062         * modules/dirname (Files): Remove m4/double-slash-root.m4.
17063         (Depends-on): Add double-slash-root.
17064         * MODULES.html.sh (File system functions): Mention new module.
17065
17066 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
17067
17068         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
17069         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
17070         This is for the benefit of gzip, which doesn't do i18n.
17071
17072 2006-12-12  Jim Meyering  <jim@meyering.net>
17073
17074         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
17075         Reported by Andreas Schwab <schwab@suse.de>.
17076
17077 2006-12-12  Bruno Haible  <bruno@clisp.org>
17078
17079         Merge these changes.
17080         2006-09-05  Bruno Haible  <bruno@clisp.org>
17081         * lib/iconvme.c (iconv_string): No need to save and restore errno when
17082         iconv_alloc succeeded.
17083         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
17084         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
17085         test for " && dest " at the end - dest is always != NULL there. Call
17086         iconv with 4xNULL arguments initially, to reset the state. Call iconv
17087         with 2xNULL arguments, also to flush the state storage. Handle the
17088         IRIX iconv behaviour. Realloc the final result, to throw away unused
17089         memory.
17090
17091 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
17092
17093         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
17094         and fchmodat unconditionally, since glibc 2.4 has them.
17095         Problem reported by Arkadiusz Miskiewicz.
17096
17097 2006-12-10  Bruno Haible  <bruno@clisp.org>
17098
17099         * gnulib-tool (func_import): Show the include files only for those
17100         modules that are copied and specified.
17101         Reported by Karl Berry.
17102
17103 2006-12-08  Jim Meyering  <jim@meyering.net>
17104
17105         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
17106         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
17107
17108         * build-aux/announce-gen: Add two new options, both optional:
17109         --bootstrap-tools=TOOL_LIST
17110               a comma-separated list of tools, e.g.,
17111               autoconf,automake,bison,gnulib
17112         --gnulib-snapshot-date=DATE
17113               if gnulib is in the bootstrap tool list,
17114               then report this as the snapshot date.
17115               If not specified, use the current date/time.
17116               If you specify a date here, be sure it's UTC.
17117
17118 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17119
17120         * tests/test-argp-2.sh: Fix test to match actual output.
17121         (func_compare): Fix sed script to be portable.
17122
17123 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
17124
17125         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
17126         workaround for this case.  It is not autoconfigured now; offhand
17127         it's hard to see how to autoconfigure it.
17128
17129 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
17130
17131         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
17132         a directory that is about to be chowned.  Such a directory's
17133         initial file permissions should permit the owner only and this
17134         should not be changed until after the chown, since the group and
17135         other bits would be incorrect if they granted permission before
17136         the chown.
17137
17138         Fix porting problem for iswctype reported by Georg Schwarz in:
17139         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
17140         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
17141         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
17142         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
17143         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17144
17145 2006-12-03  Jim Meyering  <jim@meyering.net>
17146
17147         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
17148         p->fts_statp may not yet be defined.
17149         (fts_read): Instead, set it in the caller, once p->fts_statp is
17150         sure to be defined, and corresponds to a top-level directory.
17151         This bug made du -x fail.  Here's the coreutils test case:
17152         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
17153         Reported by Mike Frysinger.
17154
17155 2006-12-01  Jim Meyering  <jim@meyering.net>
17156
17157         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
17158         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
17159         Reported by Simon Josefsson.
17160
17161 2006-11-30  Jim Meyering  <jim@meyering.net>
17162
17163         * m4/warning.m4: Use the all-permissive copyright notice
17164         recommended by RMS (rather than LGPL).
17165         * m4/vararrays.m4: Likewise.
17166         * m4/flexmember.m4: Likewise.
17167
17168 2006-11-29  Bruno Haible  <bruno@clisp.org>
17169
17170         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
17171         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
17172         using +=.
17173         Reported by Simon Josefsson <simon@josefsson.org>.
17174
17175 2006-11-28  James Youngman <jay@gnu.org>
17176
17177         * README: Advise users that they might find the bug-gnulib@gnu.org
17178         and autotools-announce@gnu.org mailing lists useful.
17179
17180 2006-11-28  Bruno Haible  <bruno@clisp.org>
17181
17182         * m4/ptrdiff_max.m4: Remove file.
17183
17184 2006-11-21  Bruno Haible  <bruno@clisp.org>
17185
17186         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
17187         _AC_COMPUTE_INT.
17188         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17189         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
17190         _AC_COMPUTE_INT.
17191         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17192         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
17193         _AC_COMPUTE_INT.
17194         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17195
17196 2006-11-28  Jim Meyering  <jim@meyering.net>
17197
17198         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
17199         warning from "gcc -Wshadow" about shadowing the builtin.
17200
17201 2006-11-27  Bruno Haible  <bruno@clisp.org>
17202
17203         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
17204         _AC_COMPUTE_INT.
17205         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17206
17207 2006-11-27  Bruno Haible  <bruno@clisp.org>
17208             Paul Eggert  <eggert@cs.ucla.edu>
17209
17210         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
17211
17212 2006-11-26  Bruno Haible  <bruno@clisp.org>
17213
17214         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
17215         noinst_LTLIBRARIES.
17216
17217 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
17218             Bruno Haible  <bruno@clisp.org>
17219
17220         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
17221         if compiling with "gcc -ansi".
17222
17223 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
17224
17225         Fix some incompatibilities with gcc -ansi -pedantic.
17226         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
17227         if compiling pedantically with GCC, unless it's C99 or later.
17228         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
17229         it mishandles gcc -ansi -pedantic as well.
17230         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
17231         if gcc -pedantic.
17232         * lib/regexec.c (check_node_accept_bytes): Don't use auto
17233         initializers for struct if -pedantic, unless it's C99 or later.
17234
17235 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
17236
17237         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
17238         Don't close an fd more than once. Identical atimes indicate
17239         success, not failure.
17240
17241 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
17242
17243         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
17244
17245 2006-11-23  Jim Meyering  <jim@meyering.net>
17246
17247         * build-aux/announce-gen: New file.  From coreutils.
17248
17249 2006-11-22  Jim Meyering  <jim@meyering.net>
17250
17251         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
17252         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
17253         (fts_read): Use a temporary to narrow the overused st_size member
17254         before using it in a switch statement.  Reported by Matthew Woehlke.
17255
17256         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
17257         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
17258
17259 2006-11-20  Bruno Haible  <bruno@clisp.org>
17260
17261         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
17262         changequote instead of pairs of brackets.
17263         Reported by Andreas Schwab <schwab@suse.de>.
17264
17265 2006-11-21  Jim Meyering  <jim@meyering.net>
17266
17267         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
17268         so as to remain compatible with older compilers.
17269         Patch from Michael Deutschmann.
17270
17271 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
17272
17273         * MODULES.html.sh (File system functions): Add openat.
17274
17275         * lib/openat.h (rpl_fstatat): New macro, if
17276         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
17277         (fstatat): Define to rpl_fstatat under the same conditions,
17278         unless COMPILING_FSTATAT.
17279         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
17280         seems to have the bug.
17281         * lib/fstatat.c: New file.
17282         * modules/openat (Files): Add it.
17283
17284 2006-11-20  Bruno Haible  <bruno@clisp.org>
17285
17286         * Makefile: New file.
17287
17288 2006-11-20  Jim Meyering  <jim@meyering.net>
17289
17290         The beginnings of syntax-related checks for gnulib.
17291         * lib/Makefile: New file.
17292         * lib/t-idcache: New script.  Ensure that the two halves of
17293         idcache.c stay in sync.
17294
17295         * lib/idcache.c: Adjust comments in user- and group- portions to
17296         be more accurate, and to be consistent with one another.
17297
17298 2006-11-20  Jim Meyering  <jim@meyering.net>
17299
17300         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
17301         continue using the flexible array member (thus, this module performs
17302         half as many malloc calls), with the addition that...
17303         (getgroup, getuser): Consistently record a non-match via an empty
17304         "name" string, and map an empty string match to a NULL return value.
17305         * modules/idcache (Depends-on): Re-add flexmember.
17306
17307         * lib/idcache.c (getuser): Remove all uses of the register keyword.
17308         (getuidbyname, getgroup, getgidbyname): Likewise.
17309
17310         Use cleaner syntax: NULL rather than 0.
17311         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
17312
17313 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
17314
17315         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
17316         It mishandled the case where the group was missing.
17317         Problem reported by Greg Schafer.
17318         * modules/idcache: Likewise.
17319
17320 2006-11-18  Jim Meyering  <jim@meyering.net>
17321
17322         * check-module (%exempt_header): Add exception for some
17323         conditionally-included headers.
17324
17325         * modules/i-ring (Depends-on): Add verify.
17326         (License): Change to LGPL.
17327
17328 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
17329
17330         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
17331         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
17332         and inttostr.h.  Use snprintf rather than uinttostr, so that
17333         LGPLed code doesn't depend on GPLed.
17334
17335 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17336
17337         * modules/inline (License): Change from GPL to LGPL.
17338
17339 2006-11-17  Jim Meyering  <jim@meyering.net>
17340
17341         * modules/d-type (License): Switch to LGPL.
17342
17343 2006-11-15  Bruno Haible  <bruno@clisp.org>
17344
17345         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
17346
17347 2006-11-15  Eric Blake  <ebb9@byu.net>
17348
17349         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
17350         the module dependency.
17351
17352 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17353             Bruno Haible  <bruno@clisp.org>
17354
17355         * gnulib-tool (func_create_testdir): Add license consistency check.
17356
17357 2006-11-15  Eric Blake  <ebb9@byu.net>
17358
17359         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
17360         random "(cached)" in configure output.
17361
17362 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17363
17364         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
17365         test for conforming inttypes.h is both announced and cached.
17366
17367         * MODULES.html.sh (seen_modules, seen_files): New variables.
17368         (func_module): Rewrite to use a few less gnulib-tool and sed
17369         invocations.  Avoid a couple of quadratic algorithms for ...
17370         (missed_modules, missed_files): ... these, with ...
17371         (func_append, func_tmpdir): ... these new functions, from
17372         gnulib-tool.  Analogously, install traps for cleanup.
17373
17374         * tests/test-gc.c (main): Remove unused variables.
17375         * tests/test-read-file.c: Include stdlib.h, for 'free'.
17376
17377 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
17378
17379         * modules/inttostr (License): Change to LGPL.
17380
17381 2006-11-14  Eric Blake  <ebb9@byu.net>
17382
17383         * modules/tempname (License): Change to LGPL.
17384
17385 2006-11-14  Eric Blake  <ebb9@byu.net>
17386
17387         * doc/functions.texi (Function Portability): *printf functions on
17388         Cygwin now understand all POSIX size specifiers.
17389
17390 2006-11-14  Bruno Haible  <bruno@clisp.org>
17391
17392         * modules/c-ctype (License): Change to LGPL.
17393
17394 2006-11-12  Bruno Haible  <bruno@clisp.org>
17395
17396         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17397         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
17398         for GNOME libraries, for which the include files are installed in
17399         subdirectories of $prefix/include.
17400
17401 2006-11-12  Bruno Haible  <bruno@clisp.org>
17402
17403         * m4/lib-link.m4: Require at least autoconf-2.54.
17404         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
17405         name to underscores for the --with option.
17406
17407 2006-11-13  Bruno Haible  <bruno@clisp.org>
17408
17409         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
17410         the tests directory.
17411         Reported by Ralf Wildenhues.
17412
17413 2006-11-13  Bruno Haible  <bruno@clisp.org>
17414
17415         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
17416         (func_emit_initmacro_end): Undo the override here.
17417         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
17418         Works around the famous automake error in coreutils.
17419
17420 2006-11-13  Eric Blake  <ebb9@byu.net>
17421
17422         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
17423         element, not its node.
17424
17425 2006-11-12  Bruno Haible  <bruno@clisp.org>
17426
17427         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
17428         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
17429
17430 2006-11-12  Bruno Haible  <bruno@clisp.org>
17431
17432         * gnulib-tool: New option --local-symlink.
17433         (func_usage): Document it.
17434         (lsymbolic): New variable.
17435         (func_import, func_create_testdir): If --symlink was not specified,
17436         test whether --local-symlink was specified and the file comes from
17437         the local_gnulib_dir.
17438
17439 2006-11-12  Bruno Haible  <bruno@clisp.org>
17440
17441         * gnulib-tool (func_ln): New function.
17442         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
17443
17444 2006-11-12  Bruno Haible  <bruno@clisp.org>
17445
17446         Finish support for source files in subdirectories.
17447         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
17448         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
17449         AUTOMAKE_OPTIONS.
17450         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
17451
17452 2006-11-12  Bruno Haible  <bruno@clisp.org>
17453
17454         * gnulib-tool (func_get_automake_snippet): Synthesize also an
17455         EXTRA_lib_SOURCES augmentation.
17456         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
17457
17458 2006-11-12  Jim Meyering  <jim@meyering.net>
17459
17460         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
17461         file descriptors.  This also averts a failure on systems with
17462         native openat support when a traversed directory lacks "x" access.
17463         * lib/fts_.h: Include "i-ring.h"
17464         (struct FTS) [fts_fd_ring]: New member.
17465         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
17466         (FCHDIR): Add parentheses.
17467         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
17468         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
17469         When descending, rather than simply closing the previous
17470         fts_cwd_fd value, push that file descriptor onto the ring.
17471         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
17472         (fts_open): Initialize the new fd_ring member.
17473         (fts_close): Clear the ring.
17474         (fts_safe_changedir): When possible, use our new fd_ring to skip
17475         the diropen and fstat and dev/ino comparison that would normally
17476         accompany a virtual `chdir ("..")'.
17477
17478         * modules/fts (Depends-on): Add i-ring.
17479         * modules/i-ring: New module.
17480         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
17481         * m4/i-ring.m4: New file.
17482
17483 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17484
17485         * gnulib-tool (func_create_testdir): Fix replacement of
17486         `build-aux' in configure.ac.  Run autotools in gltests
17487         subdirectory.
17488         (func_create_testdir, func_create_megatestdir, test): There is
17489         no need for '--force' in most autotool invocations in a new
17490         tree.  Actually fail the whole test if any of the tools, or the
17491         configure or make stages fail.
17492
17493         Sync from Automake.
17494         * build-aux/gnupload: Revert last change.  Add pointer to upload
17495         instructions of the GNU Maintenance Instructions.
17496         Suggestion by Karl Berry.
17497
17498 2006-11-10  Jim Meyering  <jim@meyering.net>
17499
17500         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
17501
17502 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
17503
17504         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
17505         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
17506         (bind_textdomain_codeset) [! ENABLE_NLS]:
17507         Evaluate all the arguments.  That way, callers get compatible behavior
17508         if the arguments have side effects.  Also, it avoids some GCC
17509         diagnostics in some cases; Joel E. Denny reported problems when Bison
17510         was configured with --enable-gcc-warnigs.
17511
17512 2006-11-10  Jim Meyering  <jim@meyering.net>
17513
17514         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
17515         relevant options in CFLAGS (like -O, -fno-inline) are taken into
17516         account.
17517
17518 2006-11-10  Jim Meyering  <jim@meyering.net>
17519
17520         * modules/inline: New file/module.
17521         * modules/xalloc (Files): Remove m4/inline.m4.
17522         (Depends-on): Add inline, instead.
17523         * modules/oset: Likewise.
17524         * modules/list: Likewise.
17525
17526 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
17527
17528         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
17529         Problem reported by Matthew Woehlke.
17530
17531 2006-11-09  Bruno Haible  <bruno@clisp.org>
17532
17533         * lib/tempname.c (gen_tempname): Remove variant that invokes
17534         __gen_tempname.
17535         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
17536         __gen_tempname.
17537
17538 2006-11-08  Bruno Haible  <bruno@clisp.org>
17539
17540         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
17541         to 'yes' instead of 'cross-compiling'.
17542
17543 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
17544
17545         * lib/quotearg.h (quotearg_free): New decl.
17546         * lib/quotearg.c (quotearg_free): New function.
17547         (slot0, nslots, slotvec0, slotvec):
17548         Now file-scope so that quotearg_free can get at them.
17549
17550 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17551
17552         Sync from Automake.
17553         * build-aux/gnupload: Add missing 'gnu' to example URL.
17554         Report by Karl Berry.
17555
17556 2006-11-08  Bruno Haible  <bruno@clisp.org>
17557
17558         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
17559         Suggested by Paul Eggert.
17560
17561 2006-11-08  Jim Meyering  <jim@meyering.net>
17562
17563         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
17564         It's already included if !_LIBC.
17565         (fts_safe_changedir): Add a comment.
17566
17567 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17568
17569         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
17570         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
17571         Matthew Woehlke.
17572
17573         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
17574         definitions up, to avoid colliding with change below.
17575         (static_inline) [HAVE_INLINE]: New macro.
17576         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
17577         Provide extern decls when !HAVE_INLINE.  Do not define unless
17578         static_inline is defined, either by us or by xmalloc.c.  Use
17579         static_inline rather than static inline.
17580         (XCALLOC): Optimize sizeof(T) = 1 case.
17581         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
17582
17583 2006-11-07  Bruno Haible  <bruno@clisp.org>
17584
17585         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
17586         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
17587         AC_C_INLINE.
17588         * modules/xalloc (Files): Add m4/inline.m4.
17589
17590 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17591
17592         * README: Fix typo.
17593         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
17594         (Miscellanous Notes): ...from this.
17595
17596 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17597
17598         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
17599         Mention that offsetof should be used instead of sizeof.
17600         From Bruno Haible.
17601
17602 2006-11-07  Bruno Haible  <bruno@clisp.org>
17603
17604         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
17605
17606 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17607
17608         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17609         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
17610         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17611         (gl_tree_add_before, gl_tree_add_after):
17612         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
17613         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
17614         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17615         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
17616         (gl_linked_add_after, gl_linked_add_at): Likewise.
17617         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
17618         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17619         (gl_tree_add_before, gl_tree_add_after): Likewise.
17620         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
17621         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
17622         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17623
17624 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17625
17626         * lib/gl_oset.h: Use C comment style, not C++ comment style.
17627
17628 2006-11-06  Bruno Haible  <bruno@clisp.org>
17629
17630         * m4/inline.m4: New file.
17631         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
17632         * modules/list (Files): Add m4/inline.m4.
17633         * modules/oset (Files): Likewise.
17634
17635 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17636
17637         * lib/idcache.c: Include <stddef.h>, for offsetof.
17638         (struct userid.name): Change from char * to a flexible array member.
17639         All uses changed.
17640         * modules/idcache (Depends-on): Add flexmember.
17641
17642         * MODULES.html.sh (Core language properties): New module flexmember.
17643         * modules/flexmember, m4/flexmember.m4: New files.
17644
17645         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
17646         inline functions that are identical with the old xnmalloc_inline,
17647         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
17648         that we can avoid some unnecessary integer multiplications and
17649         divisions in the common case where the element size is known at
17650         compile time.
17651         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
17652         needed.
17653         (xnboundedmalloc): Remove.
17654         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
17655         arguments, for consistency with rest of this header.
17656         (xcharalloc): Rewrite using XNMALLOC.
17657         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
17658         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
17659         versions have been moved to lib/xalloc.h and renamed to be the
17660         non-*_inline versions.
17661         (xmalloc, xrealloc): Implement without reference to the xnmalloc
17662         and xnrealloc functions, since those functions are now inline and
17663         now call us.
17664         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
17665         renaming described above.
17666         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
17667         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
17668         captures the dependency in AC_C_INLINE.
17669
17670         New module canonicalize-lgpl, proposed by Charles Wilson in
17671         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
17672         with a few small changes afterwards.
17673         * MODULES.html.sh (File system functions): New module
17674         canonicalize-lgpl.
17675         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
17676         and canonicalize_file_name.
17677         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
17678         * modules/canonicalize-lgpl: New files.
17679
17680 2006-11-05  Bruno Haible  <bruno@clisp.org>
17681
17682         * gnulib-tool (func_import, func_create_testdir): Create directories
17683         also for files in subdirectories of lib/.
17684
17685 2006-11-05  Bruno Haible  <bruno@clisp.org>
17686
17687         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
17688         ANSI C compliant.
17689
17690 2006-11-03  Bruno Haible  <bruno@clisp.org>
17691
17692         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17693         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
17694         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
17695         (xnboundedmalloc): New inline function.
17696         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
17697         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
17698         xmalloc.
17699         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
17700         xmalloc.
17701         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
17702         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
17703         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
17704         xmalloc.
17705         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17706         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
17707         xmalloc.
17708         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
17709         gl_tree_add_after): Use XMALLOC instead of xmalloc.
17710         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
17711         xmalloc.
17712         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17713         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
17714         gl_tree_add_after): Use XMALLOC instead of xmalloc.
17715         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
17716         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
17717         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
17718         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
17719
17720 2006-11-03  Bruno Haible  <bruno@clisp.org>
17721
17722         * lib/c-ctype.h [C++]: Define functions without name mangling.
17723         * lib/fwriteerror.h [C++]: Likewise.
17724         * lib/gcd.h [C++]: Likewise.
17725         * lib/linebreak.h [C++]: Likewise.
17726
17727 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17728
17729         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
17730         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
17731         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
17732         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
17733         Check for functions and headers just once.
17734         Check for declaration of canonicalize_file_name.
17735         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
17736
17737 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
17738
17739         * gnulib-tool (func_import): Fix typo in actioncmd.
17740
17741 2006-11-02  Bruno Haible  <bruno@clisp.org>
17742
17743         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
17744         newline sequence in the Makefile.am snippet as a space, like "make"
17745         does.
17746         Reported by Roger Persson <perrog@gmail.com>.
17747
17748 2006-11-01  Bruno Haible  <bruno@clisp.org>
17749
17750         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
17751         already declared in <string.h>.
17752         * lib/strcase.h (strncasecmp): Don't declare it if yes.
17753
17754 2006-11-01  Bruno Haible  <bruno@clisp.org>
17755
17756         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
17757         * lib/strcase.h: Include <string.h>.
17758         (strcasecmp): Define to rpl_strcasecmp here.
17759
17760 2006-11-01  Bruno Haible  <bruno@clisp.org>
17761
17762         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
17763
17764 2006-11-01  Eric Blake  <ebb9@byu.net>
17765
17766         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
17767
17768         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
17769
17770 2006-10-29  Bruno Haible  <bruno@clisp.org>
17771
17772         Make it compile in C++ mode.
17773         * lib/full-write.c (full_rw): Add a cast.
17774
17775 2006-11-01  Bruno Haible  <bruno@clisp.org>
17776
17777         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
17778         be POSIX compliant.
17779         Reported by Roger Persson <perrog@gmail.com>.
17780
17781 2006-11-01  Eric Blake  <ebb9@byu.net>
17782
17783         * lib/getopt_.h: Fix comments.
17784
17785 2006-10-31  Eric Blake  <ebb9@byu.net>
17786
17787         * modules/tmpdir (Depends-on): Add sys_stat.
17788         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
17789         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
17790         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
17791         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
17792         tempname.
17793
17794 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
17795
17796         Avoid some C++ diagnostics reported by Bruno Haible.
17797         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
17798         xmalloc.
17799         (quotearg_alloc): Use xcharalloc rather than xmalloc.
17800         (struct slotvec): Move to top level.
17801         (quotearg_n_options): Rewrite to avoid xmalloc.
17802         * lib/xalloc.h (xcharalloc): New function.
17803         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
17804         [defined __cplusplus]: Add function template that provides result
17805         type propagation.  This part of the change is from Bruno Haible.
17806
17807 2006-10-29  Bruno Haible  <bruno@clisp.org>
17808
17809         Make it compile in C++ mode.
17810         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
17811         * lib/strnlen1.c (strnlen1): Cast memchr result.
17812         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
17813         * lib/clean-temp.c (string_equals, string_hash): Add casts.
17814         (create_temp_dir): Rename local variable 'template'.
17815         (compile_csharp_using_sscli): Add cast.
17816         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
17817         * lib/findprog.c (find_in_path): Likewise.
17818         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
17819         * lib/wait-process.c (register_slave_subprocess): Likewise.
17820
17821 2006-10-22  Bruno Haible  <bruno@clisp.org>
17822
17823         * modules/tsearch: New file.
17824         * lib/tsearch.h: New file.
17825         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
17826         * m4/tsearch.m4: New file.
17827         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
17828
17829 2006-10-29  Eric Blake  <ebb9@byu.net>
17830
17831         * lib/arcfour.c: Assume config.h.
17832         * lib/arctwo.c: Likewise.
17833         * lib/base64.c: Likewise.
17834         * lib/check-version.c: Likewise.
17835         * lib/crc.c: Likewise.
17836         * lib/des.c: Likewise.
17837         * lib/gc-gnulib.c: Likewise.
17838         * lib/gc-libgcrypt.c: Likewise.
17839         * lib/gc-pbkdf2-sha1.c: Likewise.
17840         * lib/getaddrinfo.c: Likewise.
17841         * lib/getdelim.c: Likewise.
17842         * lib/getline.c: Likewise.
17843         * lib/hmac-md5.c: Likewise.
17844         * lib/hmac-sha1.c: Likewise.
17845         * lib/iconvme.c: Likewise.
17846         * lib/md2.c: Likewise.
17847         * lib/md4.c: Likewise.
17848         * lib/memxor.c: Likewise.
17849         * lib/read-file.c: Likewise.
17850         * lib/readline.c: Likewise.
17851         * lib/rijndael-alg-fst.c: Likewise.
17852         * lib/rijndael-api-fst.c: Likewise.
17853         * lib/xgetdomainname.c: Likewise.
17854
17855 2006-10-28  Eric Blake  <ebb9@byu.net>
17856
17857         * lib/xstrndup.c: Assume config.h.
17858
17859 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
17860
17861         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
17862         stat-macros.h is now for our own macros, whereas stat_h is for
17863         macros in the <sys/stat.h> name space.
17864         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
17865         (STAT_MACROS_H): Remove.
17866         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
17867         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
17868         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
17869         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
17870         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
17871         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
17872         Move these macros to ...
17873         * lib/stat_.h: here.  Don't include stat-macros.h.
17874         * lib/canonicalize.c: Don't include stat-macros.h.
17875         * lib/chown.c: Likewise.
17876         * lib/euidaccess.c: Likewise.
17877         * lib/file-type.c: Likewise.
17878         * lib/filemode.c: Likewise.
17879         * lib/glob.c: Likewise.
17880         * lib/isapipe.c: Likewise.
17881         * lib/lchown.c: Likewise.
17882         * lib/lstat.c: Likewise.
17883         * lib/mkdir-p.c: Likewise.
17884         * lib/rmdir.c: Likewise.
17885         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
17886         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
17887         unless mkdir isn't declared, to speed up 'configure'.
17888         Always create sys/stat.h, since it's unlikely any real sys/stat.h
17889         would define all the S_* symbols.
17890         * modules/canonicalize (Depends-on):
17891         Depend on sys_stat, not stat-macros.
17892         * modules/chown: Likewise.
17893         * modules/euidaccess: Likewise.
17894         * modules/filemode: Likewise.
17895         * modules/file-type: Likewise.
17896         * modules/glob: Likewise.
17897         * modules/isapipe: Likewise.
17898         * modules/lchown: Likewise.
17899         * modules/lstat: Likewise.
17900         * modules/mkancesdirs: Likewise.
17901         * modules/rmdir: Likewise.
17902         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
17903         * modules/modechange: Likewise.
17904         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
17905         (configure.ac): Remove gl_STAT_MACROS.
17906         * modules/sys_stat (Depends-on): Remove stat-macros.
17907
17908 2006-10-27  Bruno Haible  <bruno@clisp.org>
17909
17910         * m4/signed.m4: Remove file.
17911         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
17912         invocation.
17913         * modules/vasnprintf (Files): Remove m4/signed.m4.
17914
17915 2006-10-27  Bruno Haible  <bruno@clisp.org>
17916
17917         Update to GNU gettext 0.16.
17918         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
17919         m4/inttypes-h.m4, m4/signed.m4.
17920         * m4/gettext.m4: Update to GNU gettext 0.16.
17921         * m4/intl.m4: New file, from GNU gettext.
17922         * m4/intldir.m4: New file, from GNU gettext.
17923         * config/srclist.txt: Update
17924
17925 2006-10-27  Eric Blake  <ebb9@byu.net>
17926
17927         * MODULES.html.sh: Document tempname.
17928         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
17929         dependencies.
17930         (Files): Move lib/tempname.c...
17931         * modules/tempname: ...to this new module.
17932         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
17933         (gl_PREREQ_TEMPNAME): Move...
17934         * m4/tempname.m4: ...to this new file.
17935         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
17936         * modules/sys_stat (Depends-on): Add stat-macros.
17937         * lib/stat_.h (includes): Pick up stat macros.
17938         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
17939         if stat macros are broken.
17940         * lib/tempname.c (includes): No need to include "stat-macros.h".
17941         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
17942         (direxists, __path_search) [!_LIBC]: Don't compile these in
17943         gnulib; the tmpdir module covers that.
17944         * lib/tempname.h: New file.
17945
17946 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17947
17948         * COPYING: Explain how gnulib-tool converts licence headers.
17949         Almost all wording by Eric Blake.
17950
17951 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17952
17953         * lib/mbchar.h (is_basic_table): Make read-only.
17954         * lib/mbchar.c (is_basic_table): Likewise.
17955         Reported by John Darrington.
17956
17957 2006-10-25  Bruno Haible  <bruno@clisp.org>
17958
17959         * lib/progname.h (set_program_name): Undefine before defining.
17960
17961 2006-10-25  Bruno Haible  <bruno@clisp.org>
17962
17963         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
17964         false for non-gcc C++ compilers.
17965         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17966
17967 2006-10-24  Bruno Haible  <bruno@clisp.org>
17968
17969         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
17970         iconv implementations like Irix iconv.
17971
17972 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17973
17974         * modules/vararrays: New file.
17975         * m4/vararrays.m4: New file, taken from diffutils.
17976         * MODULES.html.sh: New module vararrays.
17977
17978 2006-10-24  Karl Berry  <karl@gnu.org>
17979
17980         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
17981         Don't call GNU Unix.
17982
17983 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17984
17985         * users.txt: Add Libtool.
17986
17987         Sync from Libtool:
17988
17989         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
17990
17991         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
17992         to gnulib's policy of including config.h unconditionally.
17993
17994 2006-10-24  Bruno Haible  <bruno@clisp.org>
17995
17996         * modules/wcwidth (Files): Add m4/wint_t.m4.
17997         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
17998         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
17999
18000 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
18001
18002         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
18003         to pacify GCC with some -W flags enabled.  Problem reported by
18004         Bruno Haible.
18005
18006 2006-10-24  Jim Meyering  <jim@meyering.net>
18007
18008         * MODULES.html.sh: Remove uinttostr.  It's not a module.
18009         Reported by Karl Berry.
18010
18011 2006-10-23  Bruno Haible  <bruno@clisp.org>
18012
18013         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
18014
18015 2006-10-24  Bruno Haible  <bruno@clisp.org>
18016
18017         * lib/gl_list.h: Use C comment style, not C++ comment style.
18018
18019 2006-10-23  Eric Blake  <ebb9@byu.net>
18020
18021         * lib/getaddrinfo.c (includes): Add missing include.
18022
18023 2006-10-23  Bruno Haible  <bruno@clisp.org>
18024             Paul Eggert  <eggert@cs.ucla.edu>
18025
18026         Ability to rename obstack_free.
18027         * lib/obstack.h (__obstack_free): New macro. Declare instead of
18028         obstack_free.
18029         (obstack_free): Invoke the __obstack_free macro.
18030         * lib/obstack.c (obstack_free): Use __obstack_free macro.
18031
18032 2006-10-23  Bruno Haible  <bruno@clisp.org>
18033             Paul Eggert  <eggert@cs.ucla.edu>
18034
18035         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
18036         __argc, __argv from the declaration. (They are defined as macros on
18037         mingw.)
18038
18039 2006-10-22  Bruno Haible  <bruno@clisp.org>
18040
18041         * doc/gnulib-intro.texi: New file.
18042         * doc/gnulib.texi: Include it.
18043
18044 2006-10-21  Bruno Haible  <bruno@clisp.org>
18045
18046         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
18047         "Introduction", "Miscellanous Notes", "Particular Modules".
18048
18049 2006-10-21  Bruno Haible  <bruno@clisp.org>
18050
18051         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18052         Change mostlyclean-local rule to avoid sh syntax error from bash
18053         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
18054
18055 2006-10-23  Jim Meyering  <jim@meyering.net>
18056
18057         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
18058         in place of snprintf.
18059
18060         * modules/inttostr (Files): Add lib/uinttostr.c.
18061         * lib/uinttostr.c (inttostr): New file/function.
18062         * lib/inttostr.h (uinttostr): Declare.
18063         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
18064         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
18065         Add uinttostr.
18066         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
18067
18068 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
18069
18070         * lib/canonicalize.c (ELOOP): Define if not already defined.
18071         Problem reported by Bruno Haible in
18072         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
18073
18074 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
18075
18076         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
18077         Problem reported by Perry Smith and Ville Laurikari.
18078
18079         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
18080         uses.
18081
18082 2006-10-19  Bruno Haible  <bruno@clisp.org>
18083
18084         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
18085         for mingw.
18086
18087 2006-10-19  Bruno Haible  <bruno@clisp.org>
18088
18089         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
18090         Needed for mingw.
18091
18092 2006-10-19  Bruno Haible  <bruno@clisp.org>
18093
18094         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
18095
18096 2006-10-19  Bruno Haible  <bruno@clisp.org>
18097
18098         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
18099         it.
18100
18101 2006-10-19  Bruno Haible  <bruno@clisp.org>
18102
18103         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
18104         invocation.
18105
18106 2006-10-19  Bruno Haible  <bruno@clisp.org>
18107
18108         * gnulib-tool (func_create_testdir): Don't include ftruncate and
18109         mountlist by default.
18110
18111 2006-10-16  Bruno Haible  <bruno@clisp.org>
18112
18113         * lib/c-strstr.c: Include c-strstr.h.
18114
18115 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
18116
18117         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
18118         in a slash.
18119
18120 2006-10-18  Bruno Haible  <bruno@clisp.org>
18121
18122         * lib/lock.h [C++]: Wrap definitions in extern "C".
18123
18124 2006-10-18  Bruno Haible  <bruno@clisp.org>
18125
18126         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
18127         gl_LIBOBJS list.
18128
18129 2006-10-18  Bruno Haible  <bruno@clisp.org>
18130
18131         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
18132
18133 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
18134
18135         * lib/xstrtol.h: Include gettext.h.
18136         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
18137         Problem reported by Eric Blake.
18138         * modules/xstrtol (Depends-on): Add gettext-h.
18139
18140 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
18141
18142         * lib/strftime.c (advance): New macro.
18143         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
18144         incomplete type, so you can't add 0 to it.  Problem and patch
18145         reported by Eelco Dolstra for dietlibc.
18146
18147 2006-10-18  Jim Meyering  <jim@meyering.net>
18148
18149         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
18150         type for a local, and rename it: s/up/user_proc/.
18151
18152 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
18153
18154         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
18155         READ_UTMP_USER_PROCESS.
18156         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
18157
18158 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
18159
18160         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
18161         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
18162
18163 2006-10-17  Eric Blake  <ebb9@byu.net>
18164
18165         * lib/sigprocmask.c (sigprocmask): Fix typo.
18166
18167         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
18168
18169         * modules/clean-temp (Makefile.am): Don't add to make output...
18170         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
18171         config.h.
18172
18173 2006-10-17  Bruno Haible  <bruno@clisp.org>
18174
18175         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
18176         differently if DEFAULT_TEXT_DOMAIN is set.
18177
18178 2006-10-16  Bruno Haible  <bruno@clisp.org>
18179
18180         * lib/clean-temp.c: Include fwriteerror.h.
18181
18182 2006-10-16  Bruno Haible  <bruno@clisp.org>
18183
18184         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
18185
18186 2006-10-16  Bruno Haible  <bruno@clisp.org>
18187
18188         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
18189         * lib/sigprocmask.h: Include <sys/types.h>.
18190         (sigset_t): Use the system's definition if present.
18191
18192 2006-10-17  Eric Blake  <ebb9@byu.net>
18193
18194         * lib/xvasprintf.c (includes): Assume config.h.
18195         * lib/xasprintf.c (includes): Likewise.
18196
18197 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18198
18199         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
18200         at least as wide as intmax_t.
18201
18202 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
18203
18204         (Imported from Automake.)
18205         * build-aux/gnupload: Update to version 1.1 of directive file.
18206
18207 2006-10-16  Eric Blake  <ebb9@byu.net>
18208
18209         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
18210         match Automake 1.10a.
18211
18212 2006-10-14  Bruno Haible  <bruno@clisp.org>
18213
18214         * modules/sigprocmask: New file.
18215         * lib/sigprocmask.h: New file.
18216         * lib/sigprocmask.c: New file.
18217         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
18218         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
18219         request sigprocmask.o.
18220         (gl_PREREQ_SIGPROCMASK): New macro.
18221         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
18222         (Depends-on): Add sigprocmask.
18223         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
18224         gt_SIGNALBLOCKING. Test for 'raise' only once.
18225         * lib/fatal-signal.c: Include sigprocmask.h.
18226         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
18227         unblock_fatal_signals): Define always.
18228         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18229         sigprocmask.
18230
18231 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18232
18233         Sync from Automake.
18234         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
18235         which incorrectly sets the mode of an existing destination
18236         directory.  In some cases the unpatched install-sh could do the
18237         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
18238         system.  We hope this is rare in practice, but it's clearly worth
18239         fixing.  Problem reported by Alex Unleashed in
18240         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
18241         Also, don't bother to check for -m bugs unless we're using -m;
18242         suggested by Stepan Kasal.
18243
18244 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18245
18246         Sync from Automake.
18247         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
18248         `-c' flag, so they appear at the same position as in %FASTDEP%
18249         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
18250         which ignores unknown options only after the first non-option.
18251         Bug report against M4 by Nelson H. F. Beebe.
18252
18253 2006-10-13  Jim Meyering  <jim@meyering.net>
18254
18255         Fix a bug in yesterday's change.
18256         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
18257         p->fts_statp->st_dev would be used uninitialized.
18258         Ensures that we always call fts_stat on the very first entry.
18259         Miklos Szeredi reported that find -xdev stopped working.
18260
18261 2006-10-12  Bruno Haible  <bruno@clisp.org>
18262
18263         * gnulib-tool (func_get_automake_snippet): Append an automatically
18264         computed EXTRA_DIST augmentation.
18265         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
18266         * modules/alloca-opt (Makefile.am): Likewise.
18267         * modules/allocsa (Makefile.am): Likewise.
18268         * modules/arcfour (Makefile.am): Likewise.
18269         * modules/arctwo (Makefile.am): Likewise.
18270         * modules/argmatch (Makefile.am): Likewise.
18271         * modules/argz (Makefile.am): Likewise.
18272         * modules/atexit (Makefile.am): Likewise.
18273         * modules/backupfile (Makefile.am): Likewise.
18274         * modules/byteswap (Makefile.am): Likewise.
18275         * modules/c-strtod (Makefile.am): Likewise.
18276         * modules/c-strtold (Makefile.am): Likewise.
18277         * modules/calloc (Makefile.am): Likewise.
18278         * modules/canon-host (Makefile.am): Likewise.
18279         * modules/canonicalize (Makefile.am): Likewise.
18280         * modules/chdir-long (Makefile.am): Likewise.
18281         * modules/chdir-safer (Makefile.am): Likewise.
18282         * modules/check-version (Makefile.am): Likewise.
18283         * modules/chown (Makefile.am): Likewise.
18284         * modules/cloexec (Makefile.am): Likewise.
18285         * modules/close-stream (Makefile.am): Likewise.
18286         * modules/closeout (Makefile.am): Likewise.
18287         * modules/crc (Makefile.am): Likewise.
18288         * modules/csharpexec (Makefile.am): Likewise.
18289         * modules/cycle-check (Makefile.am): Likewise.
18290         * modules/des (Makefile.am): Likewise.
18291         * modules/dev-ino (Makefile.am): Likewise.
18292         * modules/dirfd (Makefile.am): Likewise.
18293         * modules/dirname (Makefile.am): Likewise.
18294         * modules/dup2 (Makefile.am): Likewise.
18295         * modules/eealloc (Makefile.am): Likewise.
18296         * modules/error (Makefile.am): Likewise.
18297         * modules/euidaccess (Makefile.am): Likewise.
18298         * modules/exclude (Makefile.am): Likewise.
18299         * modules/exitfail (Makefile.am): Likewise.
18300         * modules/fcntl-safer (Makefile.am): Likewise.
18301         * modules/fcntl (Makefile.am): Likewise.
18302         * modules/file-type (Makefile.am): Likewise.
18303         * modules/fileblocks (Makefile.am): Likewise.
18304         * modules/filemode (Makefile.am): Likewise.
18305         * modules/filenamecat (Makefile.am): Likewise.
18306         * modules/fnmatch (Makefile.am): Likewise.
18307         * modules/fopen-safer (Makefile.am): Likewise.
18308         * modules/fpending (Makefile.am): Likewise.
18309         * modules/fprintftime (Makefile.am): Likewise.
18310         * modules/free (Makefile.am): Likewise.
18311         * modules/fsusage (Makefile.am): Likewise.
18312         * modules/ftruncate (Makefile.am): Likewise.
18313         * modules/fts (Makefile.am): Likewise.
18314         * modules/gc-arcfour (Makefile.am): Likewise.
18315         * modules/gc-des (Makefile.am): Likewise.
18316         * modules/gc-hmac-md5 (Makefile.am): Likewise.
18317         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
18318         * modules/gc-md4 (Makefile.am): Likewise.
18319         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
18320         * modules/gc-sha1 (Makefile.am): Likewise.
18321         * modules/gc (Makefile.am): Likewise.
18322         * modules/getaddrinfo (Makefile.am): Likewise.
18323         * modules/getcwd (Makefile.am): Likewise.
18324         * modules/getdelim (Makefile.am): Likewise.
18325         * modules/getdomainname (Makefile.am): Likewise.
18326         * modules/getgroups (Makefile.am): Likewise.
18327         * modules/gethostname (Makefile.am): Likewise.
18328         * modules/gethrxtime (Makefile.am): Likewise.
18329         * modules/getline (Makefile.am): Likewise.
18330         * modules/getloadavg (Makefile.am): Likewise.
18331         * modules/getlogin_r (Makefile.am): Likewise.
18332         * modules/getndelim2 (Makefile.am): Likewise.
18333         * modules/getopt (Makefile.am): Likewise.
18334         * modules/getpagesize (Makefile.am): Likewise.
18335         * modules/getpass-gnu (Makefile.am): Likewise.
18336         * modules/getpass (Makefile.am): Likewise.
18337         * modules/getsubopt (Makefile.am): Likewise.
18338         * modules/gettime (Makefile.am): Likewise.
18339         * modules/gettimeofday (Makefile.am): Likewise.
18340         * modules/getugroups (Makefile.am): Likewise.
18341         * modules/getusershell (Makefile.am): Likewise.
18342         * modules/glob (Makefile.am): Likewise.
18343         * modules/group-member (Makefile.am): Likewise.
18344         * modules/hard-locale (Makefile.am): Likewise.
18345         * modules/hash (Makefile.am): Likewise.
18346         * modules/hmac-md5 (Makefile.am): Likewise.
18347         * modules/hmac-sha1 (Makefile.am): Likewise.
18348         * modules/human (Makefile.am): Likewise.
18349         * modules/idcache (Makefile.am): Likewise.
18350         * modules/imaxabs (Makefile.am): Likewise.
18351         * modules/imaxdiv (Makefile.am): Likewise.
18352         * modules/inet_ntop (Makefile.am): Likewise.
18353         * modules/inet_pton (Makefile.am): Likewise.
18354         * modules/intprops (Makefile.am): Likewise.
18355         * modules/inttostr (Makefile.am): Likewise.
18356         * modules/inttypes (Makefile.am): Likewise.
18357         * modules/isapipe (Makefile.am): Likewise.
18358         * modules/javaversion (Makefile.am): Likewise.
18359         * modules/lchmod (Makefile.am): Likewise.
18360         * modules/lchown (Makefile.am): Likewise.
18361         * modules/localcharset (Makefile.am): Likewise.
18362         * modules/long-options (Makefile.am): Likewise.
18363         * modules/lstat (Makefile.am): Likewise.
18364         * modules/malloc (Makefile.am): Likewise.
18365         * modules/mathl (Makefile.am): Likewise.
18366         * modules/mbchar (Makefile.am): Likewise.
18367         * modules/md2 (Makefile.am): Likewise.
18368         * modules/md4 (Makefile.am): Likewise.
18369         * modules/md5 (Makefile.am): Likewise.
18370         * modules/memcasecmp (Makefile.am): Likewise.
18371         * modules/memchr (Makefile.am): Likewise.
18372         * modules/memcmp (Makefile.am): Likewise.
18373         * modules/memcoll (Makefile.am): Likewise.
18374         * modules/memcpy (Makefile.am): Likewise.
18375         * modules/memmem (Makefile.am): Likewise.
18376         * modules/memmove (Makefile.am): Likewise.
18377         * modules/mempcpy (Makefile.am): Likewise.
18378         * modules/memrchr (Makefile.am): Likewise.
18379         * modules/memset (Makefile.am): Likewise.
18380         * modules/memxor (Makefile.am): Likewise.
18381         * modules/mkancesdirs (Makefile.am): Likewise.
18382         * modules/mkdir-p (Makefile.am): Likewise.
18383         * modules/mkdir (Makefile.am): Likewise.
18384         * modules/mkdtemp (Makefile.am): Likewise.
18385         * modules/mkstemp (Makefile.am): Likewise.
18386         * modules/mktime (Makefile.am): Likewise.
18387         * modules/modechange (Makefile.am): Likewise.
18388         * modules/mountlist (Makefile.am): Likewise.
18389         * modules/nanosleep (Makefile.am): Likewise.
18390         * modules/obstack (Makefile.am): Likewise.
18391         * modules/openat (Makefile.am): Likewise.
18392         * modules/pagealign_alloc (Makefile.am): Likewise.
18393         * modules/pathmax (Makefile.am): Likewise.
18394         * modules/physmem (Makefile.am): Likewise.
18395         * modules/poll (Makefile.am): Likewise.
18396         * modules/posixtm (Makefile.am): Likewise.
18397         * modules/posixver (Makefile.am): Likewise.
18398         * modules/putenv (Makefile.am): Likewise.
18399         * modules/quote (Makefile.am): Likewise.
18400         * modules/quotearg (Makefile.am): Likewise.
18401         * modules/raise (Makefile.am): Likewise.
18402         * modules/read-file (Makefile.am): Likewise.
18403         * modules/readline (Makefile.am): Likewise.
18404         * modules/readlink (Makefile.am): Likewise.
18405         * modules/readtokens (Makefile.am): Likewise.
18406         * modules/readutmp (Makefile.am): Likewise.
18407         * modules/realloc (Makefile.am): Likewise.
18408         * modules/regex (Makefile.am): Likewise.
18409         * modules/rename-dest-slash (Makefile.am): Likewise.
18410         * modules/rename (Makefile.am): Likewise.
18411         * modules/rijndael (Makefile.am): Likewise.
18412         * modules/rmdir (Makefile.am): Likewise.
18413         * modules/rpmatch (Makefile.am): Likewise.
18414         * modules/safe-read (Makefile.am): Likewise.
18415         * modules/safe-write (Makefile.am): Likewise.
18416         * modules/same-inode (Makefile.am): Likewise.
18417         * modules/same (Makefile.am): Likewise.
18418         * modules/save-cwd (Makefile.am): Likewise.
18419         * modules/savedir (Makefile.am): Likewise.
18420         * modules/setenv (Makefile.am): Likewise.
18421         * modules/settime (Makefile.am): Likewise.
18422         * modules/sha1 (Makefile.am): Likewise.
18423         * modules/sig2str (Makefile.am): Likewise.
18424         * modules/snprintf (Makefile.am): Likewise.
18425         * modules/stat-macros (Makefile.am): Likewise.
18426         * modules/stat-time (Makefile.am): Likewise.
18427         * modules/stdbool (Makefile.am): Likewise.
18428         * modules/stdint (Makefile.am): Likewise.
18429         * modules/stdlib-safer (Makefile.am): Likewise.
18430         * modules/stpcpy (Makefile.am): Likewise.
18431         * modules/stpncpy (Makefile.am): Likewise.
18432         * modules/strcase (Makefile.am): Likewise.
18433         * modules/strcasestr (Makefile.am): Likewise.
18434         * modules/strchrnul (Makefile.am): Likewise.
18435         * modules/strcspn (Makefile.am): Likewise.
18436         * modules/strdup (Makefile.am): Likewise.
18437         * modules/strerror (Makefile.am): Likewise.
18438         * modules/strftime (Makefile.am): Likewise.
18439         * modules/strndup (Makefile.am): Likewise.
18440         * modules/strnlen (Makefile.am): Likewise.
18441         * modules/strpbrk (Makefile.am): Likewise.
18442         * modules/strsep (Makefile.am): Likewise.
18443         * modules/strstr (Makefile.am): Likewise.
18444         * modules/strtod (Makefile.am): Likewise.
18445         * modules/strtoimax (Makefile.am): Likewise.
18446         * modules/strtok_r (Makefile.am): Likewise.
18447         * modules/strtol (Makefile.am): Likewise.
18448         * modules/strtoll (Makefile.am): Likewise.
18449         * modules/strtoul (Makefile.am): Likewise.
18450         * modules/strtoull (Makefile.am): Likewise.
18451         * modules/strtoumax (Makefile.am): Likewise.
18452         * modules/strverscmp (Makefile.am): Likewise.
18453         * modules/sys_socket (Makefile.am): Likewise.
18454         * modules/sys_stat (Makefile.am): Likewise.
18455         * modules/sysexits (Makefile.am): Likewise.
18456         * modules/time_r (Makefile.am): Likewise.
18457         * modules/timegm (Makefile.am): Likewise.
18458         * modules/timespec (Makefile.am): Likewise.
18459         * modules/tmpfile-safer (Makefile.am): Likewise.
18460         * modules/trim (Makefile.am): Likewise.
18461         * modules/unistd-safer (Makefile.am): Likewise.
18462         * modules/unlinkdir (Makefile.am): Likewise.
18463         * modules/unlocked-io (Makefile.am): Likewise.
18464         * modules/userspec (Makefile.am): Likewise.
18465         * modules/utime (Makefile.am): Likewise.
18466         * modules/utimecmp (Makefile.am): Likewise.
18467         * modules/utimens (Makefile.am): Likewise.
18468         * modules/vasnprintf (Makefile.am): Likewise.
18469         * modules/vasprintf (Makefile.am): Likewise.
18470         * modules/vsnprintf (Makefile.am): Likewise.
18471         * modules/xalloc (Makefile.am): Likewise.
18472         * modules/xgetcwd (Makefile.am): Likewise.
18473         * modules/xnanosleep (Makefile.am): Likewise.
18474         * modules/xreadlink (Makefile.am): Likewise.
18475         * modules/xstrtod (Makefile.am): Likewise.
18476         * modules/xstrtol (Makefile.am): Likewise.
18477         * modules/xstrtold (Makefile.am): Likewise.
18478         * modules/yesno (Makefile.am): Likewise.
18479         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
18480
18481 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18482
18483         * modules/error (Makefile.am): Distribute files through
18484         EXTRA_DIST, not lib_SOURCES.
18485
18486 2006-10-12  Eric Blake  <ebb9@byu.net>
18487
18488         * modules/error (Makefile.am): Distribute files in /lib.
18489         * modules/obstack (Makefile.am): Likewise.
18490
18491 2006-10-12  Bruno Haible  <bruno@clisp.org>
18492
18493         * modules/acl (Makefile.am): Distribute all files in lib/ through
18494         EXTRA_DIST.
18495         * modules/arcfour (Makefile.am): Likewise.
18496         * modules/arctwo (Makefile.am): Likewise.
18497         * modules/argmatch (Makefile.am): Likewise.
18498         * modules/argz (Makefile.am): Likewise.
18499         * modules/atexit (Makefile.am): Likewise.
18500         * modules/backupfile (Makefile.am): Likewise.
18501         * modules/c-strtod (Makefile.am): Likewise.
18502         * modules/c-strtold (Makefile.am): Likewise.
18503         * modules/calloc (Makefile.am): Likewise.
18504         * modules/canon-host (Makefile.am): Likewise.
18505         * modules/canonicalize (Makefile.am): Likewise.
18506         * modules/chdir-long (Makefile.am): Likewise.
18507         * modules/chdir-safer (Makefile.am): Likewise.
18508         * modules/check-version (Makefile.am): Likewise.
18509         * modules/chown (Makefile.am): Likewise.
18510         * modules/cloexec (Makefile.am): Likewise.
18511         * modules/close-stream (Makefile.am): Likewise.
18512         * modules/closeout (Makefile.am): Likewise.
18513         * modules/crc (Makefile.am): Likewise.
18514         * modules/cycle-check (Makefile.am): Likewise.
18515         * modules/des (Makefile.am): Likewise.
18516         * modules/dirfd (Makefile.am): Likewise.
18517         * modules/dirname (Makefile.am): Likewise.
18518         * modules/dup2 (Makefile.am): Likewise.
18519         * modules/euidaccess (Makefile.am): Likewise.
18520         * modules/exclude (Makefile.am): Likewise.
18521         * modules/exitfail (Makefile.am): Likewise.
18522         * modules/fcntl-safer (Makefile.am): Likewise.
18523         * modules/file-type (Makefile.am): Likewise.
18524         * modules/fileblocks (Makefile.am): Likewise.
18525         * modules/filemode (Makefile.am): Likewise.
18526         * modules/filenamecat (Makefile.am): Likewise.
18527         * modules/fnmatch (Makefile.am): Likewise.
18528         * modules/fopen-safer (Makefile.am): Likewise.
18529         * modules/fpending (Makefile.am): Likewise.
18530         * modules/fprintftime (Makefile.am): Likewise.
18531         * modules/free (Makefile.am): Likewise.
18532         * modules/fsusage (Makefile.am): Likewise.
18533         * modules/ftruncate (Makefile.am): Likewise.
18534         * modules/fts (Makefile.am): Likewise.
18535         * modules/gc (Makefile.am): Likewise.
18536         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
18537         * modules/getaddrinfo (Makefile.am): Likewise.
18538         * modules/getcwd (Makefile.am): Likewise.
18539         * modules/getdelim (Makefile.am): Likewise.
18540         * modules/getdomainname (Makefile.am): Likewise.
18541         * modules/getgroups (Makefile.am): Likewise.
18542         * modules/gethostname (Makefile.am): Likewise.
18543         * modules/gethrxtime (Makefile.am): Likewise.
18544         * modules/getline (Makefile.am): Likewise.
18545         * modules/getloadavg (Makefile.am): Likewise.
18546         * modules/getlogin_r (Makefile.am): Likewise.
18547         * modules/getopt (Makefile.am): Likewise.
18548         * modules/getpass (Makefile.am): Likewise.
18549         * modules/getpass-gnu (Makefile.am): Likewise.
18550         * modules/getsubopt (Makefile.am): Likewise.
18551         * modules/gettime (Makefile.am): Likewise.
18552         * modules/gettimeofday (Makefile.am): Likewise.
18553         * modules/getugroups (Makefile.am): Likewise.
18554         * modules/getusershell (Makefile.am): Likewise.
18555         * modules/glob (Makefile.am): Likewise.
18556         * modules/group-member (Makefile.am): Likewise.
18557         * modules/hard-locale (Makefile.am): Likewise.
18558         * modules/hash (Makefile.am): Likewise.
18559         * modules/hmac-md5 (Makefile.am): Likewise.
18560         * modules/hmac-sha1 (Makefile.am): Likewise.
18561         * modules/human (Makefile.am): Likewise.
18562         * modules/idcache (Makefile.am): Likewise.
18563         * modules/imaxabs (Makefile.am): Likewise.
18564         * modules/imaxdiv (Makefile.am): Likewise.
18565         * modules/inet_ntop (Makefile.am): Likewise.
18566         * modules/inet_pton (Makefile.am): Likewise.
18567         * modules/inttostr (Makefile.am): Likewise.
18568         * modules/isapipe (Makefile.am): Likewise.
18569         * modules/lchown (Makefile.am): Likewise.
18570         * modules/long-options (Makefile.am): Likewise.
18571         * modules/lstat (Makefile.am): Likewise.
18572         * modules/malloc (Makefile.am): Likewise.
18573         * modules/mathl (Makefile.am): Likewise.
18574         * modules/mbchar (Makefile.am): Likewise.
18575         * modules/md2 (Makefile.am): Likewise.
18576         * modules/md4 (Makefile.am): Likewise.
18577         * modules/md5 (Makefile.am): Likewise.
18578         * modules/memcasecmp (Makefile.am): Likewise.
18579         * modules/memchr (Makefile.am): Likewise.
18580         * modules/memcmp (Makefile.am): Likewise.
18581         * modules/memcoll (Makefile.am): Likewise.
18582         * modules/memcpy (Makefile.am): Likewise.
18583         * modules/memmem (Makefile.am): Likewise.
18584         * modules/memmove (Makefile.am): Likewise.
18585         * modules/mempcpy (Makefile.am): Likewise.
18586         * modules/memrchr (Makefile.am): Likewise.
18587         * modules/memset (Makefile.am): Likewise.
18588         * modules/memxor (Makefile.am): Likewise.
18589         * modules/mkancesdirs (Makefile.am): Likewise.
18590         * modules/mkdir (Makefile.am): Likewise.
18591         * modules/mkdir-p (Makefile.am): Likewise.
18592         * modules/mkdtemp (Makefile.am): Likewise.
18593         * modules/mkstemp (Makefile.am): Likewise.
18594         * modules/mktime (Makefile.am): Likewise.
18595         * modules/modechange (Makefile.am): Likewise.
18596         * modules/mountlist (Makefile.am): Likewise.
18597         * modules/nanosleep (Makefile.am): Likewise.
18598         * modules/openat (Makefile.am): Likewise.
18599         * modules/pagealign_alloc (Makefile.am): Likewise.
18600         * modules/physmem (Makefile.am): Likewise.
18601         * modules/poll (Makefile.am): Likewise.
18602         * modules/posixtm (Makefile.am): Likewise.
18603         * modules/posixver (Makefile.am): Likewise.
18604         * modules/putenv (Makefile.am): Likewise.
18605         * modules/quote (Makefile.am): Likewise.
18606         * modules/quotearg (Makefile.am): Likewise.
18607         * modules/raise (Makefile.am): Likewise.
18608         * modules/read-file (Makefile.am): Likewise.
18609         * modules/readline (Makefile.am): Likewise.
18610         * modules/readlink (Makefile.am): Likewise.
18611         * modules/readtokens (Makefile.am): Likewise.
18612         * modules/readutmp (Makefile.am): Likewise.
18613         * modules/realloc (Makefile.am): Likewise.
18614         * modules/regex (Makefile.am): Likewise.
18615         * modules/rename (Makefile.am): Likewise.
18616         * modules/rename-dest-slash (Makefile.am): Likewise.
18617         * modules/rijndael (Makefile.am): Likewise.
18618         * modules/rmdir (Makefile.am): Likewise.
18619         * modules/rpmatch (Makefile.am): Likewise.
18620         * modules/safe-read (Makefile.am): Likewise.
18621         * modules/safe-write (Makefile.am): Likewise.
18622         * modules/same (Makefile.am): Likewise.
18623         * modules/save-cwd (Makefile.am): Likewise.
18624         * modules/savedir (Makefile.am): Likewise.
18625         * modules/setenv (Makefile.am): Likewise.
18626         * modules/settime (Makefile.am): Likewise.
18627         * modules/sha1 (Makefile.am): Likewise.
18628         * modules/sig2str (Makefile.am): Likewise.
18629         * modules/snprintf (Makefile.am): Likewise.
18630         * modules/stdlib-safer (Makefile.am): Likewise.
18631         * modules/stpcpy (Makefile.am): Likewise.
18632         * modules/stpncpy (Makefile.am): Likewise.
18633         * modules/strcase (Makefile.am): Likewise.
18634         * modules/strcasestr (Makefile.am): Likewise.
18635         * modules/strchrnul (Makefile.am): Likewise.
18636         * modules/strcspn (Makefile.am): Likewise.
18637         * modules/strdup (Makefile.am): Likewise.
18638         * modules/strerror (Makefile.am): Likewise.
18639         * modules/strftime (Makefile.am): Likewise.
18640         * modules/strndup (Makefile.am): Likewise.
18641         * modules/strnlen (Makefile.am): Likewise.
18642         * modules/strpbrk (Makefile.am): Likewise.
18643         * modules/strsep (Makefile.am): Likewise.
18644         * modules/strstr (Makefile.am): Likewise.
18645         * modules/strtod (Makefile.am): Likewise.
18646         * modules/strtoimax (Makefile.am): Likewise.
18647         * modules/strtok_r (Makefile.am): Likewise.
18648         * modules/strtol (Makefile.am): Likewise.
18649         * modules/strtoll (Makefile.am): Likewise.
18650         * modules/strtoul (Makefile.am): Likewise.
18651         * modules/strtoull (Makefile.am): Likewise.
18652         * modules/strtoumax (Makefile.am): Likewise.
18653         * modules/strverscmp (Makefile.am): Likewise.
18654         * modules/time_r (Makefile.am): Likewise.
18655         * modules/timegm (Makefile.am): Likewise.
18656         * modules/tmpfile-safer (Makefile.am): Likewise.
18657         * modules/unistd-safer (Makefile.am): Likewise.
18658         * modules/unlinkdir (Makefile.am): Likewise.
18659         * modules/userspec (Makefile.am): Likewise.
18660         * modules/utime (Makefile.am): Likewise.
18661         * modules/utimecmp (Makefile.am): Likewise.
18662         * modules/utimens (Makefile.am): Likewise.
18663         * modules/vasnprintf (Makefile.am): Likewise.
18664         * modules/vasprintf (Makefile.am): Likewise.
18665         * modules/vsnprintf (Makefile.am): Likewise.
18666         * modules/xalloc (Makefile.am): Likewise.
18667         * modules/xgetcwd (Makefile.am): Likewise.
18668         * modules/xnanosleep (Makefile.am): Likewise.
18669         * modules/xreadlink (Makefile.am): Likewise.
18670         * modules/xstrtod (Makefile.am): Likewise.
18671         * modules/xstrtol (Makefile.am): Likewise.
18672         * modules/xstrtold (Makefile.am): Likewise.
18673         * modules/yesno (Makefile.am): Likewise.
18674
18675 2006-10-12  Jim Meyering  <jim@meyering.net>
18676
18677         * m4/getloadavg.m4: Revert the change below.
18678
18679         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
18680         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
18681         fail with a symlink, which is what coreutils' ./bootstrap now
18682         creates by default.
18683
18684 2006-10-12  Bruno Haible  <bruno@clisp.org>
18685
18686         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
18687         mingw.
18688         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
18689         MSVC and mingw explicitly.
18690
18691 2006-10-11  Simon Josefsson  <jas@extundo.com>
18692             Bruno Haible  <bruno@clisp.org>
18693
18694         Add support for multiple gnulib-tool invocations in the scope of a
18695         single configure.ac file.
18696         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
18697         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
18698         with the same contents as the _LIBADD variable.
18699         (func_emit_initmacro_start, func_emit_initmacro_end,
18700         func_emit_initmacro_done): New functions.
18701         (func_import, func_create_testdir): Invoke them. Allow the identifiers
18702         gl_LIBOBJS and gl_LTLIBOBJS.
18703
18704 2006-10-11  Bruno Haible  <bruno@clisp.org>
18705
18706         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
18707         (func_create_testdir): Don't create po/Makefile.am, don't invoke
18708         autoreconf. Instead, invoke autopoint explicitly but move back the
18709         *.m4 files from gnulib.
18710
18711 2006-10-11  Bruno Haible  <bruno@clisp.org>
18712
18713         * gnulib-tool (func_usage): Make module names after --create-testdir
18714         optional.
18715         (func_create_testdir): If no module was specified, use nearly all
18716         modules.
18717
18718 2006-10-12  Jim Meyering  <jim@meyering.net>
18719
18720         Big performance improvement for fts-based tools that use FTS_NOSTAT.
18721         Avoid spurious inode-mismatch problems on non-POSIX file systems.
18722         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
18723         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
18724         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
18725         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
18726         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
18727         (fts_set_stat_required): New function.
18728         (fts_open): Defer the calls to fts_stat, if possible or requested.
18729         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
18730         into fts_stat itself.
18731         (fts_read): Perform any required (deferred) fts_stat call.
18732         (fts_build): Likewise, for the directory we're about to open and read.
18733         In the readdir loop, carefully decide whether each entry will require
18734         an eventual call to fts_stat, using dirent.d_type info if available.
18735         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
18736         a command line argument into this function.  Update all callers.
18737         Map a return value of FTS_DOT to FTS_D for a command line argument.
18738         * modules/fts (Depends-on): Add d-type.  Alphabetize.
18739         Thanks to Miklos Szeredi for his tenacity and for the initial
18740         bug report about "find" failing on a FUSE-based file system.
18741
18742         * lib/fts.c (fts_open): Use consistent indentation.
18743
18744 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18745
18746         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
18747         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
18748         reported by Jim Meyering.  All uses of cache variables renamed
18749         to match Autoconf's.
18750         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
18751         the other one.
18752
18753         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18754         Fix misspelling in diagnostic.
18755
18756 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18757
18758         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
18759         defined.  Problem reported by Matthew Woehlke.
18760
18761         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
18762         Add support for Tandem NonStop R series.
18763         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
18764         Use new macro.
18765
18766         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
18767         (has_trailing_slash): Omit size arg; all callers changed.
18768         Omit 'inline', since it doesn't help performance and we'd
18769         need to configure it.
18770         Don't count //, ///, etc. as having a trailing slash.
18771         As a side effect, this removes a C99ism reported by Matthew Woehlke.
18772         (rpl_rename_dest_slash): On failure, use rename's errno rather
18773         than (in some cases) an incorrect or junk errno.
18774         Simplify code by removing need to compute length; this does
18775         cause it to make two passes instead of one over the file name,
18776         but it's worth it.
18777
18778         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
18779         change, since Autoconf's version may no longer be appropriate now
18780         that we are using CVS Autoconf's version.  Add support for Tandem.
18781
18782 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18783             Bruno Haible  <bruno@clisp.org>
18784
18785         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
18786         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
18787         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
18788         gl_AC_TYPE_LONG_LONG.
18789
18790         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
18791         instead of HAVE_LONG_LONG.
18792         * lib/printf-args.c (printf_fetchargs): Likewise.
18793         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18794         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18795         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
18796         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
18797         gl_AC_TYPE_LONG_LONG.
18798
18799 2006-10-11  Bruno Haible  <bruno@clisp.org>
18800
18801         * m4/longlong.m4: Add comments.
18802         * m4/ulonglong.m4: Likewise.
18803
18804 2006-10-10  Bruno Haible  <bruno@clisp.org>
18805
18806         Make it possible to #define stpcpy, strdup to aliases.
18807         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
18808         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
18809
18810 2006-10-10  Bruno Haible  <bruno@clisp.org>
18811
18812         Make it possible to #define gcd to an alias.
18813         * lib/gcd.c: Include config.h.
18814
18815 2006-10-10  Bruno Haible  <bruno@clisp.org>
18816
18817         Make it possible to #define c_isascii to an alias.
18818         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
18819         defined. Undefine the macros before defining them, to avoid gcc
18820         warnings.
18821         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
18822         define NO_C_CTYPE_MACROS early.
18823
18824 2006-10-10  Bruno Haible  <bruno@clisp.org>
18825
18826         Make it possible to #define set_program_name to an alias.
18827         * lib/progname.c: Don't undefine set_program_name; instead, undefine
18828         ENABLE_RELOCATABLE early.
18829
18830 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18831
18832         Port to Tandem NSK OSS, which has 64-bit signed int but at most
18833         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
18834         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
18835         More generally, don't assume that 64-bit signed int is available
18836         if unsigned int is, and vice versa.
18837         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
18838         unsigned symbols, not on their signed counterparts.
18839         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
18840         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
18841         (UINT64_C, UINTMAX_C):
18842         Likewise.
18843         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
18844         unsigned counterparts.
18845         (Have_long_long, Unsigned): New macros.
18846         (Int): Renamed from INT.
18847         (strtoimax): Use the new macros.
18848         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
18849         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
18850         * modules/inttypes (inttypes.h): Substitute
18851         HAVE_UNSIGNED_LONG_LONG_INT.
18852         * modules/stdint (stdint.h): Likewise.
18853         (Files): Add m4/ulonglong.m4.
18854
18855 2006-10-10  Bruno Haible  <bruno@clisp.org>
18856
18857         Fix a gcc -Wshadow warning.
18858         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
18859         to 'bucket'.
18860         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
18861         gl_linked_indexof_from_to): Likewise.
18862         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
18863         Likewise.
18864         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
18865         Likewise.
18866         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
18867         Reported by Eric Blake.
18868
18869 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
18870
18871         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
18872         for NetBSD.  Problem reported by Bruno Haible.
18873
18874 2006-10-09  Jim Meyering  <jim@meyering.net>
18875
18876         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
18877         Patch from Bruno Haible.
18878
18879 2006-10-09  Jim Meyering  <jim@meyering.net>
18880
18881         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
18882         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
18883         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
18884
18885 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18886
18887         Don't include <config.h> twice; this doesn't work in some cases,
18888         e.g., when config.h has "#define intmax_t long long int" and
18889         we include <config.h>, <inttypes.h>, <config.h> in that order.
18890         Problem reported by Matthew Woehlke in:
18891         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
18892         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
18893         * lib/fts-cycle.c: Don't include config.h.
18894         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
18895         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
18896         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
18897         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
18898         inttypes.h.
18899         * lib/xstrtoumax.c: Likewise.
18900         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
18901         __strtol and the like, so that this module is more like its siblings.
18902         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
18903         Remove; no longer needed now that we assume gnulib inttypes.h.
18904
18905 2006-10-08  Bruno Haible  <bruno@clisp.org>
18906
18907         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
18908         option.
18909
18910 2006-10-07  Jim Meyering  <jim@meyering.net>
18911
18912         * modules/inttypes (inttypes.h): Revert what seems to have been
18913         an inadvertent part of today's change: use "|", not "/" in the
18914         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
18915
18916 2006-10-07  Bruno Haible  <bruno@clisp.org>
18917
18918         * modules/sublist: New file.
18919
18920 2006-10-07  Bruno Haible  <bruno@clisp.org>
18921
18922         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
18923         * modules/argz (argz.h): Likewise.
18924         * modules/arpa_inet (arpa/inet.h): Likewise.
18925         * modules/byteswap (byteswap.h): Likewise.
18926         * modules/configmake (configmake.h): Likewise.
18927         * modules/fcntl (fcntl.h): Likewise.
18928         * modules/fnmatch (fnmatch.h): Likewise.
18929         * modules/getopt (getopt.h): Likewise.
18930         * modules/glob (glob.h): Likewise.
18931         * modules/inttypes (inttypes.h): Likewise.
18932         * modules/netinet_in (netinet/in.h): Likewise.
18933         * modules/poll (poll.h): Likewise.
18934         * modules/stdbool (stdbool.h): Likewise.
18935         * modules/stdint (stdint.h): Likewise.
18936         * modules/sys_select (sys/select.h): Likewise.
18937         * modules/sys_socket (sys/socket.h): Likewise.
18938         * modules/sys_stat (sys/stat.h): Likewise.
18939         * modules/sysexits (sysexits.h): Likewise.
18940         * modules/unistd (unistd.h): Likewise.
18941         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18942         Add a "DO NOT EDIT" comment to the generated file.
18943         (func_import): Likewise for gnulib-comp.m4.
18944
18945 2006-10-07  Bruno Haible  <bruno@clisp.org>
18946
18947         * lib/gl_sublist.h: New file.
18948         * lib/gl_sublist.c: New file.
18949
18950 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18951
18952         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
18953         name (relative to the original working directory) and the file
18954         name component (relative to the temporary working directory).  All
18955         callers changed.
18956         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
18957         * lib/mkdir-p.c (make_dir_parents): Likewise.
18958         * lib/mkdir-p.h (make_dir_parents): Likewise.
18959
18960 2006-10-06  Eric Blake  <ebb9@byu.net>
18961
18962         Define several macros for use by the clean-temp module.
18963         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
18964         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
18965         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
18966
18967         * lib/clean-temp.h (close_stream_temp): New declaration.
18968         * lib/clean-temp.c (includes): Pull in headers according to what
18969         other modules are in use.
18970         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
18971
18972 2006-10-06  Bruno Haible  <bruno@clisp.org>
18973
18974         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
18975         instead of fopen, fwriteerror.
18976
18977 2006-10-06  Bruno Haible  <bruno@clisp.org>
18978
18979         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
18980         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
18981         int.
18982         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
18983         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
18984         Return an error indicator.
18985         Suggested by Eric Blake.
18986
18987 2006-10-06  Bruno Haible  <bruno@clisp.org>
18988
18989         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
18990         Reported by Eric Blake.
18991
18992 2006-10-06  Bruno Haible  <bruno@clisp.org>
18993
18994         * modules/closeout (Description): Mention stderr too.
18995
18996 2006-10-06  Bruno Haible  <bruno@clisp.org>
18997         and Paul Eggert  <eggert@cs.ucla.edu>
18998
18999         * lib/closeout.c (close_stdout): Also close stderr.
19000         * lib/closeout.h: Update comment.
19001
19002 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19003
19004         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
19005         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
19006         * lib/dirchownmod.c: Include lchown.h.
19007         * lib/lchown.c: Don't include files that lchown.h now includes.
19008         Don't declare chown, since lchown.h now does that.
19009         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
19010         (lchown): Define to rpl_chown if lchown is declared but
19011         does not exist.  Declare using a prototype if lchown is not
19012         declared.  Add a copyright notice.
19013         * lib/mkstemp.h: Include <unistd.h>.
19014         * lib/openat.c: Include lchown.h.
19015
19016         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
19017         we now test for that separately.
19018         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
19019         rather than O_NOFOLLOW, when testing whether it's possible to
19020         avoid a race condition reliably.
19021         * lib/savewd.c (savewd_chdir): Likewise.
19022
19023         Remove macros that are no longer needed now that stdint.h is
19024         reliable.
19025         * lib/fsusage.c (UINTMAX_MAX): Remove.
19026         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
19027         * lib/utimecmp.c (SIZE_MAX): Remove.
19028
19029         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
19030
19031         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
19032         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
19033         O_NOATIME works.
19034
19035 2006-10-05  Bruno Haible  <bruno@clisp.org>
19036
19037         * lib/gl_list.h (gl_sortedlist_search_from_to,
19038         gl_sortedlist_indexof_from_to): New declarations.
19039         (gl_list_implementation): New fields sortedlist_search_from_to,
19040         sortedlist_indexof_from_to.
19041         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
19042         inline functions.
19043         * lib/gl_list.c (gl_sortedlist_search_from_to,
19044         gl_sortedlist_indexof_from_to): New functions.
19045         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
19046         function.
19047         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
19048         (gl_array_sortedlist_search_from_to): New function.
19049         (gl_array_list_implementation): Update.
19050         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
19051         function.
19052         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
19053         (gl_carray_sortedlist_search_from_to): New function.
19054         (gl_carray_list_implementation): Update.
19055         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
19056         gl_linked_sortedlist_indexof_from_to): New functions.
19057         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
19058         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
19059         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
19060         gl_tree_sortedlist_indexof_from_to): New functions.
19061         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
19062         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
19063         Update.
19064         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
19065         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
19066         Update.
19067
19068 2006-10-05  Bruno Haible  <bruno@clisp.org>
19069
19070         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
19071         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
19072         (struct gl_list_implementation): Add fields search_from_to,
19073         indexof_from_to. Remove fields search, indexof.
19074         (gl_list_search): Use the search_from_to method.
19075         (gl_list_search_from, gl_list_search_from_to): New functions.
19076         (gl_list_indexof): Use the indexof_from_to method.
19077         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
19078         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
19079         (gl_list_search_from, gl_list_search_from_to): New functions.
19080         (gl_list_indexof): Use the indexof_from_to method.
19081         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
19082         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
19083         gl_array_indexof. Add start_index, end_index arguments.
19084         (gl_array_search_from_to): Renamed from gl_array_search. Add
19085         start_index, end_index arguments.
19086         (gl_array_remove, gl_array_list_implementation): Update.
19087         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
19088         gl_carray_indexof. Add start_index, end_index arguments.
19089         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
19090         start_index, end_index arguments.
19091         (gl_carray_remove, gl_carray_list_implementation): Update.
19092         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
19093         gl_linked_search. Add start_index, end_index arguments.
19094         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
19095         start_index, end_index arguments.
19096         (gl_linked_remove): Update.
19097         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
19098         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
19099         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
19100         field to 'size_t'.
19101         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
19102         gl_tree_search. Add start_index, end_index arguments.
19103         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
19104         start_index, end_index arguments.
19105         (gl_tree_remove): Update.
19106         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
19107         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
19108         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
19109         function.
19110         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
19111         gl_tree_search. Add start_index, end_index arguments.
19112         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
19113         start_index, end_index arguments.
19114         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
19115         Update.
19116         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
19117
19118 2006-10-05  Bruno Haible  <bruno@clisp.org>
19119
19120         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
19121
19122         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
19123         fwriteerror_temp): New declarations.
19124         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
19125         (descriptors): New variable.
19126         (cleanup): First, close the descriptors.
19127         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
19128         fclose_temp, fwriteerror_temp): New functions.
19129
19130 2006-10-04  Jim Meyering  <jim@meyering.net>
19131
19132         * lib/fts.c (fts_open): Tiny comment change.
19133
19134 2006-10-04  Bruno Haible  <bruno@clisp.org>
19135
19136         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
19137         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
19138         gl_LOCK_BODY.
19139         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
19140         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
19141         gl_LOCK_EARLY_BODY.
19142         (gl_LOCK): Require gl_LOCK_BODY.
19143
19144 2006-10-04  Bruno Haible  <bruno@clisp.org>
19145
19146         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
19147         (gl_oset_search_atleast): New declaration.
19148         (struct gl_oset_implementation): Add field 'search_atleast'.
19149         (gl_oset_search_atleast): New inline function.
19150         * lib/gl_oset.c (gl_oset_search_atleast): New function.
19151         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
19152         (gl_array_oset_implementation): Update.
19153         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
19154         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
19155         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
19156
19157 2006-10-04  Bruno Haible  <bruno@clisp.org>
19158
19159         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
19160
19161 2006-10-03  Bruno Haible  <bruno@clisp.org>
19162
19163         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
19164         from gl_avltreehash_list_implementation.
19165
19166 2006-10-03  Bruno Haible  <bruno@clisp.org>
19167
19168         * lib/gl_oset.c (gl_oset_add): Fix return type.
19169
19170 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
19171
19172         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
19173
19174 2006-10-02  Eric Blake  <ebb9@byu.net>
19175
19176         * modules/strnlen (Depends-on): Add extensions.
19177
19178 2006-10-02  Eric Blake  <ebb9@byu.net>
19179
19180         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
19181         definition in 2.60+.
19182
19183 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
19184
19185         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
19186         checks.
19187
19188 2006-10-02  Bruno Haible  <bruno@clisp.org>
19189
19190         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
19191         to the AUTOMAKE_OPTIONS.
19192         Reported by Jim Meyering.
19193
19194 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
19195
19196         Work around bug in Solaris 10 /proc file system:
19197         /proc/self/fd/NNN/.. isn't the parent directory of
19198         the directory whose file descriptor is NNN.  This needs to
19199         be worked around at run time, not compile time, since a
19200         program might be built on Solaris 8, where things work, and
19201         run on Solaris 10.
19202         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
19203         to use the following interface instead:
19204         (OPENAT_BUFFER_SIZE): New macro.
19205         (openat_proc_name): New function.
19206         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
19207         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
19208         Likewise.
19209         * lib/openat-proc.c: New file.
19210         * modules/openat (Files): Add lib/openat-proc.c.
19211         (Depends-on): Add same-inode, stdbool.
19212         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
19213
19214 2006-09-29  Bruno Haible  <bruno@clisp.org>
19215
19216         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
19217         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
19218         argument. Set stdout_closed before testing for ferror, not after.
19219         (fwriteerror, fwriteerror_no_ebadf): New functions.
19220
19221 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19222
19223         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
19224
19225 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
19226
19227         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
19228         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
19229
19230 2006-09-28  Jim Meyering  <jim@meyering.net>
19231
19232         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
19233         Include <unistd.h>.
19234
19235 2006-09-28  Bruno Haible  <bruno@clisp.org>
19236
19237         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
19238         * modules/linkedhash-list (Depends-on): Likewise.
19239         * modules/rbtreehash-list (Depends-on): Likewise.
19240
19241 2006-09-28  Bruno Haible  <bruno@clisp.org>
19242
19243         * lib/strndup.h: Simplify the redefinition of strndup.
19244         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
19245         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
19246
19247 2006-09-28  Bruno Haible  <bruno@clisp.org>
19248
19249         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
19250         * lib/gl_linkedhash_list.c: Likewise.
19251         * lib/gl_rbtreehash_list.c: Likewise.
19252
19253 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
19254
19255         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
19256         getaddrinfo.
19257
19258         * lib/__fpending.h: Don't include <stdio_ext.h> unless
19259         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
19260         it causes <stdio_ext.h> to cause a compile-time error.
19261         Problem reported by Nelson H. F. Beebe.
19262         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
19263         of HAVE_DECL___PENDING.
19264
19265         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
19266         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
19267         declaration.
19268
19269 2006-09-27  Jim Meyering  <jim@meyering.net>
19270
19271         This file could end up with a definition for a function
19272         named __strndup, rather than rpl_strndup on a system with
19273         incomplete weak_alias support.
19274         * lib/strndup.c (strndup): Rename from __strndup.
19275         Remove #defines that used to map __strndup to strndup.
19276         Don't use K&R prototypes.
19277         Remove LIBC-related code, since this file is not sync'd with glibc.
19278         * lib/strndup.h: Revamp, accordingly.
19279         * m4/strndup.m4: Modernize.
19280
19281 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
19282
19283         * modules/savewd (Depends-on): Add 'raise'.
19284         * lib/savewd.c: Include <signal.h>, for 'raise'.
19285
19286 2006-09-26  Jim Meyering  <jim@meyering.net>
19287
19288         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
19289         when we detect Darwin 8.7.0's acl_get_file bug.
19290         Rearrange to perform the new (below) run-test while $LIBS
19291         contains any acl-related library.  Set USE_ACL at the end.
19292         (gl_ACL_GET_FILE): New function.
19293
19294 2006-09-26  Eric Blake  <ebb9@byu.net>
19295
19296         * lib/verror.c: Include <config.h> unconditionally.
19297
19298 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
19299
19300         * modules/clock-time (Maintainer): Add self.
19301         * modules/getlogin_r (Depends-on): Add extensions.
19302
19303 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19304
19305         * modules/clock-time: New module.
19306         * modules/nanosleep (Depends-on): Add clock-time.
19307         * modules/gethrxtime (Depends-on): Likewise.
19308         * modules/gettime (Depends-on): Likewise.
19309         * modules/settime (Depends-on): Likewise.
19310
19311         * modules/fts-lgpl: Depend on openat.
19312         * modules/mkancesdirs: Depend on savewd.
19313         * modules/mkdir-p: Likewise.
19314
19315 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19316
19317         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
19318
19319         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
19320         `gl_have_arbitrary_file_name_length_limit' to
19321         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
19322         actually works between configure runs.
19323
19324 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19325             Bruno Haible  <bruno@clisp.org>
19326
19327         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
19328
19329 2006-09-25  Jim Meyering  <jim@meyering.net>
19330
19331         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
19332         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
19333
19334 2006-09-25  Eric Blake  <ebb9@byu.net>
19335
19336         * gnulib-tool (func_import, func_create_testdir): Fix typos in
19337         exec's in 2006-09-18 patch when shuffling fds.
19338
19339 2006-09-25  Bruno Haible  <bruno@clisp.org>
19340
19341         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
19342         Reported by Jim Meyering.
19343
19344 2006-09-24  Jim Meyering  <jim@meyering.net>
19345
19346         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
19347         compare a pointer against a literal "0".  That caused failures with
19348         at least HP-UX's hpcc.
19349
19350 2006-09-22  Simon Josefsson  <jas@extundo.com>
19351
19352         * modules/gc-sha1:
19353         * modules/gc-md4:
19354         * modules/gc-hmac-sha1:
19355         * modules/gc-hmac-md5:
19356         * modules/gc-des:
19357         * modules/gc-arcfour: Distribute more files.
19358
19359 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19360
19361         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
19362         (gl_linked_iterator_from_to): Initialize struct completely.
19363         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
19364         (gl_tree_iterator_from_to): Likewise
19365         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
19366         * lib/gl_array_list.c [lint] (gl_array_iterator)
19367         (gl_array_iterator_from_to): Likewise.
19368         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
19369         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
19370         (gl_carray_iterator_from_to): Likewise.
19371
19372         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
19373         * lib/md4.c (md4_process_block): Remove unused variable.
19374         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
19375         parentheses for clarity.
19376
19377 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19378
19379         * modules/bison-i18n (Depends-on): Add gettext.
19380
19381 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19382
19383         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
19384         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
19385         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
19386         also add missing comma that caused broken test.
19387         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
19388         stdlib.h, for `abort'.
19389         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
19390         variables.
19391         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
19392         include unistd.h if present, for `rmdir'.
19393         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
19394         variables.
19395         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
19396         in the process include standard headers for prototypes.
19397         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
19398         gets declared on GNU/Linux.
19399         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
19400         unistd.h, for `rmdir'.
19401         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
19402
19403         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
19404         always true.
19405         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
19406
19407         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
19408
19409 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19410
19411         * gnulib-tool (func_version): Create output all at once.  This
19412         may help avoid triggering unnecessary SIGPIPEs, and at any
19413         rate it doesn't hurt.
19414
19415 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19416             Bruno Haible  <bruno@clisp.org>
19417
19418         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
19419         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19420         * m4/signed.m4 (bh_C_SIGNED): Likewise.
19421
19422         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
19423         (gl_FUNC_VASPRINTF): Invoke it.
19424
19425 2006-09-22  Bruno Haible  <bruno@clisp.org>
19426
19427         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
19428         getloadavg.c as first argument.
19429
19430 2006-09-22  Bruno Haible  <bruno@clisp.org>
19431
19432         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
19433         at the beginning of the gl_INIT macro.
19434         * modules/getloadavg (configure.ac): Pass $gl_source_base to
19435         gl_GETLOADAVG.
19436
19437 2006-09-22  Bruno Haible  <bruno@clisp.org>
19438
19439         * gnulib-tool (func_create_megatestdir): Don't include the config-h
19440         module.
19441         Suggested by Ralf Wildenhues.
19442
19443 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19444
19445         Import this patch from libc:
19446
19447         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
19448
19449         * lib/regex_internal.c (re_string_reconstruct): Handle
19450         offset < pstr->valid_raw_len && pstr->offsets_needed case.
19451         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
19452         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
19453         re_string_context_at.
19454
19455         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
19456         now requires it.
19457         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
19458         gl_REGEX now does it for us.
19459         (gl_REGEX): Add test taken from
19460         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
19461
19462         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
19463         Check that large offsets work.  Modernize Autoconf usages.
19464         Prefer "yes" to mean a good thing rather than a bad.
19465         Don't put "#define mkstemp" in config.h, as this might interfere
19466         with standard system headers that "#define mkstemp mkstemp64".
19467
19468         * modules/mkstemp (Depends-on): Add extensions, so that
19469         mkstemp is visible on some platforms.
19470         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
19471         (Include): Change to "mkstemp.h" from <stdlib.h>.
19472         (Files): Add mkstemp.h.
19473
19474         * lib/mkstemp.h: New file, since some standard headers
19475         #define mkstemp.
19476         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
19477         Include "mkstemp.h".
19478         Make the _LIBC code resemble glibc original more,
19479         e.g., use K&R style.
19480         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
19481         (mkstemp): Remove, since mkstemp.h does this for us.
19482         * lib/stdlib--.h: Include mkstemp.h.
19483
19484         Import this patch from libc:
19485
19486         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
19487
19488         * lib/tempname.c (__gen_tempname): Change attempts_min
19489         into a macro.  Use preprocessor to decide how to initialize
19490         attempts [Coverity CID 67].
19491
19492 2006-09-20  Bruno Haible  <bruno@clisp.org>
19493
19494         * lib/mkdtemp.c: Import from libc.
19495         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
19496                 * sysdeps/posix/tempname.c (__gen_tempname): Change
19497                 attempts_min into a macro.  Use preprocessor to decide how to
19498                 initialize attempts [Coverity CID 67].
19499         2001-11-27  Paul Eggert  <eggert@twinsun.com>
19500                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
19501                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
19502
19503 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19504
19505         * gnulib-tool (func_exit): New function, to allow to pass the
19506         exit status portably through the trap.  Use everywhere.
19507         (--help, --version): Signal a write error.
19508         (trap): catch SIGPIPE, for write errors.
19509         Exit at the end of the trap, with the correct exit status.
19510
19511 2006-09-19  Karl Berry  <karl@gnu.org>
19512
19513         * doc/gnulib.texi: note about the license texinfo files.
19514
19515 2006-09-19  Eric Blake  <ebb9@byu.net>
19516
19517         * gnulib-tool: Avoid space-tab.
19518
19519 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
19520
19521         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
19522         that prevented coreutils 6.1 from building.  Problem reported
19523         by Petter Reinholdtsen.
19524
19525 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
19526
19527         * gnulib-tool (avoidlist): Fix typo that broke options like
19528         --avoid=lock that are used by coreutils bootstrap.
19529
19530 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
19531
19532         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
19533         more systematically.
19534
19535 2006-09-18  Jim Meyering  <jim@meyering.net>
19536
19537         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
19538
19539 2006-09-18  Bruno Haible  <bruno@clisp.org>
19540
19541         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
19542
19543 2006-09-18  Bruno Haible  <bruno@clisp.org>
19544
19545         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
19546         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
19547         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
19548         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
19549         * m4/gettext.m4: Require autoconf >= 2.52.
19550         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
19551         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
19552         of gl_cv_header_inttypes_h.
19553
19554 2006-09-18  Bruno Haible  <bruno@clisp.org>
19555
19556         * lib/javaversion.c: Include configmake.h.
19557
19558 2006-09-18  Bruno Haible  <bruno@clisp.org>
19559
19560         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
19561         avoid that the while loops be executed in a subshell.
19562
19563 2006-09-18  Bruno Haible  <bruno@clisp.org>
19564
19565         * MODULES.html.sh (func_module): Break long lines.
19566         Suggested by Bruce Korb <bkorb@gnu.org>.
19567
19568 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19569
19570         Speed up by a factor of 1.12.
19571         * gnulib-tool (nl): New variable.
19572         (func_import): Rewrite include directive extraction to only read each
19573         directive once.
19574
19575 2006-09-17  Bruno Haible  <bruno@clisp.org>
19576
19577         * modules/javaversion (Makefile.am): Remove DEFS setting.
19578         (Depends-on): Add configmake, for PKGDATADIR definition.
19579
19580 2006-09-17  Bruno Haible  <bruno@clisp.org>
19581
19582         * gnulib-tool (func_create_testdir): Rewrite all files at once.
19583
19584 2006-09-17  Bruno Haible  <bruno@clisp.org>
19585
19586         * gnulib-tool (func_append): New function, stolen from libtool.m4.
19587         (func_modules_transitive_closure, func_modules_add_dummy,
19588         func_modules_to_filelist, func_import, func_create_testdir,
19589         func_create_megatestdir, ...): Use it wherever possible.
19590         Suggested by Ralf Wildenhues.
19591
19592 2006-09-16  Karl Berry  <karl@gnu.org>
19593
19594         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
19595         to avoid sectioning errors.
19596         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
19597         [ifinfo]: blank line after @center-ed titles.
19598         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
19599         Spell FSF address consistently with others.
19600         (These changes approved by rms.)
19601
19602 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19603
19604         Speed up by a factor of 1.61.
19605         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
19606         already checked module names again.
19607
19608 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19609
19610         Speed up by a factor of 1.13.
19611         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
19612         for new_files, and the input to func_add_or_update.
19613
19614 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19615
19616         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
19617         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
19618
19619 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19620
19621         * modules/mkancesdirs (Depends-on): Add fcntl.
19622         * modules/savewd: New file.
19623         * MODULES.html.sh (File system functions): Add savewd.
19624
19625         * modules/configmake (Makefile.am): Add support for the
19626         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
19627
19628 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19629
19630         * m4/savewd.m4: New file.
19631
19632 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
19633
19634         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
19635         (dirchownmod): New arg FD.  All callers changed.
19636         Use FD rather than opening the directory ourself, as opening is
19637         now the caller's responsibility.
19638         * lib/dirchownmod.h: Likewise.
19639         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
19640         hosts that require <sys/types.h> before <sys/stat.h>.  Include
19641         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
19642         (test_dir): Remove.
19643         (mkancesdirs): Return length of prefix of FILE that has already
19644         been made, or -2 if there is a child doing the work.  Redo
19645         algorithm so that it is O(N) rather than O(N**2).  Optimize away
19646         ".", and treat ".." specially since it might stray back into
19647         already-created areas.  Use a subprocess if necessary.  New arg
19648         WD; all users changed.  MAKE_DIR function should now return 1
19649         if it creates a directory that is not readable.  Return -2 if
19650         a child process is spun off.
19651         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
19652         Adjust signature to match code.
19653         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
19654         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
19655         all users changed.
19656         * lib/savewd.c, lib/savewd.h: New files.
19657
19658 2006-09-15  Jim Meyering  <jim@meyering.net>
19659
19660         * modules/rename-dest-slash: New module.
19661         * MODULES.html.sh (posix_compat): Add it here.
19662
19663         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
19664
19665 2006-09-15  Jim Meyering  <jim@meyering.net>
19666
19667         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
19668         file.
19669
19670         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
19671
19672 2006-09-15  Jim Meyering  <jim@meyering.net>
19673
19674         * lib/rename-dest-slash.c (has_trailing_slash): Use
19675         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
19676         (rpl_rename_dest_slash): Perform the cheaper trailing slash
19677         test before testing whether SRC is a directory.
19678         Suggestions from Bruno Haible.
19679
19680         Avoid a warning about an unused variable.
19681         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
19682         into the #ifdef block where it's used.
19683
19684         * lib/rename-dest-slash.c: New file.
19685
19686 2006-09-14  Bruno Haible  <bruno@clisp.org>
19687
19688         * lib/allocsa.c: Include <config.h> unconditionally.
19689         * lib/asnprintf.c: Likewise.
19690         * lib/asprintf.c: Likewise.
19691         * lib/c-strcasecmp.c: Likewise.
19692         * lib/c-strcasestr.c: Likewise.
19693         * lib/c-strncasecmp.c: Likewise.
19694         * lib/c-strstr.c: Likewise.
19695         * lib/classpath.c: Likewise.
19696         * lib/clean-temp.c: Likewise.
19697         * lib/concatpath.c: Likewise.
19698         * lib/copy-file.c: Likewise.
19699         * lib/csharpcomp.c: Likewise.
19700         * lib/csharpexec.c: Likewise.
19701         * lib/execute.c: Likewise.
19702         * lib/fatal-signal.c: Likewise.
19703         * lib/findprog.c: Likewise.
19704         * lib/fwriteerror.c: Likewise.
19705         * lib/gl_array_list.c: Likewise.
19706         * lib/gl_array_oset.c: Likewise.
19707         * lib/gl_avltree_list.c: Likewise.
19708         * lib/gl_avltree_oset.c: Likewise.
19709         * lib/gl_avltreehash_list.c: Likewise.
19710         * lib/gl_carray_list.c: Likewise.
19711         * lib/gl_linked_list.c: Likewise.
19712         * lib/gl_linkedhash_list.c: Likewise.
19713         * lib/gl_list.c: Likewise.
19714         * lib/gl_oset.c: Likewise.
19715         * lib/gl_rbtree_list.c: Likewise.
19716         * lib/gl_rbtree_oset.c: Likewise.
19717         * lib/gl_rbtreehash_list.c: Likewise.
19718         * lib/imaxabs.c: Likewise.
19719         * lib/imaxdiv.c: Likewise.
19720         * lib/javacomp.c: Likewise.
19721         * lib/javaexec.c: Likewise.
19722         * lib/javaversion.c: Likewise.
19723         * lib/linebreak.c: Likewise.
19724         * lib/localcharset.c: Likewise.
19725         * lib/lock.c: Likewise.
19726         * lib/mbchar.c: Likewise.
19727         * lib/mbswidth.c: Likewise.
19728         * lib/mkdtemp.c: Likewise.
19729         * lib/pipe.c: Likewise.
19730         * lib/printf-args.c: Likewise.
19731         * lib/printf-parse.c: Likewise.
19732         * lib/progname.c: Likewise.
19733         * lib/progreloc.c: Likewise.
19734         * lib/readlink.c: Likewise.
19735         * lib/sh-quote.c: Likewise.
19736         * lib/stpcpy.c: Likewise.
19737         * lib/stpncpy.c: Likewise.
19738         * lib/strcasecmp.c: Likewise.
19739         * lib/strcasestr.c: Likewise.
19740         * lib/strcspn.c: Likewise.
19741         * lib/striconv.c: Likewise.
19742         * lib/strncasecmp.c: Likewise.
19743         * lib/strnlen1.c: Likewise.
19744         * lib/strstr.c: Likewise.
19745         * lib/strtok_r.c: Likewise.
19746         * lib/tls.c: Likewise.
19747         * lib/tmpdir.c: Likewise.
19748         * lib/unicodeio.c: Likewise.
19749         * lib/unsetenv.c: Likewise.
19750         * lib/vasnprintf.c: Likewise.
19751         * lib/vasprintf.c: Likewise.
19752         * lib/wait-process.c: Likewise.
19753         * lib/xallocsa.c: Likewise.
19754         * lib/xsetenv.c: Likewise.
19755         * lib/xstriconv.c: Likewise.
19756
19757 2006-09-13  Simon Josefsson  <jas@extundo.com>
19758
19759         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
19760         that internally, suggested by Ralf Wildenhues
19761         <Ralf.Wildenhues@gmx.de>.
19762
19763 2006-09-13  Simon Josefsson  <jas@extundo.com>
19764
19765         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
19766         @LIBOBJS@.
19767         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19768
19769 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19770
19771         * lib/_fpending.c: Include <config.h> unconditionally, since we no
19772         longer worry about uses that don't define HAVE_CONFIG_H.
19773         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
19774         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
19775         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
19776         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
19777         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
19778         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
19779         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
19780         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
19781         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
19782         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
19783         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
19784         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
19785         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
19786         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
19787         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
19788         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
19789         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
19790         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
19791         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
19792         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
19793         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
19794         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
19795         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
19796         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
19797         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
19798         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
19799         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
19800         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
19801         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
19802         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
19803         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
19804         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
19805         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
19806         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
19807         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
19808         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
19809         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
19810         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
19811         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
19812         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
19813         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
19814         Likewise.
19815
19816 2006-09-13  Eric Blake  <ebb9@byu.net>
19817
19818         * lib/getopt.c: Fix typo in last commit.
19819
19820 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19821
19822         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
19823         dgettext.
19824
19825 2006-09-12  Jim Meyering  <jim@meyering.net>
19826
19827         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
19828         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
19829         Reported by Nelson H. F. Beebe.
19830
19831 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
19832
19833         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
19834         program_invocation_name and program_invocation_short_name are
19835         initialized.
19836         * lib/argp-namefrob.h: Move declarations of program_invocation_name
19837         and program_invocation_short_name to argp.h, so they are visible
19838         to user programs.
19839         * lib/argp.h: Likewise
19840
19841 2006-09-10  Bruno Haible  <bruno@clisp.org>
19842
19843         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
19844         m4/inttypes_h.m4, m4/uintmax_t.m4.
19845
19846 2006-09-10  Bruno Haible  <bruno@clisp.org>
19847
19848         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
19849         gl_AC_TYPE_UINTMAX_T.
19850
19851 2006-09-10  Bruno Haible  <bruno@clisp.org>
19852
19853         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
19854
19855 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
19856
19857         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
19858         convention.  Text proposed by Bruno Haible.
19859         (struct argp_option): Document the use of N_() wrappers.
19860
19861         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
19862         '\v', and translate the two parts separately, instead of feeding
19863         the whole string to gettext.  This allows to exclude
19864         '\v' from the strings visible to the translator by writing doc
19865         strings as N_("..") "\v" N_("..").
19866
19867 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
19868
19869         * config/srclist.txt: Undo latest change; the bug was fixed.
19870
19871 2006-09-09  Bruno Haible  <bruno@clisp.org>
19872
19873         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
19874         assignments if building a library without libtool.
19875         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
19876         in func_emit_lib_Makefile_am.
19877         (func_import): When building a static library libfoo.a, arrange to
19878         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
19879         (func_create_testdir): Likewise.
19880         * modules/gc (configure.ac, Makefile.am): If building statically,
19881         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
19882         * modules/iconvme (configure.ac, Makefile.am): Likewise.
19883         * modules/striconv (configure.ac, Makefile.am): Likewise.
19884         Based on a suggestion by Ralf Wildenhues.
19885
19886 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19887
19888         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
19889         Check for unistd.h too, since Autoconf doesn't assume POSIX.
19890         Also:
19891
19892         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19893         Add year_2050_test to catch glibc bug 2821
19894         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19895
19896         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19897         Prefer #ifdef to #if.
19898
19899         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
19900         Return from 'main' instead of calling 'exit'.
19901
19902 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19903
19904         * lib/mktime.c (guess_time_tm): Fix bug where mktime
19905         returned the maximum time_t value rather than (time_t) -1.
19906         Problem originally reported by William Bardwell
19907         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19908
19909         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19910         Moved to here ...
19911         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19912         ... from here.
19913
19914 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
19915
19916         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
19917         2821 is fixed.
19918
19919 2006-09-08  Jim Meyering  <jim@meyering.net>
19920
19921         Don't make generated files read-only.  That would bother too many
19922         people.  However, do retain the ability to work when targets are
19923         read-only: remove the destination and temporary files before writing
19924         them (when generated via sed or echo), or by using the -f option for
19925         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
19926         * modules/alloca-opt, modules/argz, modules/arpa_inet:
19927         * modules/byteswap, modules/configmake, modules/fcntl:
19928         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19929         * modules/localcharset, modules/netinet_in, modules/poll:
19930         * modules/stdbool, modules/stdint, modules/sys_select:
19931         * modules/sys_socket, modules/sys_stat, modules/sysexits:
19932
19933 2006-09-08  Jim Meyering  <jim@meyering.net>
19934
19935         Avoid new build failure on FreeBSD 6.0.
19936         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
19937         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
19938         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
19939
19940 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19941
19942         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
19943
19944 2006-09-07  Jim Meyering  <jim@meyering.net>
19945
19946         Fix global typo in last change: use chmod u-w, not chmod u-x.
19947         Spotted by Paul Eggert and Bruce Korb.
19948         * modules/alloca-opt, modules/argz, modules/arpa_inet:
19949         * modules/byteswap, modules/configmake, modules/fcntl:
19950         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19951         * modules/localcharset, modules/netinet_in, modules/poll:
19952         * modules/stdbool, modules/stdint, modules/sys_select:
19953         * modules/sys_socket, modules/sys_stat, modules/sysexits:
19954
19955 2006-09-06  Jim Meyering  <jim@meyering.net>
19956
19957         Make generated files be read-only.
19958         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
19959         Ensure that each generated file is now read-only.
19960         * modules/argz: Likewise.
19961         * modules/arpa_inet: Likewise.
19962         * modules/byteswap: Likewise.
19963         * modules/configmake: Likewise.
19964         * modules/fcntl: Likewise.
19965         * modules/fnmatch: Likewise.
19966         * modules/getopt: Likewise.
19967         * modules/glob: Likewise.
19968         * modules/inttypes: Likewise.
19969         * modules/netinet_in: Likewise.
19970         * modules/poll: Likewise.
19971         * modules/stdbool: Likewise.
19972         * modules/stdint: Likewise.
19973         * modules/sys_select: Likewise.
19974         * modules/sys_socket: Likewise.
19975         * modules/sys_stat: Likewise.
19976         * modules/sysexits: Likewise.
19977         * modules/localcharset: Same as above, but continue using temporary
19978         file named "t-$@" (why different?) rather than the "$@-t" used
19979         everywhere else.
19980
19981         * modules/sysexits (Makefile.am): Replace literal occurrences
19982         of "sysexit.h" more readable, and more consistent, "$@".
19983
19984 2006-09-06  Bruno Haible  <bruno@clisp.org>
19985
19986         * modules/striconv: New file.
19987         * modules/xstriconv: New file.
19988         * MODULES.html.sh (Internationalization functions): Add striconv,
19989         xstriconv.
19990
19991 2006-09-06  Bruno Haible  <bruno@clisp.org>
19992
19993         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
19994         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
19995         not using libtool correctly.
19996
19997 2006-09-06  Bruno Haible  <bruno@clisp.org>
19998
19999         * lib/striconv.h: New file.
20000         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
20001         iconvstring.c.
20002         * lib/xstriconv.h: New file.
20003         * lib/xstriconv.c: New file.
20004
20005 2006-09-06  Bruno Haible  <bruno@clisp.org>
20006
20007         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
20008         lib_..._LDFLAGS.
20009
20010 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20011
20012         * lib/argz_.h: Sync from Libtool.
20013
20014         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
20015                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20016
20017         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
20018
20019 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
20020
20021         * modules/trim: New file.
20022
20023 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
20024
20025         * lib/trim.h: New file.
20026         * lib/trim.c: New file.
20027
20028 2006-09-05  Bruno Haible  <bruno@clisp.org>
20029
20030         * MODULES.html.sh (String handling): Add trim.
20031
20032 2006-09-04  Karl Berry  <karl@gnu.org>
20033
20034         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
20035         until next release.
20036
20037 2006-09-03  Bruno Haible  <bruno@clisp.org>
20038
20039         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
20040         correctly.
20041
20042 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20043
20044         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
20045         not gl_GETLOADAVG.  Omit unneeded semicolons.
20046         Problems reported by Ralf Wildenhues in
20047         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
20048         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
20049         at the end, which is the usual gnulib style.
20050
20051         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
20052         of doing all the work ourselves.
20053         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
20054         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
20055
20056 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20057
20058         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
20059         Problem reported by Ralf Wildenhues in
20060         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
20061
20062         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
20063         HAVE_STRUCT_STATFS_F_FSTYPENAME.
20064
20065 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20066
20067         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
20068         yesterday's patch by changing test -n to test -z.
20069
20070 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
20071
20072         * modules/getloadavg (Files): Add m4/getloadavg.m4.
20073         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
20074         the former is now obsolescent.
20075
20076         * modules/chdir-long (Depends-on): Add fcntl.
20077
20078 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
20079
20080         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
20081         obsolescent, and programs should use gnulib instead.
20082         * m4/getloadavg.m4: New file, with contents taken from Autoconf
20083         but with prefixes changed.
20084
20085 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
20086
20087         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
20088         or stdbool.h, because they might not exist while configuring.
20089
20090         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
20091         Don't include unistd.h or limits.h; not needed, since chdir-long.h
20092         does that for us.
20093         (O_DIRECTORY): Remove.
20094
20095 2006-08-31  Eric Blake  <ebb9@byu.net>
20096
20097         * gnulib-tool: Don't let emacs change spaces to TAB.
20098
20099 2006-08-31  Bruno Haible  <bruno@clisp.org>
20100
20101         * gnulib-tool: When calling func_import more than once, do it in a
20102         subshell.
20103         Reported by Eric Blake <ebb9@byu.net>.
20104
20105 2006-08-31  Bruno Haible  <bruno@clisp.org>
20106
20107         * gnulib-tool (nl): Remove variable.
20108         (sed_transform_lib_file): Use more robust test for config-h module.
20109         (func_import): Fix typo in 2006-08-25 patch.
20110
20111 2006-08-31  Bruno Haible  <bruno@clisp.org>
20112
20113         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
20114         specified, augment Makefile.am variables instead of assigning them.
20115
20116 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
20117
20118         Work around a bug in both the Linux and SunOS 64-bit kernels:
20119         nanosleep mishandles sleeps for longer than 2**31 seconds.
20120         Problem reported by Frank v Waveren in
20121         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
20122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
20123         Check for nanosleep bug.
20124         (LIB_NANOSLEEP): Append clock_gettime library if needed.
20125
20126 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
20127
20128         Work around a bug in both the Linux and SunOS 64-bit kernels:
20129         nanosleep mishandles sleeps for longer than 2**31 seconds.
20130         Problem reported by Frank v Waveren in
20131         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
20132         * lib/nanosleep.c (BILLION): New constant.
20133         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
20134         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
20135         implementation.
20136
20137 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
20138
20139         * modules/nanosleep (Depends-on): Add gettime.
20140
20141 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
20142         and Simon Josefsson  <jas@extundo.com>
20143         and Oskar Liljeblad  <oskar@osk.mine.nu>
20144
20145         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
20146         * gnulib-tool (func_import): New license type 'unmodifiable license
20147         text'.
20148         * modules/fdl: Use it.  Longer description.
20149         * module/gpl, module/lgpl: New files.
20150
20151 2006-08-30  Jim Meyering  <jim@meyering.net>
20152
20153         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
20154         shadowing the parameter.
20155
20156 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20157
20158         Sync from Libtool:
20159
20160         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20161
20162         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
20163         sharing with gnulib.  Report by Eric Blake.
20164
20165 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
20166
20167         * modules/isapipe: New file.
20168         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
20169
20170 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
20171
20172         * modules/configmake (Makefile.am): Add a comment, and omit
20173         the CONFIGMAKE_ prefix from generated macro names.  Suggested
20174         by Bruno Haible.
20175
20176 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
20177
20178         * m4/isapipe.m4: New file.
20179
20180 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
20181
20182         * lib/isapipe.c, lib/isapipe.h: New files.
20183
20184 2006-08-29  Jim Meyering  <jim@meyering.net>
20185
20186         * modules/configmake (Makefile.am): Make configmake.h depend on
20187         Makefile.  Otherwise, a stale configmake.h could hang around.
20188
20189 2006-08-29  Eric Blake  <ebb9@byu.net>
20190
20191         * lib/error.c (error_at_line, print_errno_message): Match libc, after
20192         resolution of upstream bug 3044.
20193
20194 2006-08-29  Bruno Haible  <bruno@clisp.org>
20195
20196         * modules/localcharset (Depends-on): Add configmake.
20197         (Makefile.am): Remove setting of LIBDIR through DEFS.
20198
20199 2006-08-29  Bruno Haible  <bruno@clisp.org>
20200
20201         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
20202         defined.
20203
20204 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
20205
20206         * modules/fcntl: New file.
20207         * modules/chdir-safer (Depends-on): Add fcntl.
20208         * modules/fts: Likewise.
20209         * modules/mkdir-p: Likewise.
20210
20211         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
20212         This undoes the most recent change, since we're now addressing the
20213         problem in a different way.
20214
20215         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
20216         into output, since the output might be called Makefile.am even
20217         if $makefile_name is something different.
20218         (func_import): Use $makefile_am rather than
20219         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
20220         empty.
20221
20222         * modules/inttypes (Files): Add m4/inttypes-h.m4.
20223
20224 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
20225
20226         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
20227         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
20228         recent change to stdint.m4, since we're now addressing the problem in a
20229         different way.
20230
20231 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
20232
20233         * m4/fcntl_h.m4: New file.
20234
20235 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
20236
20237         * lib/fcntl_.h: New file.
20238         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
20239         the fcntl module.
20240         * lib/dirchownmod.c: Likewise.
20241         * lib/fts.c: Likewise.
20242
20243         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
20244         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
20245         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
20246         just before including <inttypes.h>, to avoid circular inclusion.
20247
20248 2006-08-28  Jim Meyering  <jim@meyering.net>
20249
20250         * doc/visibility.texi: Actually read and correct the grammar of the
20251         sentence affected by yesterday's change.
20252
20253 2006-08-28  Eric Blake  <ebb9@byu.net>
20254
20255         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
20256         needs wrapper.
20257
20258 2006-08-28  Eric Blake  <ebb9@byu.net>
20259
20260         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
20261
20262 2006-08-28  Eric Blake  <ebb9@byu.net>
20263
20264         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
20265
20266 2006-08-28  Bruno Haible  <bruno@clisp.org>
20267
20268         * modules/c-strstr: New file, from GNU gettext.
20269         * MODULES.html.sh (String handling): Add c-strstr.
20270
20271 2006-08-28  Bruno Haible  <bruno@clisp.org>
20272
20273         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
20274         macros.
20275         Reported by Eric Blake.
20276
20277 2006-08-28  Bruno Haible  <bruno@clisp.org>
20278
20279         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
20280         (VASNPRINTF): Return a string of length > INT_MAX without failing.
20281         * lib/vasprintf.c: Include errno.h, limits.h.
20282         (EOVERFLOW): New fallback definition.
20283         (vasprintf): Test here whether the string length is > INT_MAX.
20284         * lib/vsnprintf.c: Include errno.h, limits.h.
20285         (EOVERFLOW): New fallback definition.
20286         (vsnprintf): Fix bug when generated string was too long for the buffer.
20287         Test here whether the string length is > INT_MAX.
20288
20289 2006-08-28  Bruno Haible  <bruno@clisp.org>
20290
20291         * lib/inttypes_.h (SCNX*): Remove definitions.
20292         Reported by Eric Blake.
20293
20294 2006-08-28  Bruno Haible  <bruno@clisp.org>
20295
20296         * lib/c-strstr.h: New file, from GNU gettext.
20297         * lib/c-strstr.c: New file, from GNU gettext.
20298
20299 2006-08-28  Bruno Haible  <bruno@clisp.org>
20300
20301         * gnulib-tool: Reorder some statements.
20302
20303 2006-08-28  Bruno Haible  <bruno@clisp.org>
20304
20305         * gnulib-tool: New option --makefile-name.
20306         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
20307         $makefile_name.
20308         (func_import): Write $makefile_name to the cache file, and read it from
20309         there unless explicitly specified. Use $makefile_name as file name
20310         instead of Makefile.am. Adjust the recommendations accordingly.
20311
20312 2006-08-28  Bruno Haible  <bruno@clisp.org>
20313
20314         * gnulib-tool (func_verify_module): Check against misapplying patch.
20315
20316 2006-08-28  Bruno Haible  <bruno@clisp.org>
20317
20318         * gnulib-tool (func_relativize, func_relconcat): New functions.
20319         Give an error if --local-dir is given with --update.
20320         Remove trailing slashes from $local_gnulib_dir.
20321         (func_import): Store the relativized $local_gnulib_dir in
20322         gnulib-cache.m4, and read it from there if not specified explicitly.
20323
20324 2006-08-28  Bruno Haible  <bruno@clisp.org>
20325
20326         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
20327         is the current directory. Respect also $local_gnulib_dir.
20328
20329 2006-08-28  Bruno Haible  <bruno@clisp.org>
20330             Simon Josefsson  <jas@extundo.com>
20331
20332         BeOS portability.
20333         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
20334
20335 2006-08-27  Jim Meyering  <jim@meyering.net>
20336
20337         * doc/visibility.texi: Remove duplicate word: "pointer".
20338
20339 2006-08-26  Bruno Haible  <bruno@clisp.org>
20340
20341         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
20342         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
20343         (Makefile.am): Create inttypes.h from inttypes_.h.
20344         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
20345
20346         * modules/imaxabs: New file.
20347
20348         * modules/imaxdiv: New file.
20349
20350 2006-08-26  Bruno Haible  <bruno@clisp.org>
20351
20352         * m4/inttypes.m4: New file.
20353         * m4/_inttypes_h.m4: Remove file.
20354         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
20355         PRI_MACROS_BROKEN.
20356         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
20357
20358         * m4/imaxabs.m4: New file.
20359
20360         * m4/imaxdiv.m4: New file.
20361
20362 2006-08-26  Bruno Haible  <bruno@clisp.org>
20363
20364         * lib/inttypes_.h: New file.
20365         * lib/inttypes.h: Remove file.
20366         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
20367
20368         * lib/imaxabs.c: New file.
20369
20370         * lib/imaxdiv.c: New file.
20371
20372 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
20373
20374         New config-h module, so that "make" output needn't be cluttered
20375         by -DHAVE_CONFIG_H.
20376         * MODULES.html.sh (Support for building libraries and executables):
20377         Add config-h.
20378         * modules/config-h: New file.
20379         * gnulib-tool (nl, sed_transform_lib_file): New vars.
20380         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
20381         the config-h module is used.
20382
20383         New configmake module, so that "make" output needn't be cluttered
20384         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
20385         * MODULES.html.sh (Support for building libraries and executables):
20386         Add configmake.
20387         * modules/configmake: New file.
20388
20389 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
20390
20391         * m4/config-h.m4: New file.
20392
20393 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20394
20395         * config/srclist.txt: Add elisp-comp.
20396
20397 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20398
20399         * MODULES.html.sh (Support for building libraries and executables):
20400         Add elisp-comp.
20401         * build-aux/elisp-comp: New file.
20402         * modules/elisp-comp: New file.
20403
20404 2006-08-24  Bruno Haible  <bruno@clisp.org>
20405
20406         * gnulib-tool (func_create_testdir): Use non-default values of
20407         sourcebase and m4base.
20408
20409 2006-08-24  Bruno Haible  <bruno@clisp.org>
20410
20411         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
20412         HTML structure.
20413
20414 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20415
20416         * modules/openat (Depends-on): Add lchown.
20417
20418 2006-08-23  Bruno Haible  <bruno@clisp.org>
20419
20420         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
20421         of gl_LOCK_EARLY instead of gl_LOCK.
20422
20423 2006-08-23  Bruno Haible  <bruno@clisp.org>
20424
20425         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
20426         on OSF/1 to no.
20427         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
20428
20429 2006-08-23  Bruno Haible  <bruno@clisp.org>
20430
20431         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
20432         as unusable.
20433
20434         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
20435         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
20436         (gl_LOCK): New macro.
20437
20438 2006-08-22  Simon Josefsson  <jas@extundo.com>
20439
20440         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
20441         to md5 module.
20442
20443 2006-08-22  Simon Josefsson  <jas@extundo.com>
20444
20445         * MODULES.html.sh: Add "Support for maintaining and release
20446         projects".
20447
20448         * build-aux/gnupload: New file, from coreutils.
20449
20450 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20451
20452         Avoid the need for AC_LIBSOURCES in m4 macros.
20453         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
20454         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
20455         * modules/check-version (EXTRA_DIST): Add check-version.h.
20456         * modules/crc (EXTRA_DIST): Add crc.h.
20457         * modules/des (EXTRA_DIST): Add des.h.
20458         * modules/gc (EXTRA_DIST): Add gc.h.
20459         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
20460         * modules/getline (EXTRA_DIST): Add getline.h.
20461         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
20462         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
20463         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
20464         * modules/md2 (EXTRA_DIST): Add md2.h.
20465         * modules/md4 (EXTRA_DIST): Add md4.h.
20466         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
20467         * modules/read-file (EXTRA_DIST): Add read-file.h.
20468         * modules/readline (EXTRA_DIST): Add readline.h.
20469         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
20470         rijndael-api-fst.h.
20471
20472 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20473
20474         * m4/rijndael.m4 (gl_ARCFOUR):
20475         * m4/arctwo.m4 (gl_ARCTWO):
20476         * m4/check-version.m4 (gl_CHECK_VERSION):
20477         * m4/crc.m4 (gl_CRC):
20478         * m4/des.m4 (gl_DES):
20479         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
20480         * m4/gc.m4 (gl_GC):
20481         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
20482         * m4/getline.m4 (gl_FUNC_GETLINE):
20483         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
20484         * m4/hmac-md5.m4 (gl_HMAC_MD5):
20485         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
20486         * m4/md2.m4 (gl_MD2):
20487         * m4/md4.m4 (gl_MD4):
20488         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
20489         * m4/read-file.m4 (gl_FUNC_READ_FILE):
20490         * m4/readline.m4 (gl_FUNC_READLINE):
20491         * m4/rijndael.m4 (gl_RIJNDAEL):
20492         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
20493         to get the necessary .h files and whatnot.
20494
20495 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20496
20497         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
20498         gnulib rather than the other way around.
20499         * config/srclistvars.sh (COREUTILS): Remove.
20500
20501 2006-08-22  Jim Meyering  <jim@meyering.net>
20502
20503         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
20504
20505         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
20506
20507 2006-08-22  Eric Blake  <ebb9@byu.net>
20508
20509         * modules/regexprops-generic: New file.
20510         * MODULES.html.sh (Support for building documentation): List it.
20511
20512 2006-08-22  Eric Blake  <ebb9@byu.net>
20513
20514         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
20515         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20516         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
20517         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20518
20519 2006-08-22  Bruno Haible  <bruno@clisp.org>
20520
20521         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
20522         and lib_LTLIBRARIES like the other lib_* variables.
20523
20524 2006-08-22  Bruno Haible  <bruno@clisp.org>
20525
20526         * build-aux/x-to-1.in: New file, from GNU gettext.
20527
20528 2006-08-22  Bruno Haible  <bruno@clisp.org>
20529
20530         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
20531         <utmpx.h> exists.
20532
20533 2006-08-22  Bruno Haible  <bruno@clisp.org>
20534
20535         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
20536         <utmpx.h> exists.
20537
20538 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20539
20540         BeOS portability.
20541         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
20542         exist.
20543         Problem reported by Bruno Haible.
20544
20545 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20546
20547         Avoid the need for AC_LIBSOURCES in m4 macros.
20548         * modules/acl (EXTRA_DIST): Add acl.h.
20549         * modules/argmatch (Files): Add m4/argmatch.m4.
20550         (configure.ac): Add gl_ARGMATCH.
20551         (EXTRA_DIST): Renamed from lib_SOURCES, for
20552         consistency with the other modules.  Remove argmatch.c.
20553         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
20554         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
20555         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
20556         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
20557         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
20558         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
20559         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
20560         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
20561         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
20562         * modules/closeout (EXTRA_DIST): Add closeout.h.
20563         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
20564         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
20565         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
20566         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
20567         dirname.h; remove basename.c and stripslash.c.
20568         * modules/exclude (EXTRA_DIST): Add exclude.h.
20569         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
20570         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
20571         * modules/file-type (EXTRA_DIST): Add file-type.h.
20572         * modules/filemode (EXTRA_DIST): Add filemode.h.
20573         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
20574         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20575         * modules/fpending (EXTRA_DIST): Add __fpending.h.
20576         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
20577         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
20578         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
20579         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
20580         * modules/getdate (EXTRA_DIST): Add getdate.c.
20581         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
20582         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
20583         * modules/getpass (EXTRA_DIST): Add getpass.h.
20584         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
20585         * modules/group-member (EXTRA_DIST): Add group-member.h.
20586         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
20587         * modules/hash (EXTRA_DIST): Add hash.h.
20588         * modules/human (EXTRA_DIST): Add human.h.
20589         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
20590         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
20591         * modules/lchown (EXTRA_DIST): Add lchown.h.
20592         * modules/long-options (EXTRA_DIST): Add long-options.h.
20593         * modules/lstat (EXTRA_DIST): Add lstat.h.
20594         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
20595         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
20596         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
20597         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
20598         * modules/memxor (EXTRA_DIST): Add memxor.h.
20599         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
20600         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
20601         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
20602         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
20603         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
20604         * modules/physmem (EXTRA_DIST): Add physmem.h.
20605         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
20606         * modules/posixver (EXTRA_DIST): Add posixver.h.
20607         * modules/quote (EXTRA_DIST): Add quote.h.
20608         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
20609         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
20610         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
20611         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
20612         regex_internal.h regexec.c.
20613         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
20614         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
20615         * modules/same (EXTRA_DIST): Add same.h.
20616         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
20617         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
20618         * modules/savedir (EXTRA_DIST): Add savedir.h.
20619         * modules/sha1 (EXTRA_DIST): Add sha1.h.
20620         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
20621         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
20622         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
20623         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
20624         * modules/strdup (EXTRA_DIST): Add strdup.h.
20625         * modules/strftime (EXTRA_DIST): Add strftime.h.
20626         * modules/strndup (EXTRA_DIST): Add strndup.h.
20627         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
20628         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
20629         * modules/time_r (EXTRA_DIST): Add time_r.h.
20630         * modules/timespec (EXTRA_DIST): Add timespec.h.
20631         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20632         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
20633         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
20634         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
20635         * modules/userspec (EXTRA_DIST): Add userspec.h.
20636         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
20637         * modules/utimens (EXTRA_DIST): Add utimens.h.
20638         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
20639         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
20640         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
20641         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
20642         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
20643         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
20644         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
20645         * modules/yesno (EXTRA_DIST): Add yesno.h.
20646
20647 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20648
20649         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
20650
20651         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
20652         * m4/dev-ino.m4, same-inode.m4: Remove.
20653
20654         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
20655         * m4/acl.m4 (AC_FUNC_ACL):
20656         * m4/backupfile.m4 (gl_BACKUPFILE):
20657         * m4/c-strtod.m4 (gl_C99_STRTOLD):
20658         * m4/canon-host.m4 (gl_CANON_HOST):
20659         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20660         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
20661         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
20662         * m4/cloexec.m4 (gl_CLOEXEC):
20663         * m4/close-stream.m4 (gl_CLOSE_STREAM):
20664         * m4/closeout.m4 (gl_CLOSEOUT):
20665         * m4/dirfd.m4 (gl_FUNC_DIRFD):
20666         * m4/dirname.m4 (gl_DIRNAME):
20667         * m4/exclude.m4 (gl_EXCLUDE):
20668         * m4/exitfail.m4 (gl_EXITFAIL):
20669         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
20670         * m4/file-type.m4 (gl_FILE_TYPE):
20671         * m4/filemode.m4 (gl_FILEMODE):
20672         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
20673         * m4/fpending.m4 (gl_FUNC_FPENDING):
20674         * m4/fprintftime.m4 (gl_FPRINTFTIME):
20675         * m4/fts.m4 (gl_FUNC_FTS):
20676         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
20677         * m4/getdate.m4 (gl_GETDATE):
20678         * m4/gethrxtime.m4 (gl_GETHRXTIME):
20679         * m4/getpagesize.m4 (gl_GETPAGESIZE):
20680         * m4/getpass.m4 (gl_FUNC_GETPASS):
20681         * m4/gettime.m4 (gl_GETTIME):
20682         * m4/getugroups.m4 (gl_GETUGROUPS):
20683         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
20684         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
20685         * m4/hard-locale.m4 (gl_HARD_LOCALE):
20686         * m4/hash.m4 (gl_HASH):
20687         * m4/idcache.m4 (gl_IDCACHE):
20688         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
20689         * m4/lchown.m4 (gl_FUNC_LCHOWN):
20690         * m4/long-options.m4 (gl_LONG_OPTIONS):
20691         * m4/lstat.m4 (gl_FUNC_LSTAT):
20692         * m4/md5.m4 (gl_MD5):
20693         * m4/memcasecmp.m4 (gl_MEMCASECMP):
20694         * m4/memcoll.m4 (gl_MEMCOLL):
20695         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
20696         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
20697         * m4/memxor.m4 (gl_MEMXOR):
20698         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
20699         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
20700         * m4/modechange.m4 (gl_MODECHANGE):
20701         * m4/mountlist.m4 (gl_MOUNTLIST):
20702         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20703         * m4/openat.m4 (gl_FUNC_OPENAT):
20704         * m4/pathmax.m4 (gl_PATHMAX):
20705         * m4/physmem.m4 (gl_PHYSMEM):
20706         * m4/posixtm.m4 (gl_POSIXTM):
20707         * m4/posixver.m4 (gl_POSIXVER):
20708         * m4/quote.m4 (gl_QUOTE):
20709         * m4/quotearg.m4 (gl_QUOTEARG):
20710         * m4/readtokens.m4 (gl_READTOKENS):
20711         * m4/readutmp.m4 (gl_READUTMP):
20712         * m4/regex.m4 (gl_REGEX):
20713         * m4/safe-read.m4 (gl_SAFE_READ):
20714         * m4/safe-write.m4 (gl_SAFE_WRITE):
20715         * m4/same.m4 (gl_SAME):
20716         * m4/save-cwd.m4 (gl_SAVE_CWD):
20717         * m4/savedir.m4 (gl_SAVEDIR):
20718         * m4/settime.m4 (gl_SETTIME):
20719         * m4/sha1.m4 (gl_SHA1):
20720         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
20721         * m4/stat-macros.m4 (gl_STAT_MACROS):
20722         * m4/stat-time.m4 (gl_STAT_TIME):
20723         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
20724         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
20725         * m4/strdup.m4 (gl_FUNC_STRDUP):
20726         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
20727         * m4/strndup.m4 (gl_FUNC_STRNDUP):
20728         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
20729         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
20730         * m4/time_r.m4 (gl_TIME_R):
20731         * m4/timespec.m4 (gl_TIMESPEC):
20732         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
20733         * m4/unlinkdir.m4 (gl_UNLINKDIR):
20734         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
20735         * m4/userspec.m4 (gl_USERSPEC):
20736         * m4/utimecmp.m4 (gl_UTIMECMP):
20737         * m4/utimens.m4 (gl_UTIMENS):
20738         * m4/xalloc.m4 (gl_XALLOC):
20739         * m4/xgetcwd.m4 (gl_XGETCWD):
20740         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
20741         * m4/xreadlink.m4 (gl_XREADLINK):
20742         * m4/xstrtod.m4 (gl_XSTRTOD):
20743         * m4/yesno.m4 (gl_YESNO):
20744         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
20745         to get the necessary .h files and whatnot.
20746
20747 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
20748             Bruno Haible  <bruno@clisp.org>
20749
20750         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
20751         /bin/sh understanding of '!' conditional negation.
20752
20753 2006-08-21  Jim Meyering  <jim@meyering.net>
20754
20755         * modules/openat (Depends-on): Really alphabetize.
20756
20757         * modules/acl (Depends-on): Add error and quote.
20758
20759         * check-module (find_included_lib_files): Add at-func.c to the
20760         ok-to-include-more-than-once white list.
20761
20762         * modules/openat (Depends-on): Add lstat.  Alphabetize.
20763
20764 2006-08-21  Bruno Haible  <bruno@clisp.org>
20765
20766         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20767         Emit a pkgdata_DATA variable only if some snippets add contents to it.
20768         Reported by Martin Lambers <marlam@marlam.de>.
20769
20770 2006-08-21  Bruno Haible  <bruno@clisp.org>
20771
20772         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
20773         specify an installation location, don't emit a noinst_LIBRARIES or
20774         noinst_LTLIBRARIES assignment.
20775
20776 2006-08-21  Bruno Haible  <bruno@clisp.org>
20777
20778         BeOS portability.
20779         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
20780         BeOS has mbrtowc() but no <wctype.h>.
20781
20782 2006-08-21  Bruno Haible  <bruno@clisp.org>
20783
20784         BeOS portability.
20785         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
20786         exist.
20787
20788 2006-08-21  Bruno Haible  <bruno@clisp.org>
20789
20790         BeOS portability.
20791         * lib/mbchar.h: Include <wctype.h> only if it exists.
20792
20793 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20794
20795         Remove files that are no longer needed by their respective modules.
20796         * m4/obstack.m4: Remove.
20797         * m4/strerror_r.m4: Remove.
20798         * m4/uint32_t.m4: Remove.
20799         * m4/uintptr_t.m4: Remove.
20800         * m4/ullong_max.m4: Remove.
20801         * m4/xstrtoimax.m4: Remove.
20802         * m4/xstrtoumax.m4: Remove.
20803
20804         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
20805         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
20806         dependencies now capture this.
20807
20808         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20809         Do not use AC_LIBSOURCES, since gnulib modules now do this.
20810         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
20811         * m4/human.m4 (gl_HUMAN): Likewise.
20812         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
20813         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
20814
20815         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
20816
20817         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
20818         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
20819         stdint.
20820         * m4/human.m4 (gl_HUMAN): Likewise.
20821         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
20822         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
20823         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20824         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20825         * m4/xstrtol (gl_XSTRTOL): Likewise.
20826
20827         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
20828         AC_TYPE_LONG_LONG_INT.
20829         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20830         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
20831         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
20832         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20833
20834         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
20835         on stdbool.
20836
20837         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
20838         (gl_PREREQ_XSTRTOUL): Remove.
20839
20840         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
20841
20842         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
20843         mode.
20844
20845 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20846
20847         Add and change modules to make it easier for coreutils to use
20848         gnulib-tool.
20849         * modules/backupfile (Files): Remove m4/d-ino.m4.
20850         (Depends-on): Add d-ino.
20851         * modules/cycle-check (Depends-on): Add stdint.
20852         (lib_SOURCES): Add cycle-check.h.
20853         * modules/d-ino: New module.
20854         * modules/d-type: New module.
20855         * modules/error (Files): Remove m4/strerror_r.m4.
20856         * modules/filemode (Files): Add m4/st_dm_mode.m4.
20857         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
20858         m4/inttypes_h.m4, m4/uintmax_t.m4.
20859         (Depends-on): Add stdint.
20860         (lib_SOURCES): Add fsusage.h.
20861         * modules/getcwd (Files): Remove d-ino.m4.
20862         (Depends-on): Add d-ino.
20863         * modules/getndelim2 (Depends-on): Add stdint.
20864         * modules/glob (Files): Remove m4/d-type.m4.
20865         (Depends-on): Add d-type.
20866         * modules/host-os: New module.
20867         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
20868         m4/inttypes_h.m4, m4/uintmax_t.m4.
20869         * Depends-on: Add stdint.
20870         (lib_SOURCES): Add human.h.
20871         * modules/inttostr (Files): Remove m4/intmax_t.m4,
20872         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
20873         m4/uintmax_t.m4, m4/ulonglong.m4.
20874         (Depends-on): Add stdint.
20875         (EXTRA_DIST): Add inttostr.h.
20876         * modules/lchmod: New module.
20877         * modules/link-follow: New module.
20878         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
20879         (Depends-on): Add lchmod.
20880         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
20881         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
20882         (Depends-on): Add stdint.
20883         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
20884         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
20885         (Depends-on): Add stdint.
20886         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
20887         * modules/perl: New module.
20888         * modules/regex (Depends-on): Add stdint.
20889         * modules/rmdir-errno: New module.
20890         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20891         m4/intmax_t.m4.
20892         (Depends-on): Add stdint.
20893         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20894         m4/uintmax_t.m4.
20895         (Depends-on): Add stdint.
20896         * modules/unlink-busy: New module.
20897         * modules/utimecmp (Depends-on): Add stdint.
20898         * modules/uptime: New module.
20899         * modules/winsz-ioctl: New module.
20900         * modules/winsz-termios: New module.
20901         * modules/xnanosleep (Depends-on): Add nanosleep.
20902         * modules/ullong_max: Remove.
20903         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
20904         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
20905         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
20906         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
20907         (Depends-on): Add inttypes.
20908         (lib_SOURCES): Add xstrtol.h.
20909         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
20910         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
20911         * MODULES.html.sh: Move 'assert' into the assert section.
20912         Move 'dummy' into the linking section.
20913         Remove ullong_max.
20914         Add section for compatibility checks for POSIX:2001 functions,
20915         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
20916         winsz-ioctl, and winsz-termios into it.
20917         Add lchmod.
20918         Add top-level Misc section and put host-os, perl, and uptime
20919         into it.
20920
20921 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20922
20923         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
20924         now assume the stdint module.  Do not include inttypes.h.
20925         * lib/fsusage.h: Likewise.
20926         * lib/getndelim2.c: Likewise.
20927         * lib/human.h: Likewise.
20928         * lib/inttostr.h: Likewise.
20929         * lib/obstack.c: Likewise.
20930         * lib/regex_internal.h: Likewise.
20931         * lib/tempname.c: Likewise.
20932         * lib/utimecmp.c: Likewise.
20933         * lib/xstrtol.h: Likewise.
20934
20935         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
20936
20937         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
20938         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
20939         * lib/xtime.h: Likewise.
20940
20941 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20942
20943         * modules/openat (Files): Add lib/fchmodat.c.
20944         Fixes problem reported by Jay Youngman.
20945
20946 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20947
20948         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
20949         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
20950
20951 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
20952             Bruno Haible  <bruno@clisp.org>
20953
20954         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
20955         and is a script that invokes bison. Tighten the code. Add comments.
20956
20957 2006-08-18  Jim Meyering  <jim@meyering.net>
20958
20959         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
20960         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
20961         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
20962         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
20963
20964 2006-08-18  Bruno Haible  <bruno@clisp.org>
20965
20966         * modules/bison-i18n: New file.
20967         * MODULES.html.sh (Internationalization functions): Add it.
20968
20969 2006-08-18  Bruno Haible  <bruno@clisp.org>
20970
20971         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
20972         sys/statvfs.h. When getmntinfo was found, check its declaration and
20973         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
20974
20975 2006-08-18  Bruno Haible  <bruno@clisp.org>
20976
20977         * m4/bison-i18n.m4: New file, from bison.
20978
20979 2006-08-18  Bruno Haible  <bruno@clisp.org>
20980
20981         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
20982         (ME_DUMMY): Treat "kernfs" as a dummy.
20983         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
20984
20985 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20986
20987         Update from coreutils.
20988
20989         2006-08-15  Jim Meyering  <jim@meyering.net>
20990
20991         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
20992
20993         2006-01-17  Jim Meyering  <jim@meyering.net>
20994
20995         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
20996
20997         2006-01-11  Jim Meyering  <jim@meyering.net>
20998
20999         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
21000         Check for the lchmod function.
21001
21002 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21003
21004         Update from coreutils.
21005
21006         * lib/__fpending.h: Add copyright notice.
21007         * lib/fprintftime.h: Likewise.
21008         * lib/savedir.c: Use (C) in copyright notice.
21009         * lib/savedir.h: Likewise.
21010
21011         2006-08-15  Jim Meyering  <jim@meyering.net>
21012
21013         * lib/at-func.c: New file, with the logic of all emulated at-functions.
21014         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
21015         in support of the EXPECTED_ERRNO macro.
21016         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
21017         definitions.  Instead, define the appropriate symbols and include
21018         "at-func.c".
21019         * lib/mkdirat.c (mkdirat): Likewise.
21020         * lib/fchmodat.c (fchmodat): Likewise.
21021         (ENOSYS): Remove definition.
21022         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
21023         it.  Don't include "unistd--.h" -- it wasn't ever used.
21024
21025         2006-01-17  Jim Meyering  <jim@meyering.net>
21026
21027         Rewrite fts.c not to change the current working directory,
21028         by using openat, fstatat, fdopendir, etc..
21029
21030         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
21031         (HAVE_OPENAT_SUPPORT): Define.
21032         [_LIBC] (fchdir): Don't undef or define; no longer used.
21033         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
21034         Now, this `function' always succeeds, and consumes its file descriptor
21035         parameter -- so callers must not close such FDs.  Update callers.
21036         (diropen_fd, opendirat, cwd_advance_fd): New functions.
21037         (diropen): Add parameter, SP.  Adjust all callers.
21038         Implement using diropen_fd, rather than open.
21039         (fts_open): Initialize new member, fts_cwd_fd.
21040         Remove fts_rft-setting code.
21041         (fts_close): Close fts_cwd_fd, if necessary.
21042         (__opendir2): Define in terms of opendir or opendirat,
21043         depending on whether the FST_NOCHDIR flag is set.
21044         (fts_build): Since fts_safe_changedir consumes its FD, and since
21045         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
21046         and close the dup'd file descriptor upon failure.
21047         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
21048         (fts_safe_changedir): Tweak semantics to reflect that this function
21049         now calls cwd_advance_fd and hence consumes its FD argument.
21050         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
21051         [struct FTS] (fts_rft): Remove now-unused member.
21052         [struct FTS] (fts_cycle.state): Improve comment.
21053
21054         * lib/openat.c (openat_needs_fchdir): New function.
21055         * lib/openat.h (openat_needs_fchdir): Declare it.
21056
21057 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
21058
21059         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
21060         Problem and fix reported by Pádraig Brady in
21061         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
21062
21063 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21064
21065         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
21066
21067 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21068
21069         * lib/memcoll.c (memcoll): Optimize for the common case where the
21070         arguments are bytewise equal.
21071
21072 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21073
21074         * doc/regexprops-generic.texi: Add a copyright notice.
21075
21076 2006-08-15  Bruno Haible  <bruno@clisp.org>
21077
21078         * modules/tmpdir (License): Change to LGPL.
21079
21080 2006-08-15  Bruno Haible  <bruno@clisp.org>
21081
21082         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
21083         module.
21084
21085 2006-08-14  Simon Josefsson  <jas@extundo.com>
21086
21087         * config/srclist.txt: Add gnupload.
21088
21089 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21090
21091         Change copyright notice from LGPL 2 to GPL 2, since that's the
21092         standard form used in the gnulib repository.
21093         * tests/test-lock.c: Likewise.
21094         * tests/test-stdint.c: Likewise.
21095         * tests/test-tls.c: Likewise.
21096
21097         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
21098         prelude-manager.  User shorter URLs for GNU projects, without '?'.
21099         Add copyright notice.
21100
21101         * check-module: Add copyright notice.  Output a copyright
21102         notice if "--version" is specified.
21103         * modules/COPYING: New file.
21104         * tests/test-getaddrinfo.c: Add copyright notice.
21105         * tests/test-verify.c: Likewise.
21106
21107 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21108
21109         Change copyright notice from LGPL 2 to GPL 2, since that's the
21110         standard form used in the gnulib repository.
21111         * lib/lock.c: LGPL -> GPL.
21112         * lib/lock.h: Likewise.
21113         * lib/strnlen1.c: Likewise.
21114         * lib/strnlen1.h: Likewise.
21115         * lib/tls.c: Likewise.
21116         * lib/tls.h: Likewise.
21117         * lib/tmpdir.c: Likewise.
21118
21119         * lib/TODO: Remove; this belongs only in coreutils.
21120
21121 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21122
21123         Add copyright notices to long-enough files that lack them, since
21124         otherwise the files aren't clearly free.  Use the same notice that
21125         getdate.texi already uses.
21126         * doc/alloca-opt.texi: Add copyright notice.
21127         * doc/alloca.texi: Likewise.
21128         * doc/ctime.texi: Likewise.
21129         * doc/functions.texi: Likewise.
21130         * doc/gcd.texi: Likewise.
21131         * doc/gnulib-tool.texi: Likewise.
21132         * doc/inet_ntoa.texi: Likewise.
21133         * doc/visibility.texi: Likewise.
21134
21135         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
21136         * doc/quote.texi: Add copyright notice.
21137
21138         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
21139         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
21140         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
21141         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
21142         is now obsolete, and give a pointer to the Sun list.
21143         Add copyright notice.
21144
21145 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21146
21147         * config/srclistvars.sh: Add copyright notice.
21148
21149 2006-08-14  Eric Blake  <ebb9@byu.net>
21150
21151         Import the following change from libc:
21152
21153         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
21154
21155         Upstream bug 2997.
21156         * lib/misc/error.c: Add space between program name and message if file
21157         name is missing.
21158
21159 2006-08-12  Karl Berry  <karl@gnu.org>
21160
21161         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
21162         remove, these originate in gnulib now.
21163
21164 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21165
21166         * doc/Makefile (standards.info standards.html standards.dvi):
21167         Also depend on make-stds.texi.
21168
21169 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
21170
21171         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
21172         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
21173
21174         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
21175         in wchar_t.  Problem reported by Eric Blake.
21176
21177         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
21178         LEN is smaller than SIZE.  Suggested by Bruno Haible.
21179         Also, help the compiler to keep LEN in a register.
21180
21181 2006-08-11  Eric Blake  <ebb9@byu.net>
21182
21183         * users.txt: Sort.  Add tar.
21184
21185 2006-08-11  Bruno Haible  <bruno@clisp.org>
21186
21187         * users.txt: New file.
21188
21189 2006-08-11  Bruno Haible  <bruno@clisp.org>
21190
21191         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
21192         before <wchar.h>. Needed for OSF/1 and BSD/OS.
21193
21194 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21195
21196         * modules/snprintf (Depends-on): Remove minmax.
21197         (Maintainer): Add self and Bruno.
21198
21199 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21200
21201         * lib/.cppi-disable: Add snprintf.h, socket_.h.
21202         * lib/snprintf.c: Include <errno.h> and <limits.h>.
21203         (EOVERFLOW): Define if the system does not.
21204         Do not include "minmax.h"; it wasn't used.
21205         (snprintf): Don't assume size_t promotes to an unsigned type.
21206         Fix bug when generated string was too long for the buffer: the
21207         buffer's contents are supposed to be the initial prefix of the
21208         output.  Don't assume vasnprintf returns EOVERFLOW if the size
21209         exceeds INT_MAX; do the check ourselves.
21210
21211         Import the following changes from libc:
21212
21213         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
21214
21215         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
21216         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
21217         set wc to the byte which couldn't be converted.
21218         (re_string_reconstruct): Don't clear valid_raw_len before calling
21219         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
21220         tip_context using re_string_context_at.
21221
21222         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
21223
21224         * lib/posix/regex.h: g++ still cannot handled [restrict].
21225
21226         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
21227
21228         * lib/posix/regex.h: Remove special handling for VMS.
21229
21230 2006-08-10  Jim Meyering  <jim@meyering.net>
21231
21232         * modules/same-inode: New module.
21233         * modules/dev-ino: New module.
21234         * modules/cycle-check: Depend on these modules, rather than simply
21235         including their .h files.
21236         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
21237         required via m4/cycle-check.m4.
21238         * modules/same: Depend on new same-inode module, rather than
21239         including same-inode.h.
21240         * modules/chdir-safer: New file.
21241
21242         * modules/chown (Depends-on): Add stat-macros.
21243
21244 2006-08-10  Jim Meyering  <jim@meyering.net>
21245
21246         * m4/cycle-check.m4: New file.
21247         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
21248         * m4/dev-ino.m4, m4/same-inode.m4: New files.
21249
21250 2006-08-10  Eric Blake  <ebb9@byu.net>
21251
21252         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
21253         in from original proposal.
21254
21255 2006-08-10  Eric Blake  <ebb9@byu.net>
21256         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21257
21258         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
21259         namespace.
21260
21261 2006-08-10  Bruno Haible  <bruno@clisp.org>
21262
21263         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
21264         as well.
21265
21266 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21267
21268         Sync from coreutils.
21269
21270         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
21271
21272         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
21273         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
21274
21275 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21276
21277         * modules/restrict: Remove; no longer needed now that we assume
21278         Autoconf 2.59 or later.
21279         * MODULES.html.sh: Remove 'restrict'.
21280         * modules/argp (Depends-on): Remove 'restrict'.
21281         * modules/base64 (Depends-on): Likewise.
21282         * modules/gc (Depends-on): Likewise.
21283         * modules/getaddrinfo (Depends-on): Likewise.
21284         * modules/glob (Depends-on): Likewise.
21285         * modules/inet_ntop (Depends-on): Likewise.
21286         * modules/inet_pton (Depends-on): Likewise.
21287         * modules/memxor (Depends-on): Likewise.
21288         * modules/regex (Depends-on): Likewise.
21289         * modules/strtok_r (Depends-on): Likewise.
21290         * modules/time_r (Depends-on): Likewise.
21291
21292 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21293
21294         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
21295         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
21296         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
21297         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
21298         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21299         * m4/memxor.m4 (gl_MEMXOR): Likewise.
21300         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
21301         gl_C_RESTRICT replaced by AC_C_RESTRICT.
21302
21303         Merge from coreutils.
21304         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
21305         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
21306         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
21307         * m4/time_r.m4 (gl_TIME_R): Likewise.
21308
21309 2006-08-09  Karl Berry  <karl@gnu.org>
21310
21311         * config/srclist.txt: no more gettext-tools, per Bruno.
21312
21313 2006-08-08  Eric Blake  <ebb9@byu.net>
21314
21315         * modules/verror: New module.
21316         * MODULES.html.sh: Document it.
21317
21318 2006-08-08  Eric Blake  <ebb9@byu.net>
21319
21320         * lib/verror.h, lib/verror.c: New files.
21321
21322 2006-08-08  Eric Blake  <ebb9@byu.net>
21323
21324         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
21325         verror_at_line output complies with GNU Coding Standards even when
21326         file is NULL.
21327
21328 2006-08-07  Bruno Haible  <bruno@clisp.org>
21329
21330         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
21331         versions of AIX.
21332         Reported by Ralf Wildenhues.
21333
21334 2006-08-07  Bruno Haible  <bruno@clisp.org>
21335
21336         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
21337         in an AC_DEFUN. Needed so that the autoconf snippets can use
21338         AC_REQUIRE.
21339
21340 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21341
21342         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21343         Initialize pkgdata_DATA.
21344         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
21345         overriding it.
21346
21347 2006-08-06  Eric Blake  <ebb9@byu.net>
21348
21349         * lib/error.h: Fold in some upstream changes from glibc.
21350         * lib/error.c: Likewise.
21351
21352 2006-08-04  Bruno Haible  <bruno@clisp.org>
21353
21354         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21355         Make the mostlyclean-local rule depend on mostlyclean-generic.
21356         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
21357
21358 2006-07-31  Bruno Haible  <bruno@clisp.org>
21359
21360         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
21361         <stdlib.h>, <string.h>.
21362
21363 2006-07-30  Bruno Haible  <bruno@clisp.org>
21364
21365         * modules/readlink (License): Change to LGPL.
21366
21367 2006-07-30  Bruno Haible  <bruno@clisp.org>
21368
21369         * modules/javaversion (Makefile.am): Distribute javaversion.java and
21370         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
21371         set PKGDATADIR to point to it.
21372
21373 2006-07-30  Bruno Haible  <bruno@clisp.org>
21374
21375         * modules/csharpexec (configure.ac): Comment out macro invocation.
21376         * modules/javaexec (configure.ac): Likewise.
21377         * modules/javacomp-script (configure.ac): Likewise.
21378
21379         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
21380
21381 2006-07-30  Bruno Haible  <bruno@clisp.org>
21382
21383         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
21384         linked-list.
21385
21386 2006-07-30  Bruno Haible  <bruno@clisp.org>
21387
21388         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
21389
21390 2006-07-30  Bruno Haible  <bruno@clisp.org>
21391
21392         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21393         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
21394         get removed.
21395
21396 2006-07-29  Bruno Haible  <bruno@clisp.org>
21397
21398         Make it possible for gnulib-tool to work with locally modified or
21399         augmented gnulib repositories.
21400         * gnulib-tool (func_usage): Document --local-dir option.
21401         (local_gnulib_dir): New variable.
21402         Handle --local-dir option.
21403         (func_lookup_file): New function.
21404         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
21405         (func_get_description, func_get_filelist, func_get_description,
21406         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
21407         func_get_automake_snippet, func_get_include_directive,
21408         func_get_license, func_get_maintainer): Use func_lookup_file.
21409         (func_import, func_create_testdir): Use func_lookup_file.
21410
21411 2006-07-29  Bruno Haible  <bruno@clisp.org>
21412
21413         * modules/setenv (Depends-on): Add unistd.
21414
21415 2006-07-29  Bruno Haible  <bruno@clisp.org>
21416
21417         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
21418
21419 2006-07-29  Bruno Haible  <bruno@clisp.org>
21420
21421         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
21422
21423 2006-07-29  Bruno Haible  <bruno@clisp.org>
21424
21425         * gnulib-tool (import, update): If there is no Makefile.am, look at
21426         aclocal.m4, instead of bailing out.
21427
21428 2006-07-29  Bruno Haible  <bruno@clisp.org>
21429
21430         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
21431         Categorize the options by when they are useful.
21432
21433 2006-07-29  Bruno Haible  <bruno@clisp.org>
21434
21435         * gnulib-tool (func_usage): Document option --no-libtool.
21436         Handle option --no-libtool.
21437         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
21438         for changed semantics of $libtool variable.
21439         (func_import): Likewise. If libtool is not used, show this through
21440         an option --no-libtool.
21441         (func_create_testdir): Update.
21442
21443 2006-07-29  Bruno Haible  <bruno@clisp.org>
21444
21445         * gnulib-tool (func_import): Extend error message about missing
21446         --doc-base.
21447
21448 2006-07-29  Bruno Haible  <bruno@clisp.org>
21449
21450         * gnulib-tool (func_import): Don't create the $docbase directory if
21451         there is no file to store there.
21452
21453 2006-07-29  Bruno Haible  <bruno@clisp.org>
21454
21455         * gnulib-tool (autoconf_minversion): If a --dir option is given and
21456         relevant, look for configure.ac there, not in the current directory.
21457         Also use a simple search for AC_PREREQ, not "autoconf --trace".
21458
21459 2006-07-29  Bruno Haible  <bruno@clisp.org>
21460
21461         * gnulib-tool (SORT): New variable.
21462         (func_usage): Undocument --assume-autoconf option.
21463         Remove --assume-autoconf option handling.
21464         (autoconf_minversion): Determine from the contents of configure.ac.
21465         (func_import): Remove autoconf_minversion handling.
21466         Suggested by Eric Blake.
21467
21468 2006-07-29  Bruno Haible  <bruno@clisp.org>
21469
21470         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
21471
21472 2006-07-29  Bruno Haible  <bruno@clisp.org>
21473
21474         * config/srclist.txt (*setenv.[ch]): Remove rules.
21475
21476 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21477
21478         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
21479
21480 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21481
21482         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
21483         arpa/inet.h.
21484
21485 2006-07-28  Simon Josefsson  <jas@extundo.com>
21486
21487         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
21488         * modules/inet_pton (Depends-on): Likewise.
21489
21490 2006-07-28  Simon Josefsson  <jas@extundo.com>
21491
21492         * m4/netinet_in_h.m4: New file.
21493
21494 2006-07-28  Simon Josefsson  <jas@extundo.com>
21495
21496         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
21497         #include's.
21498
21499 2006-07-28  Simon Josefsson  <jas@extundo.com>
21500
21501         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
21502         #include's.
21503
21504 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
21505
21506         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
21507         setgid on directories only if they set these bits.
21508         * lib/modechange.h: Remove obsolete comment about masks.
21509
21510 2006-07-28  Eric Blake  <ebb9@byu.net>
21511
21512         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
21513         macro expansion.
21514
21515 2006-07-28  Bruno Haible  <bruno@clisp.org>
21516
21517         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
21518
21519 2006-07-28  Bruno Haible  <bruno@clisp.org>
21520
21521         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
21522
21523 2006-07-28  Bruno Haible  <bruno@clisp.org>
21524
21525         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21526         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
21527         Define fallbacks.
21528         Avoids link error on FreeBSD 4.x.
21529         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21530
21531         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
21532         encoding.
21533         * lib/mbswidth.c (iswcntrl): Likewise.
21534
21535 2006-07-27  Bruno Haible  <bruno@clisp.org>
21536
21537         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
21538         test.
21539
21540 2006-07-27  Bruno Haible  <bruno@clisp.org>
21541
21542         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
21543         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
21544         defined.
21545
21546 2006-07-26  Eric Blake  <ebb9@byu.net>
21547
21548         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
21549
21550 2006-07-26  Eric Blake  <ebb9@byu.net>
21551
21552         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
21553         like mingw that lack mkstemp.
21554         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
21555         avoid compilation warning on mingw.
21556
21557 2006-07-26  Bruno Haible  <bruno@clisp.org>
21558
21559         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
21560         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
21561         INT_FAST*_MIN, INTPTR_MIN.
21562
21563 2006-07-25  Bruno Haible  <bruno@clisp.org>
21564
21565         * modules/version-etc (Depends-on): Add stdarg.
21566
21567 2006-07-25  Bruno Haible  <bruno@clisp.org>
21568
21569         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
21570         complex commands.
21571
21572 2006-07-25  Bruno Haible  <bruno@clisp.org>
21573
21574         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
21575         defined in <stdarg.h> or config.h.
21576
21577 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21578
21579         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
21580         (gl_STDIO_SAFER): Remove.
21581
21582 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21583
21584         * MODULES.html.sh (File stream based Input/Output):
21585         Add fopen-safer, tmpfile-safer; remove stdio-safer.
21586         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
21587         * modules/fopen-safer, modules/tmpfile-safer: New files.
21588         * modules/stdio-safer: Remove.
21589
21590 2006-07-24  Bruno Haible  <bruno@clisp.org>
21591
21592         * modules/tmpdir: New file.
21593         * MODULES.html.sh (File system functions): Add it.
21594
21595 2006-07-24  Bruno Haible  <bruno@clisp.org>
21596
21597         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
21598         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
21599
21600 2006-07-24  Bruno Haible  <bruno@clisp.org>
21601
21602         * modules/clean-temp: New file.
21603
21604 2006-07-24  Bruno Haible  <bruno@clisp.org>
21605
21606         * m4/tmpdir.m4: New file, from GNU gettext.
21607
21608 2006-07-24  Bruno Haible  <bruno@clisp.org>
21609
21610         * lib/tmpdir.h: New file, from GNU gettext.
21611         * lib/tmpdir.c: New file, from GNU gettext.
21612
21613 2006-07-24  Bruno Haible  <bruno@clisp.org>
21614
21615         * lib/clean-temp.h: New file, from GNU gettext.
21616         * lib/clean-temp.c: New file, from GNU gettext.
21617
21618 2006-07-23  Eric Blake  <ebb9@byu.net>
21619
21620         * modules/stdio-safer (Files): Add tmpfile-safer.c.
21621         (Depends-on): Add binary-io.
21622
21623 2006-07-23  Eric Blake  <ebb9@byu.net>
21624
21625         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
21626
21627 2006-07-23  Eric Blake  <ebb9@byu.net>
21628
21629         * lib/tmpfile-safer.c: New file.
21630         * lib/stdio-safer.h (fopen_safer): Add prototype.
21631         * lib/stdio--.h (tmpfile): Make safer.
21632
21633 2006-07-23  Bruno Haible  <bruno@clisp.org>
21634
21635         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
21636         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
21637         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
21638         gl_linked_remove_at): Use it.
21639
21640 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21641         and Simon Josefsson <jas@extundo.com>
21642
21643         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
21644
21645         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
21646
21647 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21648
21649         * modules/close-stream: New file.
21650         * modules/closeout (Description): Make it clear that it exits
21651         with a diagnostic on error.
21652         (Depends-on): Add close-stream.  Remove fpending, stdbool.
21653         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
21654
21655 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21656
21657         * m4/close-stream.m4: New file.
21658
21659 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21660
21661         * lib/close-stream.c, lib/close-stream.h: New files.
21662
21663 2006-07-22  Bruno Haible  <bruno@clisp.org>
21664
21665         Merge from GNU gettext 0.15.
21666
21667         2006-05-01  Bruno Haible  <bruno@clisp.org>
21668
21669                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
21670
21671         2006-07-22  Bruno Haible  <bruno@clisp.org>
21672
21673                 * modules/javaversion: New file.
21674                 * MODULES.html.sh (Java): Add javaversion.
21675
21676         2006-03-12  Bruno Haible  <bruno@clisp.org>
21677
21678                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
21679
21680         2005-12-04  Bruno Haible  <bruno@clisp.org>
21681
21682                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
21683                 (untested).
21684
21685         2006-06-21  Bruno Haible  <bruno@clisp.org>
21686
21687                 Avoid warnings from recent versions of mcs.
21688                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
21689                 -o, -L, -r any more. Use options documented since mcs-1.0
21690                 instead. Similarly for -g.
21691
21692         2005-12-04  Bruno Haible  <bruno@clisp.org>
21693
21694                 * build-aux/csharpcomp.sh.in: Suffix for resources is
21695                 .resources, not .resource.
21696
21697         2005-07-09  Bruno Haible  <bruno@clisp.org>
21698
21699                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
21700                 add a .dll suffix.
21701                 Reported by Mark Junker <mjscod@gmx.de>.
21702
21703         2006-07-22  Bruno Haible  <bruno@clisp.org>
21704
21705                 * modules/gettext: Upgrade to gettext-0.15.
21706                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
21707                 m4/visibility.m4.
21708                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
21709
21710 2006-07-22  Bruno Haible  <bruno@clisp.org>
21711
21712         Merge from GNU gettext 0.15.
21713
21714         2006-03-25  Bruno Haible  <bruno@clisp.org>
21715
21716                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
21717
21718         2006-07-21  Bruno Haible  <bruno@clisp.org>
21719
21720                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
21721                 "1.1".
21722
21723         2006-05-09  Bruno Haible  <bruno@clisp.org>
21724
21725                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
21726                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
21727                 for the conftestver execution.
21728
21729         2006-05-01  Bruno Haible  <bruno@clisp.org>
21730
21731                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
21732                 optional target-version argument. Verify that the compiler
21733                 groks source of the specified source-version, or add -source
21734                 option as necessary. Verify that the compiler produces
21735                 bytecode in the specified target-version, or add -target and
21736                 -source options as necessary. Make the result of the test
21737                 available as variable CONF_JAVAC. Also log error output in
21738                 config.log.
21739
21740         2006-03-11  Bruno Haible  <bruno@clisp.org>
21741
21742                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
21743
21744         2006-05-09  Bruno Haible  <bruno@clisp.org>
21745
21746                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
21747                 CLASSPATH_SEPARATOR to a semicolon.
21748
21749         2006-03-12  Bruno Haible  <bruno@clisp.org>
21750
21751                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
21752                 available as variable CONF_JAVA, for subsequent autoconf
21753                 tests. Also log error output in config.log.
21754
21755         2006-07-19  Bruno Haible  <bruno@clisp.org>
21756
21757                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
21758                 that getline works on glibc2 systems. Needed to avoid trouble
21759                 in relocatable.c.
21760                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
21761
21762         2005-12-04  Bruno Haible  <bruno@clisp.org>
21763
21764                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
21765                 launcher (untested).
21766
21767         2005-12-04  Bruno Haible  <bruno@clisp.org>
21768
21769                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
21770
21771         2006-07-22  Bruno Haible  <bruno@clisp.org>
21772
21773                 * gettext.m4: Update from GNU gettext-0.15.
21774                 * nls.m4: Likewise.
21775                 * po.m4: Likewise.
21776                 * inttypes-pri.m4: Likewise.
21777                 * inttypes-h.m4: Renamed from inttypes.m4.
21778                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
21779
21780 2006-07-22  Bruno Haible  <bruno@clisp.org>
21781
21782         Merge from GNU gettext 0.15.
21783
21784         2005-07-05  Bruno Haible  <bruno@clisp.org>
21785
21786                 * printf-args.c (printf_fetchargs): Work around broken
21787                 definition of wint_t on mingw.
21788
21789         2005-02-12  Bruno Haible  <bruno@clisp.org>
21790
21791                 * xallocsa.h: Add extern "C" for C++.
21792
21793         2006-05-17  Bruno Haible  <bruno@clisp.org>
21794
21795                 Cygwin portability.
21796                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
21797
21798         2006-04-30  Bruno Haible  <bruno@clisp.org>
21799
21800                 * progreloc.c: Include <mach-o/dyld.h> if available.
21801                 (find_executable): Use _NSGetExecutablePath when possible.
21802
21803         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
21804
21805                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
21806                 function.
21807
21808         2005-12-29  Bruno Haible  <bruno@clisp.org>
21809
21810                 * progreloc.c (set_program_name_and_installdir): Fix
21811                 compilation error.
21812
21813         2005-12-04  Bruno Haible  <bruno@clisp.org>
21814
21815                 Cygwin portability.
21816                 * progreloc.c: Include <windows.h> also on Cygwin.
21817                 (find_executable): Add support for Cygwin.
21818                 (set_program_name_and_installdir): Handle also platforms with
21819                 nonempty EXEEXT.
21820
21821         2006-07-11  Bruno Haible  <bruno@clisp.org>
21822
21823                 * javacomp.c: Fix a comment.
21824                 Reported by Jim Meyering.
21825
21826         2006-04-30  Bruno Haible  <bruno@clisp.org>
21827
21828                 * javacomp.h (compile_java_class): Add source_version,
21829                 target_version arguments.
21830                 * javacomp.c: Rewritten to choose only a compiler that
21831                 respects the specified source_version and target_version.
21832
21833         2006-06-27  Bruno Haible  <bruno@clisp.org>
21834
21835                 Assume correct S_ISDIR macro.
21836                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
21837
21838         2006-07-22  Bruno Haible  <bruno@clisp.org>
21839
21840                 * javaversion.h: New file, from GNU gettext.
21841                 * javaversion.c: New file, from GNU gettext.
21842                 * javaversion.java: New file, from GNU gettext.
21843                 * javaversion.class: New file, from GNU gettext.
21844
21845         2006-05-17  Bruno Haible  <bruno@clisp.org>
21846
21847                 Cygwin portability.
21848                 * javaexec.c (execute_java_class): Test for jview program
21849                 also on Cygwin.
21850
21851         2006-04-09  Bruno Haible  <bruno@clisp.org>
21852
21853                 * fatal-signal.c: Don't include string.h.
21854                 (at_fatal_signal): Use a copying loop instead of memcpy.
21855
21856         2005-12-04  Bruno Haible  <bruno@clisp.org>
21857
21858                 * csharpexec.c: Add support for 'clix' launcher (untested).
21859                 (execute_csharp_using_sscli): New function.
21860                 (execute_csharp_program): Call it.
21861
21862         2006-06-21  Bruno Haible  <bruno@clisp.org>
21863
21864                 Avoid warnings from recent versions of mcs.
21865                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
21866                 -o, -L, -r any more. Use options documented since mcs-1.0
21867                 instead. Similarly for -g.
21868
21869         2005-07-09  Bruno Haible  <bruno@clisp.org>
21870
21871                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
21872                 add a .dll suffix.
21873                 Reported by Mark Junker <mjscod@gmx.de>.
21874
21875         2006-06-17  Bruno Haible  <bruno@clisp.org>
21876
21877                 * config.charset: Update for NetBSD 3.0.
21878
21879         2006-05-17  Bruno Haible  <bruno@clisp.org>
21880
21881                 Cygwin portability.
21882                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
21883
21884         2006-05-16  Bruno Haible  <bruno@clisp.org>
21885
21886                 * localcharset.c [CYGWIN]: Include <windows.h>.
21887                 (get_charset_aliases): For Cygwin, return the same CPxxx
21888                 aliases list as under WIN32.
21889                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
21890                 the environment variables. Fall back to GetACP().
21891
21892         2006-04-05  Bruno Haible  <bruno@clisp.org>
21893
21894                 * config.charset: Update Juan Manuel Guerrero's address.
21895
21896         2005-02-12  Bruno Haible  <bruno@clisp.org>
21897
21898                 * allocsa.h: Add extern "C" for C++.
21899
21900         2005-02-10  Bruno Haible  <bruno@clisp.org>
21901
21902                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
21903                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
21904
21905         2006-07-22  Bruno Haible  <bruno@clisp.org>
21906
21907                 * gettext.h: Update to GNU gettext-0.15.
21908
21909 2006-07-22  Bruno Haible  <bruno@clisp.org>
21910
21911         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
21912         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
21913         lib-prefix.m4, longdouble.m4, ssize_t.m4.
21914
21915 2006-07-21  Eric Blake  <ebb9@byu.net>
21916
21917         * modules/stdlib-safer: New file.
21918         * MODULES.html.sh (File stream based Input/Output): Add
21919         stdlib-safer.
21920
21921 2006-07-21  Eric Blake  <ebb9@byu.net>
21922
21923         * lib/stdlib-safer.h: New file from coreutils, required by
21924         stdlib--.h.
21925
21926 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
21927
21928         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
21929
21930 2006-07-20  Bruno Haible  <bruno@clisp.org>
21931
21932         * gnulib-tool: Recognize new option --assume-autoconf.
21933         (autoconf_minversion): New variable.
21934         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
21935
21936 2006-07-20  Bruno Haible  <bruno@clisp.org>
21937
21938         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
21939
21940 2006-07-19  Derek R. Price  <derek@ximbiot.com>
21941
21942         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
21943         Reindent and repaginate.
21944
21945 2006-07-19  Derek Price  <derek@ximbiot.com>
21946
21947         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
21948         Correct grammar.
21949
21950 2006-07-17  Bruno Haible  <bruno@clisp.org>
21951
21952         * modules/list: New file.
21953         * modules/array-list: New file.
21954         * modules/carray-list, modules/carray-list-tests: New files.
21955         * modules/linked-list, modules/linked-list-tests: New files.
21956         * modules/avltree-list, modules/avltree-list-tests: New files.
21957         * modules/rbtree-list, modules/rbtree-list-tests: New files.
21958         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
21959         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
21960         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
21961         * modules/oset: New file.
21962         * modules/array-oset: New file.
21963         * modules/avltree-oset, modules/avltree-oset-tests: New files.
21964         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
21965         * tests/test-carray_list.c: New file.
21966         * tests/test-linked_list.c: New file.
21967         * tests/test-avltree_list.c: New file.
21968         * tests/test-rbtree_list.c: New file.
21969         * tests/test-linkedhash_list.c: New file.
21970         * tests/test-avltreehash_list.c: New file.
21971         * tests/test-rbtreehash_list.c: New file.
21972         * tests/test-avltree_oset.c: New file.
21973         * tests/test-rbtree_oset.c: New file.
21974         * MODULES.html.sh (Container data structures): New section.
21975
21976 2006-07-17  Bruno Haible  <bruno@clisp.org>
21977
21978         * m4/gl_list.m4: New file.
21979
21980 2006-07-17  Bruno Haible  <bruno@clisp.org>
21981
21982         * lib/gl_list.h: New file.
21983         * lib/gl_list.c: New file.
21984         * lib/gl_array_list.h: New file.
21985         * lib/gl_array_list.c: New file.
21986         * lib/gl_carray_list.h: New file.
21987         * lib/gl_carray_list.c: New file.
21988         * lib/gl_linked_list.h: New file.
21989         * lib/gl_linked_list.c: New file.
21990         * lib/gl_anylinked_list1.h: New file.
21991         * lib/gl_anylinked_list2.h: New file.
21992         * lib/gl_avltree_list.h: New file.
21993         * lib/gl_avltree_list.c: New file.
21994         * lib/gl_anyavltree_list1.h: New file.
21995         * lib/gl_anyavltree_list2.h: New file.
21996         * lib/gl_rbtree_list.h: New file.
21997         * lib/gl_rbtree_list.c: New file.
21998         * lib/gl_anyrbtree_list1.h: New file.
21999         * lib/gl_anyrbtree_list2.h: New file.
22000         * lib/gl_anytree_list1.h: New file.
22001         * lib/gl_anytree_list2.h: New file.
22002         * lib/gl_linkedhash_list.h: New file.
22003         * lib/gl_linkedhash_list.c: New file.
22004         * lib/gl_anyhash_list1.h: New file.
22005         * lib/gl_anyhash_list2.h: New file.
22006         * lib/gl_avltreehash_list.h: New file.
22007         * lib/gl_avltreehash_list.c: New file.
22008         * lib/gl_rbtreehash_list.h: New file.
22009         * lib/gl_rbtreehash_list.c: New file.
22010         * lib/gl_anytreehash_list1.h: New file.
22011         * lib/gl_anytreehash_list2.h: New file.
22012
22013         * lib/gl_oset.h: New file.
22014         * lib/gl_oset.c: New file.
22015         * lib/gl_array_oset.h: New file.
22016         * lib/gl_array_oset.c: New file.
22017         * lib/gl_avltree_oset.h: New file.
22018         * lib/gl_avltree_oset.c: New file.
22019         * lib/gl_rbtree_oset.h: New file.
22020         * lib/gl_rbtree_oset.c: New file.
22021         * lib/gl_anytree_oset.h: New file.
22022
22023 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
22024
22025         * m4/mkancesdirs.m4: New file.
22026         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
22027         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
22028         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
22029         it.
22030
22031 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
22032
22033         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
22034         * lib/mkancesdirs.h: New files.
22035         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
22036         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
22037         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
22038         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
22039         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
22040         callers changed.  Revamp internals significantly, by not
22041         attempting to create directories that are temporarily more
22042         permissive than the final results.  Do not attempt to use
22043         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
22044         This removes some race conditions, fixes some bugs, and simplifies
22045         things.  Use new dirchownmod function to do owner and mode changes.
22046         * lib/mkdir-p.h: Likewise.
22047         * lib/modechange.c (octal_to_mode): New function.
22048         (struct mode_change): New member mentioned.
22049         (make_node_op_equals): New arg mentioned.  All callers changed.
22050         (mode_compile): Keep track of which mode bits the user has explicitly
22051         mentioned.
22052         (mode_adjust): New arg DIR, so that we implement the X op correctly.
22053         New arg PMODE_BITS, to keep track of which mode bits the user
22054         mentioned; it treats S_ISUID and S_ISGID speciall.
22055         All callers changed.
22056         * lib/modechange.h: Likewise.
22057
22058 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
22059
22060         * MODULES.html.sh: Add mkancestors.
22061         * modules/mkancesdirs: New module.
22062         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
22063         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
22064         The chdir-safer and afs files are now orphans; I'll remove them
22065         unless someone speaks up.
22066         Add lib/dirchownmod.c, lib/dirchownmod.h.
22067         (Depends-on): Remove alloca, chown, save-cwd, dirname.
22068         Add lchown, mkancesdirs.
22069         (Maintainer): Add self.
22070
22071 2006-07-15  Karl Berry  <karl@gnu.org>
22072
22073         * gnulib-tool: help message wording/arrangement.
22074
22075 2006-07-14  Simon Josefsson  <jas@extundo.com>
22076
22077         * doc/gnulib.texi (Libtool and Windows): New section.
22078
22079 2006-07-12  Simon Josefsson  <jas@extundo.com>
22080
22081         * modules/gendocs (License): Fix license, approved by Karl.
22082
22083 2006-07-12  Eric Blake  <ebb9@byu.net>
22084
22085         * MODULES.html.sh: Add gendocs.
22086
22087 2006-07-11  Eric Blake  <ebb9@byu.net>
22088
22089         * modules/fdl: New module, to install doc/fdl.texi.
22090         * MODULES.html.sh: Add new section for documentation modules.
22091         * gnulib-tool: Avoid space-tab.
22092         (--doc-base): New option, to manage files from doc.
22093
22094 2006-07-11  Eric Blake  <ebb9@byu.net>
22095
22096         * m4/absolute-header.m4: Fix comments to match recent change.
22097
22098 2006-07-11  Eric Blake  <ebb9@byu.net>
22099
22100         * gnulib-tool: List --doc-base before --tests-base.
22101
22102 2006-07-11  Derek R. Price  <derek@ximbiot.com>
22103
22104         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
22105
22106 2006-07-11  Bruno Haible  <bruno@clisp.org>
22107
22108         * README: Mention where to put documentation.
22109
22110 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22111
22112         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
22113
22114 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22115
22116         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
22117         to stdint.m4.
22118
22119 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22120
22121         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
22122         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
22123         "no/such/file/stdint.h" when there is no such file, so that
22124         the resulting C code can be parsed by dodgy compilers.
22125         Problems reported by Bob Proulx.
22126
22127 2006-07-10  Derek R. Price  <derek@ximbiot.com>
22128
22129         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
22130         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
22131         macros into the GNU _D_EXACT_NAMLEN.
22132         * lib/savedir.c:  Likewise.
22133         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
22134
22135 2006-07-10  Derek R. Price  <derek@ximbiot.com>
22136         and Paul Eggert  <eggert@cs.ucla.edu>
22137
22138         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
22139         * m4/savedir.m4:
22140         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
22141         macros into the GNU _D_EXACT_NAMLEN.
22142
22143 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22144
22145         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
22146         around the absolute name, to work around a problem with the HP-UX
22147         11.23 native C compiler, reported by Bob Proulx.
22148
22149 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22150
22151         * doc/maintain.texi, make-stds.texi: Sync from
22152         <http://savannah.gnu.org/projects/gnustandards>.
22153
22154 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22155
22156         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
22157
22158 2006-07-09  Jim Meyering  <jim@meyering.net>
22159
22160         * m4/glob.m4: Remove a doubled word in a comment.
22161
22162 2006-07-09  Jim Meyering  <jim@meyering.net>
22163
22164         * lib/argp-pv.c: Remove a doubled word in a comment.
22165         * lib/check-version.c (check_version): Likewise.
22166         * lib/javacomp.c (compile_java_class): Likewise.
22167
22168 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22169
22170         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
22171         for the benefit of people using Autoconf 2.60.  If you want to
22172         support older Autoconf versions you can copy m4/onceonly_2_57.m4
22173         (or m4/onceonly.m4, if pre-2.57) manually.
22174
22175 2006-07-08  Jim Meyering  <jim@meyering.net>
22176
22177         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
22178         comment.
22179         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
22180         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
22181         comment.
22182
22183 2006-07-08  Jim Meyering  <jim@meyering.net>
22184
22185         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
22186
22187 2006-07-07  Simon Josefsson  <jas@extundo.com>
22188
22189         * tests/test-crc.c: Change expected crc value, the test vector
22190         were probably computed using the old broken crc.c?
22191
22192 2006-07-06  Simon Josefsson  <jas@extundo.com>
22193
22194         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
22195         now the canonical place for the M4 file).
22196
22197         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
22198         from the sys_socket dependency now.
22199
22200         * modules/inet_pton (Files): Ditto.
22201
22202         * modules/inet_ntop (Files): Ditto.
22203
22204 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
22205
22206         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
22207         not gl_PREREQ_GETUSERSHELL.
22208
22209 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22210
22211         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
22212         with only one argument, for Autoconf 2.60.
22213         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
22214         expand to nothing, so add a shell command to avoid syntax error.
22215         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
22216
22217 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22218
22219         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
22220
22221 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22222
22223         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
22224         no longer needed.  Check for isblank decl.
22225         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
22226         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
22227         of existence.
22228
22229 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22230
22231         * lib/getloadavg.c: Use __VMS, not VMS.
22232         * lib/getopt.c: Likewise.
22233         * lib/getpagesize.h: Likewise.
22234         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
22235         and probably does not work.
22236
22237 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22238
22239         * lib/.cppi-disable: Add wcwidth.
22240         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
22241         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
22242         (ISGRAPH): Remove.  All uses changed to isgraph.
22243         (FOLD) [!defined _LIBC]: Remove special case.
22244         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
22245         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
22246         HAVE_ISBLANK.
22247         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
22248         case.
22249
22250 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
22251
22252         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
22253         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
22254         brackets.  Other minor changes to suppress some compiler
22255         warnings.
22256
22257 2006-07-06  Derek R. Price  <derek@ximbiot.com>
22258         and Paul Eggert  <eggert@cs.ucla.edu>
22259
22260         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
22261         of invoking obsolescent AC_HEADER_DIRENT macro.
22262         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22263         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
22264         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22265         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
22266         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
22267         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
22268         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
22269         * m4/readdir.m4: Remove; no longer needed.
22270
22271 2006-07-06  Derek R. Price  <derek@ximbiot.com>
22272         and Paul Eggert  <eggert@cs.ucla.edu>
22273
22274         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
22275         Don't worry about this obsolete case any more.
22276         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
22277         directories.
22278         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
22279         worry about this obsolete case any more.
22280         * lib/fts.c: Likewise.
22281         * lib/getcwd.c: Likewise.
22282         * lib/glob.h: Likewise.
22283         * lib/savedir.c: Likewise.
22284
22285 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22286
22287         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
22288         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
22289         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
22290         needed.
22291         All uses removed.
22292         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
22293         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
22294         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
22295         needed.
22296         * m4/getdate.m4 (gl_GETDATE): Likewise.
22297         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
22298         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
22299         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22300         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
22301         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
22302         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
22303         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
22304         needed.
22305
22306 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22307
22308         * lib/memcasecmp.c: Include <limits.h>.
22309         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
22310         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
22311         Don't assume isdigit succeeds only on '0' through '9'.
22312
22313 2006-07-05  Eric Blake  <ebb9@byu.net>
22314
22315         * modules/getaddrinfo (Depends-on): Add snprintf.
22316
22317 2006-07-05  Eric Blake  <ebb9@byu.net>
22318
22319         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
22320         to avoid 'header present but could not be compiled' on cygwin.
22321
22322 2006-07-05  Eric Blake  <ebb9@byu.net>
22323
22324         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
22325         missing from netdb.h.
22326         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
22327
22328 2006-07-05  Derek R. Price  <derek@ximbiot.com>
22329
22330         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
22331         no longer needed.
22332         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
22333         * m4/getdate.m4 (gl_GETDATE): Likewise.
22334         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
22335         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
22336         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22337         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
22338         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
22339
22340 2006-07-05  Derek R. Price  <derek@ximbiot.com>
22341
22342         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
22343         All uses of is_space replaced by isspace.
22344         * lib/exit.h: Don't talk about STDC_HEADERS.
22345         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
22346         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
22347         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
22348         replaced by isprint etc.
22349         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
22350         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
22351         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
22352         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
22353         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
22354         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
22355
22356 2006-07-05  Bruno Haible  <bruno@clisp.org>
22357
22358         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
22359         the function exists, before testing against AIX.
22360         Reported by Martin Lambers <marlam@marlam.de>.
22361
22362 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
22363
22364         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
22365         From Mark D. Baushke.
22366
22367 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
22368
22369         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
22370         to the absolute name, not just one, to bypass Sun C 5.8's
22371         "warning: #include of /usr/include/... may be non-portable".
22372
22373 2006-07-04  Eric Blake  <ebb9@byu.net>
22374
22375         * modules/dirname-tests: New test module.
22376         * tests/test-dirname.c: New file, replacing dirname.c
22377         TEST_DIRNAME section that was recently deleted.
22378
22379 2006-07-04  Bruno Haible  <bruno@clisp.org>
22380
22381         Assume ANSI C header files and <ctype.h> functions.
22382         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
22383         (mbsnwidth): Use isprint, iscntrl instead.
22384
22385 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22386
22387         Merge from coreutils.
22388         * MODULES.html.sh: Add xstrtold.
22389         * modules/xstrtold: New file.
22390         * modules/cycle-check (Files): Add lib/same-inode.h.
22391         * modules/dirname (Files): Add m4/double-slash-root.m4.
22392         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
22393         * modules/mkdir-p (Files): Add lib/same-inode.h.
22394         * modules/same (Files): Add lib/same-inode.h.
22395
22396 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22397
22398         * m4/absolute-header.m4: Renamed from full-header-path.m4.
22399         This is to keep the terminology clean; POSIX talks about
22400         "absolute pathnames", not "full pathnames", but the GNU
22401         Coding Standards say to use "path" for something else;
22402         so use "absolute" to keep both sides happy.
22403         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
22404         Set gl_absolute_header, not gl_full_header_path.
22405         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
22406         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
22407         All uses changed.
22408
22409         Merge from coreutils.
22410
22411         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
22412
22413         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
22414         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
22415         want to require the building of c-strtod.o.
22416         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
22417         needs -lm directly.
22418         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
22419
22420         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
22421
22422         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
22423         --as-needed option if available.  Problem reported by Albert Chin in
22424         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
22425         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
22426         cc merely issues a bunch of annoying warnings for --as-needed
22427         (this problem was reported by Bob Proulx).  Also, try linking with
22428         -lm to detect a bug in binutils 2.16 (this problem was reported
22429         by Ralf Wildenhues).
22430
22431         2006-06-18  Jim Meyering  <jim@meyering.net>
22432
22433         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
22434         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
22435         macro.
22436         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
22437         also check for glibc-2.4's abort-inducing bug.
22438
22439         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
22440         Low-probability clean-up should be to use rmdir to get rid of
22441         the just-created directory, not unlink.
22442
22443         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
22444         configure fail, and request a bug report to inform us about it.
22445         Add a comment that, barring reports to the contrary, in 2007 we'll
22446         assume ftruncate is universally available.
22447
22448         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
22449
22450         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
22451
22452         2006-03-12  Jim Meyering  <jim@meyering.net>
22453
22454         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
22455         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
22456         * m4/same.m4 (gl_SAME): Likewise.
22457         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
22458
22459         2006-03-11  Eric Blake  <ebb9@byu.net>
22460
22461         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
22462         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
22463         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
22464         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
22465
22466 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22467
22468         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
22469         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
22470         reported by Mark D. Baushke, one in
22471         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
22472
22473         Merge from coreutils.
22474
22475         * lib/.cppi-disable: Add stdint_.h.
22476         * lib/.cvsignore: Add stdint.h.
22477
22478         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
22479
22480         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
22481         both double and long double versions.
22482         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
22483         * lib/xstrtold.c: New file.
22484         * lib/xstrtod.h (xstrtold): New decl.
22485
22486         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
22487
22488         * lib/filemode.c (setst): Remove.
22489         (strmode): Rewrite to avoid setst.  This makes the code shorter,
22490         (arguably) clearer, and the generated code is a bit smaller on my
22491         Debian GNU/Linux stable x86 host.
22492
22493         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
22494
22495         * lib/filemode.c: Include "filemode.h" first, to test the interface.
22496         Assume that filemode.h includes sys/types.h and sys/stat.h.
22497         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
22498         (ftypelet): Reorder to put common cases first, for efficiency.
22499         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
22500         to do 'M'.
22501         (strmode): Renamed from mode_string, and now stores 12 bytes instead
22502         of 10, for compatibility with FreeBSD.  All callers changed.
22503         (filemodestring): Now stores 12 bytes instead of 10, and sets file
22504         types that can't be deduced solely from st_mode.  First arg is now a
22505         const pointer.
22506         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
22507         (strmode): Renamed from mode_string.
22508         (filemodestring): New decl.
22509         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
22510         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
22511         needed.
22512         (S_ISPORT, S_ISWHT): New macros, if not already defined.
22513
22514         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
22515
22516         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
22517         fsusage.h now does that.  Include fsusage.h first, to test interface.
22518         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
22519         at most one method (the old code could have generated decls that
22520         didn't conform to C89, not that this was ever exercised).
22521         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
22522
22523         2006-03-19  Jim Meyering  <jim@meyering.net>
22524
22525         Work even in a chroot where d_ino values for entries in "/"
22526         don't match the stat.st_ino values for the same names.
22527         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
22528         number, iterate through all entries again, using lstat instead.
22529         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
22530         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
22531
22532         * lib/getcwd.c (__getcwd): Clarify a comment.
22533         Use memcpy in place of a call to strcpy.
22534
22535         2006-03-12  Jim Meyering  <jim@meyering.net>
22536
22537         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
22538         matches that of the current directory (which we're about to chdir ".."
22539         out of), then save the dev-ino of the parent, instead.
22540
22541         * lib/same-inode.h (SAME_INODE): New file/macro.
22542         * lib/chdir-safer.c (SAME_INODE): Remove definition.
22543         Include "same-inode.h", instead.
22544         * lib/same.c: Likewise.
22545         * lib/cycle-check.h: Include "same-inode.h".
22546         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
22547         * lib/cycle-check.c (SAME_INODE): Remove definition.
22548         * lib/root-dev-ino.h: Include "same-inode.h".
22549
22550         2006-03-11  Eric Blake  <ebb9@byu.net>
22551
22552         * lib/same.c (same_name): s/base_name/last_component/
22553         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
22554         * lib/filenamecat.c (file_name_concat): Likewise.
22555
22556         2006-03-11  Eric Blake  <ebb9@byu.net>,
22557                     Paul Eggert  <eggert@cs.ucla.edu>
22558
22559         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
22560         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
22561         drive prefix.
22562         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
22563         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
22564         (last_component): New method.
22565         * lib/dirname.c (dir_len): Determine when drive letters need a
22566         subsequent slash.  Preserve // when it is special.
22567         (dir_name): Don't append dot when drive letter is absolute.
22568         [TEST_DIRNAME]: Move into a full-blown gnulib test.
22569         * lib/basename.c (base_name): New semantics - malloc the result.
22570         Preserve // when it is special.  Preserve relative files that look
22571         like drive letters.
22572         (base_len): Preserve // when it is special.
22573         (last_component): New method, similar to old base_name semantics.
22574         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
22575         base_name.  Strip redundant slashes from ///.
22576
22577 2006-07-03  Jim Meyering  <jim@meyering.net>
22578
22579         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
22580         macro is used before the first cycle_check call.
22581
22582 2006-07-03  Eric Blake  <ebb9@byu.net>
22583
22584         * modules/dirname (Depends-on): Add xstrndup.
22585
22586 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22587
22588         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
22589         test cases, so that config.log is a bit easier to follow.
22590
22591 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22592
22593         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
22594         both are 64 bits, since this seems to be the tradition, and this
22595         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
22596         we ever run into a host that prefers long long to long in this
22597         case, we'll need another configure-time test.  Problem reported by
22598         Jim Meyering.
22599
22600 2006-07-02  Eric Blake  <ebb9@byu.net>
22601
22602         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
22603
22604 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22605
22606         * modules/inttypes (Depends-on): No longer depends on stdint.
22607         * modules/stdint (Description): Say more about assumptions.
22608         Say that the fast types might differ.  Say macros are used.
22609         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
22610         (Makefile.am): Revise list of substituted symbols to match
22611         new stdint.m4.
22612         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
22613         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
22614         * tests/test-stdint.c (verify_same_types)
22615         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
22616         the code conforms to C99/C89.
22617         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
22618         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
22619
22620 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22621
22622         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
22623         but fix a bug, by requiring at least 64 bits.
22624         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
22625         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
22626         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
22627         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
22628
22629         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
22630         changes.  Make 2.59 a prerequisite.  Check and substitute for
22631         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
22632         inttypes.h.  Do not use special include files; just use the
22633         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
22634         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
22635         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
22636         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
22637         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
22638         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
22639         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
22640         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
22641         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
22642         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
22643         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
22644         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
22645         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
22646         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
22647         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
22648         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
22649         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
22650         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
22651         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
22652         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
22653         WINT_MAX.  Check for C99 conformance more strictly, by detecting
22654         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
22655         not check for things that C99 does not require, e.g., int8_t.  If
22656         a test isn't needed unless <stdint.h> isn't working, and is
22657         unlikely to be needed for any other reason, then don't do it
22658         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
22659         size_t, since we assume C89 freestanding at least.  Do not check
22660         for sig_atomic_t, wchar_t, or wint_t, since the code now does
22661         the right thing even if the types are not defined.  Instead use:
22662         (gl_STDINT_TYPE_PROPERTIES): New macro.
22663         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
22664         testing whether <sys/types.h> clashes, as Autoconf does this for
22665         us now.  All uses removed.
22666         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
22667         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
22668         (gl_CHECK_TYPE_SAME):
22669         Remove; no longer needed.
22670         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
22671         exists, since we'll return 0 anyway in that case.
22672         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
22673
22674 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22675
22676         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
22677         possible collision with system files.
22678         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
22679         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
22680         WCHAR_MIN and WCHAR_MAX in this case.
22681         (<stddef.h>): Do not include; no longer needed.
22682         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
22683         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
22684         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
22685         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
22686         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
22687         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
22688         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
22689         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
22690         !defined(__c99))]: Include in this case too, since it's harmless
22691         now.
22692         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
22693         dangerous to do so.
22694         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
22695         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
22696         (_STDINT_MIN, _STDINT_MAX): New macros.
22697         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
22698         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
22699         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
22700         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
22701         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
22702         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
22703         macros, not typedefs; this simplifies things quite a bit.
22704         Use long int for all types narrower than int64_t.
22705         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
22706         Define in terms of long long int or int64_t or long int,
22707         not int64_t or int32_t.  This saves some compile-time testing.
22708         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
22709         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
22710         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
22711         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
22712         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
22713         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
22714         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
22715         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
22716         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
22717         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
22718         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22719         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22720         undef any previous version and define our own version, for
22721         simplicity and consistency with the new macros for types.
22722         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22723         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22724         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
22725         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
22726         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
22727         @WINT_T_SUFFIX@ to keep things simple here.
22728         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
22729         Simplify by assuming typical 8/16/32/64 host, since we're
22730         already doing that elsewhere anyway.
22731         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
22732         and assume long long int is 64 bits if available.  This
22733         speeds up 'configure'.
22734
22735 2006-07-01  Eric Blake  <ebb9@byu.net>
22736
22737         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
22738         Reported by Andreas Buening.
22739
22740 2006-07-01  Eric Blake  <ebb9@byu.net>
22741
22742         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
22743
22744 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
22745
22746         * lib/getaddrinfo.c: fixed typo
22747
22748 2006-06-29  Jim Meyering  <jim@meyering.net>
22749
22750         * modules/strftime (Maintainer): Add my name, since with the
22751         FPRINTFTIME changes strftime.c has forked from glibc.
22752
22753 2006-06-29  Eric Blake  <ebb9@byu.net>
22754
22755         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
22756
22757 2006-06-29  Eric Blake  <ebb9@byu.net>
22758
22759         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
22760
22761 2006-06-29  Eric Blake  <ebb9@byu.net>
22762
22763         * lib/stat_.h: New file.
22764
22765 2006-06-29  Eric Blake  <ebb9@byu.net>
22766
22767         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
22768         unused static function.
22769
22770 2006-06-29  Eric Blake  <ebb9@byu.net>
22771
22772         * doc/functions.texi (Function Portability): Document missing lstat
22773         on mingw.
22774
22775 2006-06-29  Eric Blake  <ebb9@byu.net>
22776
22777         * MODULES.html.sh: Add sys_stat.
22778         * modules/sys_stat: New module.
22779         * modules/mkstemp (Depends-on): Add sys_stat.
22780
22781 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22782
22783         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
22784
22785 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22786
22787         * m4/c-bs-a.m4: Removed.
22788
22789 2006-06-29  Derek R. Price  <derek@ximbiot.com>
22790
22791         * lib/strftime.c: Assume strftime() exists.
22792
22793 2006-06-29  Derek Price  <derek@ximbiot.com>
22794
22795         * modules/c-bs-a: Removed - \a is C89.
22796         * MODULES.html.sh: Remove c-bs-a.
22797
22798 2006-06-29  Bruno Haible  <bruno@clisp.org>
22799
22800         * modules/wcwidth (License): Change to LGPL.
22801
22802 2006-06-28  Simon Josefsson  <jas@extundo.com>
22803
22804         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
22805         on _WIN32.
22806
22807         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
22808         getnameinfo.
22809
22810 2006-06-28  Simon Josefsson  <jas@extundo.com>
22811
22812         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
22813
22814 2006-06-28  Simon Josefsson  <jas@extundo.com>
22815
22816         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
22817         functions there.  It will succeed on Windows XP, but on Windows
22818         2000 and (presumably) earlier, it will fail, and use the internal
22819         re-implementation.
22820         (use_win32_p): New function.
22821         (getaddrinfo): Use strtoul on servname, to support numeric ports.
22822         Support AI_NUMERICSERV to disable getservbyname.
22823         (getnameinfo): New function, only supports
22824         NI_NUMERICHOST|NI_NUMERICSERV for now.
22825
22826         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
22827         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
22828         getnameinfo.
22829
22830 2006-06-28  Eric Blake  <ebb9@byu.net>
22831
22832         * modules/wcwidth: New file.
22833         * modules/mbchar (Depends-on): Add wcwidth.
22834         * modules/mbswidth (Depends-on): Add wcwidth.
22835         * MODULES.html.sh: Add wcwidth.
22836
22837 2006-06-28  Eric Blake  <ebb9@byu.net>
22838
22839         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
22840         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
22841
22842 2006-06-28  Eric Blake  <ebb9@byu.net>
22843
22844         * lib/xvasprintf.h: Fix comments.
22845
22846 2006-06-28  Eric Blake  <ebb9@byu.net>
22847
22848         * lib/mbchar.h (wcwidth): Include wcwidth.h.
22849         * lib/mbswidth.c (wcwidth): Move from here...
22850         * lib/wcwidth.h: ...to this new file.
22851
22852 2006-06-28  Derek R. Price  <derek@ximbiot.com>
22853
22854         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
22855
22856         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
22857         it's obsolete.
22858         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
22859
22860 2006-06-28  Derek R. Price  <derek@ximbiot.com>
22861
22862         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
22863         Autoconf 2.60 says this stuff was obsolete.
22864
22865 2006-06-28  Bruno Haible  <bruno@clisp.org>
22866
22867         * modules/wcwidth (Files): Add m4/wchar_t.m4.
22868
22869 2006-06-28  Bruno Haible  <bruno@clisp.org>
22870
22871         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
22872         gt_TYPE_WCHAR_T.
22873
22874 2006-06-28  Bruno Haible  <bruno@clisp.org>
22875
22876         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
22877         declaration for wcwidth.
22878         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
22879
22880 2006-06-28  Bruno Haible  <bruno@clisp.org>
22881
22882         * lib/mkdtemp.c [MINGW]: Include <io.h>.
22883         (mkdir): Define using _mkdir.
22884
22885 2006-06-28  Bruno Haible  <bruno@clisp.org>
22886
22887         * lib/getaddrinfo.h: Fix POSIX URL.
22888         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
22889         _WIN32.
22890         (use_win32_p): Make static.
22891         (getaddrinfo): Reject service name if it is empty or does not consist
22892         solely of decimal digits, or if its value is > 65535.
22893         (getnameinfo): Remove useless casts.
22894
22895 2006-06-27  Simon Josefsson  <jas@extundo.com>
22896
22897         * modules/sys_select: New file, suggested by Bruno Haible, Paul
22898         Eggert and Martin Lambers.
22899
22900 2006-06-27  Simon Josefsson  <jas@extundo.com>
22901
22902         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
22903         Eggert and Martin Lambers.
22904
22905 2006-06-27  Bruno Haible  <bruno@clisp.org>
22906
22907         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
22908         result to 0, not to empty.
22909         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
22910
22911 2006-06-27  Bruno Haible  <bruno@clisp.org>
22912
22913         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
22914
22915 2006-06-26  Simon Josefsson  <jas@extundo.com>
22916
22917         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
22918         present.
22919
22920 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
22921
22922         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
22923         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
22924         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
22925
22926 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
22927
22928         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
22929
22930 2006-06-26  Bruno Haible  <bruno@clisp.org>
22931
22932         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
22933
22934 2006-06-26  Bruno Haible  <bruno@clisp.org>
22935
22936         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
22937
22938 2006-06-26  Bruno Haible  <bruno@clisp.org>
22939
22940         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
22941         SGI C compiler in pre-C99 mode.
22942         Suggested by Mark D. Baushke and Larry Jones.
22943
22944 2006-06-26  Bruno Haible  <bruno@clisp.org>
22945
22946         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
22947         WCHAR_MAX.
22948         Reported by Mark D. Baushke and Larry Jones.
22949
22950 2006-06-26  Bruno Haible  <bruno@clisp.org>
22951
22952         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
22953         in pre-C99 mode.
22954         Suggested by Mark D. Baushke and Larry Jones.
22955
22956 2006-06-23  Simon Josefsson  <jas@extundo.com>
22957             Bruno Haible  <bruno@clisp.org>
22958
22959         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
22960         Emit mostlyclean-local rule.
22961         (func_emit_tests_Makefile_am): Likewise.
22962         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
22963
22964 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
22965
22966         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
22967
22968 2006-06-23  Bruno Haible  <bruno@clisp.org>
22969
22970         * tests/test-stdint.c: Update to match ISO C 99 Technical
22971         Corrigendum 1.
22972
22973 2006-06-23  Bruno Haible  <bruno@clisp.org>
22974
22975         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
22976
22977 2006-06-23  Bruno Haible  <bruno@clisp.org>
22978
22979         * lib/stdint_.h: Treat IRIX like OpenBSD.
22980
22981 2006-06-23  Bruno Haible  <bruno@clisp.org>
22982
22983         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
22984         ISO C 99 Technical Corrigendum 1.
22985
22986 2006-06-22  Simon Josefsson  <jas@extundo.com>
22987
22988         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
22989         MinGW.
22990
22991 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22992
22993         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
22994         needed.  Some compiler complained about some of them.  Problem reported
22995         by Larry Jones in
22996         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
22997
22998 2006-06-21  Simon Josefsson  <jas@extundo.com>
22999
23000         * tests/test-getaddrinfo.c: New file.
23001
23002         * modules/getaddrinfo-tests: New file.
23003
23004         * MODULES.html.sh: Add inet_pton.
23005
23006         * modules/inet_pton: New file.
23007
23008 2006-06-21  Simon Josefsson  <jas@extundo.com>
23009
23010         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
23011         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
23012         of using the (limited) gnulib implementation on Windows XP.
23013
23014         * m4/inet_pton.m4: New file.
23015
23016 2006-06-21  Simon Josefsson  <jas@extundo.com>
23017
23018         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
23019         variable.
23020
23021         * lib/socket_.h: Don't define WINVER.
23022
23023         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
23024         slightly modified to work in gnulib.
23025
23026 2006-06-21  Simon Josefsson  <jas@extundo.com>
23027
23028         * doc/gnulib.texi (Windows sockets): Add.
23029
23030 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
23031
23032         * lib/read-file.c (fread_file): Start with buffer allocation of
23033         0 bytes rather than 1 byte; this simplifies the code.
23034         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
23035         code to free buffer and save/restore errno.
23036         (internal_read_file): Remove unused local.
23037
23038 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
23039
23040         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
23041         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
23042         Problem reported by Denis Excoffier in
23043         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
23044
23045 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23046
23047         * modules/sys_socket, modules/socklen: Include sys/types since
23048         FreeBSD 4.x's sys/socket.h needs it.
23049
23050 2006-06-19  Simon Josefsson  <jas@extundo.com>
23051
23052         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
23053
23054 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
23055
23056         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
23057
23058 2006-06-19  Bruno Haible  <bruno@clisp.org>
23059
23060         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
23061         and FULL_PATH_INTTYPES_H in angle brackets.
23062         Reported by Mark D. Baushke <mdb@gnu.org>.
23063
23064 2006-06-17  Eric Blake  <ebb9@byu.net>
23065
23066         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
23067         errno.
23068
23069 2006-06-17  Bruno Haible  <bruno@clisp.org>
23070
23071         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
23072         <sys/inttypes.h>.
23073
23074 2006-06-17  Bruno Haible  <bruno@clisp.org>
23075
23076         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
23077         whether errno is declared. Assume <errno.h> declares errno.
23078
23079 2006-06-17  Bruno Haible  <bruno@clisp.org>
23080
23081         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
23082
23083 2006-06-17  Bruno Haible  <bruno@clisp.org>
23084
23085         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
23086         problem on Solaris 2.5.1.
23087
23088 2006-06-16  Eric Blake  <ebb9@byu.net>
23089
23090         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
23091         * lib/unicodeio.c [!defined errno]: Likewise.
23092         * lib/strtol.c [!defined errno]: Likewise.
23093         * lib/strtod.c [!defined errno]: Likewise.
23094
23095 2006-06-15  Eric Blake  <ebb9@byu.net>
23096
23097         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
23098
23099 2006-06-15  Eric Blake  <ebb9@byu.net>
23100
23101         * config/srclist.txt (ssize_t.m4): Lose sync.
23102
23103 2006-06-15  Bruno Haible  <bruno@clisp.org>
23104
23105         * modules/stdint (Files): Include m4/full-header-path.m4,
23106         m4/size_max.m4, m4/wchar_t.m4.
23107         (Makefile.am): Many more substitutions.
23108         * modules/stdint-tests: New file.
23109         * tests/test-stdint.c: New file.
23110
23111 2006-06-15  Bruno Haible  <bruno@clisp.org>
23112
23113         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
23114         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
23115         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
23116         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
23117         gl_CHECK_TYPE_SAME): New macros.
23118
23119 2006-06-15  Bruno Haible  <bruno@clisp.org>
23120
23121         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
23122
23123 2006-06-15  Bruno Haible  <bruno@clisp.org>
23124
23125         * lib/stdint_.h: Rewritten to be fully auto-configured.
23126         Fixes bug on HP-UX/IA64.
23127
23128 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
23129
23130         * lib/getdate.y (__attribute__): Don't define if already defined.
23131         Problem reported by Larry Jones.
23132         * lib/utimens.c (__attribute__): Likewise.
23133
23134 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
23135
23136         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
23137         reported by Andreas Schwab.
23138
23139 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23140             Bruno Haible  <bruno@clisp.org>
23141
23142         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
23143         check for the declaration of strnlen and a run test that exposes the
23144         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
23145         rpl_strndup.
23146
23147 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23148             Bruno Haible  <bruno@clisp.org>
23149
23150         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
23151
23152 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23153
23154         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
23155         compile test, for Tru64 4.0D.
23156
23157 2006-05-28  Karl Berry  <karl@gnu.org>
23158
23159         * config/srclist.txt (printf-args.c): lose sync.
23160
23161 2006-05-26  Martin Lambers  <marlam@marlam.de>
23162
23163         * lib/getpass.c: Updates the test for the native W32 API, and adds
23164         missing includes, thus fixing compilation warnings.
23165
23166 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
23167
23168         * lib/exclude.c (exclude_fnmatch): New function.
23169         (excluded_file_name): Call exclude_fnmatch.
23170         * lib/exclude.h (excluded_file_name): New prototype
23171
23172 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
23173
23174         * lib/tempname.c (small_open, large_open): New macros.
23175         (__open, __open64) [!_LIBC]: Remove.
23176         (__gen_tempname): Use small_open and large_open instead of __open
23177         and __open64.  This fixes a portability bug on HP-UX 11.11i
23178         reported by Simon Wing-Tang in
23179         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
23180
23181 2006-05-24  Bruno Haible  <bruno@clisp.org>
23182
23183         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
23184         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
23185         Reported by Thorsten Maerz <torte@netztorte.de> via
23186         Aaron Stone <aaron@serendipity.cx>.
23187
23188 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23189
23190         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
23191         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
23192         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
23193         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
23194         not really conditional on the cache.
23195         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
23196
23197 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23198
23199         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
23200         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
23201         (my_usleep): Don't mishandle maximum value.
23202
23203 2006-05-19  Jim Meyering  <jim@meyering.net>
23204
23205         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
23206
23207 2006-05-17  Bruno Haible  <bruno@clisp.org>
23208
23209         Cygwin portability.
23210         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
23211
23212 2006-05-17  Bruno Haible  <bruno@clisp.org>
23213
23214         * lib/stdint_.h: Fix recognition of Cygwin.
23215
23216 2006-05-15  Bruno Haible  <bruno@clisp.org>
23217
23218         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
23219         on libtool patch by Ralf Wildenhues.
23220
23221 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23222
23223         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
23224         test for C99 conformance; (bool) 0.5 is an integer constant
23225         expression, but (bool) -0.5 is not.  Problem reported by Fedor
23226         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
23227
23228 2006-05-11  Simon Josefsson  <jas@extundo.com>
23229
23230         * m4/xvasprintf.m4: Fix obvious typo.
23231
23232 2006-05-11  Jim Meyering  <jim@meyering.net>
23233
23234         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
23235         James Lemley.
23236
23237 2006-05-10  Simon Josefsson  <jas@extundo.com>
23238
23239         * lib/md4.c: Typo fix, update copyright years.
23240         (K1, K2): Don't use L because it turn computations into 64-bit on
23241         64-bit platforms.
23242
23243 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
23244
23245         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
23246         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
23247         unwanted sign propagation, e.g., on hosts with 64-bit int.
23248         There still are some problems with reeelly weird theoretical hosts
23249         (e.g., 33-bit int) but it's not worth worrying about now.
23250         * lib/sha1.c (rol): Likewise.
23251         (K1, K2, K3, K4): Remove unnecessary L suffix.
23252
23253 2006-05-10  Bruno Haible  <bruno@clisp.org>
23254
23255         * lib/des.c: Cast to avoid warnings.
23256
23257 2006-05-09  Bruno Haible  <bruno@clisp.org>
23258
23259         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
23260         (Depends-on): Depend also on xsize, stdarg.
23261         (configure.ac): Add gl_XVASPRINTF.
23262
23263 2006-05-09  Bruno Haible  <bruno@clisp.org>
23264
23265         * m4/xvasprintf.m4: New file.
23266
23267 2006-05-09  Bruno Haible  <bruno@clisp.org>
23268
23269         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
23270         (EOVERFLOW): Define fallback value.
23271         (xstrcat): New function.
23272         (xvasprintf): Recognize the special case of a string concatenation.
23273
23274 2006-05-08  Eric Blake  <ebb9@byu.net>
23275
23276         * gnulib-tool (func_version): Base copyright year on CVS date.
23277         (func_emit_copyright_notice): New function.
23278         (func_emit_lib_Makefile_am): Use it.
23279         (func_emit_tests_Makefile_am): Likewise.
23280         (func_import): Likewise.
23281
23282 2006-05-08  Bruno Haible  <bruno@clisp.org>
23283
23284         * modules/stdarg: New file.
23285         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
23286
23287 2006-05-08  Bruno Haible  <bruno@clisp.org>
23288
23289         * m4/stdarg.m4: New file, from GNU gettext.
23290
23291 2006-05-08  Bruno Haible  <bruno@clisp.org>
23292
23293         * config/srclist.txt (build-aux/config.rpath): different from latest
23294         release.
23295
23296 2006-05-08  Bruno Haible  <bruno@clisp.org>
23297
23298         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
23299
23300 2006-05-05  Jim Meyering  <jim@meyering.net>
23301
23302         * m4/warning.m4: New file, derived from bison's file by the same name.
23303
23304 2006-05-03  Bruno Haible  <bruno@clisp.org>
23305
23306         * lib/stdint_.h: Shorter URL.
23307         * lib/inttypes.h: Likewise.
23308
23309 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23310
23311         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
23312
23313 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23314
23315         * lib/verify.h: Document the internals better.  Most of this change
23316         was written by Bruno Haible.
23317
23318 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23319
23320         * doc/verify.texi: New file, partly based on a proposal by
23321         Bruno Haible.
23322
23323 2006-05-02  Bruno Haible  <bruno@clisp.org>
23324
23325         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
23326         test from here...
23327         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
23328
23329 2006-04-29  Bruno Haible  <bruno@clisp.org>
23330
23331         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
23332         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
23333
23334 2006-04-29  Bruno Haible  <bruno@clisp.org>
23335
23336         * gnulib-tool: Make --update option actually work.
23337
23338 2006-04-29  Bruno Haible  <bruno@clisp.org>
23339
23340         * doc/gcd.texi: New file.
23341         * doc/gnulib.texi: Include it.
23342
23343 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
23344
23345         * lib/getdate.y (get_date): When adding relative date, start with the
23346         initial time, not with the result of the first mktime call.
23347
23348 2006-04-25  Bruno Haible  <bruno@clisp.org>
23349
23350         * gnulib-tool (func_import): Output the include directives in three
23351         blocks, sorted separately.
23352         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23353
23354 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
23355
23356         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
23357         to define main with arguments, for C++.  Reported by Eric Blake.
23358         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
23359         Prefer 'int main ()' to 'int main (void)', for C++.
23360         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23361         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
23362         for 'main', for C99 and C++.
23363
23364 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
23365
23366         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
23367         Don't assume that exit status -1 is valid.
23368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23369         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23370         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23371         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
23372         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
23373         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
23374         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
23375         functions can be used without declaring them, or that you can
23376         exit with status -1.
23377         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
23378
23379 2006-04-24  Karl Berry  <karl@gnu.org>
23380
23381         * config/srclist.txt (longdouble.m4): sync lost.
23382
23383 2006-04-24  Eric Blake  <ebb9@byu.net>
23384
23385         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
23386
23387 2006-04-24  Bruno Haible  <bruno@clisp.org>
23388
23389         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
23390         poll() implementation in AIX.
23391         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23392
23393 2006-04-24  Bruno Haible  <bruno@clisp.org>
23394
23395         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
23396         assigned exactly once.
23397
23398 2006-04-23  Claudio Fontana  <claudio@gnu.org>
23399             Bruno Haible  <bruno@clisp.org>
23400
23401         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
23402         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
23403         for AM_CPPFLAGS.
23404
23405 2006-04-23  Bruno Haible  <bruno@clisp.org>
23406
23407         * modules/copy-file: Depend on unistd.
23408         * modules/execute: Likewise.
23409         * modules/fatal-signal: Likewise.
23410         * modules/findprog: Likewise.
23411         * modules/mkdtemp : Likewise.
23412         * modules/pipe: Likewise.
23413         * modules/wait-process: Likewise.
23414
23415 2006-04-23  Bruno Haible  <bruno@clisp.org>
23416
23417         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
23418         condition was already detected.
23419         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23420
23421 2006-04-23  Bruno Haible  <bruno@clisp.org>
23422
23423         * lib/copy-file.c: Include <unistd.h> unconditionally.
23424         * lib/execute.c: Likewise.
23425         * lib/fatal-signal.c: Likewise.
23426         * lib/findprog.c: Likewise.
23427         * lib/mkdtemp.c: Likewise.
23428         * lib/pipe.h: Likewise.
23429         * lib/pipe.c: Likewise.
23430         * lib/wait-process.h: Likewise.
23431
23432 2006-04-23  Bruno Haible  <bruno@clisp.org>
23433
23434         * gnulib-tool (func_usage): Fix --import description. Document
23435         --update.
23436         (func_import): Create temporary file in a temporary directory, if
23437         --dry-run is specified. Silence errors from 'grep' when there are no
23438         m4 files in $m4dir.
23439         (func_create_testdir): Silence errors from 'grep' when there are no
23440         m4 files in $m4dir.
23441         Reported by Karl Berry <karl@freefriends.org>.
23442
23443 2006-04-20  Bruno Haible  <bruno@clisp.org>
23444
23445         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
23446         one argument, so that the code will be portable to Autoconf 2.60.
23447         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
23448         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
23449         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
23450
23451 2006-04-19  Derek Price  <derek@ximbiot.com>
23452             Eric Blake  <ebb9@byu.net>
23453
23454         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
23455         rather than "/full/path.h".  Update comment to match.  Shorten &
23456         generalize m4_translit call via AS_TR_CPP.
23457
23458 2006-04-19  Derek Price  <derek@ximbiot.com>
23459             Eric Blake  <ebb9@byu.net>
23460
23461         * lib/inttypes.h: Correct grammar in comment.
23462
23463 2006-04-18  Derek Price  <derek@ximbiot.com>
23464             Paul Eggert  <eggert@cs.ucla.edu>
23465
23466         * modules/inttypes: New file.
23467         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
23468
23469 2006-04-18  Derek Price  <derek@ximbiot.com>
23470             Paul Eggert  <eggert@cs.ucla.edu>
23471
23472         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
23473         New files.
23474
23475 2006-04-18  Derek Price  <derek@ximbiot.com>
23476             Paul Eggert  <eggert@cs.ucla.edu>
23477
23478         * lib/inttypes.h: New file.
23479         * lib/strtoimax.c: Assume <inttypes.h>.
23480
23481 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
23482
23483         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
23484         isn't mounted.  Problem reported by Kir Kolyshkin.
23485
23486 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
23487
23488         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
23489         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
23490         Derek R. Price.
23491         * lib/regex.h (RE_DUP_MAX): Update comment to match current
23492         implementation.
23493
23494 2006-04-12  Eric Blake  <ebb9@byu.net>
23495
23496         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
23497         is now done automatically by the corresponding Autoconf macro.
23498
23499 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
23500
23501         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
23502         time_r.h.
23503
23504 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23505
23506         Merge regex changes from libc, removing some of our
23507         POSIX-conformance changes that were rejected and redoing them in a
23508         less-intrusive way.
23509
23510         * lib/regcomp.c (re_compile_internal, init_dfa):
23511         Length arg is now size_t, not Idx.  All uses changed.
23512         (peek_token): Forward decl now says internal_function.
23513         (__re_error_msgid, __re_error_msgid_idx):
23514         Now static rather than extern with attribute_hidden.
23515         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
23516         For some reason libc prefers K&R style defns for external functions.
23517         (regerror) [!defined _LIBC]: Likewise.
23518         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
23519         (seek_collating_symbol_entry, lookup_collation_sequence_value):
23520         (build_range_exp, build_collating_symbol):
23521         Use K&R-style defn.
23522         (re_compile_fastmap): Use '\0' to memset, not 0.
23523         (utf8_sb_map): Make the calculations more obvious.
23524         (init_dfa, parse_bracket_exp, build_charclass_op):
23525         Call calloc and cast result, as glibc does.
23526         (init_word_char, fetch_token, peek_token, peek_token_bracket):
23527         (build_range_exp, build_collating_symbol):
23528         Now internal functions.
23529
23530         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
23531
23532         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
23533         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
23534         Don't depend on VMS; depend on __VMS instead, for POSIX
23535         namespace cleanness.
23536         (regoff_t): Define to ssize_t, not long int.
23537
23538         Remove the REG_ macros named below.  Instead, make the old names
23539         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
23540         __USE_GNU_REGEX.
23541         (REG_BACKSLASH_ESCAPE_IN_LISTS):
23542         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
23543         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
23544         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
23545         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
23546         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
23547         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
23548         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
23549         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
23550         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
23551         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
23552         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
23553         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
23554         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
23555         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
23556         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
23557         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
23558         (REG_NREGS):
23559         Remove.  All uses replaced by the old RE_* names.
23560         (RE_BACKSLASH_ESCAPE_IN_LISTS):
23561         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
23562         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
23563         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
23564         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
23565         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
23566         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
23567         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
23568         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
23569         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
23570         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
23571         Don't bother having these macros be independent of each others'
23572         values, since they no longer exist in the POSIX name space.
23573
23574         Rename the following member names back to their old names,
23575         unless !__USE_GNU_REGEX.  All uses changed back.
23576         (buffer): Renamed from re_buffer.
23577         (allocated): Renamed from re_allocated.
23578         (used): Renamed from re_used.
23579         (syntax): Renamed from re_syntax.
23580         (fastmap): Renamed from re_fastmap.
23581         (translate): Renamed from re_translate.
23582         (can_be_null): Renamed from re_can_be_null.
23583         (regs_allocated): Renamed from re_regs_allocated.
23584         (fastmap_accurate): Renamed from re_fastmap_accurate.
23585         (no_sub): Renamed from re_no_sub.
23586         (not_bol): Renamed from re_not_bol.
23587         (not_eol): Renamed from re_not_eol.
23588         (newline_anchor): Renamed from re_newline_anchor.
23589         (num_regs): Renamed from rm_num_regs.
23590         (start): Renamed from rm_start.
23591         (end): Renamed from rm_end.
23592
23593         (free_state): Move up a bit.
23594
23595         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
23596         #define to be empty.
23597         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
23598         when that is what is intended.
23599         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
23600         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
23601         (MAX): New macro.
23602         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
23603         All uses changed back to re_malloc, etc.  It's now the caller's
23604         responsibility to check for overflow; all callers changed.
23605         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
23606         (re_x2nrealloc): Remove.
23607         (free_state): Remove decl.
23608
23609         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
23610         (re_set_registers, re_exec):
23611         Use K&R-style defn.
23612
23613         2006-01-31  Roland McGrath  <roland@redhat.com>
23614
23615         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
23616         Reported by Mike Frysinger <vapier@gentoo.org>.
23617
23618         2006-01-15  Andreas Jaeger  <aj@suse.de>
23619
23620         [BZ #1950]
23621         * lib/regex_internal.c (re_string_reconstruct): Adjust for
23622         build_wcs_upper_buffer change.
23623         (build_wcs_upper_buffer): Change return type.
23624
23625         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
23626
23627         * lib/regex_internal.h: Include <stdint.h> if available.
23628
23629         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
23630
23631         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
23632
23633         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
23634
23635         * lib/regcomp.c: Adjust for changed secondary hash function.
23636
23637         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
23638
23639         * lib/regex.h: Pretty printing.
23640         Clean up namespace a bit.
23641
23642         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
23643
23644         * lib/regexec.c (update_cur_sifted_state, check_arrival,
23645         check_arrival_add_next_nodes): Avoid using uninitialized variable.
23646
23647         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23648                     Ulrich Drepper  <drepper@redhat.com>
23649
23650         [BZ #1302]
23651         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
23652         changed.
23653         (bitset_word_t): Renamed from bitset_word.  All uses changed.
23654
23655         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
23656
23657         [BZ #281]
23658         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
23659         * lib/regcomp.c: Remove unnecessary uses of
23660         unsigned RE_TRANSLATE_TYPE.
23661         * lib/regex_internal.h: Likewise.
23662         * lib/regex_internal.c: Likewise.
23663         * lib/regexec.c: Likewise.
23664         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
23665
23666         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
23667
23668         * lib/regexec.c (find_recover_state): Remove unnecessary
23669         initialization.
23670         (transit_state_bkref): Make DFA a const pointer.
23671         (get_subexp): Likewise.
23672         (check_arrival): Likewise.
23673         (update_cur_sifted_state): Likewise.
23674         (re_search_internal): Likewise.
23675         (prune_impossible_nodes): Likewise.
23676         (acquire_init_state_context): Likewise.
23677         (proceed_next_node): Likewise.
23678         (set_regs): Likewise.
23679         (free_fail_stack_return): Likewise.
23680         (check_arrival_expand_ecl): Mark DFA parameter as const.
23681         (check_arrival_expand_ecl_sub): Likewise.
23682         (check_subexp_limits): Likewise.
23683         (sub_epsilon_src_nodes):  Likewise.
23684         (add_epsilon_src_nodes):  Likewise.
23685         (merge_state_array): Likewise.
23686         (update_regs): Likewise.
23687         (build_trtable): Likewise.
23688         (sift_states_backward): Mark MCTX parameter as const.
23689         (build_sifted_states): Likewise.
23690         (update_cur_sifted_state): Likewise.
23691         (sift_states_mkref): Likewise.
23692         (check_arrival_expand_ecl): Mark eclosure as const.
23693         (check_dst_limits_calc_pos_1): Likewise.
23694         * lib/regex_internal.h (re_match_context_t): Make dfa a const
23695         pointer.
23696
23697         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
23698
23699         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
23700         (transit_state_sb): Likewise.
23701         (transit_state_mb): Likewise.
23702         (sift_states_iter_mb): Likewise.
23703         (check_arrival_add_next_nodes): Likewise.
23704         (check_node_accept_bytes): Change first parameter to pointer-to-const.
23705         [_LIBC] (re_search_2_stub): Use mempcpy.
23706
23707         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
23708         mbrtowc for very simple UTF-8 case.
23709
23710         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
23711         a pointer-to-const.
23712         (re_acquire_state_context): Likewise.
23713         * lib/regex_internal.h: Adjust prototypes.
23714
23715         * lib/regex.c: Prevent using C++ compilers.
23716
23717         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
23718         (re_acquire_state_context): Likewise.
23719
23720 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23721
23722         * modules/regex (Depends-on): Add ssize_t.
23723
23724 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23725
23726         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
23727         translation table.
23728
23729 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23730
23731         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
23732
23733 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
23734             Bruno Haible  <bruno@clisp.org>
23735
23736         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
23737         <sys/types.h> and <inttypes.h>.
23738
23739 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23740
23741         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
23742         `__error_t_defined', so argp.h will not typedef the former.
23743
23744 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
23745
23746         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
23747         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
23748         glibc names.  Even if glibc is changed to conform to POSIX, the
23749         traditional names will be available anyway, since regex depends on
23750         the extensions module.  Also, fix a longstanding typo in the
23751         implementation of Spencer ERE test #75 from grep 2.3.  Problems
23752         reported by Emanuele Giaquinta.  Also, change sense of cached
23753         variable, so that the message makes sense.
23754
23755 2006-03-24  Simon Josefsson  <jas@extundo.com>
23756
23757         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
23758         including some doc fixes.
23759         (base64_encode_alloc): Fix +1 bug on allocation failures.
23760
23761 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23762
23763         * lib/base64.c (base64_encode): Do not read past end of array with
23764         unsanitized input on systems with CHAR_BIT > 8.
23765
23766 2006-03-24  Eric Blake  <ebb9@byu.net>
23767
23768         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
23769
23770 2006-03-22  Karl Berry  <karl@gnu.org>
23771
23772         * config/srclist.txt (*setenv.[ch]): get from coreutils.
23773         * config/srclistvars.sh (COREUTILS): new var.
23774
23775 2006-03-17  Jim Meyering  <jim@meyering.net>
23776
23777         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
23778         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
23779
23780 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23781
23782         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
23783         no longer needs it.  Instead, check that regoff_t is as least
23784         as wide as ptrdiff_t.
23785
23786         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
23787         so that our regex.h stays compatible with the installed regex.
23788         This is helpful for installers who configure --without-included-regex.
23789         Problem reported by Emanuele Giaquinta.
23790
23791 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23792
23793         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
23794         Typedef to long int, not to off_, as POSIX will likely change
23795         in that direction.
23796
23797 2006-03-15  Eric Blake  <ebb9@byu.net>
23798
23799         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
23800
23801 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
23802
23803         * lib/argp-help.c (validate_uparams): Fix typo
23804         * lib/argp-parse.c (argp_default_options): Consistently begin help
23805         messages with a lowercase letter.
23806
23807 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
23808
23809         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
23810         overrun buffers and shouldn't be used (much as gets shouldn't be
23811         used).
23812         * lib/time_r.c (asctime_r, ctime_r): Likewise.
23813
23814 2006-03-08  Simon Josefsson  <jas@extundo.com>
23815
23816         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
23817         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23818
23819 2006-03-08  Simon Josefsson  <jas@extundo.com>
23820
23821         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
23822         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23823
23824 2006-03-08  Simon Josefsson  <jas@extundo.com>
23825
23826         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
23827         signal that configure disabled the device.
23828
23829 2006-03-08  Simon Josefsson  <jas@extundo.com>
23830
23831         * build-aux/maint.mk: Fix refresh-po, to handle no translated
23832         languages.
23833
23834 2006-03-07  Simon Josefsson  <jas@extundo.com>
23835
23836         * modules/getopt (Depends-on): Add unistd.
23837
23838         * modules/unistd: New file.
23839
23840 2006-03-07  Simon Josefsson  <jas@extundo.com>
23841
23842         * modules/gc-random: New file.
23843
23844 2006-03-07  Simon Josefsson  <jas@extundo.com>
23845
23846         * m4/unistd_h.m4: New file.
23847
23848 2006-03-07  Simon Josefsson  <jas@extundo.com>
23849
23850         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
23851         test to be side-effect free by storing the result in the cache
23852         variable gl_cv_lib_readline, and moving the assignment of
23853         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
23854         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23855
23856 2006-03-07  Simon Josefsson  <jas@extundo.com>
23857
23858         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
23859         error on missing devices (the functions will return an error).
23860
23861         * m4/gc.m4: Move random stuff to gc-random.m4
23862
23863 2006-03-07  Simon Josefsson  <jas@extundo.com>
23864
23865         * lib/unistd_.h: New file.
23866
23867 2006-03-07  Simon Josefsson  <jas@extundo.com>
23868
23869         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
23870
23871 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23872
23873         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
23874         Problem reported by Juan Manuel Guerrero.
23875
23876 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23877
23878         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
23879         the unistd module.
23880         * lib/getlogin_r.c: Likewise.
23881         * lib/getlogin_r.h: Likewise.
23882         * lib/glob.c: Likewise.
23883         * lib/pagealign_alloc.c: Likewise.
23884         * lib/unistd_.h: Remove; no longer needed.
23885
23886 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
23887
23888         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23889         Add unistd.
23890         * modules/c-stack (Depends-on): Add unistd.
23891         * modules/getlogin_r: Likewise.
23892         * modules/glob: Likewise.
23893         * modules/pagealign_alloc: Likewise.
23894         * modules/unistd (Files): Remove lib/unistd_.h.
23895         (EXTRA_DIST): Remove.
23896         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
23897         need unistd_.h.
23898         (MOSTLYCLEANFILES): Remove unistd.h-t.
23899
23900 2006-03-03  Simon Josefsson  <jas@extundo.com>
23901
23902         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
23903
23904 2006-03-03  Simon Josefsson  <jas@extundo.com>
23905
23906         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
23907         libidn and bison.
23908
23909 2006-03-03  Simon Josefsson  <jas@extundo.com>
23910
23911         * build-aux/maint.mk: Add indent target.
23912
23913 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
23914
23915         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
23916         our replacement poll.h in any case, to avoid a differing
23917         declaration from a system header.  Seen on AIX.
23918
23919 2006-03-01  Simon Josefsson  <jas@extundo.com>
23920
23921         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
23922         <kasal@ucw.cz>.
23923
23924 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23925
23926         * modules/gettime (Depends-on): Add extensions module.
23927         * modules/nanosleep (Depends-on): Likewise.
23928         * modules/settime (Depends-on): Likewise.
23929
23930 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23931
23932         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
23933         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
23934         pedantically.
23935         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23936         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
23937
23938         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
23939         not "==".  Reported by Ralf Wildenhues.
23940
23941 2006-03-01  Karl Berry  <karl@gnu.org>
23942
23943         * doc/Copyright/request-*: new files, synced from gnuorg.
23944
23945 2006-03-01  Karl Berry  <karl@gnu.org>
23946
23947         * config/srclist.txt (Copyright/*): new entries.
23948
23949 2006-02-28  Simon Josefsson  <jas@extundo.com>
23950
23951         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
23952
23953 2006-02-27  Simon Josefsson  <jas@extundo.com>
23954
23955         * lib/base64.h: Indent #define's.  From Jim Meyering
23956         <jim@meyering.net>.
23957
23958 2006-02-27  Jim Meyering  <jim@meyering.net>
23959
23960         Revert the change of 2006-02-24, so these files can continue
23961         to be sync'd from gettext.
23962         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
23963         of `config.h'.
23964
23965 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
23966
23967         * modules/intprops: New file.
23968         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
23969         Add intprops.
23970         * modules/getloadavg (Files): Remove lib/intprops.h.
23971         (Depends-on): Add intprops.
23972         * modules/human: Likewise.
23973         * modules/inttostr: Likewise.
23974         * modules/openat: Likewise.
23975         * modules/sig2str: Likewise.
23976         * modules/userspec: Likewise.
23977         * modules/utimecmp: Likewise.
23978         * modules/xnanosleep: Likewise.
23979         * modules/xstrtol: Likewise.
23980
23981 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
23982
23983         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
23984         * modules/lock-tests (TESTS): Use $(EXEEXT).
23985         * modules/tls-tests: Likewise.
23986         * modules/argp-tests: Likewise.
23987         (check_PROGRAMS): New var, replacing...
23988         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
23989
23990 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23991
23992         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
23993         `config.h'.
23994
23995 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23996
23997         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
23998
23999 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24000
24001         Sync from coreutils.
24002         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
24003         gl_CHDIR_SAFER.
24004
24005 2006-02-22  Jim Meyering  <jim@meyering.net>
24006
24007         Sync from coreutils.
24008         * m4/chdir-safer.m4: New file.
24009
24010 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24011
24012         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
24013         AT_FDCWD exceeds INT_MAX.
24014         * lib/openat.h (AT_FDCWD): Likewise.
24015
24016 2006-02-17  Eric Blake  <address@hidden>
24017
24018         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
24019
24020 2006-02-16  Simon Josefsson  <jas@extundo.com>
24021
24022         * modules/getaddrinfo (Depends-on): Add sys_socket.
24023
24024 2006-02-15  Simon Josefsson  <jas@extundo.com>
24025
24026         * build-aux/maint.mk: Add dsyntax-check rule.
24027
24028 2006-02-15  Eric Blake  <ebb9@byu.net>
24029
24030         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
24031         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
24032         'present but cannot compile' warnings on cygwin.
24033         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
24034         use ws2tcpip.h if sys/socket.h works.
24035         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
24036         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
24037
24038 2006-02-14  Simon Josefsson  <jas@extundo.com>
24039
24040         * modules/maintainer-makefile (Files): Rename.
24041
24042         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
24043         and (the local) Makefile.cfg to maint-cfg.mk.
24044
24045         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
24046         to the latter.
24047
24048         * modules/maintainer-makefile: New module.
24049
24050         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
24051         severaly stripped to make it possible to build it up from scratch
24052         with reliable tests.
24053
24054         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
24055         fixes to permit overriding the default actions when configure and
24056         makefile are not available.
24057
24058 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24059
24060         Sync from coreutils.
24061         * modules/lstat (Depends-on): Don't depend on xalloc.
24062         (License): Change from GPL to LGPL, since this is now simply a
24063         replacement for a libc function.
24064
24065 2006-02-14  Jim Meyering  <jim@meyering.net>
24066
24067         Sync from coreutils.
24068
24069         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
24070         failure on deficient systems, and simplify gnulib lgpl dependencies.
24071         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
24072         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
24073
24074         * lib/xalloc-die.c: Remove unused definition of N_.
24075
24076 2006-02-14  Jim Meyering  <jim@meyering.net>
24077
24078         Sync from coreutils.
24079         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
24080         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
24081         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
24082         double-quote uses of that variable, to accommodate the rare case in
24083         which getmntent is available in none of the libraries checked.  This
24084         happens at least on FreeBSD 5.0.
24085
24086 2006-02-13  Simon Josefsson  <jas@extundo.com>
24087
24088         * gnulib-tool (Usage): Fix --import, from
24089         karl@freefriends.org (Karl Berry).
24090
24091 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
24092
24093         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
24094
24095 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
24096
24097         * lib/argp-namefrob.h: Restore changes accidentally lost during the
24098         "autoupdate" on 2005-12-12.
24099
24100 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24101
24102         * modules/closeout (Depends-on): Remove atexit.
24103
24104 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
24105
24106         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
24107         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
24108
24109 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
24110
24111         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
24112         __EXTENSIONS__ if this causes compilation to fail.  Problem
24113         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
24114         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
24115
24116 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
24117
24118         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
24119         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
24120         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
24121         All uses changed.
24122
24123 2006-01-26  Simon Josefsson  <jas@extundo.com>
24124
24125         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
24126         prototype is visible on mingw32.
24127
24128         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
24129         for mingw32.
24130
24131         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
24132         mingw32).
24133
24134 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
24135
24136         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
24137         attempt to open for write; this always fails, at least on POSIX
24138         hosts.  This reinstates the 2006-01-09 change, which was
24139         inadvertently removed.
24140
24141 2006-01-26  Bruno Haible  <bruno@clisp.org>
24142
24143         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
24144         Reported by Paul Eggert.
24145
24146 2006-01-26  Bruno Haible  <bruno@clisp.org>
24147             Paul Eggert  <eggert@cs.ucla.edu>
24148
24149         * lib/stdbool_.h (_Bool)
24150         [(! (defined __cplusplus || defined __BEOS__)
24151           && !defined __GNUC__
24152           && !(defined __HP_cc || defined __xlc__
24153                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
24154                || defined __sgi))]:
24155         #define to signed char in these cases too; this simplifies
24156         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
24157         etc., separately) and makes it more conservative.
24158
24159 2006-01-25  Simon Josefsson  <jas@extundo.com>
24160
24161         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
24162         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
24163         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
24164
24165 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24166
24167         * lib/argp-namefrob.h: Bugfix. Remove stray #
24168
24169 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24170
24171         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
24172         so that we test the test.
24173         Check for yet another HP-UX cc bug involving *bool |= bool.
24174
24175 2006-01-25  Karl Berry  <karl@gnu.org>
24176
24177         * config/srclist.txt (vasnprintf.c): sync lost.
24178
24179 2006-01-25  Jim Meyering  <jim@meyering.net>
24180
24181         Sync from the stable (b5) branch of coreutils:
24182
24183         * lib/fts.c (fts_children): Don't let close() clobber errno from
24184         failed fchdir().
24185
24186         * lib/fts.c (fts_stat): When following a symlink-to-directory,
24187         don't necessarily interpret stat-fails+lstat-succeeds as indicating
24188         a dangling symlink.  That can also happen at least for ELOOP.
24189         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
24190         FYI, this bug predates the inclusion of fts.c in coreutils.
24191
24192         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
24193         in their own block, so pre-c99 compilers don't object.
24194
24195         Avoid the double-free (first in fts_read, second in fts_close) that
24196         would occur when an `active' directory is made inaccessible (e.g.,
24197         via chmod a-x) during a traversal.
24198         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
24199         before returning.  Reproduce this failure by
24200         mkdir -p a/b; cd a; chmod a-x . b
24201         Reported by Stavros Passas.
24202
24203 2006-01-25  Jim Meyering  <jim@meyering.net>
24204
24205         * lib/fileblocks.c: Remove more useless parentheses.
24206         * lib/readutmp.h: Likewise.
24207
24208 2006-01-25  Bruno Haible  <bruno@clisp.org>
24209
24210         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
24211         warnings.
24212         Reported by Paul Eggert.
24213
24214 2006-01-25  Bruno Haible  <bruno@clisp.org>
24215
24216         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
24217         rid of a trap command. For Solaris sh.
24218         Reported by Mark D. Baushke <mdb@gnu.org>.
24219
24220 2006-01-24  Simon Josefsson  <jas@extundo.com>
24221
24222         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
24223         Bruno.
24224
24225 2006-01-24  Karl Berry  <karl@gnu.org>
24226
24227         * config/srclist.txt (argp-namefrob.h): sync lost.
24228
24229 2006-01-24  Jim Meyering  <jim@meyering.net>
24230
24231         * modules/openat (Files): Add lib/intprops.h.
24232         From Mark D. Baushke.
24233
24234 2006-01-24  Jim Meyering  <jim@meyering.net>
24235
24236         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
24237         Reported by Mark D. Baushke.
24238
24239 2006-01-24  Jim Meyering  <jim@meyering.net>
24240
24241         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
24242
24243 2006-01-24  Bruno Haible  <bruno@clisp.org>
24244
24245         * modules/strnlen (Maintainer): Change from glibc to all.
24246
24247 2006-01-24  Bruno Haible  <bruno@clisp.org>
24248
24249         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
24250         Patch by Paul Eggert.
24251
24252 2006-01-24  Bruno Haible  <bruno@clisp.org>
24253
24254         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
24255         already has it.
24256         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
24257         2005-11-26.
24258
24259         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
24260         'signed char' to avoid problems with the built-in _Bool type.
24261         Reported by Paul Eggert on 2005-11-26.
24262
24263 2006-01-24  Bruno Haible  <bruno@clisp.org>
24264
24265         * gnulib-tool (func_import): Avoid constructing complicated sed
24266         expressions inside backquote.
24267         Report and solution by Mark D. Baushke <mdb@gnu.org>.
24268
24269 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
24270
24271         These changes imported from libc.
24272         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
24273         test and two separate function calls.
24274         * lib/strndup.c (__strndup): Add libc_hidden_def.
24275
24276 2006-01-23  Simon Josefsson  <jas@extundo.com>
24277
24278         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
24279         Remove the test_*_SOURCES variable: automake infers it by default.
24280         * modules/tls-tests: Likewise.
24281
24282 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24283
24284         Work around porting bugs reported by Dieter in
24285         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
24286         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
24287         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
24288         Include "getopt.h" first, to check interface.
24289         (getenv): Declare only if defined HAVE_DECL_GETENV &&
24290         !HAVE_DECL_GETENV.
24291         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
24292         (__strndup): Revert to K&R-style function dfns, the glibc style.
24293         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
24294         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
24295         Include strnlen.h first, to get prototype properly.
24296         (strnlen): Renamed from __strnlen.
24297         Remove weak alias.
24298
24299 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24300
24301         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
24302
24303 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24304
24305         * config/srclist.txt: Adjust to reflect glibc reorganization.
24306         This affects only comments.
24307
24308 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24309
24310          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
24311          Reported by Bruce Korb <bkorb@gnu.org>.
24312
24313 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
24314
24315         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
24316         to pacify gcc -Wswitch-default.
24317
24318 2006-01-22  Bruno Haible  <bruno@clisp.org>
24319
24320         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
24321         temporary buffer for sprintf, take into account the precision also
24322         for 'd', 'i', 'u', 'o', 'x', 'X'.
24323
24324 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
24325
24326         * modules/argp-tests: New module
24327         * tests/test-argp.c: New file
24328         * tests/test-argp-2.sh: New file
24329
24330 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
24331
24332         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
24333         (__argp_base_name): Removed
24334         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
24335         typo.
24336         (__argp_base_name): Provide macro definition or extern declaration
24337         depending on the configuration
24338
24339 2006-01-20  Simon Josefsson  <jas@extundo.com>
24340
24341         * modules/inet_ntop (Depends-on): Depend on sys_socket.
24342
24343 2006-01-20  Simon Josefsson  <jas@extundo.com>
24344
24345         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
24346
24347 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24348
24349         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
24350         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
24351         Suggested by Bruno Haible.
24352
24353 2006-01-20  Karl Berry  <karl@gnu.org>
24354
24355         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
24356         until changes propagate, I guess.
24357
24358 2006-01-19  Simon Josefsson  <jas@extundo.com>
24359
24360         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
24361
24362 2006-01-19  Simon Josefsson  <jas@extundo.com>
24363
24364         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
24365
24366 2006-01-19  Simon Josefsson  <jas@extundo.com>
24367
24368         * gnulib-tool: Set check_PROGRAMS.
24369
24370         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
24371         modules/des-tests, modules/gc-arcfour-tests,
24372         modules/gc-arctwo-tests, modules/gc-des-tests,
24373         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
24374         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
24375         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
24376         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
24377         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
24378         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
24379         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
24380         test_*_SOURCES.
24381
24382 2006-01-18  Simon Josefsson  <jas@extundo.com>
24383
24384         * modules/socklen (Depends-on): Depend on sys_socket.
24385
24386 2006-01-18  Simon Josefsson  <jas@extundo.com>
24387
24388         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
24389         modules/des-tests, modules/gc-arcfour-tests,
24390         modules/gc-arctwo-tests, modules/gc-des-tests,
24391         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
24392         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
24393         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
24394         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
24395         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
24396         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
24397         $(EXEEXT) to automake TESTS variable, for mingw32.
24398
24399 2006-01-17  Simon Josefsson  <jas@extundo.com>
24400
24401         * modules/socklen (Include): Need sys/socket.h.
24402
24403 2006-01-17  Bruno Haible  <bruno@clisp.org>
24404
24405         * modules/ssize_t (Include): Add <sys/types.h>.
24406
24407 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
24408
24409         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
24410         it's not portable and it doesn't work with cross-compiles.
24411         Problem reported by Bruno Haible.  Fix missing-$ typo in
24412         'test "gl_cv_ignore_unused_libraries" ...' that prevented
24413         -zignore from being used with Sun's C compiler.
24414
24415 2006-01-12  Simon Josefsson  <jas@extundo.com>
24416
24417         * lib/base64.c: Fix warning, reported by Bruno Haible
24418         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
24419
24420 2006-01-12  Bruno Haible  <bruno@clisp.org>
24421
24422         * modules/ldd: New file.
24423         * build-aux/ldd.sh.in: New file.
24424         * MODULES.html.sh (Support for building libraries and executables): Add
24425         ldd.
24426
24427 2006-01-12  Bruno Haible  <bruno@clisp.org>
24428
24429         * m4/ldd.m4: New file.
24430
24431 2006-01-12  Bruno Haible  <bruno@clisp.org>
24432
24433         * gnulib-tool (func_import, func_create_testdir): Don't go into an
24434         endless loop while replacing $auxdir with build-aux.
24435
24436 2006-01-11  Simon Josefsson  <jas@extundo.com>
24437
24438         * lib/stdint_.h (SIZE_MAX): Add missing (.
24439
24440 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24441
24442         Sync from coreutils.
24443         * lib/md5.c: Fix commentary typos.
24444         (alignof, UNALIGNED_P): No need for a GCC-specific version.
24445         * lib/md5.h (__attribute__): Remove; unused.
24446         * lib/sha1.c: Fix commentary to match md5 better.
24447         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
24448         so that we don't need to worry about alignment.  All uses changed.
24449         This merges the 2005-10-28 md5 change into sha1.
24450
24451 2006-01-11  Jim Meyering  <jim@meyering.net>
24452
24453         Sync from coreutils.
24454         * lib/md5.c (OP): Fix spacing.
24455
24456 2006-01-11  Bruno Haible  <bruno@clisp.org>
24457
24458         Ensure automatic ordering between gl_LOCK and gl_ARGP.
24459         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
24460         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
24461
24462 2006-01-11  Bruno Haible  <bruno@clisp.org>
24463
24464         Ensure automatic ordering between gl_LOCK and gl_ARGP.
24465         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
24466         the "early" section as well.
24467
24468 2006-01-11  Bruno Haible  <bruno@clisp.org>
24469
24470         Avoid "ar: no archive members specified" error on MacOS X.
24471         * gnulib-tool (func_modules_add_dummy): New function.
24472         (func_import, func_create_testdir): Invoke it.
24473
24474 2006-01-11  Bruno Haible  <bruno@clisp.org>
24475
24476         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
24477         with $auxdir in AC_CONFIG_FILES statements.
24478
24479 2006-01-11  Bruno Haible  <bruno@clisp.org>
24480
24481         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24482         Initialize also noinst_HEADERS to empty.
24483
24484 2006-01-11  Bruno Haible  <bruno@clisp.org>
24485
24486         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
24487         variables.
24488         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
24489         autoreconf.
24490
24491 2006-01-11  Bruno Haible  <bruno@clisp.org>
24492
24493         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
24494         overridable by the user.
24495         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24496
24497 2006-01-10  Simon Josefsson  <jas@extundo.com>
24498
24499         * modules/sys_socket: New file.
24500
24501 2006-01-10  Simon Josefsson  <jas@extundo.com>
24502
24503         * m4/sys_socket_h.m4: New file.
24504
24505 2006-01-10  Simon Josefsson  <jas@extundo.com>
24506
24507         * lib/socket_.h: New file.
24508
24509 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24510
24511         * modules/readutmp (Maintainer): Add myself.
24512
24513 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24514
24515         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
24516         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
24517         People who are still concerned with buggy memcmp implementations
24518         can invoke gl_FUNC_MEMCMP themselves.
24519
24520 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24521
24522         * lib/regex_internal.h (BITSET_WORD_BITS):
24523         Work around a bug in 64-bit PGC (before version 6.1-2), where the
24524         preprocessor mishandles large unsigned values as if they were signed.
24525         Problem reported by Claudio Fontana in
24526         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
24527
24528 2006-01-10  Jim Meyering  <jim@meyering.net>
24529
24530         Avoid the double-free (first in fts_read, second in fts_close) that
24531         would occur when an `active' directory is made inaccessible (e.g.,
24532         via chmod a-x) during a traversal.
24533         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
24534         before returning.  Reproduce this failure by
24535         mkdir -p a/b; cd a; chmod a-x . b
24536         Reported by Stavros Passas.
24537
24538         Sync from coreutils.
24539         * lib/sha1.c: Tweak grammar in a comment.
24540
24541 2006-01-10  Jim Meyering  <jim@meyering.net>
24542
24543         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
24544         Patch by Joerg Sonnenberger.
24545
24546 2006-01-10  Bruno Haible  <bruno@clisp.org>
24547
24548         * modules/readutmp: Depend on module free.
24549         * modules/strtok_r: Depend on module restrict.
24550
24551 2006-01-10  Bruno Haible  <bruno@clisp.org>
24552
24553         * modules/gettext (configure.ac): Add an invocation of
24554         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
24555
24556 2006-01-10  Bruno Haible  <bruno@clisp.org>
24557
24558         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
24559         Reported by Werner Lemberg <wl@gnu.org>.
24560
24561 2006-01-10  Bruno Haible  <bruno@clisp.org>
24562
24563         * lib/localcharset.c: Update from GNU gettext.
24564
24565 2006-01-10  Bruno Haible  <bruno@clisp.org>
24566
24567         * lib/argp.h (__const): Remove macro. Use const instead.
24568         * lib/argp-fmtstream.h (__const): Likewise.
24569         * lib/glob_.h (__const): Remove macro.
24570         * lib/glob-libc.h: Use const instead of __const.
24571
24572 2006-01-10  Bruno Haible  <bruno@clisp.org>
24573
24574         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
24575         variable.
24576         Needed to avoid an automake error regarding the 'gettext' module.
24577
24578 2006-01-09  Simon Josefsson  <jas@extundo.com>
24579
24580         * modules/inet_ntop (Depends-on): Add restrict.
24581
24582 2006-01-09  Simon Josefsson  <jas@extundo.com>
24583
24584         * modules/gc-rijndael-tests (License): Put under LGPL.
24585
24586         * modules/gc-des-tests (License): Likewise.
24587
24588         * modules/gc-arcfour-tests (License): Likewise.
24589
24590         * modules/gc-arctwo-tests (License): Likewise.
24591
24592         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
24593
24594         * modules/gc-hmac-sha1-tests (Files): Likewise.
24595
24596         * modules/gc-hmac-md5-tests (License): Likewise.
24597
24598         * modules/gc-sha1-tests (License): Likewise.
24599
24600         * modules/gc-md5-tests (License): Likewise.
24601
24602         * modules/gc-md4-tests (License): Likewise.
24603
24604         * modules/gc-md2-tests (License): Likewise.
24605
24606         * modules/gc-tests (License): Likewise.
24607
24608         * modules/des-tests (License): Likewise.
24609
24610         * modules/md4-tests (License): Likewise.
24611
24612         * modules/md2-tests (License): Likewise.
24613
24614 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24615
24616         Sync from coreutils:
24617
24618         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
24619         * modules/lib-ignore: New file.
24620         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
24621         chdir-safer.m4, lchmod.m4.
24622         * modules/openat: Add mkdirat.c, openat-priv.h.
24623
24624 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24625
24626         Sync from coreutils.
24627         * m4/lib-ignore.m4: New file.
24628         * m4/lchmod.m4: New file.
24629
24630 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24631
24632         Sync from coreutils.
24633         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
24634         for write access: POSIX says that must fail.
24635         * lib/fts.c (diropen): Likewise.
24636         * lib/save-cwd.c (save_cwd): Likewise.
24637         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
24638         well, for minor improvements on hosts that lack O_DIRECTORY.
24639         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
24640         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
24641         Fall back on chown if open failed with EACCES.
24642
24643         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
24644         Report an error at compile-time if only a 1-second nominal clock
24645         resolution is found.
24646
24647         * lib/lchmod.h: New file.
24648         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
24649         (make_dir_parents): Use lchown rather than chown, and
24650         lchmod rather than chmod.
24651
24652         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
24653         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
24654         "proc" reported by n0dalus.
24655
24656         * lib/mountlist.c: Include <limits.h>.
24657         (dev_from_mount_options)
24658         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
24659         New function.  It no longer assumes "dev=" has the System V meaning
24660         on Linux (since it doesn't).  It also parses "dev=" more carefully.
24661         (read_file_system_list)
24662         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
24663         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
24664         dev= in that case.
24665
24666         * lib/posixtm.h (PDS_PRE_2000): New macro.
24667         * lib/posixtm.c (year): Arg is now syntax_bits rather than
24668         allow_century.  All usages changed.  Reject dates outside the range
24669         1969-1999 if PDS_PRE_2000 is used.
24670
24671 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24672
24673         Sync from coreutils.
24674         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
24675         (Time of day items): Mention the possibility of leap seconds.
24676         Problem reported by Dr. David Alan Gilbert.
24677
24678 2006-01-09  Jim Meyering  <jim@meyering.net>
24679
24680         Sync from coreutils.
24681
24682         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
24683
24684         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
24685
24686         * lib/modechange.c (mode_compile): Reject an invalid mode string
24687         that starts with an octal digit.  From Andreas Gruenbacher.
24688
24689         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
24690         and dup to open_safer and dup_safer, respectively.
24691         (openat_permissive): Fix typo in comment.
24692
24693         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
24694         "gettext.h"; either no longer needed or are guaranteed by openat.h.
24695         (_): Remove; no longer needed.
24696         (openat): Renamed from rpl_openat; no need for rpl_openat
24697         since openat.h renames openat for us.
24698         Replace most of the body with a call to openat_permissive,
24699         to avoid duplicate code.
24700         Port to (probably hypothetical) environments were mode_t is
24701         wider than int.
24702         (openat_permissive): Require mode arg, so that we can check
24703         types better.  Put it just after flags.  Change cwd failure
24704         indicator from pointer-to-bool to pointer-to-errno-value.
24705         All callers changed.
24706         Invoke openat_save_fail and/or openat_restore_fail if
24707         cwd_errno is null, so that openat can call us.
24708         (openat_permissive, fdopendir, fstatat, unlinkat):
24709         Simplify errno handling to avoid some duplicate code,
24710         as it's OK to set errno on success.
24711         * lib/openat.h: Revamp code so that function macros depend on
24712         __OPENAT_PREFIX only, not also on AT_FDCWD.
24713         (openat_ro): Remove.  Caller changed to use openat_permissive.
24714         (openat_permissive): Now a macro, if not a function.
24715         (openat_restore_fail, openat_save_fail): Now always functions,
24716         since mkdirat needs them even if __OPENAT_PREFIX is defined.
24717
24718         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
24719         and openat.c.
24720         * lib/mkdirat.c: Include openat-priv.h.
24721         Remove definitions of macros defined therein.
24722         * lib/openat.c: Likewise.
24723
24724         * lib/mkdirat.c (mkdirat): New file and function.
24725         * lib/openat.h (mkdirat): Declare.
24726
24727         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
24728
24729         * lib/openat.h (openat_permissive): Declare.
24730         (openat_ro): Define.
24731
24732         * lib/openat.c (EXPECTED_ERRNO): New macro.
24733         (openat_permissive): New function -- used in remove.c rewrite.
24734         (all functions): Set errno just before returning, only if there
24735         was an actual failure.
24736         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
24737
24738         Emulate openat-family functions using Linux's procfs, if possible.
24739         Idea and some code based on Ulrich Drepper's glibc changes.
24740
24741         * lib/openat.c: (BUILD_PROC_NAME): New macro.
24742         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
24743         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
24744         before falling back on save_cwd and restore_cwd.
24745         (fdopendir, fstatat, unlinkat): Likewise.
24746
24747         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
24748         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
24749
24750         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
24751         as second argument to va_arg.  Otherwise, some versions of gcc
24752         warn that `if this code is reached, the program will abort'.
24753
24754 2006-01-09  Jim Meyering  <jim@meyering.net>
24755
24756         Sync from coreutils.
24757         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
24758         Require openat-priv.h.
24759
24760 2006-01-09  Bruno Haible  <bruno@clisp.org>
24761
24762         * modules/strnlen (Include): Use strnlen.h.
24763
24764 2006-01-09  Bruno Haible  <bruno@clisp.org>
24765
24766         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
24767
24768 2006-01-09  Bruno Haible  <bruno@clisp.org>
24769
24770         * lib/sysexit_.h (EX_OK): New macro.
24771         Suggested by Martin Lambers <marlam@marlam.de>.
24772
24773 2006-01-09  Bruno Haible  <bruno@clisp.org>
24774
24775         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
24776         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
24777
24778 2006-01-09  Bruno Haible  <bruno@clisp.org>
24779
24780         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
24781         numbers.
24782
24783 2006-01-09  Bruno Haible  <bruno@clisp.org>
24784
24785         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
24786         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
24787         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
24788         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
24789
24790 2006-01-09  Bruno Haible  <bruno@clisp.org>
24791
24792         * build-aux/javacomp.sh.in: New file, moved from lib/.
24793         * modules/javacomp-script (Files): Update.
24794         (configure.ac): Add AC_CONFIG_FILES invocation.
24795         (EXTRA_DIST): Remove variable.
24796
24797         * build-aux/javaexec.sh.in: New file, moved from lib/.
24798         * modules/javaexec (Files): Update.
24799         (configure.ac): Add AC_CONFIG_FILES invocation.
24800         (EXTRA_DIST): Remove javaexec.sh.in.
24801
24802         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
24803         * modules/csharpcomp-script (Files): Update.
24804         (configure.ac): Add AC_CONFIG_FILES invocation.
24805         (EXTRA_DIST): Remove variable.
24806
24807         * build-aux/csharpexec.sh.in: New file, moved from lib/.
24808         * modules/csharpexec (Files): Update.
24809         (configure.ac): Add AC_CONFIG_FILES invocation.
24810         (EXTRA_DIST): Remove csharpexec.sh.in.
24811
24812 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
24813
24814         Sync from coreutils.
24815
24816         Add POSIX ACL support
24817         * lib/acl.h (copy_acl, set_acl): Add declarations.
24818         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
24819         systems other than Linux.
24820         (chmod_or_fchmod): New function: use fchmod when possible,
24821         and chmod otherwise.
24822         (file_has_acl): Add a POSIX ACL implementation, with a
24823         Linux-specific subcase.
24824         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
24825         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
24826         acls are unsupported.
24827         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
24828         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
24829         are unsupported.
24830
24831 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
24832
24833         Sync from coreutils.
24834         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
24835
24836 2006-01-07  Bruno Haible  <bruno@clisp.org>
24837
24838         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
24839         gl_EARLY.
24840
24841 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24842
24843         * lib/strftime.c (tzname): Don't declare if it is already #defined.
24844         Problem reported for Mingw by Mark Junker.
24845
24846 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24847
24848         * README: Gnulib normally doesn't generate a tarball.
24849
24850 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
24851
24852         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
24853         long int, not int, for nanosecond counts, so that people who are
24854         used to POSIX struct timespec won't be surprised.  Reported by Jim
24855         Meyering.
24856
24857 2005-12-28  Bruno Haible  <bruno@clisp.org>
24858
24859         * build-aux/config.rpath: Update from GNU gettext.
24860
24861 2005-12-16  Jim Meyering  <jim@meyering.net>
24862
24863         * modules/fprintftime: New module.
24864         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
24865
24866 2005-12-16  Jim Meyering  <jim@meyering.net>
24867
24868         * m4/fprintftime.m4: New file.
24869
24870 2005-12-16  Jim Meyering  <jim@meyering.net>
24871
24872         * lib/fprintftime.c, lib/fprintftime.h: New files.
24873
24874 2005-12-15  Simon Josefsson  <jas@extundo.com>
24875
24876         * modules/socklen (configure.ac): Fix M4 macro name, to align with
24877         new m4/socklen.m4.
24878
24879 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24880
24881         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
24882         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
24883
24884 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24885
24886         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
24887         * lib/argp-help.c (fill_in_uparams): Check if the constructed
24888         struct uparams is valid. Fall back to the default values if it is
24889         not.
24890
24891 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24892
24893         * modules/argp (Files): Add argp-pin.c
24894         (Depends-on): dirname
24895         (lib_SOURCES): Add argp-pin.c
24896
24897 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24898
24899         * m4/argp.m4:  Check if program_invocation_name and
24900         program_invocation_short_name are declared and define appropriate
24901         macros if they are not.
24902
24903 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24904
24905         * lib/argp-help.c (__argp_base_name): New function
24906         (__argp_short_program_name): Rewrite using __argp_base_name
24907         * lib/argp-namefrob.h: Define program_invocation_name and
24908         program_invocation_short_name if requested
24909         (__argp_base_name): Add prototype
24910         * lib/argp-parse.c (argp_def): Use gettext wrappers
24911         (argp_default_parser): Use __argp_base_name
24912         * lib/argp-pin.c: New file. Defines program_invocation_name and
24913         program_invocation_short_name on systems that lack them.
24914
24915 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
24916
24917         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
24918         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24919         porting problem reported by Georg Schwarz in
24920         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24921
24922 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
24923
24924         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
24925         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24926         porting problem reported by Georg Schwarz in
24927         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24928
24929 2005-12-05  Bruno Haible  <bruno@clisp.org>
24930
24931         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
24932         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
24933         Reported by Mark Junker <mjscod@gmx.de>.
24934
24935 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
24936
24937         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
24938         Use implementation from Albert Chin, with some
24939         comments/corrections by Stepan Kasal and myself.
24940
24941 2005-12-02  Bruno Haible  <bruno@clisp.org>
24942
24943         * gnulib-tool (func_import): Accept GPLed build tool modules when
24944         --lgpl is given.
24945         * modules/csharpcomp-script: New file.
24946         * modules/csharpcomp: Depend on it.
24947         * modules/javacomp-script: New file.
24948         * modules/javacomp: Depend on it.
24949         Suggested by Simon Josefsson.
24950
24951 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24952
24953         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
24954         statement, to work around an HP-UX 10.20 compiler bug reported by
24955         Peter O'Gorman.
24956
24957 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
24958
24959         * modules/savedir (Depends-on): Add openat.
24960
24961 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
24962
24963         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
24964         (uintmax_t) [defined uintmax_t]: Do not declare.
24965         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
24966         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
24967         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
24968         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
24969         sake of portability to weird hosts that C allows (though we don't
24970         know of any practical examples).
24971
24972         * lib/savedir.h (fdsavedir): New decl.
24973         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
24974         contains most of the former guts of savedir.
24975         (savedir): Use savedirstream.
24976         Include "openat.h".
24977
24978 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24979
24980         * modules/obstack (Files): Add m4/ulonglong.m4.
24981         Problem reported by Davide Angelocola.
24982
24983 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24984
24985         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
24986         coreutils no longer futzes with rounding modes.
24987
24988 2005-11-14  Jim Meyering  <jim@meyering.net>
24989
24990         * lib/mkstemp-safer.c: Include <config.h>, required for possible
24991         replacement of mkstemp.
24992
24993 2005-11-10  Simon Josefsson  <jas@extundo.com>
24994
24995         * lib/readline.c: Remove EOL.
24996
24997 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24998
24999         * modules/gethrxtime (Depends-on): Add gettime.
25000
25001 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
25002
25003         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
25004         or gettimeofday; no longer needed.
25005
25006 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
25007
25008         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
25009         time business.
25010         (gethrxtime) [! (HAVE_NANOUPTIME
25011         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
25012         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
25013         our own approximation.
25014
25015 2005-11-08  Eric Blake  <ebb9@byu.net>
25016
25017         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
25018
25019 2005-11-08  Eric Blake  <ebb9@byu.net>
25020
25021         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
25022
25023 2005-11-04  Bruno Haible  <bruno@clisp.org>
25024
25025         * gnulib-tool: Implement --update mode.
25026
25027 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25028
25029         Fix porting problem reported by Theodoros V. Kalamatianos.
25030         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
25031         Don't assume that futimes failing means we must fail.
25032
25033 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25034
25035         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
25036         variables to suggest the intended function of the PATH_MAX check.
25037
25038 2005-10-30  Kean Johnston  <jkj@sco.com>
25039
25040         Trivial changes to support SCO systems.
25041         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
25042         as PATH_MAX.
25043         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
25044         where __ptr is null when no I/O is pending.
25045
25046 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
25047
25048         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
25049         leave errno alone.  Problem reported by Dmitry V. Levin.
25050
25051 2005-10-28  Simon Josefsson  <jas@extundo.com>
25052
25053         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
25054         Test more.
25055
25056         * tests/test-gc-md2.c, tests/test-md2.c: New files.
25057
25058         * modules/md2, modules/md2-tests: New files.
25059
25060 2005-10-28  Simon Josefsson  <jas@extundo.com>
25061
25062         * m4/inet_ntop.m4: More tests.
25063
25064         * m4/gc-md2.m4, md2.m4: New file.
25065
25066 2005-10-28  Simon Josefsson  <jas@extundo.com>
25067
25068         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
25069         "restrict" keywords, as per POSIX.  Protect the function
25070         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
25071         Don't use K&R prototypes.  Check the sprintf return values.
25072         Re-define EAFNOSUPPORT if not present.  Indent.
25073
25074         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
25075         suggested by Bruno Haible <bruno@clisp.org>.
25076
25077         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
25078
25079         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
25080
25081         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
25082         libgcrypt).
25083
25084         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
25085
25086         * lib/md2.h, lib/md2.c: New files.
25087
25088 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
25089
25090         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
25091         errno alone.  Problem reported by Frederic Jolliton.
25092
25093 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
25094
25095         * modules/verify (License): Change from GPL to LGPL.  This is a
25096         tiny module and there are apparently near-equivalents that are
25097         under the BSD license.
25098
25099 2005-10-24  Simon Josefsson  <jas@extundo.com>
25100
25101         * modules/sha1: Relicense to LGPL.
25102
25103 2005-10-24  Simon Josefsson  <jas@extundo.com>
25104
25105         * lib/md4.h: Shrink buffer size, now that we changed the type.
25106
25107 2005-10-23  Simon Josefsson  <jas@extundo.com>
25108
25109         * gnulib-tool (func_import): Fix --tests-base.
25110
25111 2005-10-22  Simon Josefsson  <jas@extundo.com>
25112
25113         * modules/arcfour (Depends-on): Need stdint.
25114
25115 2005-10-22  Simon Josefsson  <jas@extundo.com>
25116
25117         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
25118         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
25119
25120 2005-10-22  Simon Josefsson  <jas@extundo.com>
25121
25122         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
25123         suggested by Bruno Haible <bruno@clisp.org>.
25124
25125 2005-10-22  Simon Josefsson  <jas@extundo.com>
25126
25127         * lib/crc.h: Include stddef.h, for size_t.
25128
25129 2005-10-22  Simon Josefsson  <jas@extundo.com>
25130
25131         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
25132         arcfour_context struct (simplify test vector testing in GNU
25133         Shishi).
25134
25135 2005-10-21  Simon Josefsson  <jas@extundo.com>
25136
25137         * modules/des, modules/des-tests: New files.
25138
25139         * modules/gc-des, modules/gc-des-tests: New files.
25140
25141         * tests/test-des.c, tests/test-gc-des.c: New file.
25142
25143 2005-10-21  Simon Josefsson  <jas@extundo.com>
25144
25145         * modules/arctwo, modules/arctwo-tests: New files.
25146
25147         * tests/test-arctwo.c: New file.
25148
25149         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
25150
25151         * tests/test-gc-arctwo.c: New file.
25152
25153 2005-10-21  Simon Josefsson  <jas@extundo.com>
25154
25155         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
25156         Bruno Haible <bruno@clisp.org>.
25157
25158         * m4/gc-des.m4: New file.
25159
25160 2005-10-21  Simon Josefsson  <jas@extundo.com>
25161
25162         * m4/arctwo.m4: New file.
25163
25164         * m4/gc-arctwo.m4: New file.
25165
25166 2005-10-21  Simon Josefsson  <jas@extundo.com>
25167
25168         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
25169         block.
25170
25171 2005-10-21  Simon Josefsson  <jas@extundo.com>
25172
25173         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
25174         <bruno@clisp.org>.
25175
25176         * lib/hmac-sha1.c (hmac_sha1): Likewise.
25177
25178         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
25179         Bruno Haible <bruno@clisp.org>.
25180
25181         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
25182         <bruno@clisp.org>.
25183
25184 2005-10-21  Simon Josefsson  <jas@extundo.com>
25185
25186         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
25187
25188 2005-10-21  Simon Josefsson  <jas@extundo.com>
25189
25190         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
25191
25192 2005-10-21  Simon Josefsson  <jas@extundo.com>
25193
25194         * lib/des.h, lib/des.c: New files.
25195
25196         * lib/gc-gnulib.c: Support DES.c
25197
25198 2005-10-21  Simon Josefsson  <jas@extundo.com>
25199
25200         * lib/arctwo.h, lib/arctwo.c: New files.
25201
25202         * lib/gc-gnulib.c: Support ARCTWO.
25203
25204 2005-10-21  Simon Josefsson  <jas@extundo.com>
25205
25206         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
25207         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25208
25209 2005-10-21  Simon Josefsson  <jas@extundo.com>
25210
25211         * gnulib-tool (func_import, func_create_testdir): Define automake
25212         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
25213         Makefile.am snippet),
25214         suggested by Bruno Haible <bruno@clisp.org>.
25215
25216         * modules/gc (Makefile.am): Use it.
25217
25218 2005-10-21  Bruno Haible  <bruno@clisp.org>
25219
25220         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
25221         patch.
25222
25223 2005-10-19  Simon Josefsson  <jas@extundo.com>
25224
25225         * tests/test-gc-rijndael.c: New file.
25226
25227         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
25228
25229 2005-10-19  Simon Josefsson  <jas@extundo.com>
25230
25231         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
25232         interface too.
25233
25234 2005-10-19  Simon Josefsson  <jas@extundo.com>
25235
25236         * tests/test-gc-arcfour.c: New file.
25237
25238         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
25239
25240 2005-10-19  Simon Josefsson  <jas@extundo.com>
25241
25242         * modules/gc-md4, modules/gc-md4-tests: New file.
25243
25244         * tests/test-gc-md4.c: New file.
25245
25246 2005-10-19  Simon Josefsson  <jas@extundo.com>
25247
25248         * m4/gc-md4.m4: New file.
25249
25250 2005-10-19  Simon Josefsson  <jas@extundo.com>
25251
25252         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
25253         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
25254         <kasal@ucw.cz>.
25255
25256 2005-10-19  Simon Josefsson  <jas@extundo.com>
25257
25258         * m4/gc-arcfour.m4: New file.
25259
25260         * m4/gc-rijndael.m4: New file.
25261
25262 2005-10-19  Simon Josefsson  <jas@extundo.com>
25263
25264         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
25265
25266 2005-10-19  Simon Josefsson  <jas@extundo.com>
25267
25268         * lib/gc-gnulib.c: Support ARCFOUR.
25269
25270 2005-10-19  Simon Josefsson  <jas@extundo.com>
25271
25272         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
25273         support.
25274
25275         * lib/gc.h: Add ECB enum type.
25276
25277         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
25278
25279 2005-10-18  Simon Josefsson  <jas@extundo.com>
25280
25281         * tests/test-md5.c: New file.
25282
25283         * modules/md5-tests: New file.
25284
25285 2005-10-18  Simon Josefsson  <jas@extundo.com>
25286
25287         * tests/test-md4.c: New file.
25288
25289         * modules/md4, modules/md4-tests: New files.
25290
25291 2005-10-18  Simon Josefsson  <jas@extundo.com>
25292
25293         * m4/md4.m4: New file.
25294
25295 2005-10-18  Simon Josefsson  <jas@extundo.com>
25296
25297         * lib/md4.h, lib/md4.c: New files, based on md5.?.
25298
25299 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
25300
25301         * gnulib-tool (func_create_testdir): Omit the second check whether
25302         BUILT_SOURCES in nonempty.
25303
25304 2005-10-17  Simon Josefsson  <jas@extundo.com>
25305
25306         * tests/test-rijndael.c: New file.
25307
25308 2005-10-17  Simon Josefsson  <jas@extundo.com>
25309
25310         * modules/sha1: Depend on stdint instead of md5.
25311
25312         * modules/md5: Depend on stdint, remove uint32_t.
25313
25314 2005-10-17  Simon Josefsson  <jas@extundo.com>
25315
25316         * modules/gc-sha1-tests: New file.
25317
25318         * tests/test-gc-sha1.c: New file.
25319
25320 2005-10-17  Simon Josefsson  <jas@extundo.com>
25321
25322         * m4/md5.m4: Remove call to uint32_t.m4.
25323
25324 2005-10-17  Simon Josefsson  <jas@extundo.com>
25325
25326         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
25327
25328         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
25329         md5.h.
25330
25331         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
25332
25333         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
25334
25335 2005-10-17  Simon Josefsson  <jas@extundo.com>
25336
25337         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
25338
25339 2005-10-17  Simon Josefsson  <jas@extundo.com>
25340
25341         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
25342
25343 2005-10-17  Simon Josefsson  <jas@extundo.com>
25344
25345         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
25346
25347         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
25348
25349 2005-10-17  Bruno Haible  <bruno@clisp.org>
25350
25351         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
25352         that it can also be used in a test.
25353
25354 2005-10-16  Bruno Haible  <bruno@clisp.org>
25355
25356         * gnulib-tool (func_emit_tests_Makefile_am): Also define
25357         TESTS_ENVIRONMENT, so that individual tests can augment it.
25358
25359         * gnulib-tool (func_create_testdir): Use an intermediate target for
25360         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
25361         macros, like $(ALLOCA_H), which cannot be passed through the command
25362         line.
25363
25364 2005-10-15  Simon Josefsson  <jas@extundo.com>
25365
25366         * modules/rijndael-tests: New file.
25367
25368         * modules/rijndael: New file.
25369
25370 2005-10-15  Simon Josefsson  <jas@extundo.com>
25371
25372         * m4/rijndael.m4: New file.
25373
25374 2005-10-15  Simon Josefsson  <jas@extundo.com>
25375
25376         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
25377
25378         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
25379
25380 2005-10-14  Simon Josefsson  <jas@extundo.com>
25381
25382         * tests/test-arcfour.c: New file.
25383
25384         * modules/arcfour, modules/arcfour-tests: New files.
25385
25386 2005-10-14  Simon Josefsson  <jas@extundo.com>
25387
25388         * m4/arcfour.m4: New file.
25389
25390 2005-10-14  Simon Josefsson  <jas@extundo.com>
25391
25392         * lib/arcfour.h, lib/arcfour.c: New files.
25393
25394 2005-10-14  Roland McGrath  <roland@redhat.com>
25395
25396         Import from libc.  [BZ #1331]
25397         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
25398         macro argument.
25399         Reported by Matej Vela <vela@debian.org>.
25400
25401 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
25402
25403         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
25404         include <wchar.h>; no longer needed.
25405
25406 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
25407
25408         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
25409
25410 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
25411         and  Ulrich Drepper  <drepper@redhat.com>
25412
25413         Import from libc.
25414         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
25415         instead of inline stream orientation test and two separate
25416         function calls.  Pay no attention to USE_IN_LIBIO.
25417
25418 2005-10-13  Simon Josefsson  <jas@extundo.com>
25419
25420         * modules/gc-hmac-md5-tests: New file.
25421
25422         * tests/test-gc-hmac-sha1.c: New file.
25423
25424         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
25425
25426         * modules/gc-hmac-md5-tests: New file.
25427
25428         * tests/test-gc-md5.c: New file.
25429
25430         * modules/gc-md5-tests: New file.
25431
25432 2005-10-13  Simon Josefsson  <jas@extundo.com>
25433
25434         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
25435         Move memory allocation outside of loop.
25436
25437 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25438
25439         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
25440         intermediate directory is in a read-only file system.  Problem
25441         reported by Eric Blake.
25442
25443 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
25444
25445         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
25446
25447 2005-10-12  Simon Josefsson  <jas@extundo.com>
25448
25449         * tests/test-hmac-sha1.c: New file.
25450
25451         * modules/hmac-sha1-tests: New file.
25452
25453         * modules/hmac-sha1: New file.
25454
25455 2005-10-12  Simon Josefsson  <jas@extundo.com>
25456
25457         * modules/gc-sha1: New file.
25458
25459 2005-10-12  Simon Josefsson  <jas@extundo.com>
25460
25461         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
25462
25463         * tests/test-gc-pbkdf2-sha1.c: New file.
25464
25465 2005-10-12  Simon Josefsson  <jas@extundo.com>
25466
25467         * modules/gc-md5, modules/gc-hmac-md5: New files.
25468
25469         * modules/gc (Files): Remove md5, memxor and hmac files.
25470
25471 2005-10-12  Simon Josefsson  <jas@extundo.com>
25472
25473         * m4/gc-pbkdf2-sha1.m4: New file.
25474
25475         * m4/gc-hmac-sha1.m4: New file.
25476
25477         * m4/gc-sha1: New file.
25478
25479         * m4/hmac-sha1.m4: New file.
25480
25481 2005-10-12  Simon Josefsson  <jas@extundo.com>
25482
25483         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
25484
25485         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
25486
25487 2005-10-12  Simon Josefsson  <jas@extundo.com>
25488
25489         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
25490         suggested by Bruno Haible <bruno@clisp.org>.
25491
25492 2005-10-12  Simon Josefsson  <jas@extundo.com>
25493
25494         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
25495
25496 2005-10-12  Simon Josefsson  <jas@extundo.com>
25497
25498         * lib/gc-pbkdf2-sha1.c: New file.
25499
25500         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
25501
25502 2005-10-12  Simon Josefsson  <jas@extundo.com>
25503
25504         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
25505
25506         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
25507
25508 2005-10-12  Simon Josefsson  <jas@extundo.com>
25509
25510         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
25511         GC_USE_HMAC_MD5, respectively.
25512
25513         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
25514         (gc_md5): Fix typo.
25515
25516         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
25517
25518         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
25519
25520         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
25521
25522 2005-10-12  Bruno Haible  <bruno@clisp.org>
25523
25524         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
25525         Reported by Stepan Kasal <kasal@ucw.cz>.
25526
25527 2005-10-11  Simon Josefsson  <jas@extundo.com>
25528
25529         * tests/test-crc.c: New file.
25530
25531         * modules/crc, modules/crc-tests: New files.
25532
25533 2005-10-11  Simon Josefsson  <jas@extundo.com>
25534
25535         * m4/crc.m4: New file.
25536
25537 2005-10-11  Simon Josefsson  <jas@extundo.com>
25538
25539         * lib/gc.h: Add gc_hash and gc_hash_buffer.
25540
25541         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
25542
25543         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
25544
25545 2005-10-11  Simon Josefsson  <jas@extundo.com>
25546
25547         * lib/crc.h, lib/crc.c: New files.
25548
25549         * lib/gc.h (gc_hash_buffer): Add doc.
25550
25551 2005-10-11  Bruno Haible  <bruno@clisp.org>
25552
25553         * modules/c-strcasestr: New file.
25554         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
25555
25556 2005-10-11  Bruno Haible  <bruno@clisp.org>
25557
25558         * modules/c-strcase: New file.
25559         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
25560
25561 2005-10-11  Bruno Haible  <bruno@clisp.org>
25562
25563         * lib/strcasecmp.c: Include limits.h.
25564         (strcasecmp): Avoid integer overflow on exotic platforms.
25565         * lib/strncasecmp.c: Include limits.h.
25566         (strncasecmp): Avoid integer overflow on exotic platforms.
25567         Reported by Paul Eggert.
25568
25569 2005-10-11  Bruno Haible  <bruno@clisp.org>
25570
25571         * lib/c-strcasestr.h: New file, from GNU gettext.
25572         * lib/c-strcasestr.c: New file, from GNU gettext.
25573
25574 2005-10-11  Bruno Haible  <bruno@clisp.org>
25575
25576         * lib/c-strcase.h: New file, from GNU gettext.
25577         * lib/c-strcasecmp.c: New file, from GNU gettext.
25578         * lib/c-strncasecmp.c: New file, from GNU gettext.
25579
25580 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25581
25582         * modules/mempcpy (License): GPL -> LGPL.
25583         * modules/strchrnul (License): Likewise.
25584         * modules/sysexits (License): Likewise.
25585
25586 2005-10-08  Simon Josefsson  <jas@extundo.com>
25587
25588         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
25589
25590 2005-10-07  Simon Josefsson  <jas@extundo.com>
25591
25592         * m4/memxor.m4: Remove gl_C_RESTRICT call.
25593
25594 2005-10-06  Simon Josefsson  <jas@extundo.com>
25595
25596         * tests/test-hmac-md5.c: New file.
25597
25598         * modules/hmac-md5-tests: New file.
25599
25600         * modules/hmac-md5: New file.
25601
25602 2005-10-06  Simon Josefsson  <jas@extundo.com>
25603
25604         * m4/hmac-md5.m4: New file.
25605
25606         * m4/memxor.m4: Require gl_C_RESTRICT.
25607
25608 2005-10-06  Simon Josefsson  <jas@extundo.com>
25609
25610         * lib/memxor.c (memxor): Avoid casts and warnings.
25611
25612 2005-10-06  Simon Josefsson  <jas@extundo.com>
25613
25614         * lib/hmac-md5.c: New file.
25615
25616         * lib/hmac.h: New file.
25617
25618 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25619
25620         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
25621         promotes to int, not unsigned int, to catch the AIX 5.3
25622         compiler bug.
25623
25624 2005-10-05  Simon Josefsson  <jas@extundo.com>
25625
25626         * modules/memxor: New file.
25627
25628         * modules/iconv (Files): Move config.rpath to havelib, it is used
25629         there.
25630
25631         * modules/havelib (Files): Add config.rpath.
25632
25633 2005-10-05  Simon Josefsson  <jas@extundo.com>
25634
25635         * m4/memxor.m4: New file.
25636
25637 2005-10-05  Simon Josefsson  <jas@extundo.com>
25638
25639         * lib/memxor.c (memxor): Fix compiler error.
25640
25641         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
25642         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
25643
25644         * lib/memxor.h, lib/memxor.c: New files.
25645
25646         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
25647         we assume all systems have it, suggested by Jim Meyering
25648         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
25649         any systems lack sys/socket.h; mingw32 is known to lack it, but we
25650         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
25651         same reasons.
25652
25653 2005-10-05  Simon Josefsson  <jas@extundo.com>
25654
25655         * config/srclist.txt: Add glibc bug 1423 for md5.h.
25656
25657 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25658
25659         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
25660         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
25661         needed, since the source code now assumes these .h files.
25662
25663 2005-10-05  Derek Price  <derek@ximbiot.com>
25664
25665         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
25666
25667 2005-10-05  Bruno Haible  <bruno@clisp.org>
25668
25669         * modules/stdint (License): Change to LGPL.
25670
25671 2005-10-04  Simon Josefsson  <jas@extundo.com>
25672
25673         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
25674         D. Baushke" <mdb@gnu.org>.
25675
25676 2005-10-04  Bruno Haible  <bruno@clisp.org>
25677
25678         * lib/verify.h (verify_true): Provide alternative definition for C++.
25679
25680 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25681
25682         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
25683         (SSIZE_MAX): New macro, if not already defined.
25684         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
25685         than 2 GiB.
25686
25687 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25688
25689         Sync from coreutils.
25690         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
25691         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
25692         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
25693         ULLONG_MAX doesn't work with 2.7.2.1.
25694
25695 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25696
25697         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
25698         From Ben Pfaff.
25699
25700         * modules/exclude (Depends-on): Depend on verify.
25701         * modules/strtoimax (Depends-on): Likewise.
25702         * modules/utimecmp (Depends-on): Likewise.
25703
25704 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25705
25706         * lib/exclude.c: Include verify.h.
25707         (verify): Remove.  All callers changed to use verify.h's version.
25708         * lib/strtoimax.c: Likewise.
25709         * lib/utimecmp.c: Likewis.e
25710
25711         Sync from coreutils.
25712         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
25713         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
25714         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
25715         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
25716         bother returning ENOSYS if settimeofday or stime fails; just let
25717         them return whatever errno they want to return.
25718         * lib/utimens.c: Include unistd.h, for dup2.
25719         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
25720         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
25721
25722 2005-10-02  Jim Meyering  <jim@meyering.net>
25723
25724         Sync from coreutils.
25725         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
25726         from glibc-2.2.5 that fails for read-only files.
25727
25728 2005-10-02  Jim Meyering  <jim@meyering.net>
25729
25730         Sync from coreutils.
25731         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
25732         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
25733         `#if HAVE_CONFIG_H'.
25734         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
25735         Remove AT_FDCWD test.
25736         Do not consume the fd unless successful.
25737         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
25738         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
25739         block, so that we don't even try to compile it if settimeofday is
25740         available.  This works around a compilation failure on OSF1 V5.1,
25741         due to stime requiring a `long int*' while tv_sec is `int'.
25742
25743 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
25744
25745         Sync from coreutils.
25746         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
25747         against `yes', rather than just testing for nonempty.
25748
25749 2005-10-01  Simon Josefsson  <jas@extundo.com>
25750
25751         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
25752         and Darwin.
25753
25754         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
25755         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
25756         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
25757         freeaddrinfo and gai_strerror are declared by the POSIX headers.
25758         Check if struct addrinfo is declared.
25759
25760 2005-10-01  Simon Josefsson  <jas@extundo.com>
25761
25762         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
25763         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
25764         AI_* and EAI_* definitions.  Protect function declarations.
25765
25766 2005-10-01  Jim Meyering  <jim@meyering.net>
25767
25768         Sync from coreutils.
25769
25770         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
25771         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
25772         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
25773         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25774         in the inet and nsl libraries.  Required on Solaris 5.7.
25775
25776 2005-10-01  Jim Meyering  <jim@meyering.net>
25777
25778         Sync from coreutils.
25779         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25780         in the inet and nsl libraries.  Required on Solaris 5.7.
25781
25782 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
25783
25784         * lib/getdelim.c (getdelim): Remove unused variables.
25785
25786 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
25787
25788         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
25789         so that the code works even with ancient cpp.  Portability problem
25790         with GCC 2.7.2.1 reported by Thomas M.Ott.
25791
25792 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
25793
25794         * modules/regex (Depends-on): Add strcase.
25795
25796         * modules/gethostname (Licence): Change from GPL to LGPL, since
25797         gethostname.c is a trivial implementation of a standard library
25798         function.
25799         * modules/poll (License): Change from GPL to LGPL, since it's
25800         derived from LGPL code.
25801
25802 2005-09-27  Jim Meyering  <jim@meyering.net>
25803
25804         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
25805         HAVE_CONFIG_H.
25806
25807         * lib/intprops.h (signed_type_or_expr__): Define.
25808         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
25809         for unsigned types.
25810
25811 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25812
25813         * lib/verify.h (verify_expr): Remove, replacing with:
25814         (verify_true): New macro that returns true instead of void.
25815         (verify_type__): Remove.
25816         (verify): Use verify_true rather than verify_type__.
25817
25818 2005-09-26  Bruno Haible  <bruno@clisp.org>
25819
25820         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
25821         is necessary.
25822         (lib_SOURCES): Remove mbchar.c.
25823         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
25824         (Files): Add m4/mbrtowc.m4.
25825         * modules/mbiter: Likewise.
25826         * modules/mbuiter: Likewise.
25827
25828 2005-09-26  Bruno Haible  <bruno@clisp.org>
25829
25830         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
25831         compile mbchar.c if they are not both present.
25832         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
25833         * m4/mbiter.m4 (gl_MBITER): Likewise.
25834         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
25835         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
25836         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
25837
25838 2005-09-25  Jim Meyering  <jim@meyering.net>
25839
25840         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
25841         also uses socklen_t.
25842
25843 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
25844
25845         * lib/utimens.c (ENOSYS): Define if not already defined.
25846         (futimens): Support having a null PATH if the file descriptor
25847         is nonnegative.
25848
25849         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
25850         Remove.
25851         (__attribute): Define to empty unless GCC 3.1 or later.
25852         This works around a core dump on OpenBSD 3.4, which has GCC
25853         2.95.3, which dumps core when given __attribute__(()).  It also
25854         simplifies other tests, since we really don't want to bother with
25855         worrying about which ancient version of GCC supported what.
25856         Original problem reported by Yoann Vandoorselaere, with part of
25857         the fix suggested by Derek Price.
25858
25859 2005-09-24  Jim Meyering  <jim@meyering.net>
25860
25861         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
25862         so we can once again use a positive bitfield width of 1 -- now we
25863         don't have to explain why we were using a bitfield width of 2.
25864
25865 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25866
25867         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
25868         and similarly for the other external symbols.  Problem reported
25869         by James Gallager.
25870
25871         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
25872         bug reported by Jim Meyering.
25873
25874         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
25875         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
25876         not needed, since socklen is a prerequisite module.
25877
25878 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25879
25880         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
25881         Problem reported by Eric Blake.
25882         (getaddrinfo): Initialize se so that it's not garbage.
25883         Redo internal storage allocation so that it doesn't make unportable
25884         assumptions about alignment.
25885         Fix a memory leak.
25886
25887         * lib/utimens.c (futimens): Use futimesat if available.
25888         Prefer it to futimes since it doesn't have the futimes bug.
25889
25890         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
25891         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
25892         Instead, declare a function that returns a pointer to an array,
25893         and use verify_type__ to declare the size of the array.
25894         Problem and germ of a solution reported by Bruno Haible.
25895         (verify_type__): Use 2, not 1, for bitfield size, to avoid
25896         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
25897
25898 2005-09-23  Jim Meyering  <jim@meyering.net>
25899
25900         Sync from coreutils.
25901         Correct build failure (socklen_t not defined) on at least
25902         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
25903         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
25904
25905 2005-09-23  Jim Meyering  <jim@meyering.net>
25906
25907         * modules/getaddrinfo (Depends-on): Add socklen.
25908
25909 2005-09-23  Bruno Haible  <bruno@clisp.org>
25910
25911         * tests/test-verify.c: New file.
25912
25913 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25914
25915         Sync from coreutils.
25916
25917         * modules/argmatch (Depends-on): Add verify.
25918         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
25919         unistd-safer.
25920         * modules/save-cwd (Depends-on): Likewise.
25921
25922         * modules/openat (Files): Add lib/openat-die.c.
25923         (Depends-on): Remove error, exitfail.
25924         Add dirname.
25925
25926         * modules/verify: New file.
25927         * MODULES.html.sh (Diagnostics <assert.h>): New section,
25928         with "verify" module.
25929
25930 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25931
25932         Sync from coreutils.
25933
25934         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
25935         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
25936         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
25937         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
25938         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
25939         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
25940         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
25941         Don't bother checking for string.h, stdlib.h, unistd.h.
25942         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
25943         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
25944         module's job.
25945         * m4/jm-macros.m4 (gl_MACROS): Likewise.
25946         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
25947
25948         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
25949         (gl_GETDATE): Use it.
25950
25951         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
25952
25953 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25954
25955         Sync from coreutils.
25956
25957         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
25958         stat-time.h.
25959         * lib/argmatch.h: Include verify.h
25960         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
25961         (ARGMATCH_ASSERT): Remove; unused.
25962         * lib/canonicalize.c: Assume STDC_HEADERS.
25963         * lib/exclude.c: Include "strcase.h".
25964         * lib/regex_internal.h [!defined _LIBC]: Likewise.
25965         * lib/getusershell.c: Include stdio--.h rather than stdio.h
25966         and stdio-safer.h.
25967         (getusershell): Call fopen, not fopen_safer.
25968         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
25969         Do not include unistd-safer.h.
25970         (save_cwd): Don't call fd_safer; no longer needed
25971         now that we include fcntl--.h.
25972
25973         * lib/getdate.y (relative_time): New type.
25974         (RELATIVE_TIME_0): New constant.
25975         (parser_control): Use relative_time instead of doing it ourselves.
25976         (%union): Add new relative_time rel member.
25977         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
25978         Now typeless.
25979         (relunit, relunit_snumber): Now of type rel.
25980         (zone, rel, relunit, get_date): Adjust to above changes.
25981
25982         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
25983         Do not include unistd-safer.h.
25984         (getloadavg): Don't call fd_safer; no longer needed
25985         now that we include fcntl--.h.
25986
25987         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
25988         (make_dir_parents): Treat ENOSYS like EEXIST.
25989
25990         Improve quality of diagnostics on restore_cwd failure.
25991         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
25992         (make_dir_parents): Last arg is now int * (for errno), not bool *.
25993         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
25994         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
25995         each time through the loop.  Do not diagnose restore_cwd failure;
25996         that is the caller's job (and perhaps the caller does not care).
25997
25998         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
25999         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
26000         If the file already exists but is not a directory, don't bother
26001         to try to make its parents.
26002         Close potential file descriptor leak if we can't chdir("/") (!).
26003         Don't always return true if chdir($PWD) fails; return true only
26004         if the requested action was done successfully (except for the
26005         chdir($PWD)).
26006         Don't log final directory unless we actually made it.
26007         Refactor to avoid duplicate code to fix up permissions.
26008         Don't attempt to fix up parent permissions if chdir($PWD) fails.
26009
26010         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
26011         to make it a bit faster and (I hope) clearer.
26012         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
26013         Fix bug in formats like %2N.
26014
26015         * lib/verify.h: New file.
26016
26017 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26018
26019         Sync from coreutils.
26020         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
26021
26022 2005-09-22  Jim Meyering  <jim@meyering.net>
26023
26024         Sync from coreutils.
26025
26026         * m4/lstat.m4 (gl_FUNC_LSTAT):
26027         Use AC_LIBSOURCES to require lstat.c and lstat.h.
26028         Remove obsolete comment.
26029         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
26030         * m4/xstrtod.m4: Likewise.
26031
26032         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
26033
26034 2005-09-22  Jim Meyering  <jim@meyering.net>
26035
26036         Sync from coreutils.
26037
26038         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
26039
26040         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
26041         the .tm_year member, since otherwise gcc-4.0 would now warn about
26042         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
26043
26044         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
26045         order to avoid an unsuppressible warning from gcc on 64-bit systems.
26046
26047         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
26048         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
26049         when run in a time zone for which daylight savings time is in effect
26050         for the starting date.
26051
26052         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
26053         stop us from restricting permissions of just-created absolute-named
26054         directories.
26055         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
26056         to restore initial working directory.
26057         * lib/mkdir-p.c (make_dir_parents): New parameter:
26058         different_working_dir, to tell caller if/when we change the working
26059         directory and are unable to return to the initial one.
26060         * lib/mkdir-p.h (make_dir_parents): Update prototype.
26061         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
26062         `return false'.  This fixes a bug introduced on 2004-07-30.
26063
26064         * lib/openat.c (fdopendir): Be sure to close the supplied
26065         file descriptor before returning.  This makes our replacement
26066         implementation a little closer to Solaris's, where fdopendir
26067         ties the file descriptor to the returned DIR* pointer.
26068         * lib/openat.c (unlinkat): New function.
26069         * lib/openat.h (unlinkat): Add prototype.
26070         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
26071         (openat_restore_fail): Rename from openat_restore_die.
26072         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
26073
26074         Provide an alternative to exiting immediately upon save_cwd or
26075         restore_cwd failure.  Now, an application can arrange e.g.,
26076         to perform a longjump in that case.
26077         * lib/openat.c: Include dirname.h.
26078         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
26079         (rpl_openat, fdopendir, fstatat): Call openat_save_die
26080         and openat_restore_die rather than calling error directly.
26081         Don't include "error.h" or "exitfail.h"; they're no longer needed.
26082
26083         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
26084         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
26085         define.
26086
26087         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
26088         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
26089                             int utc, int nanoseconds);
26090         Background:
26091         date should not have to allocate a megabyte of virtual memory to
26092         handle a format argument like +%1048575T.  When implemented with
26093         strftime, it must allocate such a buffer, use strftime to fill it
26094         in, print it, then free it.
26095         With fprintftime, it simply prints everything and exits.
26096         With no need for memory allocation, that's one fewer way to fail.
26097         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
26098         optional field width, not before, so we accept %9:z, not %:9z.
26099         (my_strftime): Be sure to use L_('x') for literals.
26100
26101         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
26102         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
26103         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
26104         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
26105         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
26106         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
26107         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
26108         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
26109         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
26110         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
26111         * lib/xgethostname.c, lib/xreadlink.c:
26112         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
26113
26114         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
26115         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
26116         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
26117         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
26118         and don't include <sys/file.h>).
26119
26120 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
26121
26122         Sync from coreutils.
26123
26124         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
26125         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
26126         [!LDAV_DONE]: Avoid unused variable warning.
26127
26128 2005-09-21  Bruno Haible  <bruno@clisp.org>
26129
26130         * lib/unicodeio.h (unicode_to_mb): New declaration.
26131
26132 2005-09-20  Derek Price  <derek@ximbiot.com>
26133
26134         * lib/getaddrinfo.c: Don't include <netdb.h> included from
26135         getaddrinfo.h.
26136
26137 2005-09-20  Bruno Haible  <bruno@clisp.org>
26138
26139         * gnulib-tool: Remove trailing slashes from the values specified for
26140         --source-base, --m4-base, --tests-base, --aux-dir.
26141         Suggested by Simon Josefsson <jas@extundo.com>.
26142
26143 2005-09-20  Bruno Haible  <bruno@clisp.org>
26144
26145         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
26146         func_modules_to_filelist, func_import, func_create_testdir): Make all
26147         sorting results locale-independent, so that gnulib-cache.m4 doesn't
26148         change when gnulib-tool is invoked in a different locale.
26149
26150 2005-09-19  Simon Josefsson  <jas@extundo.com>
26151
26152         * m4/socklen.m4: Fix typo.
26153
26154 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26155
26156         Use a consistent style for including <config.h>.
26157         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
26158         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
26159         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
26160         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
26161         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
26162         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
26163         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
26164         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
26165         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
26166         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
26167         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
26168         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
26169         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
26170         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
26171         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
26172         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
26173         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
26174         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
26175         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
26176         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
26177         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
26178         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
26179         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
26180         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
26181         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
26182         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
26183         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
26184         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
26185         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
26186         lib/xstrtoumax.c, lib/yesno.c:
26187         Standardize inclusion of config.h.
26188         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
26189         lib/inttostr.h:  Removed inclusion of config.h from header files.
26190         * lib/inttostr.c:  Adjusted in-tree users.
26191         * lib/timespec.h: Remove superfluous warning to include config.h.
26192         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
26193         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
26194         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
26195         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
26196         config.h with HAVE_CONFIG_H.
26197
26198 2005-09-19  Jim Meyering  <jim@meyering.net>
26199
26200         * modules/pathmax (License): Change to LGPL.
26201
26202 2005-09-19  Derek Price  <derek@ximbiot.com>
26203
26204         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
26205
26206 2005-09-19  Bruno Haible  <bruno@clisp.org>
26207
26208         * gnulib-tool (import): Provide default for --tests-base.
26209
26210 2005-09-19  Bruno Haible  <bruno@clisp.org>
26211
26212         * doc/quote.texi: New file, extracted from gnulib.texi.
26213         * doc/ctime.texi: New file, extracted from gnulib.texi.
26214         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
26215         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
26216         * doc/gnulib.texi: Include them.
26217
26218 2005-09-18  Bruno Haible  <bruno@clisp.org>
26219
26220         Portability fix.
26221         * gnulib-tool (func_readlink): New function.
26222         (func_ln_if_changed): Use it.
26223
26224 2005-09-18  Bruno Haible  <bruno@clisp.org>
26225
26226         * gnulib-tool: Support --with-tests also with --import.
26227         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
26228         (func_import): Use variables $testsbase and $inctests. Emit a
26229         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
26230         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
26231         SUBDIRS += $testsdir.
26232         (func_create_testdir): Update.
26233
26234 2005-09-18  Bruno Haible  <bruno@clisp.org>
26235
26236         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
26237         instead of $dry_run.
26238         (func_cp_if_changed, func_mv_if_changed): Remove functions.
26239         (func_ln_if_changed): Don't handle dry-run here.
26240         (func_import): In dry-run mode, detect more precisely which actions
26241         would be performed, and don't use "...ing" verbs.
26242
26243 2005-09-18  Bruno Haible  <bruno@clisp.org>
26244
26245         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
26246         (func_import): Use join on two temporary files instead of three nested
26247         loops, in order to determine which files are new or old.
26248
26249 2005-09-18  Bruno Haible  <bruno@clisp.org>
26250
26251         * gnulib-tool (func_import): Comment out code that spits out the
26252         new files with --dry-run.
26253
26254 2005-09-18  Bruno Haible  <bruno@clisp.org>
26255
26256         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
26257
26258 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26259
26260         * lib/stat-time.h: New file.
26261         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
26262         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
26263         in a different way.
26264         (timespec_cmp): New function.
26265         * lib/utimecmp.c: Include stat-time.h.
26266         (SYSCALL_RESOLUTION): Depend on whether various struct stat
26267         members exist, not on the obsolescent ST_MTIM_NSEC.
26268         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
26269
26270 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26271
26272         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
26273
26274 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26275
26276         * MODULES.html.sh (File system functions): Add stat-time.
26277         * modules/stat-time: New file.
26278         * modules/timespec (Files): Remove m4/st_mtim.m4; this
26279         is now done in a different way, by the stat-time module.
26280         * modules/utimecmp (Depends-on): Add stat-time.
26281
26282 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
26283
26284         * m4/st_mtim.m4: Remove.  Superseded by...
26285         * m4/stat-time.m4: New file.
26286         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
26287         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
26288
26289 2005-09-15  Derek Price  <derek@ximbiot.com>
26290
26291         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
26292
26293 2005-09-15  Derek Price  <derek@ximbiot.com>
26294
26295         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
26296         * lib/regex_internal.c: Ditto, using this...
26297         (__GNUC_PREREQ): ...new macro.
26298         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
26299         using...
26300         (__GNUC_PREREQ): ...this new macro.
26301
26302         * lib/strstr.h: Include string.h. Define strstr as a macro here.
26303
26304 2005-09-15  Derek Price  <derek@ximbiot.com>
26305             Paul Eggert  <eggert@cs.ucla.edu>
26306
26307         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
26308         changes, consolidating in...
26309         * lib/regex_internal.h: ...this file.
26310
26311 2005-09-13  Jim Meyering  <jim@meyering.net>
26312
26313         * lib/canon-host.c: Filter through gnu indent and reword comments
26314         slightly.
26315         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
26316
26317 2005-09-13  Derek Price  <derek@ximbiot.com>
26318
26319         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
26320         failure.
26321         Reported by Jim Meyering  <jim@meyering.net>.
26322
26323 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26324
26325         * lib/base64.c: Typo.
26326         (base64_encode): Put b64str in initialized data section.
26327
26328 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26329
26330         Merge glibc and coreutils changes into gnulib, plus a few
26331         extra fixes.
26332         * lib/md5.c: Use #error rather than a string.
26333         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
26334         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
26335         (__attribute__): Define to empty for non recent-GCC.
26336         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
26337         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
26338         Renamed from their non-__ counterparts, with new macros replacing
26339         them if not _LIBC.  Add __THROW attribute.
26340         (rol): Remove.
26341         (struct md5_ctx): Align buffer if using GCC.
26342         * lib/sha1.h (struct sha1_ctx): Likewise.
26343         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
26344         The old name was backwards.
26345         (NOTSWAP): Remove; not used.
26346         (rol): New macro, moved here from md5.h.
26347         (sha1_process_block): Remove a FIXME that doesn't make sense.
26348
26349 2005-09-12  Derek Price  <derek@ximbiot.com>
26350
26351         Return usable errors from canon-host.
26352         * lib/canon-host.h: New file.
26353         * lib/canon-host.c (canon_host): Wrap...
26354         (canon_host_r): ...this new function, which now relies exclusively on
26355         getaddrinfo.
26356         (ch_strerror): New function.
26357         (last_cherror): New global.
26358         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
26359         interface.
26360         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
26361         void *.
26362         (freeaddrinfo): Free ai->ai_canonname when set.
26363
26364 2005-09-12  Derek Price  <derek@ximbiot.com>
26365
26366         Make canon-host require getaddrinfo.
26367         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
26368         AC_LIBSOURCE canon-host.h.  Call...
26369         (gl_PREREQ_CANON_HOST): ...this new function, which requires
26370         gl_GETADDRINFO.
26371         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
26372
26373 2005-09-12  Derek Price  <derek@ximbiot.com>
26374
26375         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
26376         LGPL.
26377         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
26378
26379 2005-09-12  Derek Price  <derek@ximbiot.com>
26380
26381         * lib/gai_strerror.c: Include config.h when available.  Include
26382         getaddrinfo.h before other headers to test interface.
26383         Reported by Larry Jones <lawrence.jones@ugs.com>.
26384
26385 2005-09-12  Derek Price  <derek@ximbiot.com>
26386             Paul Eggert  <eggert@cs.ucla.edu>
26387
26388         * modules/glob (Files): Add glob-libc.h.
26389
26390 2005-09-12  Derek Price  <derek@ximbiot.com>
26391             Paul Eggert  <eggert@cs.ucla.edu>
26392
26393         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
26394         glob_.h, glob-libc.h.
26395         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
26396
26397 2005-09-12  Derek Price  <derek@ximbiot.com>
26398             Paul Eggert  <eggert@cs.ucla.edu>
26399
26400         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
26401         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
26402         protecting things that should be done only in gnulib contexts.
26403         * lib/glob_.h: New file, containing only the glob things needed for
26404         gnulib.
26405         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
26406         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
26407         (glob, globfree, glob_pattern_p): Now defined simply in terms of
26408         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
26409         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
26410         and to respect the namespace rules better.
26411
26412 2005-09-08  Simon Josefsson  <jas@extundo.com>
26413
26414         * modules/socklen: New file.
26415
26416 2005-09-08  Simon Josefsson  <jas@extundo.com>
26417
26418         * m4/socklen.m4: New file.
26419
26420 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26421
26422         * modules/utimens (Files): Add m4/utimbuf.m4, since
26423         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
26424         Reported by Sergey Poznyakoff.
26425
26426 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26427
26428         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
26429         definitions, since that's the preferred style in glibc.
26430         Fix a minor spacing issue, and update copyright notice to match
26431         glibc's.
26432
26433 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
26434
26435         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
26436
26437 2005-09-06  Simon Josefsson  <jas@extundo.com>
26438
26439         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
26440         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
26441
26442 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26443
26444         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
26445         warning.
26446
26447 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26448
26449         * config/srclist.txt: Add glibc bug 1302.
26450
26451 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
26452
26453         Change bitset word type from unsigned int to unsigned long int,
26454         as this has better performance on typical 64-bit hosts.
26455         Port bitset code to hosts with unusual word sizes.
26456         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
26457         (build_collating_symbol):
26458         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
26459         argument is a bitset.  This is merely a style issue, but it makes
26460         it clearer that an entire array is expected.
26461         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
26462         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
26463         Port to the case where bitset_word is not the same as unsigned int.
26464         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
26465         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
26466         Likewise.
26467         * lib/regexec.c (check_dst_limits_calc_pos_1,
26468         check_subexp_matching_top):
26469         (build_trtable, group_nodes_into_DFAstates):
26470         Likewise.
26471         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
26472         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
26473         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
26474         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
26475         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
26476         * lib/regcomp.c (optimize_subexps, lower_subexp):
26477         Work even if bitset_word has holes in its bitwise representation.
26478         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
26479         * lib/regexec.c (check_dst_limits_calc_pos_1,
26480         check_subexp_matching_top):
26481         Likewise.
26482         * lib/regex_internal.c (re_string_reconstruct):
26483         Don't assume UCHAR_MAX == 255.
26484         * lib/regex_internal.h (bitset_set_all): Likewise.
26485         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
26486         All uses changed.
26487         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
26488         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
26489         All uses changed.
26490         (BITSET_WORD_MAX): New macro.
26491         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
26492         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
26493         (bitset_empty, bitset_copy):
26494         Prefer sizeof (bitset) to multiplying it out ourselves.
26495         (bitset_not_merge): Remove; unused.
26496         (bitset_contain): Return bool, not unsigned int with one bit on.
26497         All callers changed.
26498         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
26499         alignment than re_node_set; do this by defining a new internal
26500         type struct dests_alloc and using it to allocate memory.
26501
26502 2005-09-05  Bruno Haible  <bruno@clisp.org>
26503
26504         * gnulib-tool (func_import): Fix comparison in handling of symbolic
26505         links.
26506
26507 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
26508
26509         * modules/size_max (Makefile.am): Add size_max.h
26510
26511 2005-09-04  Derek Price  <derek@ximbiot.com>
26512
26513         * gnulib-tool (func_import): Fix reversed $symbolic logic.
26514
26515 2005-09-03  Simon Josefsson  <jas@extundo.com>
26516
26517         * gnulib-tool: Fix typo.
26518
26519 2005-09-03  Simon Josefsson  <jas@extundo.com>
26520
26521         * config/srclist.txt: Add glibc bug 1293.
26522
26523 2005-09-03  Derek Price  <derek@ximbiot.com>
26524
26525         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
26526         From Larry Jones <lawrence.jones@ugs.com>.
26527
26528 2005-09-02  Simon Josefsson  <jas@extundo.com>
26529
26530         * modules/socklen: New file.
26531
26532 2005-09-02  Simon Josefsson  <jas@extundo.com>
26533
26534         * modules/havelib: New module.
26535
26536         * modules/gettext, modules/iconv, modules/lock, modules/readline:
26537         Use havelib.
26538
26539 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26540
26541         Check for arithmetic overflow when calculating sizes, to prevent
26542         some buffer-overflow issues.  These patches are conservative, in the
26543         sense that when I couldn't determine whether an overflow was possible,
26544         I inserted a run-time check.
26545         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
26546         macros.
26547         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
26548         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
26549         (re_xnrealloc, re_x2nrealloc): New inline functions.
26550         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
26551         parse_bracket_exp):
26552         (build_equiv_class, build_charclass): Check for arithmetic overflow
26553         in size expression calculations.
26554         * lib/regex_internal.c (re_string_realloc_buffers):
26555         (build_wcs_upper_buffer, re_node_set_add_intersect):
26556         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
26557         (re_dfa_add_node, register_state): Likewise.
26558         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
26559         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
26560         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
26561         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
26562
26563 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26564
26565         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
26566         m4/ulonglong.m4.  Problem reported by Martin Lambers.
26567
26568 2005-09-02  Bruno Haible  <bruno@clisp.org>
26569
26570         Support for lib vs. lib64 distinction on biarch platforms.
26571         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
26572         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
26573         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
26574
26575 2005-09-02  Bruno Haible  <bruno@clisp.org>
26576
26577         * gnulib-tool (import): In the other first-use case, provide defaults
26578         as well.
26579
26580 2005-09-02  Bruno Haible  <bruno@clisp.org>
26581
26582         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
26583         patches not yet found in the latest gettext release.
26584
26585 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26586
26587         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
26588         to avoid a collision with bits/local_lim.h in glibc.
26589         All uses changed.  Problem reported by Dmitry V. Levin in
26590         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
26591
26592         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
26593         bugs in int versus size_t comparisons.
26594         (re_string_context_at): Fix bug where the code assumed that
26595         Idx is signed.
26596
26597         Use bool where appropriate.
26598         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
26599         All callers changed.
26600         (calc_eclosure_iter): Likewise, for ROOT arg.
26601         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
26602         (build_charclass_op): Likewise, for NON_MATCH arg.
26603         * lib/regex_internal.c (re_string_allocate, re_string_construct):
26604         (re_string_construct_common): Likewise, for ICASE arg.
26605         * lib/regexec.c (re_search_2_stub, re_search_stub):
26606         Likewise, for RET_LEN arg.
26607         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
26608         (set_regs): Likewise, for FL_BACKTRACK arg.
26609         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
26610         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
26611         (calc_eclosure_iter, parse_bracket_exp):
26612         Use bool for internal variables that are booleans.
26613         * lib/regexec.c (re_search_internal, check_matching,
26614         proceed_next_node):
26615         (set_regs, build_sifted_states, sift_states_bkref):
26616         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
26617         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
26618         (find_collation_sequence_value):
26619         Likewise.
26620         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
26621         (re_node_set_compare):
26622         Return bool, not int. All callers changed.
26623         * lib/regexec.c (check_halt_node_context, check_dst_limits):
26624         (build_trtable, check_node_accept): Likewise.
26625         * lib/regex_internal.h: Include stdbool.h.
26626
26627         Fix bugs uncovered when converting to bool.
26628         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
26629         failure instead of charging ahead blindly.
26630         * lib/regex_internal.c (register_state): Likewise.
26631         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
26632         for freeing internal storage.
26633         (group_nodes_into_DFA_states): Use unsigned int, not int, for
26634         bitset pieces used as boolean, to avoid undefined behavior
26635         on hosts that do int overflow checking.
26636
26637 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26638
26639         * config/srclist.txt: Add glibc bugs 1285-1287.
26640
26641 2005-09-01  Jim Meyering  <jim@meyering.net>
26642
26643         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
26644         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
26645         Require gl_STAT_MACROS, too.
26646
26647 2005-09-01  Bruno Haible  <bruno@clisp.org>
26648
26649         * gnulib-tool (import): In the first-use case, provide defaults.
26650
26651 2005-09-01  Bruno Haible  <bruno@clisp.org>
26652
26653         * gnulib-tool (func_import): Remove the .tmp files.
26654
26655 2005-09-01  Bruno Haible  <bruno@clisp.org>
26656
26657         * gnulib-tool (func_import): Fix handling of symbolic links.
26658
26659 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26660
26661         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
26662         old glibc regex code mishandles strings longer than 2**31 bytes.
26663         This patch fixes this when the regex code is used in gnulib
26664         (i.e., outside glibc).
26665
26666         This patch should not affect the use of the regex code inside
26667         glibc.  No doubt this problem also needs to be handled for glibc
26668         as well, but the result will be an incompatible change to the
26669         glibc ABI, and the old ABI will have to be supported too.  That
26670         can be the the subject for another patch.
26671
26672         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
26673         governing whether the rest of this patch is active.  By default,
26674         the macro is disabled and the patch has no effect.
26675         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
26676         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
26677         (struct re_pattern_buffer, re_search, re_search_2, re_match):
26678         (re_match_2, re_set_registers): Use the new types.
26679         * lib/regex_internal.h (Idx, re_hashval_t): New types.
26680         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
26681         New macros.
26682         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
26683         (re_string_context_at, bin_tree_t, re_dfastate_t):
26684         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
26685         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
26686         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
26687         (re_string_char_size_at, re_string_wchar_at):
26688         (re_string_elem_size_at):
26689         Use the new types and macros to port to 64-bit hosts.
26690         Use unsigned types for internal values, so that the code
26691         mostly works even for arrays larger than SSIZE_MAX.
26692         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
26693         (search_duplicated_node, calc_eclosure_iter, fetch_number):
26694         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
26695         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
26696         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
26697         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
26698         (calc_inveclosure, parse_dup_op, build_range_exp):
26699         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
26700         (fetch_number, create_token_tree, mark_opt_subexp):
26701         Likewise.
26702         * lib/regex_internal.c (re_string_construct_common,
26703         create_ci_newstate):
26704         (create_cd_newstate, re_string_allocate, re_string_construct):
26705         (re_string_realloc_buffers, build_wcs_upper_buffer):
26706         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
26707         (re_string_reconstruct, re_string_peek_byte_case):
26708         (re_string_fetch_byte_case, re_string_context_at):
26709         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
26710         (re_node_set_init_copy, re_node_set_add_intersect):
26711         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26712         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26713         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
26714         (re_acquire_state, re_acquire_state_context, register_state):
26715         Likewise.
26716         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
26717         search_cur_bkref_entry):
26718         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
26719         (re_search_internal, re_search_2_stub, re_search_stub)
26720         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
26721         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
26722         (update_cur_sifted_state, check_dst_limits):
26723         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26724         (check_subexp_limits, sift_states_bkref, merge_state_array):
26725         (check_subexp_matching_top, get_subexp, get_subexp_sub):
26726         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
26727         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
26728         (expand_bkref_cache, check_node_accept_bytes):
26729         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
26730         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
26731         (acquire_init_state_context, check_halt_node_context):
26732         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
26733         (sift_states_backward, clean_state_log_if_needed):
26734         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
26735         (find_recover_state, transit_state_sb, transit_state_mb):
26736         (transit_state_bkref, build_trtable, match_ctx_clean):
26737         Likewise.
26738         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
26739         to work around an assumption that REG_MISSING is negative.
26740
26741         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
26742         (seek_collating_symbol_entry) [defined _LIBC]:
26743         (lookup_collation_sequence_value) [defined _LIBC]:
26744         (build_range_exp, build_collating_symbol) [defined _LIBC]:
26745         Use prototypes rather than old-style function definitions.
26746         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
26747         (transit_state_sb) [0]:
26748         (find_collation_sequence_value) [defined _LIBC]: Likewise.
26749
26750         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
26751         rm_eo.
26752
26753         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
26754         (optimize_subexps, lower_subexp):
26755         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
26756         since the signed shift might overflow.  Use 1u<<31 instead.
26757         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
26758         Likewise.
26759         * lib/regexec.c (check_dst_limits_calc_pos_1,
26760         check_subexp_matching_top): Likewise.
26761
26762         * lib/regcomp.c (optimize_subexps, lower_subexp):
26763         Use CHAR_BIT rather than 8, for clarity.
26764         * lib/regexec.c (check_dst_limits_calc_pos_1):
26765         (check_subexp_matching_top): Likewise.
26766         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
26767         have to worry about portability issues when shifting it left.
26768         Remove no-longer-needed test for table_size > 0.
26769         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
26770         in a word, as the resulting behavior is undefined.
26771         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
26772         in one case, a <= should have been an <, and in another case the
26773         whole test was missing.
26774         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
26775         the standard name CHAR_BIT.
26776         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
26777         this is not true on one's complement and signed-magnitude hosts.
26778
26779         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
26780         next_last_offset.
26781         (struct re_dfa_t): Remove unused member states_alloc.
26782         * lib/regcomp.c (init_dfa): Don't initialize unused members.
26783
26784 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26785
26786         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
26787         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
26788         and large-file glibc and in 32-bit large-file Solaris.
26789
26790 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26791
26792         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
26793         lengths fit in regoff_t; this isn't true if regoff_t is the same
26794         width as size_t.
26795         * lib/regex.c (re_search_internal): 5th arg is LAST_START
26796         (= START + RANGE) instead of RANGE.  This avoids overflow
26797         problems when regoff_t is the same width as size_t.
26798         All callers changed.
26799         (re_search_2_stub): Check for overflow when adding the
26800         sizes of the two strings.
26801         (re_search_stub): Check for overflow when adding START
26802         to RANGE; if it occurs, substitute the extreme value.
26803
26804 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26805
26806         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
26807
26808 2005-08-31  Jim Meyering  <jim@meyering.net>
26809
26810         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
26811         a pointer-to-const.
26812         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
26813         (register_state): Likewise.
26814         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
26815         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26816         (group_nodes_into_DFAstates): Likewise.
26817
26818 2005-08-31  Jim Meyering  <jim@meyering.net>
26819
26820         * check-module: Add a FIXME comment.
26821
26822 2005-08-31  Eric Blake  <ebb9@byu.net>
26823
26824         * modules/unistd-safer (Files): Add unistd--.h.
26825         * modules/stdio-safer (Files): Add stdio--.h.
26826
26827 2005-08-31  Derek Price  <derek@ximbiot.com>
26828
26829         * lib/getdelim.c (getdelim): Return EOF on EOF.
26830         Reported by Larry Jones <lawrence.jones@ugs.com>.
26831
26832 2005-08-31  Bruno Haible  <bruno@clisp.org>
26833
26834         Avoid unnecessary diffs in the generated lib/Makefile.am.
26835         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
26836         the generated files.
26837         (func_import): Don't set cmd.
26838
26839 2005-08-31  Bruno Haible  <bruno@clisp.org>
26840
26841         * lib/strstr.c: Include <stddef.h>, for NULL.
26842         * lib/strcasestr.c: Likewise.
26843         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26844
26845 2005-08-31  Bruno Haible  <bruno@clisp.org>
26846
26847         * gnulib-tool: New option --macro-prefix.
26848         (func_import): Use macro_prefix.
26849         (import): Handle option --macro-prefix.
26850
26851 2005-08-31  Bruno Haible  <bruno@clisp.org>
26852
26853         * gnulib-tool (import): Rename most ac_* variables to cached_*.
26854         Also use new variables cached_lgpl, cached_libtool.
26855
26856 2005-08-31  Bruno Haible  <bruno@clisp.org>
26857
26858         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
26859         always instantiating them.
26860
26861 2005-08-31  Bruno Haible  <bruno@clisp.org>
26862
26863         * gnulib-tool (func_import): Read the previous cached settings
26864         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
26865         earlier added by gnulib but are now dropped. Warn when a gnulib file
26866         overwrites a non-gnulib file.
26867
26868 2005-08-31  Bruno Haible  <bruno@clisp.org>
26869
26870         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
26871         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
26872         projects that don't keep autogenerated files in CVS. Put into
26873         actioncmd only the specified modules, not the transitive closure.
26874
26875 2005-08-31  Bruno Haible  <bruno@clisp.org>
26876
26877         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
26878         Create directories that shall be filled.
26879         (import): Don't look for gl_* macros in configure.ac. Recurse across
26880         all directories containing a gnulib-cache.m4 files, if meaningful.
26881
26882 2005-08-31  Bruno Haible  <bruno@clisp.org>
26883
26884         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
26885         (import): Set seen_libtool when we see gl_LIBTOOL.
26886
26887 2005-08-31  Bruno Haible  <bruno@clisp.org>
26888
26889         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
26890         declaration macro definitions from generated gnulib.m4.
26891
26892 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
26893
26894         * lib/iconvme.h: Add prototype for iconv_alloc.
26895
26896 2005-08-29  Simon Josefsson  <jas@extundo.com>
26897
26898         * lib/iconvme.c: Fix errno.
26899
26900 2005-08-29  Bruno Haible  <bruno@clisp.org>
26901
26902         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
26903         that it works when the directory contains spaces.
26904
26905 2005-08-29  Bruno Haible  <bruno@clisp.org>
26906
26907         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
26908
26909 2005-08-29  Bruno Haible  <bruno@clisp.org>
26910
26911         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
26912         Emit more advice.
26913
26914 2005-08-29  Bruno Haible  <bruno@clisp.org>
26915         and Stepan Kasal  <kasal@ucw.cz>
26916
26917         * check-module: If more parameters are given, check each of them
26918         separately; add more exceptions, as noted by Jim Meyering.
26919         (check_module): New procedure.
26920         (%exempt_header): Now contains all exceptions.
26921
26922 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
26923
26924         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
26925
26926 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
26927
26928         * lib/iconvme.c: Split iconv_string into iconv_alloc.
26929
26930 2005-08-28  Bruno Haible  <bruno@clisp.org>
26931
26932         * m4/gnulib-tool.m4: New file.
26933
26934 2005-08-27  Jim Meyering  <jim@meyering.net>
26935
26936         * modules/unistd-safer (Files): Add pipe-safer.c.
26937         * modules/fcntl-safer (Files): Add creat-safer.c.
26938
26939 2005-08-27  Jim Meyering  <jim@meyering.net>
26940
26941         * m4/stdlib-safer.m4: New file.  From coreutils.
26942         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
26943         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
26944         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
26945         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
26946         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
26947
26948 2005-08-27  Jim Meyering  <jim@meyering.net>
26949
26950         * lib/fopen-safer.c: Merge minor changes from coreutils.
26951         * lib/dup-safer.c: Likewise.
26952         * lib/fd-safer.c: Likewise.
26953
26954         Merge from coreutils.
26955         * lib/stdio--.h: New file.
26956         * lib/stdlib--.h: New file.
26957         * lib/mkstemp-safer.c: New file.
26958
26959         GNU tar needs these.
26960         * lib/pipe-safer.c: New file.
26961         * lib/creat-safer.c: New file.
26962         * lib/fcntl--.h (creat): Define to creat_safer.
26963         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
26964         * lib/unistd--.h (pipe): Define to pipe_safer.
26965         * lib/unistd-safer.h: Declare pipe_safer.
26966
26967 2005-08-26  Simon Josefsson  <jas@extundo.com>
26968
26969         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
26970         Haible <bruno@clisp.org>.
26971
26972 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
26973
26974         * lib/regex_internal.h: Remove all references to
26975         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
26976         or better.
26977         (bitset_not, bitset_merge, bitset_not_merge):
26978         (bitset_mask, re_string_allocate, re_string_construct):
26979         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
26980         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
26981         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
26982         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
26983         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26984         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26985         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
26986         (re_acquire_state_context):
26987         Remove unnecessary forward decls.
26988         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
26989         Put __attribute at function definition,
26990         now that the function decl has been removed.
26991         * lib/regex_internal.c (re_string_peek_byte_case):
26992         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
26993         Likewise.
26994
26995 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
26996
26997         * m4/regex.m4: Add AC_PREREQ(2.50).
26998         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
26999
27000 2005-08-25  Simon Josefsson  <jas@extundo.com>
27001
27002         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
27003         __fsetlocking.
27004
27005 2005-08-25  Simon Josefsson  <jas@extundo.com>
27006
27007         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
27008         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
27009         GLIBC specific code.
27010
27011 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
27012
27013         Make regex safe for g++.  This fixes one real bug (an "err"
27014         that should have been "*err").  g++ problem reported by
27015         Sam Steingold.
27016         * lib/regex_internal.h (re_calloc): New macro, consistent with
27017         re_malloc etc.  All callers of calloc changed to use re_calloc.
27018         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
27019         not int.  All callers changed.
27020         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
27021         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
27022         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
27023         (find_recover_state): Change "err" to "*err"; this fixes what
27024         appears to be a real bug.
27025         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
27026         versus int.
27027
27028 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
27029
27030         * modules/regex (Depends-on): Add malloc, since the code
27031         assumes that !malloc(0) means failure.
27032
27033 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
27034
27035         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
27036
27037         alloca modernization/simplification for regex.
27038         * lib/regex.c: Remove portability cruft for alloca.  This no longer
27039         needs to be at the start of the file, and can be moved into
27040         regex_internal.h and simplified.
27041         * lib/regex_internal.h: Include <alloca.h>.
27042         (__libc_use_alloca) [!defined _LIBC]: New macro.
27043         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
27044         now works outside glibc.
27045
27046 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
27047
27048         * config/srclist.txt: Add glibc bugs 1241, 1245.
27049
27050 2005-08-25  Jim Meyering  <jim@meyering.net>
27051
27052         * lib/open-safer.c: Include <config.h>.
27053         Otherwise, we'd lose LARGEFILE support in any file using
27054         e.g. "fcntl--.h"
27055
27056 2005-08-25  Bruno Haible  <bruno@clisp.org>
27057
27058         * m4/minmax.m4: Require autoconf 2.52.
27059         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
27060         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
27061         alternatives of translit over the alphabet.
27062         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
27063
27064 2005-08-24  Simon Josefsson  <jas@extundo.com>
27065
27066         * tests/test-getpass.c: New file.
27067
27068 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27069
27070         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
27071         for GNU regex features.
27072
27073 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27074
27075         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
27076         * lib/regex.h (regerror): Likewise.
27077
27078         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
27079         requires this.  (The code never needed it.)
27080
27081         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
27082         All uses of recently-renamed identifiers changed to use the new,
27083         POSIX-compliant names.  The code will build and run just fine
27084         without these changes, but it's better to eat our own dog food
27085         and use the standard-conforming names.
27086
27087         * lib/regex.h: Fix a multitude of POSIX name space violations.
27088         These changes have an effect only for programs that define
27089         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
27090         do not change anything for programs compiled in the normal way.
27091         Also, there is no effect on the ABI.
27092
27093         (_REGEX_SOURCE): New macro.
27094         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
27095         defined and _GNU_SOURCE is not; this fixes a name space violation.
27096
27097         Rename the following macros to obey POSIX requirements.
27098         The old names are still visible as macros if _REGEX_SOURCE is defined.
27099         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
27100         RE_BACKSLASH_ESCAPE_IN_LISTS.
27101         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
27102         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
27103         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
27104         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
27105         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
27106         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
27107         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
27108         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
27109         (REG_INTERVALS): renamed from RE_INTERVALS.
27110         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
27111         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
27112         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
27113         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
27114         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
27115         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
27116         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
27117         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
27118         RE_UNMATCHED_RIGHT_PAREN_ORD.
27119         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
27120         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
27121         (REG_DEBUG): renamed from RE_DEBUG.
27122         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
27123         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
27124         unusual, since we can't clash with the POSIX REG_ICASE.
27125         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
27126         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
27127         (REG_NO_SUB): renamed from RE_NO_SUB.
27128         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
27129         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
27130         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
27131         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
27132         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
27133         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
27134         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
27135         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
27136         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
27137         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
27138         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
27139         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
27140         RE_SYNTAX_POSIX_MINIMAL_BASIC.
27141         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
27142         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
27143         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
27144         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
27145         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
27146         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
27147         (REG_FIXED): Renamed from REGS_FIXED.
27148         (REG_NREGS): Renamed from RE_NREGS.
27149
27150         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
27151         of other REG_* macros, since POSIX says the user is allowed to
27152         #undef these macros selectively.
27153
27154         (reg_errcode_t): Update comment stating what other tables need
27155         to be consistent.
27156
27157         Rename the following enum values to obey POSIX requirements.
27158         The old names are still visible as macros.
27159         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
27160         is not defined, since GNU is supposed to be a superset of POSIX as
27161         much as possible, and since we want reg_errcode_t to be a signed
27162         type for implementation consistency.
27163         (_REG_NOERROR): Renamed from REG_NOERROR.
27164         (_REG_NOMATCH): Renamed from REG_NOMATCH.
27165         (_REG_BADPAT): Renamed from REG_BADPAT.
27166         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
27167         (_REG_ECTYPE): Renamed from REG_ECTYPE.
27168         (_REG_EESCAPE): Renamed from REG_EESCAPE.
27169         (_REG_ESUBREG): Renamed from REG_ESUBREG.
27170         (_REG_EBRACK): Renamed from REG_EBRACK.
27171         (_REG_EPAREN): Renamed from REG_EPAREN.
27172         (_REG_EBRACE): Renamed from REG_EBRACE.
27173         (_REG_BADBR): Renamed from REG_BADBR.
27174         (_REG_ERANGE): Renamed from REG_ERANGE.
27175         (_REG_ESPACE): Renamed from REG_ESPACE.
27176         (_REG_BADRPT): Renamed from REG_BADRPT.
27177         (_REG_EEND): Renamed from REG_EEND.
27178         (_REG_ESIZE): Renamed from REG_ESIZE.
27179         (_REG_ERPAREN): Renamed from REG_ERPAREN.
27180         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
27181         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
27182         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
27183         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
27184
27185         (_REG_RE_NAME, _REG_RM_NAME): New macros.
27186         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
27187         changed.  But support the old name if the new one is not defined
27188         and if _REGEX_SOURCE.
27189
27190         Change the following member names in struct re_pattern_buffer.
27191         The old names are still supported if !_REGEX_SOURCE.
27192         The new names are always supported, regardless of _REGEX_SOURCE.
27193         (re_buffer): Renamed from buffer.
27194         (re_allocated): Renamed from allocated.
27195         (re_used): Renamed from used.
27196         (re_syntax): Renamed from syntax.
27197         (re_fastmap): Renamed from fastmap.
27198         (re_translate): Renamed from translate.
27199         (re_can_be_null): Renamed from can_be_null.
27200         (re_regs_allocated): Renamed from regs_allocated.
27201         (re_fastmap_accurate): Renamed from fastmap_accurate.
27202         (re_no_sub): Renamed from no_sub.
27203         (re_not_bol): Renamed from not_bol.
27204         (re_not_eol): Renamed from not_eol.
27205         (re_newline_anchor): Renamed from newline_anchor.
27206
27207         Change the following member names in struct re_registers.
27208         The old names are still supported if !_REGEX_SOURCE.
27209         The new names are always supported, regardless of _REGEX_SOURCE.
27210         (rm_num_regs): Renamed from num_regs.
27211         (rm_start): Renamed from start.
27212         (rm_end): Renamed from end.
27213
27214         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
27215         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
27216         Prepend __ to parameter names.
27217
27218         Undo yesterday's changes.
27219
27220 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27221
27222         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
27223         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
27224         lib/regex.c.
27225
27226 2005-08-24  Jim Meyering  <jim@meyering.net>
27227
27228         Sync from coreutils.
27229         * m4/fcntl-safer.m4: New file.
27230
27231         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
27232         and object files for this module.
27233
27234 2005-08-24  Jim Meyering  <jim@meyering.net>
27235
27236         Sync from coreutils.
27237         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
27238
27239 2005-08-24  Jim Meyering  <jim@meyering.net>
27240
27241         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
27242         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
27243
27244 2005-08-24  Jim Meyering  <jim@meyering.net>
27245
27246         * modules/fcntl-safer: New module.
27247         * modules/fts (Depends-on): Add fcntl-safer.
27248         * MODULES.html.sh (File descriptor based Input/Output):
27249         Add fcntl-safer.
27250
27251 2005-08-24  Bruno Haible  <bruno@clisp.org>
27252
27253         Support for unit test modules.
27254         * modules/README: Mention tests modules.
27255         * modules/TEMPLATE-TESTS: New file.
27256         * gnulib-tool: New options --extract-tests-module, --with-tests and
27257         --tests-base (unused for the moment).
27258         (testsbase, inctests): New variables.
27259         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
27260         (func_verify_module): Exclude TEMPLATE-TESTS.
27261         (func_verify_nontests_module, func_verify_tests_module): New functions.
27262         (func_get_dependencies): Add implicit dependency for tests modules.
27263         (func_get_tests_module): New function.
27264         (func_modules_transitive_closure): When --with-tests was specified,
27265         include the unit tests as well, unless explicitly avoided.
27266         (func_emit_lib_Makefile_am): Ignore the tests modules here.
27267         (func_emit_tests_Makefile_am): New function.
27268         (func_create_testdir): When --with-tests was specified, emit a
27269         tests/ directory.
27270         * MODULES.html.sh (Future developments): Update.
27271
27272 2005-08-24  Bruno Haible  <bruno@clisp.org>
27273
27274         * modules/tls-tests: New file.
27275         * tests/test-tls.c: New file, from GNU gettext.
27276
27277 2005-08-24  Bruno Haible  <bruno@clisp.org>
27278
27279         * modules/lock-tests: New file.
27280         * tests/test-lock.c: New file, from GNU gettext.
27281
27282 2005-08-24  Bruno Haible  <bruno@clisp.org>
27283
27284         * lib/lock.h: Add multiple inclusion guard.
27285         * lib/tls.h: Add multiple inclusion guard.
27286
27287 2005-08-24  Bruno Haible  <bruno@clisp.org>
27288
27289         * gnulib-tool: Add support for the --aux-dir option to
27290         --create-testdir, --create-megatestdir, --test, --megatest.
27291         (func_create_testdir, func_create_megatestdir): Optionally emit a
27292         AC_CONFIG_AUX_DIR directive.
27293         (create-testdir, create-megatestdir, test, megatest): Provide a
27294         default value for $auxdir.
27295
27296 2005-08-24  Bruno Haible  <bruno@clisp.org>
27297
27298         * gnulib-tool (import): Use compound statement instead of subshell
27299         where possible.
27300
27301 2005-08-24  Bruno Haible  <bruno@clisp.org>
27302
27303         * gnulib-tool (import): Change --aux-dir default to "build-aux".
27304
27305 2005-08-24  Bruno Haible  <bruno@clisp.org>
27306
27307         * gnulib-tool (func_version): Update.
27308
27309 2005-08-24  Bruno Haible  <bruno@clisp.org>
27310
27311         * gnulib-tool (func_import, func_create_testdir,
27312         func_create_megatestdir): Quote all autoconf macro arguments.
27313
27314 2005-08-24  Bruno Haible  <bruno@clisp.org>
27315
27316         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
27317         option --force, because --force causes the aclocal.m4 of each
27318         subdirectory to be newer than the corresponding config.h.in.
27319
27320 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27321
27322         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
27323         All contents moved to gl_REGEX.
27324         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
27325         assume that it does.
27326
27327 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27328
27329         * lib/regex.h (REG_NOSYS)
27330         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
27331         Define, since POSIX requires it as of 2001.
27332         (_REG_ENOSYS)
27333         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
27334         New private symbol, used to keep the enum signed in all cases.
27335         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
27336         Youngman in
27337         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
27338
27339         * lib/regex_internal.c (re_string_skip_chars, register_state):
27340         (calc_state_hash):
27341         Remove forward decls; no longer needed now that we use prototypes.
27342         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
27343         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
27344         (clean_state_log_if_needed): Likewise.
27345
27346 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27347
27348         * config/srclist.txt: Add glibc bugs 1231-1233.
27349
27350 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27351
27352         Fix problems reported by Sam Steingold in
27353         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
27354         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
27355         assumed that reg_errcode_t is a signed type, which is not
27356         necessarily true if _XOPEN_SOURCE is not defined.
27357         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
27358         since some compilers warn about it otherwise.
27359
27360 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27361
27362         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
27363         (init_word_char, create_initial_state, duplicate_node_closure):
27364         (fetch_token, peek_token_bracket, build_range_exp):
27365         (build_collating_symbol): Remove forward decls; no longer needed
27366         now that we use prototypes.
27367
27368         * lib/regcomp.c:
27369         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
27370         (re_compile_fastmap_iter, regcomp, regerror, regfree):
27371         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
27372         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
27373         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
27374         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
27375         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
27376         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
27377         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
27378         (build_range_exp, build_collating_symbol, parse_bracket_exp):
27379         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
27380         (build_charclass, build_charclass_op, fetch_number, create_tree):
27381         (create_token_tree, mark_opt_subexp, duplicate_tree):
27382         Use prototypes rather than old-style definitions.
27383
27384         * lib/regex_internal.c:
27385         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
27386         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
27387         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
27388         (re_string_reconstruct, re_string_peek_byte_case):
27389         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
27390         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
27391         (re_node_set_init_copy, re_node_set_add_intersect):
27392         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
27393         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
27394         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
27395         (re_acquire_state, re_acquire_state_context, register_state):
27396         (create_ci_newstate, create_cd_newstate, free_state):
27397         Likewise.
27398         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
27399         re_search_2):
27400         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
27401         (re_search_internal, prune_impossible_nodes):
27402         (acquire_init_state_context, check_matching, static):
27403         (check_halt_node_context, check_halt_state_context, proceed_next_node):
27404         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
27405         (update_regs, sift_states_backward, build_sifted_states):
27406         (clean_state_log_if_needed, merge_state_array):
27407         (update_cur_sifted_state, add_epsilon_src_nodes):
27408         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
27409         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
27410         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
27411         (find_recover_state, check_subexp_matching_top, transit_state_mb):
27412         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
27413         (check_arrival, check_arrival_add_next_nodes):
27414         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
27415         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
27416         (check_node_accept_bytes, check_node_accept, extend_buffers):
27417         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
27418         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
27419         (sift_ctx_init):
27420         Likewise.
27421
27422         * lib/regex_internal.h:
27423         (re_string_allocate, re_string_construct, re_string_reconstruct):
27424         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
27425         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
27426         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
27427         (re_string_context_at, re_string_peek_byte_case):
27428         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
27429         is defined, since we now use prototypes always.
27430
27431         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
27432         C89 or better.  All uses removed.
27433
27434 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27435
27436         * config/srclist.txt: Add glibc bugs 1220-1227.
27437
27438 2005-08-20  Jim Meyering  <jim@meyering.net>
27439
27440         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
27441         of unused local, dfa.
27442
27443 2005-08-20  Bruno Haible  <bruno@clisp.org>
27444
27445         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
27446
27447 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27448
27449         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
27450         (re_node_set_insert_last, re_dfa_add_node):
27451         Rename local variables to avoid GCC shadowing warnings.
27452
27453 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27454
27455         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
27456         [defined lint]: Suppress bogus uninitialized-variable warnings.
27457
27458         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
27459         and let the caller return REG_ESPACE if out of space.  This
27460         removes an uninitialied-variable warning with GCC 4.0.1, and also
27461         avoids taking the address of a local variable.  All callers
27462         changed.
27463
27464 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27465
27466         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
27467         $LIBCSRC/posix/regexec.c.
27468         Add glibc bug 1217 for regcomp.c.
27469
27470 2005-08-19  Jim Meyering  <jim@meyering.net>
27471
27472         * lib/regexec.c (proceed_next_node): Redo local variables to
27473         avoid GCC shadowing warnings.
27474
27475 2005-08-18  Bruno Haible  <bruno@clisp.org>
27476
27477         * lib/strstr.c (strstr): Fix return value in multibyte case.
27478         * lib/strcasestr.c (strcasestr): Likewise.
27479
27480 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27481
27482         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
27483
27484 2005-08-17  Jim Meyering  <jim@meyering.net>
27485
27486         Make the %s format (seconds since the epoch) work for a negative
27487         number and when used with a zero-padded field width, e.g. %015s.
27488
27489         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
27490         label so that it precedes the code to set `digits'.  Otherwise,
27491         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
27492         print `00-22'.  Now, it prints `-0022', as it should.
27493
27494 2005-08-17  Bruno Haible  <bruno@clisp.org>
27495
27496         * modules/strstr (Files): Add m4/mbrtowc.m4.
27497         (Depends-on): Add mbuiter.
27498
27499 2005-08-17  Bruno Haible  <bruno@clisp.org>
27500
27501         * modules/strcasestr: New file.
27502         * MODULES.html.sh (String handling, based on ANSI C 89): Add
27503         strcasestr.
27504
27505 2005-08-17  Bruno Haible  <bruno@clisp.org>
27506
27507         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
27508
27509 2005-08-17  Bruno Haible  <bruno@clisp.org>
27510
27511         * modules/mbuiter: New file.
27512         * MODULES.html.sh (Extended multibyte and wide character utilities):
27513         Add mbuiter.
27514
27515 2005-08-17  Bruno Haible  <bruno@clisp.org>
27516
27517         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
27518         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
27519
27520 2005-08-17  Bruno Haible  <bruno@clisp.org>
27521
27522         * m4/strcasestr.m4: New file.
27523
27524 2005-08-17  Bruno Haible  <bruno@clisp.org>
27525
27526         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
27527         * lib/strstr.c: Completely rewritten, with multibyte locale support.
27528
27529 2005-08-17  Bruno Haible  <bruno@clisp.org>
27530
27531         * lib/strcasestr.h: New file.
27532         * lib/strcasestr.c: New file.
27533
27534 2005-08-17  Bruno Haible  <bruno@clisp.org>
27535
27536         * lib/strcasecmp.c: Use mbuiter.h.
27537
27538 2005-08-17  Bruno Haible  <bruno@clisp.org>
27539
27540         * lib/mbuiter.h: New file.
27541
27542 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
27543
27544         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
27545         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
27546         and gl_GETOPT are both invoked via different paths (as happens
27547         with GNU tar CVS because it uses both argp and getopt), the former
27548         wins.
27549
27550 2005-08-16  Bruno Haible  <bruno@clisp.org>
27551
27552         * modules/tls: New file.
27553         * MODULES.html.sh (Multithreading): Add tls.
27554
27555 2005-08-16  Bruno Haible  <bruno@clisp.org>
27556
27557         * modules/strnlen1: New file.
27558         * MODULES.html.sh (String handling): Add strnlen1.
27559
27560 2005-08-16  Bruno Haible  <bruno@clisp.org>
27561
27562         * modules/strcase (Files): Add m4/mbrtowc.m4.
27563         (Depends-on): Add strnlen1, mbchar.
27564
27565 2005-08-16  Bruno Haible  <bruno@clisp.org>
27566
27567         * modules/mbiter: New file.
27568         * MODULES.html.sh (Extended multibyte and wide character utilities):
27569         Add mbiter.
27570
27571 2005-08-16  Bruno Haible  <bruno@clisp.org>
27572
27573         * modules/mbfile: New file.
27574         * MODULES.html.sh (Extended multibyte and wide character utilities):
27575         Add mbfile.
27576
27577 2005-08-16  Bruno Haible  <bruno@clisp.org>
27578
27579         * modules/mbchar: New file.
27580         * MODULES.html.sh (Extended multibyte and wide character utilities):
27581         New section.
27582
27583 2005-08-16  Bruno Haible  <bruno@clisp.org>
27584
27585         * m4/tls.m4: New file, from GNU gettext.
27586
27587 2005-08-16  Bruno Haible  <bruno@clisp.org>
27588
27589         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
27590         always.
27591         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
27592
27593 2005-08-16  Bruno Haible  <bruno@clisp.org>
27594
27595         * m4/mbiter.m4: New file.
27596
27597 2005-08-16  Bruno Haible  <bruno@clisp.org>
27598
27599         * m4/mbfile.m4: New file.
27600
27601 2005-08-16  Bruno Haible  <bruno@clisp.org>
27602
27603         * m4/mbchar.m4: New file.
27604
27605 2005-08-16  Bruno Haible  <bruno@clisp.org>
27606
27607         * lib/tls.h: New file, from GNU gettext.
27608         * lib/tls.c: New file, from GNU gettext.
27609
27610 2005-08-16  Bruno Haible  <bruno@clisp.org>
27611
27612         * lib/strnlen1.h: New file.
27613         * lib/strnlen1.c: New file.
27614
27615 2005-08-16  Bruno Haible  <bruno@clisp.org>
27616
27617         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
27618         (mbi_init): Update.
27619         (mbi_avail, mbi_advance): Let the iteration end before the terminating
27620         NUL byte, not after it.
27621
27622 2005-08-16  Bruno Haible  <bruno@clisp.org>
27623
27624         * lib/strcase.h (strcasecmp): Add note in comments.
27625         * lib/strncasecmp.c: Use code from strcasecmp.c.
27626         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
27627         (strcasecmp): Work correctly in multibyte locales.
27628
27629 2005-08-16  Bruno Haible  <bruno@clisp.org>
27630
27631         * lib/mbiter.h: New file.
27632
27633 2005-08-16  Bruno Haible  <bruno@clisp.org>
27634
27635         * lib/mbfile.h: New file.
27636
27637 2005-08-16  Bruno Haible  <bruno@clisp.org>
27638
27639         * lib/mbchar.h: New file.
27640         * lib/mbchar.c: New file.
27641
27642 2005-08-16  Bruno Haible  <bruno@clisp.org>
27643
27644         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
27645         the valid ones. Makes the comparison operations transitive:
27646         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
27647         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
27648
27649 2005-08-15  Simon Josefsson  <jas@extundo.com>
27650
27651         * modules/ssize_t (License): Change to 'unlimited'.
27652
27653         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
27654
27655 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
27656
27657         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
27658         Add comments for each pending glibc patch.
27659
27660 2005-08-15  Bruno Haible  <bruno@clisp.org>
27661
27662         * lib/regex.h (__restrict_arr): Don't define to __restrict if
27663         __cplusplus is defined.
27664
27665 2005-08-14  Jim Meyering  <jim@meyering.net>
27666
27667         Sync from coreutils.
27668
27669         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
27670         Use the hash-table-based cycle-detection code not just when
27671         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
27672         Reported by James Youngman in
27673         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
27674         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
27675         FTS_TIGHT_CYCLE_CHECK.
27676         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
27677         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
27678         once again.
27679         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
27680         * lib/fts.c (fd_safer): Remove decl.
27681         Include fcntl--.h rather than unistd-safer.h
27682         (fts_safe_changedir): Don't call fd_safer; no longer needed
27683         now that we include fcntl--.h.
27684
27685 2005-08-12  Simon Josefsson  <jas@extundo.com>
27686
27687         * modules/getndelim2: Use ssize_t module.
27688         * modules/getnline: Likewise.
27689         * modules/safe-read: Likewise.
27690         * modules/xreadlink: Likewise.
27691
27692         * modules/ssize_t: New file.
27693
27694 2005-08-12  Simon Josefsson  <jas@extundo.com>
27695
27696         * m4/readline.m4: Look for termcap, curses or ncurses if required.
27697
27698 2005-08-12  Simon Josefsson  <jas@extundo.com>
27699
27700         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27701         ssize_t.
27702
27703 2005-08-12  Simon Josefsson  <jas@extundo.com>
27704
27705         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
27706         readline, getdelim and check_version.
27707         (Support for systems lacking ISO C 99: Sizes of integer types):
27708         Add size_max.
27709
27710 2005-08-12  Bruno Haible  <bruno@clisp.org>
27711
27712         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
27713
27714 2005-08-11  Simon Josefsson  <jas@extundo.com>
27715
27716         * modules/readline: New file.
27717
27718         * modules/strnlen (Files): Add strnlen.h.
27719
27720 2005-08-11  Simon Josefsson  <jas@extundo.com>
27721
27722         * m4/readline.m4: New file.
27723
27724 2005-08-11  Simon Josefsson  <jas@extundo.com>
27725
27726         * lib/readline.h, readline.c: New file.
27727
27728 2005-08-11  Simon Josefsson  <jas@extundo.com>
27729
27730         * doc/gnulib.texi (Initial import, Finishing touches): Mention
27731         gl_AVOID.
27732
27733 2005-08-11  Bruno Haible  <bruno@clisp.org>
27734
27735         * lib/strnlen.h (strnlen): Change parameter name to match comment.
27736
27737 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
27738
27739         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
27740
27741 2005-08-10  Simon Josefsson  <jas@extundo.com>
27742
27743         * tests/test-iconvme.c: New file.
27744
27745 2005-08-10  Simon Josefsson  <jas@extundo.com>
27746
27747         * m4/strnlen.m4: New file.
27748
27749         * m4/strndup.m4: Don't check for strnlen declaration, done in
27750         strnlen.m4.
27751
27752 2005-08-10  Simon Josefsson  <jas@extundo.com>
27753
27754         * lib/strndup.c: Use strnlen.h.
27755
27756         * lib/strnlen.h: New file.
27757
27758 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
27759
27760         * README: Typos.
27761
27762 2005-08-02  Simon Josefsson  <jas@extundo.com>
27763
27764         * modules/readline: New file.
27765
27766 2005-08-02  Simon Josefsson  <jas@extundo.com>
27767
27768         * modules/getdelim: New file.
27769
27770         * modules/getline: Rewrite, don't use getndelim2.
27771
27772 2005-08-02  Simon Josefsson  <jas@extundo.com>
27773
27774         * m4/getline.m4: Separate out getdelim stuff into separate module.
27775
27776         * m4/getdelim.m4: New file.
27777
27778 2005-08-02  Simon Josefsson  <jas@extundo.com>
27779
27780         * lib/getline.h, getline.c: Rewrite.
27781
27782         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
27783
27784 2005-07-31  Bruno Haible  <bruno@clisp.org>
27785
27786         * lib/lock.h (gl_lock_initializer): New macro.
27787         (gl_lock_define_initialized): Use it.
27788         (gl_rwlock_initializer): New macro.
27789         (gl_rwlock_define_initialized): Use it.
27790         (gl_recursive_lock_initializer): New macro.
27791         (gl_recursive_lock_define_initialized): Use it.
27792
27793 2005-07-30  Karl Berry  <karl@gnu.org>
27794
27795         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
27796         Report from Ben Pfaff, regarding getopt.
27797
27798 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
27799
27800         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
27801         normal way.
27802         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
27803         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
27804         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
27805         (gl_GETOPT): Use the new macros.  Most of the implementation
27806         is moved to the new macros.  This is for programs like Emacs
27807         that don't want all the functionality of gl_GETOPT.
27808
27809 2005-07-26  Bruno Haible  <bruno@clisp.org>
27810
27811         * m4/lock.m4: Update from GNU gettext.
27812
27813 2005-07-26  Bruno Haible  <bruno@clisp.org>
27814
27815         * lib/lock.h: Update from GNU gettext.
27816         * lib/lock.c: Update from GNU gettext.
27817
27818 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
27819
27820         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
27821         obsolescent AC_TRY_RUN.  Include the default includes files, for
27822         'exit'.
27823
27824 2005-07-24  Bruno Haible  <bruno@clisp.org>
27825
27826         * modules/visibility: New file.
27827         * MODULES.html.sh (Misc): Add visibility.
27828
27829 2005-07-24  Bruno Haible  <bruno@clisp.org>
27830
27831         * m4/visibility.m4: New file.
27832
27833 2005-07-24  Bruno Haible  <bruno@clisp.org>
27834
27835         * doc/visibility.texi: New file.
27836
27837 2005-07-22  Bruno Haible  <bruno@clisp.org>
27838
27839         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
27840         $(ALLOCA_H), redundant through BUILT_SOURCES.
27841         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
27842         redundant through BUILT_SOURCES.
27843         * modules/byteswap (Makefile.am): Remove explicit dependency on
27844         $(BYTESWAP_H), redundant through BUILT_SOURCES.
27845         * modules/fnmatch (Makefile.am): Remove explicit dependency on
27846         $(FNMATCH_H), redundant through BUILT_SOURCES.
27847         * modules/getopt (Makefile.am): Remove explicit dependency on
27848         $(GETOPT_H), redundant through BUILT_SOURCES.
27849         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
27850         redundant through BUILT_SOURCES.
27851         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
27852         redundant through BUILT_SOURCES.
27853         * modules/stdbool (Makefile.am): Remove explicit dependency on
27854         $(STDBOOL_H), redundant through BUILT_SOURCES.
27855         * modules/stdint (Makefile.am): Remove explicit dependency on
27856         $(STDINT_H), redundant through BUILT_SOURCES.
27857         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
27858         Remove explicit dependency on $(SYSEXITS_H).
27859         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
27860
27861 2005-07-18  Simon Josefsson  <jas@extundo.com>
27862
27863         * lib/check-version.c (check_version): Accept identical versions too.
27864
27865 2005-07-18  Bruno Haible  <bruno@clisp.org>
27866
27867         * modules/lock: New file.
27868         * MODULES.html.sh (Multithreading): New section.
27869
27870 2005-07-18  Bruno Haible  <bruno@clisp.org>
27871
27872         * m4/lock.m4: New file, from GNU gettext.
27873
27874 2005-07-18  Bruno Haible  <bruno@clisp.org>
27875
27876         * lib/lock.h: New file, from GNU gettext.
27877         * lib/lock.c: New file, from GNU gettext.
27878
27879 2005-07-18  Bruno Haible  <bruno@clisp.org>
27880
27881         * lib/lock.h (gl_once_t): New type.
27882         (gl_once_define, gl_once): New macros.
27883         * lib/lock.c (fresh_once): New variable.
27884         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
27885         functions.
27886
27887 2005-07-16  Simon Josefsson  <jas@extundo.com>
27888
27889         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
27890         workaround, suggested by Bruno.
27891
27892 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27893
27894         * modules/xalloc (Depends-on): Add xalloc-die.
27895         * modules/xvasprintf (Depends-on): Add xalloc-die.
27896
27897 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27898
27899         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
27900         with a minor change.
27901
27902 2005-07-15  Bruno Haible  <bruno@clisp.org>
27903
27904         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
27905         When using lib/poll.c, define poll as rpl_poll.
27906
27907 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
27908
27909         * modules/argp (Depends-on): Remove unlocked-io.
27910
27911 2005-07-14  Derek Price  <derek@ximbiot.com>
27912
27913         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
27914         for glob symlink bug.
27915
27916 2005-07-14  Bruno Haible  <bruno@clisp.org>
27917
27918         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
27919         Instead, test for *_unlocked function declarations directly.
27920
27921 2005-07-11  Simon Josefsson  <jas@extundo.com>
27922
27923         * modules/size_max: New file.
27924
27925         * modules/xsize: Depend on size_max module for size_max.m4.
27926
27927 2005-07-11  Simon Josefsson  <jas@extundo.com>
27928
27929         * lib/size_max.h: New file.
27930
27931 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
27932
27933         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
27934         copyright symbol and the year.
27935         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
27936         (version_etc_va): Use parameterized copyright notice.
27937         Reword to conform to the current GNU coding standards.
27938
27939 2005-07-11  Karl Berry  <karl@gnu.org>
27940
27941         * doc/gnulib.texi (Quoting): new node.
27942         (Initial import): more info, from Patrice.
27943
27944 2005-07-11  Bruno Haible  <bruno@clisp.org>
27945
27946         * gnulib-tool (func_usage): Document option --avoid.
27947         (Command line options): Handle --avoid.
27948         (func_acceptable): New function.
27949         (func_modules_transitive_closure): Use it.
27950
27951 2005-07-11  Bruno Haible  <bruno@clisp.org>
27952
27953         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
27954         Reported by Jim Meyering.
27955
27956 2005-07-10  Bruno Haible  <bruno@clisp.org>
27957
27958         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
27959         Needed when size_t is smaller than 'unsigned int'.
27960         Reported by Paul Eggert.
27961
27962 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27963
27964         * modules/argp (Depends-on): Add unlocked-io
27965
27966 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27967
27968         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
27969         block of defines.
27970
27971 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27972
27973         * config/srclist.txt: Comment out regcomp.c, since we have a porting
27974         fix now.
27975
27976 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
27977         and Paul Eggert  <eggert@cs.ucla.edu>
27978
27979         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
27980         in wint_t, not wchar_t.  Remove now-unnecessary cast.
27981
27982 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27983
27984         * modules/regex (Files): Add lib/regex_internal.c,
27985         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
27986         (Depends-on): Add extensions.
27987         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
27988
27989 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
27990
27991         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
27992         pathconf.
27993         * m4/same.m4 (gl_SAME): Likewise.
27994         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
27995
27996         * m4/regex.m4: Adjust to new libc regex implementation.
27997         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
27998         all the .c and .h parts of (the new) regex.
27999         Quote the m4 stuff better.
28000         Check for RE_ICASE bug of old gnulib.
28001         Check for REG_STARTEND of recent libc.
28002         Rename local variables from jm_* to gl_*.
28003         Quote operand of "test -f".
28004         Say "recent enough" version of libc, not "version 2".
28005         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
28006         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
28007         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
28008         Remove check for btowc, isascii.
28009         Require AM_LANGINFO_CODESET.
28010
28011 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
28012
28013         * lib/regex.c, regex.h: Sync from libc.
28014         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
28015         * lib/regexec.c:
28016         New files, synced from libc, except that regex_internal.h
28017         currently has a small porting fix.
28018
28019 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
28020
28021         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
28022         regex_internal.c, regexec.c.
28023         Add regex_internal.h too, but as a comment, since the libc version
28024         is currently broken in gnulib mode.
28025
28026 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
28027
28028         Support programs like Emacs that use gnulib but not gettext.
28029         * MODULES.html.sh (Internationalization functions): Add gettext-h.
28030         * modules/gettext-h: New file.
28031         * modules/gettext (Files): Remove lib/gettext.h.
28032         (Depends-on): Add gettext-h.
28033         (Makefile.am): Remove lib_SOURCES.
28034         * modules/argmatch, modules/c-stack, modules/closeout:
28035         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
28036         * modules/execute, modules/file-type, modules/getaddrinfo:
28037         * modules/getopt, modules/human, modules/javacomp:
28038         * modules/javaexec, modules/mkdir-p, modules/obstack:
28039         * modules/openat, modules/pagealign_alloc, modules/pipe:
28040         * modules/quotearg, modules/regex, modules/rpmatch:
28041         * modules/unicodeio, modules/userspec, modules/version-etc:
28042         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
28043         * modules/xsetenv:
28044         Depend on gettext-h, not gettext.
28045
28046 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
28047
28048         * gnulib-tool (func_import): Add support for 'public domain' license.
28049         * modules/alloca, modules/atexit, modules/memmove:
28050         Now public domain, not GPL.
28051         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
28052         * modules/realloc, modules/strerror, modules/strtod:
28053         Now LGPL, not GPL.
28054
28055 2005-07-05  Bruno Haible  <bruno@clisp.org>
28056
28057         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
28058         autoconf CVS. Needed for mingw.
28059
28060 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
28061
28062         Remove the dependency of the strftime module on the tzset module.
28063         * modules/strftime (Depends-on): Remove dependency on tzset.
28064
28065 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
28066
28067         Remove the dependency of the strftime module on the tzset module.
28068         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
28069         gl_FUNC_TZSET_CLOBBER.
28070
28071 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
28072
28073         Remove the dependency of the strftime module on the tzset module.
28074         * lib/strftime.c (my_strftime)
28075         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
28076         Copy the input structure, to work around some of the bug with
28077         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
28078         Solaris releases, you should also use the tzset module, but we won't
28079         require it as a dependency any more since we don't want LGPLed code
28080         to depend on GPLed code.
28081
28082 2005-07-02  Jim Meyering  <jim@meyering.net>
28083
28084         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
28085         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
28086         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
28087         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
28088
28089 2005-07-02  Jim Meyering  <jim@meyering.net>
28090
28091         * lib/backupfile.c (backup_args): Change a `0' to NULL.
28092
28093 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
28094
28095         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
28096         declares only 'struct timespec;' (!).
28097
28098 2005-07-01  Jim Meyering  <jim@meyering.net>
28099
28100         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
28101         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
28102         * lib/save-cwd.c, tempname.c:
28103         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
28104         and don't include <sys/file.h>).
28105
28106 2005-06-29  Jim Meyering  <jim@meyering.net>
28107
28108         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
28109         type name.  Use the variable name instead.
28110         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
28111         Likewise.
28112
28113 2005-06-28  Simon Josefsson  <jas@extundo.com>
28114
28115         * modules/check-version (Files): Add check-version.m4.
28116
28117 2005-06-28  Simon Josefsson  <jas@extundo.com>
28118
28119         * m4/check-version.m4: New file, suggested by Jim Meyering
28120         <jim@meyering.net>.
28121
28122 2005-06-28  Simon Josefsson  <jas@extundo.com>
28123
28124         * lib/check-version.h, lib/check-version.c: New files.
28125
28126 2005-06-28  Simon Josefsson  <jas@extundo.com>
28127
28128         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
28129         collision with global variable.  Better indentation.  Don't
28130         increment buffer pointer beyond buffer end.  Based on comments
28131         from Paul Eggert <eggert@cs.ucla.edu>.
28132
28133         * lib/base64.h: Indent.
28134
28135 2005-06-28  Simon Josefsson  <jas@extundo.com>
28136
28137         * doc/gnulib.texi (Library version handling): New section.
28138
28139 2005-06-28  Jim Meyering  <jim@meyering.net>
28140
28141         * check-module (find_included_lib_files): Hard-code another
28142         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
28143         but modules/fts-lgpl (correctly) does not list those files.
28144
28145         * modules/canonicalize (Files): Add lib/pathmax.h.
28146
28147 2005-06-25  Simon Josefsson  <jas@extundo.com>
28148
28149         * modules/check-version: New file.
28150
28151 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
28152
28153         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
28154         initializer of struct addrinfo, as an indication that we don't
28155         care how many members the structure has.
28156
28157 2005-06-24  Derek Price  <derek@ximbiot.com>
28158         and Bruno Haible  <bruno@clisp.org>
28159
28160         Remove stat module & update lstat.
28161         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
28162         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28163         * m4/stat.m4: Remove this file.
28164
28165 2005-06-24  Derek Price  <derek@ximbiot.com>
28166         and Bruno Haible  <bruno@clisp.org>
28167
28168         Remove stat module & update lstat.
28169         * lib/stat.c: Remove this file...
28170         (slash_aware_lstat): ...moving this content and its support...
28171         * lib/lstat.c (rpl_lstat): ...into here.
28172         * lib/lstat.h: New file.
28173
28174 2005-06-24  Derek Price  <derek@ximbiot.com>
28175         and Bruno Haible  <bruno@clisp.org>
28176
28177         Remove stat module & update lstat.
28178         * config/srclist.txt (libc sources): Remove stat.
28179
28180 2005-06-24  Derek Price  <derek@ximbiot.com>
28181         and Bruno Haible  <bruno@clisp.org>
28182
28183         Remove stat module & update lstat.
28184         * MODULES.html.sh (stat): Remove.
28185         * MODULES.html: Regenerated.
28186         * modules/lstat (Description): Correct function name.
28187         (Files): Add "lstat.h".
28188         (Depends-on): Remove stat, add xalloc, stat-macros.
28189         * modules/stat: Remove this file.
28190         (Include): Add "lstat.h", remove <sys/stat.h>.
28191
28192 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
28193
28194         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
28195         (ranged_convert): Don't save conversion in a temporary struct.
28196         This causes a warning with GCC 4.0.0, and anyway in the typical
28197         case it's not worth the extra 100 bytes or so of code.
28198         (ranged_convert, __mktime_internal): When calling a function via a
28199         pointer P, use P () rather than (*P) (), as we now assume C89 or
28200         better.
28201
28202 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28203
28204         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
28205         "who -r" failed to give output.  Problem reported by Tim Waugh.
28206
28207         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
28208         (xcalloc): Use it to avoid needless tests.
28209         Problem reported by Jim Meyering.
28210
28211 2005-06-20  Derek Price  <derek@ximbiot.com>
28212
28213         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
28214         unnecessary for Autoconfs > 2.59c.
28215
28216 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28217
28218         * lib/argp.h (__option_is_short): Check upper limit of
28219         __key. Isprint() requires its argument to have the value
28220         of an unsigned char or EOF.
28221
28222 2005-06-16  Jim Meyering  <jim@meyering.net>
28223
28224         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
28225         when either N or S is zero.
28226
28227 2005-06-16  Derek Price  <derek@ximbiot.com>
28228
28229         * m4/bison.m4: Declare YACC & YFLAGS precious.
28230
28231 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
28232
28233         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
28234         multibyte string or pattern, fall back on unibyte matching.
28235         Problem reported by James Youngman.
28236
28237 2005-06-08  Bruno Haible  <bruno@clisp.org>
28238
28239         * modules/csharpcomp: New file.
28240         * MODULES.html.sh (C#): Add csharpcomp.
28241
28242 2005-06-08  Bruno Haible  <bruno@clisp.org>
28243
28244         * m4/csharpcomp.m4: New file, from GNU gettext.
28245
28246 2005-06-08  Bruno Haible  <bruno@clisp.org>
28247
28248         * lib/csharpcomp.h: New file, from GNU gettext.
28249         * lib/csharpcomp.c: New file, from GNU gettext.
28250         * lib/csharpcomp.sh.in: New file, from GNU gettext.
28251
28252 2005-06-08  Bruno Haible  <bruno@clisp.org>
28253
28254         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
28255         warning on mingw.
28256
28257 2005-06-07  Derek Price  <derek@ximbiot.com>
28258
28259         Sync from CVS.
28260         * lib/glob_.h: Indent nested #ifdef.
28261
28262 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
28263
28264         Sync from coreutils.
28265         Use "file name" when talking about file names, instead of "filename"
28266         or "path", as per the GNU coding standards.
28267         * lib/mkdir-p.c: Renamed from makepath.c.
28268         (make_dir_parents): Renamed from make_path.  All callers changed.
28269         * lib/mkdir-p.h: Likewise.  All includers changed.
28270         * lib/filenamecat.c: Renamed from path-concat.c.
28271         (file_name_concat): Renamed from path_concat.  All callers changed.
28272         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
28273         * lib/filenamecat.h: Likewise.  All includers changed.
28274         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
28275         in comments or local variable names.
28276         * lib/basename.c: Likewise.
28277         * lib/canonicalize.c, canonicalize.h: Likewise.
28278         * lib/dirname.c, dirname.h: Likewise.
28279         * lib/euidaccess.c: Likewise.
28280         * lib/exclude.c: Likewise
28281         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
28282         * lib/fsusage.c, fsuage.h: Likewise.
28283         * lib/fts.c, fts_.h: Likewise.
28284         * lib/getcwd.c: Likewise.
28285         * lib/getloadavg.c: Likewise.
28286         * lib/mkstemp.c: Likewise.
28287         * lib/mountlist.c, mountlist.h: Likewise.
28288         * lib/openat.c, openat.h: Likewise.
28289         * lib/readlink-stub.c: Likewise.
28290         * lib/readutmp.c, readutmp.h: Likewise.
28291         * lib/rename.c: Likewise.
28292         * lib/rmdir.c: Likewise.
28293         * lib/same.c: Likewise.
28294         * lib/savedir.c: Likewise.
28295         * lib/stripslash.c: Likewise.
28296         * lib/tempname.c: Likewise.
28297         * lib/xreadlink.c: Likewise.
28298         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
28299         All uses changed.
28300         * lib/exclude.h: Likewise.
28301
28302         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
28303         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
28304         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
28305         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
28306         * lib/pathmax.h: Include <limits.h> unconditionally, since other
28307         files have been getting away with it for years (MORE/BSD 4.3
28308         is extinct now).
28309         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
28310         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
28311
28312         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
28313         Define to 256, not 255, as per modern POSIX.
28314
28315 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
28316
28317         Sync from coreutils.
28318         Use "file name" when talking about file names, instead of "filename"
28319         or "path", as per the GNU coding standards.
28320         * MODULES.html.sh: mkdir-p renamed from makepath.
28321         filenamecat renamed from path-concat.
28322         * modules/filenamecat: Renamed from modules/path-concat.
28323         (Files): filenamecat.h and filenamecat.c renamed from
28324         path-concat.h and path-concat.c.
28325         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
28326         (Include): filenamecat.h, not path-concat.h.
28327         * modules/mkdir-p: Renamed from modules/makepath.
28328         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
28329         makepath.c.
28330         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
28331         (Include): mkdir-p.h, not makepath.h.
28332
28333 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
28334
28335         Sync from coreutils.
28336         * m4/mkdir-p.m4: Renamed from makepath.m4.
28337         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
28338         Rename files from makepath.c to mkdir-p.c, and from
28339         makepath.h to mkdir-p.h.
28340         * m4/filenamecat.m4: Renamed from path-concat.m4.
28341         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
28342         Rename files from path-concat.c to filenamecat.c,
28343         and from path-concat.h to filenamecat.h.
28344         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
28345         "file name" in local variables or comments.
28346         * m4/rename.m4: Likewise.
28347
28348 2005-06-01  Bruno Haible  <bruno@clisp.org>
28349
28350         * modules/csharpexec: New file.
28351         * MODULES.html.sh (C#): New section.
28352
28353 2005-06-01  Bruno Haible  <bruno@clisp.org>
28354
28355         * m4/csharp.m4: New file, from GNU gettext.
28356         * m4/csharpexec.m4: New file, from GNU gettext.
28357
28358 2005-06-01  Bruno Haible  <bruno@clisp.org>
28359
28360         * lib/csharpexec.h: New file, from GNU gettext.
28361         * lib/csharpexec.c: New file, from GNU gettext.
28362         * lib/csharpexec.sh.in: New file, from GNU gettext.
28363
28364 2005-05-31  Derek Price  <derek@ximbiot.com>
28365             Paul Eggert  <eggert@cs.ucla.edu>
28366
28367         Sync from cvs.
28368         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
28369
28370 2005-05-31  Derek Price  <derek@ximbiot.com>
28371             Paul Eggert  <eggert@cs.ucla.edu>
28372
28373         Sync from cvs.
28374         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
28375
28376 2005-05-29  Derek Price  <derek@ximbiot.com>
28377
28378         * config/srclist.txt (glob_.h, glob.c): Add these files.
28379
28380 2005-05-29  Derek Price  <derek@ximbiot.com>
28381
28382         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
28383         * modules/glob: New file.
28384         * modules/getlogin_r: Add link to POSIX spec in description.
28385
28386 2005-05-29  Derek Price  <derek@ximbiot.com>
28387             Paul Eggert  <eggert@cs.ucla.edu>
28388
28389         * m4/glob.m4: New file.
28390
28391 2005-05-29  Derek Price  <derek@ximbiot.com>
28392             Paul Eggert  <eggert@cs.ucla.edu>
28393
28394         * lib/glob_.h, lib/glob.c: New files.
28395
28396 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
28397
28398         * modules/fts (Files): Remove m4/inttypes-pri.m4.
28399         * modules/fts-lgpl (Depends-on): Remove gettext.
28400
28401 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
28402
28403         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
28404         and don't require gt_INTTYPES_PRI.
28405
28406 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
28407
28408         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
28409
28410         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
28411         the configuration hassle isn't worth it.
28412         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
28413         (LONGEST_MODIFIER, PRIuMAX): Remove.
28414
28415 2005-05-27  Bruno Haible  <bruno@clisp.org>
28416
28417         * lib/getlogin_r.h: Remove second include of <stddef.h>.
28418
28419 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
28420
28421         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
28422         _POSIX_PTHREAD_SEMANTICS for Solaris.
28423
28424 2005-05-25  Derek Price  <derek@ximbiot.com>
28425
28426         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
28427
28428 2005-05-25  Derek Price  <derek@ximbiot.com>
28429             Paul Eggert  <eggert@cs.ucla.edu>
28430
28431         * modules/getlogin_r, m4/getlogin_r.m4: New files.
28432         * lib/getlogin_r.c, getlogin_r.h: New files.
28433
28434 2005-05-25  Bruno Haible  <bruno@clisp.org>
28435             Derek Price  <derek@ximbiot.com>
28436
28437         * lib/getlogin_r.h: Simplify API documentation.
28438
28439 2005-05-23  Derek Price  <derek@ximbiot.com>
28440
28441         * modules/minmax (Files): Add m4/minmax.m4.
28442         (configure.ac): Add gl_MINMAX.
28443
28444 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
28445
28446         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
28447         so that unistd-safer.h (GPL'ed code) need not be included.
28448
28449 2005-05-22  Bruno Haible  <bruno@clisp.org>
28450
28451         * m4/minmax.m4: New file.
28452         Based on a patch by Derek Price <derek@ximbiot.com>.
28453
28454 2005-05-22  Bruno Haible  <bruno@clisp.org>
28455
28456         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
28457         (INT64_MIN): Fix definition.
28458         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
28459
28460         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
28461         NEED_SIGNED_INT_TYPES.
28462
28463         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
28464         HAVE_SYSTEM_INTTYPES.
28465
28466 2005-05-22  Bruno Haible  <bruno@clisp.org>
28467
28468         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
28469         Also include <sys/param.h> if it defines MIN, MAX.
28470         Based on a patch by Derek Price <derek@ximbiot.com>.
28471
28472 2005-05-21  Jim Meyering  <jim@meyering.net>
28473
28474         * modules/fts (Files): Add m4/inttypes-pri.m4.
28475         (Depends-on): Add lstat and remove gettext.  Alphabetize.
28476
28477 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28478
28479         New fts module.
28480         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
28481         (setup_dir, free_dir): New functions.
28482         (enter_dir, leave_dir): Define trivial
28483         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
28484         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
28485         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
28486         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
28487         Move to fts-cycle.c.
28488         (fts_open): Use setup_dir.
28489         (fts_close): Use free_dir.
28490         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
28491         This adds a label and some gotos, but the alternatives were messier.
28492         Check for memory allocation failure when entering a dir.
28493         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
28494         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
28495         (FTS): New member fts_cycle, that is a union that contains the
28496         old active_dir_ht and cycle_state.  All uses changed to mention
28497         fts_cycle.ht and fts_cycle.state.
28498         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
28499         fts.c, with the following changes:
28500         (setup_dir, free_dir): New functions.
28501         (enter_dir): Now returns bool.  Return true if successful, false
28502         if memory exhausted.  All callers changed.
28503         Do not bother partly cleaning up on
28504         memory allocation failure; that is free_dir's job.
28505         However, free ad if hash_insert fails, to avoid memory leak.
28506         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
28507         fts->fts_options to see which union member to use.
28508
28509 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28510
28511         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
28512         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
28513
28514 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
28515
28516         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
28517
28518 2005-05-20  Jim Meyering  <jim@meyering.net>
28519
28520         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
28521         Now a macro, to pacify GCC.
28522
28523 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
28524
28525         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
28526         of -1.
28527
28528 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
28529
28530         * lib/chown.c (rpl_chown): Return -1 on failure.
28531
28532 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
28533
28534         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
28535         Don't check for stddef.h.
28536         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
28537         don't use its results.
28538         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
28539         since we include them unconditionally.  Don't require
28540         AM_STDBOOL_H, since stdbool is a prerequisite.
28541         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
28542         since we assume C89 or better.
28543         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
28544         as we don't use their results.
28545         Don't check for fchdir, memmove, memset, strrchr, as we use
28546         them unconditionally.
28547         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
28548         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
28549
28550 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
28551
28552         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
28553         Include <stddef.h> unconditionally, since we assume C89 now.
28554         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
28555         * lib/fts.c: Include fts_.h first, to check interface.
28556         Do not include intprops.h; no longer needed.
28557         Include cycle-check.h and hash.h, since fts_.h no longer does.
28558         Remove unnecessary casts of closedir to void.
28559         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
28560         decide whether to decrement nlinks.
28561         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
28562         (FTS): Use struct hash_table * instead of Hash_table, so that
28563         we no longer need to include hash.h here.
28564
28565 2005-05-18  Jim Meyering  <jim@meyering.net>
28566
28567         * modules/dirfd (License): Change to LGPL.  Most of the code
28568         is already in the public domain.
28569
28570 2005-05-18  Jim Meyering  <jim@meyering.net>
28571
28572         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
28573         Reported by Yoann Vandoorselaere.
28574
28575 2005-05-17  Jim Meyering  <jim@meyering.net>
28576
28577         * m4/fts.m4: New file, from coreutils.
28578
28579 2005-05-17  Jim Meyering  <jim@meyering.net>
28580
28581         * lib/fts.c, lib/fts_.h: New files, from coreutils.
28582
28583 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28584
28585         Sync from coreutils.
28586         * m4/unlinkdir.m4: New file.
28587
28588 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28589
28590         Sync from coreutils.
28591         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
28592         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
28593         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
28594         White space changes only.
28595         * lib/makepath.c (make_path): Port to hosts where leading "//" is
28596         special.
28597         * lib/yesno.c: Include getline.h, not ctype.h.
28598         (yesno): Don't remove leading white space; POSIX doesn't allow it.
28599         Use getline to remove arbitrary restriction on response length.
28600
28601 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
28602
28603         * config/srclist-update: Spell out "Street" in FSF postal
28604         mail address; this is the style the FSF seems to prefer.
28605
28606         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
28607         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
28608         this updates FSF postal mail address.
28609
28610         Sync from coreutils.
28611         * modules/unlinkdir: New file.
28612         * modules/yesno (Depends-on): Add getline.
28613         * MODULES.html.sh (File system functions): Add unlinkdir.
28614
28615 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28616
28617         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
28618         lib/strsep.h:
28619         Change the initial comment to refer to GPL, not LGPL.
28620         gnulib-tool will change it to LGPL as needed.
28621
28622         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
28623         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
28624         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
28625         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
28626         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
28627         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
28628         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
28629         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
28630         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
28631         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
28632         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
28633         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
28634         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
28635         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
28636         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
28637         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
28638         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
28639         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
28640         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
28641         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
28642         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
28643         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
28644         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
28645         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
28646         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
28647         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
28648         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
28649         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
28650         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
28651         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
28652         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
28653         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
28654         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
28655         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
28656         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
28657         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
28658         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
28659         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
28660         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
28661         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
28662         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
28663         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
28664         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
28665         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
28666         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
28667         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
28668         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
28669         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
28670         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
28671         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
28672         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
28673         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
28674         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
28675         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
28676         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
28677         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
28678         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
28679         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
28680         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
28681         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
28682         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
28683         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
28684         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
28685         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
28686         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
28687         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
28688         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
28689         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
28690         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
28691         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
28692         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
28693         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
28694         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
28695         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
28696         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
28697         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
28698         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
28699         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
28700         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
28701         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
28702         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
28703         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
28704         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
28705         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
28706         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
28707         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
28708         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
28709         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
28710         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
28711         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
28712         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
28713         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
28714         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
28715         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
28716         lib/yesno.c, lib/yesno.h:
28717         Update FSF postal mail address.
28718
28719 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
28720
28721         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
28722         tests/test-memmem.c, tests/test-stpncpy.c:
28723         Update FSF postal mail address.
28724
28725 2005-05-13  Bruno Haible  <bruno@clisp.org>
28726
28727         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
28728         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
28729         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
28730         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
28731         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
28732         Add support for 64-bit integers in the MSVC compiler.
28733
28734 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28735
28736         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
28737
28738 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
28739
28740         * gnulib-tool (func_import): Sort and uniquify recommended includes.
28741
28742 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
28743
28744         * doc/getdate.texi (General date syntax): Don't say that date
28745         date --iso-8601=ns generates acceptable dates; it doesn't yet.
28746         Problem reported by Nic Ferrier.
28747
28748 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28749
28750         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
28751         specified in ai_socktype. Fix invalid ai_protocol
28752         check. ai_protocol is usually set to 0 or depending on
28753         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
28754         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
28755         ai_socktype / ai_protocol in the returned addrinfo structure.
28756
28757 2005-05-10  Simon Josefsson  <jas@extundo.com>
28758
28759         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
28760         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28761
28762 2005-05-10  Karl Berry  <karl@gnu.org>
28763
28764         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
28765         (from http://www.gnu.org/licenses).
28766         * doc/COPYING.LIB: also rename to COPYING.LESSER.
28767         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
28768         fdl.texi suffices.
28769
28770 2005-05-10  Karl Berry  <karl@gnu.org>
28771
28772         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
28773         (COPYING.DOC): remove.
28774
28775         * config/srclist-update: new FSF address.
28776
28777 2005-05-10  Derek Price  <derek@ximbiot.com>
28778
28779         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
28780         possible.
28781
28782 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28783             Bruno Haible  <bruno@clisp.org>
28784
28785         * modules/inet_ntop: New file.
28786         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28787         inet_ntop.
28788
28789 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28790             Bruno Haible  <bruno@clisp.org>
28791
28792         * m4/inet_ntop.m4: New file.
28793
28794 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28795             Bruno Haible  <bruno@clisp.org>
28796
28797         * lib/inet_ntop.h: New file.
28798         * lib/inet_ntop.c: New file, from glibc with modifications.
28799
28800 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
28801
28802         * modules/time_r (License): Change to LGPL.
28803         * modules/extensions (License): Change to LGPL.  Actually,
28804         the license is more permissive than that, but currently gnulib-tool
28805         doesn't know how to handle more-permissive licenses.
28806
28807         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
28808         Problem reported by Dave Love.
28809
28810 2005-05-08  Jim Meyering  <jim@meyering.net>
28811
28812         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
28813         blank.
28814
28815 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
28816
28817         * modules/argmatch (Depends-on): Add stdbool.
28818         * modules/backupfile (Depends-on): Likewise.
28819         * modules/chdir-long (Depends-on): Likewise.
28820         * modules/closeout (Depends-on): Likewise.
28821         * modules/cycle-check (Depends-on): Likewise.
28822         * modules/dirname (Depends-on): Likewise.
28823         * modules/fnmatch (Depends-on): Likewise.
28824         * modules/fsusage (Depends-on): Likewise.
28825         * modules/fwriteerror (Depends-on): Likewise.
28826         * modules/getcwd (Depends-on): Likewise.
28827         * modules/getloadavg (Depends-on): Likewise.
28828         * modules/hard-locale (Depends-on): Likewise.
28829         * modules/makepath (Depends-on): Likewise.
28830         * modules/mountlist (Depends-on): Likewise.
28831         * modules/nanosleep (Depends-on): Likewise.
28832         * modules/posixtm (Depends-on): Likewise.
28833         * modules/quotearg (Depends-on): Likewise.
28834         * modules/readtokens (Depends-on): Likewise.
28835         * modules/readtokens0 (Depends-on): Likewise.
28836         * modules/readutmp (Depends-on): Likewise.
28837         * modules/save-cwd (Depends-on): Likewise.
28838         * modules/strftime (Depends-on): Likewise.
28839         * modules/userspec (Depends-on): Likewise.
28840         * modules/utimecmp (Depends-on): Likewise.
28841         * modules/xgetcwd (Depends-on): Likewise.
28842         * modules/xnanosleep (Depends-on): Likewise.
28843         * modules/xstrtod (Depends-on): Likewise.
28844         * modules/yesno (Depends-on): Likewise.
28845
28846 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28847
28848         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
28849         needless checks.
28850
28851 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28852
28853         Merge from coreutils.  Among other things,
28854         add bulletproofing for cases where stdin, stdout, or stderr are closed.
28855         * lib/fd-safer.c: New file.
28856         * lib/fcntl-safer.h, open-safer.c: Remove.
28857         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
28858         * lib/dup-safer.c: Include unistd-safer.h first.
28859         Don't include errno.h.
28860         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
28861         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
28862         * lib/file-type.c: Rely on file-type.h change.
28863         * lib/getloadavg.c: Include unistd-safer.h.
28864         (getloadavg): Use safer open.
28865         * lib/getusershell.c: Include "stdio-safer.h".
28866         (getusershell): Use safer fopen.
28867         * lib/long-options.c (long_options): Use NULL rather than 0.
28868         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
28869         'free'.
28870         * lib/modechange.c: Likewise.
28871         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
28872         (MODE_DONE): New constant.
28873         (struct mode_change): Remove 'next' member.
28874         (make_node_op_equals): New function; like the old one of the
28875         same name, except it allocates an array.
28876         (mode_compile, mode_create_from_ref): Use it.
28877         (mode_compile): Allocate result as an array, not a linked list.
28878         Parse octal string ourself, so that we catch mistakes like "+0".
28879         (mode_adjust): Arg is an array, not a linked list.
28880         * lib/modechange.c: Include stat-macros.h, xalloc.h.
28881         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
28882         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
28883         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
28884         Remove.  This is now stat-macros.h's job.
28885         (talloc): Remove.  All callers replaced by xalloc, so that
28886         our invokers don't have to worry about reporting memory failures.
28887         (make_node_op_equals): Remove.
28888         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28889         New constants.
28890         (struct mode_change): Moved here from modechange.h.
28891         (mode_append_entry): Remove.
28892         (mode_compile): Remove MASKED_OPS arg, since it encouraged
28893         apps to have incorrect behavior.  Use simpler algorithm for head
28894         and tail.  Don't futz with umask; that's now the job of mode_adjust.
28895         Detect more invalid usages rather than having somewhat-random behavior.
28896         Don't insert an "a=" action, as that leads to incorrect behavior.
28897         (mode_compile, mode_create_from_ref): Return NULL on error instead
28898         of an enum, since now there's only one way to have an error.  All
28899         callers changed.
28900         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
28901         at the correct time.  Simplify calculation of "+u" and its ilk.
28902         Don't mishandle "+X".
28903         (mode_free): Remove "register" and localize decls.
28904         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28905         (struct mode_change): Move to modechange.c; callers don't
28906         need to see this stuff.
28907         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
28908         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
28909         (mode_change, mode_adjust): Reflect the new signatures noted above.
28910         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
28911         that might redefine system include files.
28912         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
28913         (my_usleep): Use NULL rather than (void *) 0.
28914         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
28915         Use siginterrupt to specify that system calls should be interrupted.
28916         (rpl_nanosleep): Move initialization of suspended closer to call of
28917         my_usleep.
28918         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
28919         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
28920         (desirable_utmp_entry): New function.
28921         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
28922         using x2nrealloc, to simplify logic.
28923         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
28924         size calculation.  Do not assume utmp file is a regular file.
28925         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
28926         (READ_UTMP_CHECK_PIDS): New constant.
28927         * lib/save-cwd.c: Include unistd-safer.h.
28928         (save_cwd): Use fd_safer.
28929         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
28930         [!_LIBC] Include "stat-macros.h" instead.
28931         * lib/unistd-safer.h (fd_safer): New decl.
28932
28933 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28934
28935         * modules/getloadavg (Depends-on): Add unistd-safer.
28936         * modules/getusershell (Depends-on): Add stdio-safer.
28937         * modules/lstat (Depends-on): Remove xalloc.
28938         * modules/mkstemp (Depends-on): Add stat-macros.
28939         * modules/modechange (Depends-on): Remove xstrtol.
28940         Add stat-macros, xalloc.
28941         * modules/save-cwd (Depends-on): Add unistd-safer.
28942         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
28943         * modules/unistd-safer (Files): Add lib/fd-safer.c
28944         (Makefile.am): Remove lib_SOURCES.
28945
28946         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
28947         Remove fcntl-safer; unistd-safer supersedes it.
28948
28949 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28950
28951         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
28952         AC_HEADER_STAT.
28953         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
28954         (gl_PREREQ_CHOWN): Remove.
28955         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
28956         it.  Don't require AC_HEADER_STAT.
28957         (gl_PREREQ_LSTAT): Remove.
28958         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
28959         Don't require AC_HEADER_STAT.
28960         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
28961         (gl_PREREQ_RMDIR): Remove.
28962         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
28963         mention stat-macros.h or AC_HEADER_STAT, since we'll make
28964         the stat-macros module a prerequisite.
28965         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
28966         * m4/filemode.m4 (gl_FILEMODE): Likewise.
28967         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
28968         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
28969         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
28970         variable names.
28971         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
28972         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
28973         variable prefixes.
28974         * m4/fcntl-safer.m4: Remove.
28975         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
28976         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
28977         Invoke gl_PREREQ_FD_SAFER.
28978         (gl_PREREQ_FD_SAFER): New macro.
28979         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
28980         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
28981         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
28982         Remove duplicate call to AC_LIBOBJ(readutmp).
28983         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
28984
28985         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
28986         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
28987
28988 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28989
28990         * MODULES.html.sh (Misc): Add byteswap.
28991
28992 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28993
28994         * modules/getcwd (Depends-on): Add extensions.
28995         * modules/openat (Depends-on): Likewise.
28996
28997 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
28998
28999         * modules/byteswap: New file.
29000
29001 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
29002
29003         * m4/byteswap.m4: New file.
29004
29005 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
29006
29007         * lib/byteswap_.h: New file.
29008
29009 2005-04-25  Karl Berry  <karl@gnu.org>
29010
29011         * m4/gettext.m4: Update from GNU gettext 0.14.4.
29012
29013 2005-04-25  Albert Chin  <china@thewrittenword.com>
29014
29015         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
29016         Toolkit C bug.
29017
29018 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
29019
29020         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
29021         (func_ln_if_changed) Remove forcibly for no error message
29022         in case file does not exist.
29023
29024 2005-04-19  Simon Josefsson  <jas@extundo.com>
29025
29026         * gnulib-tool (Options): Make --symlink mean --symbolic.
29027
29028 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
29029
29030         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
29031
29032 2005-04-16  Simon Josefsson  <jas@extundo.com>
29033
29034         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
29035
29036 2005-04-15  Simon Josefsson  <jas@extundo.com>
29037
29038         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
29039
29040 2005-04-15  Simon Josefsson  <jas@extundo.com>
29041
29042         * gnulib-tool: Rename --symlink to --symbolic.
29043
29044 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
29045
29046         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
29047         symbolic links to files instead of copying/moving.  Add --aux-dir,
29048         specifying directory relative --dir where auxiliary build tools
29049         are placed.
29050
29051 2005-04-14  Bruno Haible  <bruno@clisp.org>
29052
29053         * modules/allocsa (License): Change to LGPL.
29054         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29055
29056 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
29057
29058         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
29059         that "UTC +1 second" continues to work.  Problem reported
29060         by Dmitry V. Levin.
29061         (relunit_snumber): New rule.
29062         (relunit): Use it.
29063
29064 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
29065
29066         * lib/getdate.y (universal_time_zone_table): New constant.
29067         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
29068         universal_time_zone_table.
29069         (lookup_zone): Prefer universal_time_zone_table to
29070         local_time_zone_table, so that "GMT" time stamps are allowed in
29071         London during the summer.  Problem reported by Ian Abbott.
29072
29073 2005-04-12  Jim Meyering  <jim@meyering.net>
29074
29075         * lib/human.c (humblock): Set *options even when returning due to
29076         xstrtoumax conversion failure.  Thanks to a used-uninitialized
29077         warning from gcc-4.
29078
29079 2005-04-09  Jim Meyering  <jim@meyering.net>
29080
29081         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
29082         -Wuninitialized: initialize tm0.tm_year.
29083
29084 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
29085
29086         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
29087         count, since there's no maximum.  All uses changed.
29088         Add member dsts_seen.
29089         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
29090         not being INT_MAX.
29091         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
29092         Use pc_rels_seen to decide whther a date is absolute.
29093
29094         * lib/getdate.y (number): Don't overwrite year.
29095         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
29096         check.
29097
29098 2005-04-02  Simon Josefsson  <jas@extundo.com>
29099
29100         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
29101         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
29102
29103 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
29104
29105         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
29106         where no absolute path name can be longer than PATH_MAX.
29107
29108 2005-03-27  Jim Meyering  <jim@meyering.net>
29109
29110         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
29111
29112 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
29113
29114         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
29115         "one's complement" -> "ones' complement" in comment, as per Knuth.
29116         "value of type" -> "type or expression" in comment.
29117         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
29118
29119 2005-03-26  Jim Meyering  <jim@meyering.net>
29120
29121         Comment nits.
29122         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
29123         Correct typos: s/or/of/.
29124
29125 2005-03-26  Jim Meyering  <jim@meyering.net>
29126
29127         * modules/check-include-files: Move to ../ and rename to...
29128         * check-module: ...this.
29129
29130 2005-03-25  Jim Meyering  <jim@meyering.net>
29131
29132         * modules/xvasprintf (Files): Add xalloc.h.
29133
29134 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
29135
29136         * modules/gettext (Files): config/config.rpath ->
29137         build-aux/config.rpath
29138         * modules/iconv (Files): Likewise.
29139         Problem reported by Oskar Liljeblad.
29140
29141 2005-03-23  Jim Meyering  <jim@meyering.net>
29142
29143         * modules/check-include-files: New script to check for
29144         missing dependencies, multiple includes, etc.
29145
29146         * modules/c-strtold (Depends-on): Add xalloc.
29147         * modules/c-strtod (Depends-on): Add xalloc.
29148         * modules/hash (Depends-on): Add xalloc.
29149         (Files): Remove lib/xalloc.h.
29150
29151         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
29152         * modules/userspec (Files): Add lib/inttostr.h.
29153
29154 2005-03-23  Jim Meyering  <jim@meyering.net>
29155
29156         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
29157
29158 2005-03-22  Jim Meyering  <jim@meyering.net>
29159
29160         * modules/stat-macros: New module.
29161         * modules/canonicalize, modules/euidaccess, modules/file-type,
29162         * modules/filemode, modules/lchown, modules/makepath,
29163         * modules/rmdir, modules/stat: Depend on new stat-macros module
29164         rather than listing lib/stat-macros.h manually.
29165         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
29166
29167 2005-03-22  Jim Meyering  <jim@meyering.net>
29168
29169         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
29170
29171 2005-03-22  Bruno Haible  <bruno@clisp.org>
29172
29173         * config/srclist.txt: Replace target directory 'config' with
29174         'build-aux'.
29175         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
29176         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
29177         ../build-aux/.
29178
29179 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
29180
29181         * modules/chdir-long (Depends-on): Add mempcpy.
29182
29183         * modules/acl, modules/backupfile, modules/c-strtod,
29184         modules/c-strtold, modules/canon-host, modules/canonicalize,
29185         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
29186         modules/exclude, modules/exitfail, modules/file-type,
29187         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
29188         modules/getdate, modules/getline, modules/getpagesize,
29189         modules/getpass, modules/getugroups, modules/group-member,
29190         modules/hard-locale, modules/hash, modules/human, modules/idcache,
29191         modules/inttostr, modules/long-options, modules/makepath,
29192         modules/md5, modules/memcasecmp, modules/memcoll,
29193         modules/modechange, modules/mountlist, modules/path-concat,
29194         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
29195         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
29196         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
29197         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
29198         modules/strftime, modules/strndup, modules/strverscmp,
29199         modules/timespec, modules/unlocked-io, modules/userspec,
29200         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
29201         modules/yesno:
29202         Remove lib_SOURCES line from Makefile.am section, as this is now
29203         done automatically by the corresponding Autoconf macro.
29204
29205 2005-03-21  Jim Meyering  <jim@meyering.net>
29206
29207         Changes imported from coreutils.
29208
29209         * lib/cycle-check.c: Don't include xalloc.h.
29210
29211         * lib/path-concat.c: Don't include assert.h.
29212         (path_concat): Remove assertion that would have triggered
29213         for ABASE starting with more than one slash.
29214         Reported by Andreas Schwab.
29215
29216         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
29217         properly when ABASE is an absolute file name.
29218         Correct the description of this function.
29219         Include <assert.h>.
29220         Add an assertion and a test driver.
29221         This fixes a bug introduced on 2004-07-02.
29222         Andreas Schwab reported the resulting failure of cp --parents:
29223         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
29224
29225 2005-03-21  Jim Meyering  <jim@meyering.net>
29226
29227         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
29228         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
29229
29230 2005-03-21  Jim Meyering  <jim@meyering.net>
29231         and  Paul Eggert  <eggert@cs.ucla.edu>
29232
29233         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
29234         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
29235         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
29236         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
29237         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
29238         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
29239         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
29240         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
29241         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
29242         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
29243         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
29244         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
29245         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
29246         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
29247         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
29248         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
29249         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
29250         for these modules.
29251
29252 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
29253
29254         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
29255         (which shouldn't happen), generate nothing instead of returning 0
29256         immediately, so that nstrftime (NULL, ...) doesn't return 0.
29257
29258 2005-03-16  Bruno Haible  <bruno@clisp.org>
29259
29260         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
29261         HAVE_LONGLONG_64BIT.
29262
29263 2005-03-16  Bruno Haible  <bruno@clisp.org>
29264
29265         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
29266         HAVE_LONGLONG_64BIT.
29267
29268 2005-03-16  Bruno Haible  <bruno@clisp.org>
29269
29270         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
29271         HAVE_LONGLONG_64BIT.
29272
29273 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
29274
29275         * lib/strftime.c (my_strftime): Prepend space to format so that we can
29276         reliably distinguish strftime failure from empty output on POSIX
29277         hosts.
29278
29279 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
29280
29281         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
29282         (iconv_string): Don't guess a size-zero buffer, as that might cause
29283         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
29284         result would be 'too large', where 'too large' is (heuristically)
29285         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
29286         overflow concerns.  This will prevent some unwanted malloc failures
29287         when the inputs are very large.
29288
29289 2005-03-15  Karl Berry  <karl@gnu.org>
29290
29291         * config/srclist.txt (config.rpath): from gettext.
29292         * config/config.rpath: update.
29293
29294 2005-03-15  Bruno Haible  <bruno@clisp.org>
29295
29296         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
29297         to 'negate'.
29298
29299         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
29300         variable.
29301
29302         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
29303         results.
29304
29305 2005-03-14  Simon Josefsson  <jas@extundo.com>
29306
29307         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
29308         <fx@gnu.org>.
29309
29310 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
29311
29312         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
29313         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
29314         intprops.h.
29315         * lib/strtol.c: Likewise.
29316
29317 2005-03-14  Jim Meyering  <jim@meyering.net>
29318
29319         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
29320         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
29321         to be nonzero so that we (and caller) can detect the difference
29322         between a valid zero-length expansion and an error return, even
29323         when the underlying strftime fails before writing anything into
29324         that location.
29325
29326 2005-03-14  Bruno Haible  <bruno@clisp.org>
29327
29328         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
29329         Update from GNU gettext 0.14.3.
29330
29331 2005-03-10  Jim Meyering  <jim@meyering.net>
29332
29333         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
29334
29335 2005-03-10  Jim Meyering  <jim@meyering.net>
29336
29337         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
29338         so that this module works on systems without fchdir.
29339
29340 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
29341
29342         Factor int-properties macros into a single file, except for
29343         glibc-related files.
29344         * lib/intprops.h: New file.
29345         * lib/getloadavg.c: Include it instead of limits.h.
29346         (INT_STRLEN_BOUND): Remove.
29347         * lib/human.c: Include intprops.h.
29348         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
29349         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
29350         302/1000.
29351         * lib/inttostr.h: Include intprops.h instead of limits.h.
29352         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
29353         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
29354         for consistency with intprops.h.
29355         (time_t_is_integer, twos_complement_arithmetic): Use them.
29356         * lib/sig2str.h: Include <signal.h>, intprops.h.
29357         (INT_STRLEN_BOUND): Remove.
29358         * lib/strftime.c (TYPE_SIGNED): Remove.
29359         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
29360         * lib/strtol.c: Adjust comments to match intprops.h.
29361         * lib/userspec.c: Include intprops.h.
29362         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
29363         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
29364         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
29365         instead of rolling our own expressions.
29366         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
29367
29368         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
29369         instead of int.
29370         (my_strftime): Do not mishandle years close to INT_MAX, by doing
29371         the right thing even if adding 1900 would overflow.  Similarly
29372         for tm_mon + 1 and tm_yday + 1.
29373         Make %Y always equivalent to %C%y, and similarly for %G and %g.
29374         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
29375         (DO_SIGNED_NUMBER): New macro.
29376         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
29377
29378 2005-03-07  Bruno Haible  <bruno@clisp.org>
29379
29380         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
29381
29382 2005-03-07  Bruno Haible  <bruno@clisp.org>
29383
29384         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
29385
29386 2005-03-04  Derek R. Price  <derek@ximbiot.com>
29387
29388         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
29389         (func_import): Only replace files via --import when they have actually
29390         changed.
29391
29392 2005-03-03  Derek R. Price  <derek@ximbiot.com>
29393
29394         * m4/mmap-anon.m4: New file.
29395         * m4/pagealign_alloc.m4: New file.
29396
29397 2005-03-03  Derek R. Price  <derek@ximbiot.com>
29398             Bruno Haible  <bruno@clisp.org>
29399
29400         * modules/pagealign_alloc: New file.
29401         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
29402
29403 2005-03-03  Derek R. Price  <derek@ximbiot.com>
29404             Bruno Haible  <bruno@clisp.org>
29405
29406         * lib/pagealign_alloc.h: New file.
29407         * lib/pagealign_alloc.c: New file.
29408
29409 2005-03-03  Bruno Haible  <bruno@clisp.org>
29410
29411         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
29412         Use an all-permissive copyright notice, recommended by RMS.
29413
29414 2005-03-02  Bruno Haible  <bruno@clisp.org>
29415
29416         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
29417         of AIX, the replacement has to be done only after <string.h> is
29418         included, therefore not in config.h. stpncpy.h does the replacement,
29419         and stpncpy.c uses it.
29420
29421 2005-03-02  Bruno Haible  <bruno@clisp.org>
29422
29423         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
29424         stpncpy.c uses it.
29425
29426 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
29427
29428         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
29429         The workaround isn't strictly needed for POSIX conformance, and
29430         it's too much of a pain to configure and maintain.  We'll ask
29431         people to fix their kernels instead.
29432         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
29433         (NANOSLEEP_BUG_WORKAROUND): Remove.
29434         (xnanosleep): Remove the workaround.
29435
29436 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
29437
29438         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
29439         Reported by Derek Price.
29440         (Include): Add "timespec.h".
29441
29442         * modules/xnanosleep (Depends-on): Remove gethrxtime.
29443
29444 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
29445
29446         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
29447         to detect nanosleep bug.
29448
29449 2005-03-01  Bruno Haible  <bruno@clisp.org>
29450
29451         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
29452
29453 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
29454
29455         * modules/gethrxtime: New file.
29456         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
29457         (Depends-on): Add gethrxtime.
29458         (configure.ac): Add gl_XNANOSLEEP.
29459         (Makefile.am): Remove lib_SOURCES line.
29460
29461 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
29462
29463         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
29464         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
29465
29466 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
29467
29468         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
29469         * lib/timespec.h (gettime): Return void, since it always
29470         succeeds now.  All uses changed.
29471         * lib/gettime.c (gettime) Likewise.
29472         [HAVE_NANOTIME]: Prefer nanotime.
29473         Assume gettimeofday succeeds, as POSIX requires.
29474         Assime time () succeeds, since other code already does.
29475         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
29476         (timespec_subtract): Remove.
29477         (NANOSLEEP_BUG_WORKAROUND): New constant.
29478         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
29479         things considerably.  Use it only on GNU/Linux hosts, since the
29480         workaround shouldn't be needed elsewhere.
29481
29482 2005-02-24  Bruno Haible  <bruno@clisp.org>
29483
29484         * modules/gettext (Files): Add m4/glibc2.m4.
29485
29486 2005-02-24  Bruno Haible  <bruno@clisp.org>
29487
29488         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
29489         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
29490         * m4/progtest.m4:
29491         Update from GNU gettext 0.14.2.
29492         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
29493
29494 2005-02-24  Bruno Haible  <bruno@clisp.org>
29495
29496         * lib/localcharset.c: Update from GNU gettext 0.14.2.
29497         * lib/config.charset: Update from GNU gettext 0.14.2.
29498
29499 2005-02-24  Bruno Haible  <bruno@clisp.org>
29500
29501         * lib/gettext.h: Update from GNU gettext 0.14.2.
29502
29503 2005-02-23  Simon Josefsson  <jas@extundo.com>
29504
29505         * m4/iconvme.m4: New file.
29506
29507 2005-02-23  Jim Meyering  <jim@meyering.net>
29508
29509         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
29510         change.
29511         Thanks to Bruno Haible for catching it.
29512
29513 2005-02-22  Simon Josefsson  <jas@extundo.com>
29514
29515         * modules/iconvme: New file.
29516
29517         * MODULES.html.sh: Add iconvme.
29518
29519 2005-02-22  Simon Josefsson  <jas@extundo.com>
29520
29521         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
29522
29523 2005-02-22  Simon Josefsson  <jas@extundo.com>
29524
29525         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
29526
29527 2005-02-22  Jim Meyering  <jim@meyering.net>
29528
29529         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
29530         s/ifndef/ifdef/.
29531
29532 2005-02-20  Neil Conway  <neilc@samurai.com>
29533
29534         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
29535         returned by OSX/Darwin if the specified buffer is not large
29536         enough for the hostname.
29537
29538 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29539
29540         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
29541         pass it to _help, otherwise the latter coredumps trying to
29542         dereference state.root_argp.
29543
29544 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
29545
29546         * modules/chdir-long (Depends-on): Add memrchr.
29547         * modules/memrchr (Files): Add lib/memrchr.h.
29548         (Include): "memrchr.h".
29549
29550 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
29551
29552         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
29553
29554 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
29555
29556         * lib/memrchr.h: New file.
29557         * lib/chdir-long.c: Include it.
29558         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
29559         Don't bother including stddef.h.
29560
29561 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
29562
29563         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
29564         inclusion.
29565         Include <sys/types.h>, for dev_t.
29566         (ME_DUMMY, ME_REMOTE): Move from here....
29567         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
29568         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
29569         Dmitry V. Levin.
29570         Include mountlist.h first, to test the interface.
29571
29572 2005-01-29  Bruno Haible  <bruno@clisp.org>
29573
29574         * lib/progname.c (program_name): Initialize.
29575         Needed when linking statically on MacOS X.
29576
29577 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
29578
29579         Sync from coreutils.
29580         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
29581         (Depends-on): Add c-strtod.
29582         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
29583
29584 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
29585
29586         Sync from coreutils.
29587         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
29588
29589         Remove files that are specific to coreutils.
29590         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
29591
29592 2005-01-28  Bruno Haible  <bruno@clisp.org>
29593
29594         * modules/javacomp: New file.
29595         * MODULES.html.sh (Java): Add javacomp.
29596
29597 2005-01-28  Bruno Haible  <bruno@clisp.org>
29598
29599         * m4/javacomp.m4: New file, from GNU gettext.
29600
29601 2005-01-28  Bruno Haible  <bruno@clisp.org>
29602
29603         * lib/javacomp.sh.in: New file, from GNU gettext.
29604         * lib/javacomp.h: New file, from GNU gettext.
29605         * lib/javacomp.c: New file, from GNU gettext.
29606
29607 2005-01-26  Simon Josefsson  <jas@extundo.com>
29608
29609         * lib/gai_strerror.c: Use GPL in header.
29610
29611 2005-01-26  Bruno Haible  <bruno@clisp.org>
29612
29613         * modules/javaexec: New file.
29614         * MODULES.html.sh (Java): Add javaexec.
29615
29616 2005-01-26  Bruno Haible  <bruno@clisp.org>
29617
29618         * m4/javaexec.m4: New file, from GNU gettext.
29619
29620 2005-01-26  Bruno Haible  <bruno@clisp.org>
29621
29622         * lib/javaexec.sh.in: New file, from GNU gettext.
29623         * lib/javaexec.h: New file, from GNU gettext.
29624         * lib/javaexec.c: New file, from GNU gettext.
29625
29626 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29627
29628         * modules/lchown (Depends-on): Remove lchown.h
29629
29630 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29631
29632         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
29633         must be defined if the header file was not found, in order
29634         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
29635
29636 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29637
29638         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
29639         initializers for struct pentry_state.
29640         (__argp_error): Check return value of __asprintf
29641         (__argp_failure): Translate error message
29642
29643         * lib/argp-parse.c: Removed braces around the expansion of N_()
29644
29645 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29646
29647         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
29648         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
29649         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
29650         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
29651         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
29652         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
29653         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
29654         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
29655         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
29656         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
29657         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
29658         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
29659         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
29660         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
29661         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
29662         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
29663         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
29664         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
29665         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
29666         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
29667         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
29668         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
29669         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
29670         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
29671         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
29672         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
29673         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
29674         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
29675         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
29676         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
29677         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
29678         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
29679         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
29680         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
29681         xstrtol.m4, xstrtoumax.m4, yesno.m4:
29682         Use an all-permissive copyright notice, recommended by RMS.
29683
29684 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
29685
29686         * modules/chdir-long (Depends-on): Remove mempcpy.
29687
29688 2005-01-21  Jim Meyering  <jim@meyering.net>
29689
29690         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
29691         same value as for Solaris 9.
29692
29693         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
29694         component length.  This included changing the parameter to be
29695         of type `char *' rather than `char const *'.
29696         * lib/chdir-long.h (chdir_long): Update prototype.
29697
29698         * lib/openat.c (fdopendir, fstatat): New functions.
29699         * lib/openat.h: Include headers required for use of DIR and struct
29700         stat.
29701         [AT_SYMLINK_NOFOLLOW]: Define.
29702         (fdopendir, fstatat): Add prototypes.
29703
29704 2005-01-21  Bruno Haible  <bruno@clisp.org>
29705
29706         * modules/classpath: New file.
29707         * MODULES.html.sh (Java): Add classpath.
29708
29709 2005-01-21  Bruno Haible  <bruno@clisp.org>
29710
29711         * lib/classpath.h: New file, from GNU gettext.
29712         * lib/classpath.c: New file, from GNU gettext.
29713
29714 2005-01-20  Simon Josefsson  <jas@extundo.com>
29715
29716         * modules/version-etc-fsf: New file.
29717
29718 2005-01-20  Simon Josefsson  <jas@extundo.com>
29719
29720         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
29721         * lib/version-etc.c: Remove version_etc_copyright.
29722         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
29723         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
29724
29725 2005-01-20  Simon Josefsson  <jas@extundo.com>
29726
29727         * lib/base64.h (isbase64): Add.
29728
29729         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
29730         using a unsigned prototype, don't inline.
29731         (base64_decode): Use it.
29732
29733 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29734
29735         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
29736         it.
29737
29738 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29739
29740         * lib/save-cwd.c (save_cwd): Remove code to support the case
29741         where fchdir is missing or flaky.
29742
29743 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29744
29745         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
29746
29747 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
29748
29749         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
29750         AC_LIBSOURCES now does this.
29751         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
29752         with new ullong_max module.
29753
29754 2005-01-19  Bruno Haible  <bruno@clisp.org>
29755
29756         * modules/sh-quote: New file.
29757         * MODULES.html.sh (Executing programs): Add sh-quote.
29758
29759 2005-01-19  Bruno Haible  <bruno@clisp.org>
29760
29761         * lib/sh-quote.h: New file, from GNU gettext.
29762         * lib/sh-quote.c: New file, from GNU gettext.
29763
29764 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29765
29766         Merge from coreutils.
29767         * m4/ullong_max.m4: New file.
29768         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
29769         (gl_MACROS): Assume localeconv exists.
29770
29771 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29772
29773         Merge changes from coreutils, as described below in several
29774         changelogs dated today.
29775
29776         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
29777         (O_DIRECTORY): Remove; not needed here, since "." must be
29778         a directory.  All uses removed.
29779         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
29780         universal on Suns, and we also need to test for IRIX.
29781         Revamp code to use 'if' rather than '#if'.
29782         Avoid unnecessary comparison of cwd->desc to 0.
29783
29784         * lib/utimens.c (futimens): Robustify the previous patch, by checking
29785         for known valid error numbers rather than observed invalid ones.
29786
29787 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29788
29789         * modules/ullong_max: New file.
29790
29791         * modules/chdir-long, modules/openat: New files.
29792         * modules/save-cwd (Depends-on): Depend on chdir-long.
29793         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
29794
29795 2005-01-18  Jim Meyering  <jim@meyering.net>
29796
29797         Merge from coreutils.
29798         * m4/chdir-long.m4, m4/openat.m4: New files.
29799         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
29800         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
29801         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
29802         is sane and DOES follow symlinks.  Besides, testing 20 different
29803         systems found no broken chown implementations.
29804         Prompted by a change in rsync's copy of this macro.
29805         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
29806
29807         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
29808
29809         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
29810         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
29811         NULL-means-set-to-current-time semantics.
29812         Remove temporary file immediately, rather than waiting
29813         for configure's at-exit trap code to do it.
29814
29815 2005-01-18  Jim Meyering  <jim@meyering.net>
29816
29817         * lib/version-etc.c (version_etc_copyright): Update copyright date.
29818
29819         * lib/utimens.c (futimens): Account for the fact that futimes
29820         can also fail with errno == ENOSYS or errno == ENOENT.
29821         Patch from Dmitry V. Levin.
29822
29823         Change the name of the robust chdir function from chdir to chdir_long.
29824         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
29825         (restore_cwd): Use chdir_long, not chdir.
29826         * lib/chdir-long.c: Renamed from chdir.c.
29827         * lib/chdir-long.h: Renamed from chdir.h.
29828         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
29829         Hurd.
29830
29831 2005-01-18  Bruno Haible  <bruno@clisp.org>
29832
29833         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
29834         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
29835         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
29836         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
29837         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
29838         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
29839         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
29840         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
29841         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
29842         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
29843         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
29844         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
29845         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
29846         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
29847         Use an all-permissive copyright notice, recommended by RMS.
29848
29849 2005-01-18  Bob Proulx  <bob@proulx.com>
29850
29851         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
29852         simplify offsetof() macro construct to avoid compile failure with
29853         native HP-UX 11.0 ANSI C compiler.
29854
29855 2005-01-17  Bruno Haible  <bruno@clisp.org>
29856
29857         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
29858         redundant because stpncpy.m4 takes care of it.
29859
29860 2005-01-17  Bruno Haible  <bruno@clisp.org>
29861
29862         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
29863
29864 2005-01-17  Bruno Haible  <bruno@clisp.org>
29865
29866         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
29867         used.
29868
29869 2005-01-17  Bruno Haible  <bruno@clisp.org>
29870
29871         * lib/fwriteerror.h (fwriteerror): Change specification to include
29872         fclose.
29873         * lib/fwriteerror.c: Include <stdbool.h>.
29874         (fwriteerror): At the end, close the file stream. Record whether
29875         stdout was already closed.
29876
29877 2005-01-17  Bruno Haible  <bruno@clisp.org>
29878
29879         * lib/execute.c (environ): Declare if needed.
29880         * lib/pipe.c (environ): Likewise.
29881         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
29882
29883 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29884
29885         * modules/argp: Depend on vsnprintf
29886
29887 2005-01-10  Jim Meyering  <jim@meyering.net>
29888
29889         * modules/closeout (Depends-on): Add atexit.
29890
29891 2005-01-06  Bruno Haible  <bruno@clisp.org>
29892
29893         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
29894
29895 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29896
29897         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
29898         definitions to be after all include files, to avoid collisions.
29899         Problem reported by Bob Proulx.
29900
29901 2005-01-04  Jim Meyering  <jim@meyering.net>
29902
29903         Changes imported from coreutils.
29904         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
29905         as the mkstemp template, use a temporary directory and an
29906         8.3-friendly template to avoid trouble on systems like DJGPP.
29907         Reported by Juan M. Guerrero via Stepan Kasal.
29908         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
29909         close. Remove the temporary directory right away, rather than waiting
29910         for configure's at-exit trap code to do it.
29911         Suggestion from Stepan Kasal.
29912
29913 2005-01-01  Simon Josefsson  <jas@extundo.com>
29914
29915         * gnulib-tool: Print #include directives when --import'ing.
29916
29917 2004-12-28  Simon Josefsson  <jas@extundo.com>
29918
29919         * tests/test-base64.c: Include required header files.  Remove
29920         unused variables.
29921
29922 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29923
29924         * modules/error (Depends-on): Remove gettext.
29925
29926 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29927
29928         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
29929         not needed.  This removes a dependency on the gettext module.
29930         [defined _LIBC]: Do not include <libintl.h>; not needed.
29931
29932 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
29933
29934         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
29935         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
29936
29937 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
29938
29939         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
29940         HAVE_DECL_STRTOLD.
29941
29942 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29943
29944         * modules/getdate (Depends-on): Remove alloca-opt.
29945
29946 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29947
29948         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
29949
29950 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29951
29952         * lib/argp-parse.c: Include <stddef.h>.
29953         (alignof, alignto): New macros.
29954         (parser_init): Don't assume that void * is aligned sufficiently
29955         for struct option.
29956
29957         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
29958         need to extend the stack.
29959         (YYINITDEPTH): New macro, so that the initial stack isn't overly
29960         large.
29961
29962 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29963
29964         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
29965
29966 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
29967
29968         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
29969         (2004-10-24) change.  Apparently this was a false alarm.
29970
29971         * modules/getdate: Depend on alloca-opt, not alloca.
29972
29973 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
29974
29975         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
29976         Remove now-obsolete comment about AIX.
29977         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
29978         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
29979         (YYMAXDEPTH): New macro.
29980
29981 2004-12-18  Simon Josefsson  <jas@extundo.com>
29982
29983         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
29984
29985 2004-12-18  Bruno Haible  <bruno@clisp.org>
29986
29987         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
29988
29989 2004-12-18  Bruno Haible  <bruno@clisp.org>
29990
29991         * lib/fatal-signal.c (fatal_signals): Make non-const.
29992         (init_fatal_signals): New function.
29993         (uninstall_handlers, install_handlers): Ignore signals that were set to
29994         SIG_IGN.
29995         (at_fatal_signal): Call init_fatal_signals.
29996         (init_fatal_signal_set): Likewise. Ignore signals that were set to
29997         SIG_IGN.
29998         Reported by Paul Eggert.
29999
30000 2004-12-18  Bruno Haible  <bruno@clisp.org>
30001
30002         * doc/alloca.texi: New file.
30003         * doc/alloca-opt.texi: New file.
30004
30005 2004-12-17  Jim Meyering  <jim@meyering.net>
30006
30007         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
30008         Otherwise, install-sh could exit with improper exit status when
30009         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
30010
30011 2004-12-16  Simon Josefsson  <jas@extundo.com>
30012
30013         * tests/test-base64.c: Add license.
30014
30015 2004-12-15  Stepan Kasal  <address@hidden>
30016
30017         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
30018
30019 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
30020
30021         * modules/getcwd (Files): Add m4/d-ino.m4.
30022         Suggested by Mark D. Baushke.
30023
30024 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
30025
30026         * lib/getdate.y (textint): New member "negative".
30027         (time_zone_hhmm): New function.
30028         Expect 14 shift-reduce conflicts, not 13.
30029         (o_colon_minutes): New rule.
30030         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
30031         (yylex): Set the "negative" member of signed numbers.
30032
30033 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
30034
30035         * doc/getdate.texi (Time of day items, Time zone items):
30036         Describe new formats +00:00, UTC+00:00.
30037
30038 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
30039
30040         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
30041         spurious "-l"s.  Problem reported by Stepan Kasal.
30042
30043 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
30044
30045         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
30046         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
30047
30048 2004-12-04  Simon Josefsson  <jas@extundo.com>
30049
30050         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
30051         Vandoorselaere <yoann@prelude-ids.org>.
30052
30053 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
30054
30055         Changes imported from coreutils.
30056         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
30057         exist.
30058         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
30059
30060 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
30061
30062         Changes imported from coreutils.
30063         * lib/hard-locale.c: Assume <locale.h> exists.
30064         Include "strdup.h".
30065         (GLIBC_VERSION): New macro.
30066         (hard_locale): Assume setlocale exists.
30067         Rewrite to avoid #ifdef.
30068         Use strdup rather than malloc + strcpy.
30069         * lib/human.c: Assume <locale.h> exists.
30070         (human_readable): Assume localeconv exists.
30071
30072 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
30073
30074         * modules/hard-locale (Depends-on): Add strdup.
30075
30076 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
30077
30078         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
30079         convert T2, not T.  (Imported from libc.)
30080
30081 2004-11-30  Simon Josefsson  <jas@extundo.com>
30082
30083         * modules/restrict (License): Change to LGPL.
30084
30085 2004-11-30  Simon Josefsson  <jas@extundo.com>
30086
30087         * m4/restrict.m4: Add copyright and copying conditions.
30088
30089 2004-11-30  Simon Josefsson  <jas@extundo.com>
30090
30091         * m4/base64.m4: New file.
30092
30093 2004-11-30  Simon Josefsson  <jas@extundo.com>
30094
30095         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
30096         base64.
30097
30098         * tests/test-base64.c: New file.
30099
30100         * modules/base64: New file.
30101
30102 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
30103
30104         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
30105         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
30106
30107         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
30108
30109 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
30110
30111         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
30112         (__getcwd.c): Don't restore errno; glibc doesn't.
30113         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
30114         first, falling back to our code only if its results look suspicious.
30115         Ensure that the resulting buffer is only as large as necessary.
30116
30117         * lib/readutmp.c: Include readutmp.h first.
30118         Include <errno.h>, since readutmp.h no longer does that.
30119         * lib/readutmp.h: Don't include <errno.h>,
30120         <sys/param.h>, <time.h>; not needed to establish interface.
30121         (errno): Remove decl.
30122         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
30123         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
30124         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
30125
30126 2004-11-28  Simon Josefsson  <jas@extundo.com>
30127
30128         * lib/base64.h, base64.c: New file.
30129
30130 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
30131
30132         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
30133
30134 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
30135
30136         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
30137         (Depends-on): Remove pathmax, same.  Add mempcpy.
30138         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
30139         (Makefile.am): Append getcwd.h to lib_SOURCES.
30140         (Include): Add getcwd.h.
30141         (Maintainer): Change from Jim Meyering to "all, glibc",
30142         since getdate now uses intended-for-glibc code.
30143         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
30144         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
30145
30146 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
30147
30148         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
30149         HP's ANSI C compiler.
30150         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
30151         Declaring int functions causes warnings on some modern systems and
30152         shouldn't be needed to compile on ancient ones.
30153         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
30154         defined.
30155
30156         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
30157         with the following changes.
30158         (__set_errno): Parenthesize properly.
30159         Include <stdbool.h>.
30160         (MIN, MAX, MATCHING_INO): New macros.
30161         (__getcwd): Define with prototype, not K&R form.
30162         Use heuristics to allocate default buffer on stack if possible.
30163         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
30164         behavior, and to avoid the PATH_MAX limit when computing
30165         ../../../../...
30166         Use MATCHING_INO to compare inode number to file.
30167         Check for arithmetic overflow in size calculations.
30168         Fix bug in reallocation of dot array that caused getcwd to fail
30169         on directories nested deeper than 75.
30170         Be more careful about saving errno on error.
30171         Do not use realloc; use only free+malloc, as this is a bit
30172         more flexible and avoids a needless copy operation.
30173         Do not inspect st_dev and st_ino for symbolic links; POSIX
30174         doesn't specify the latter.
30175         Check for closedir errors.
30176         Avoid needless casts.
30177         Use "#ifdef weak_alias" around weak_alias, to be like other
30178         glibc code.
30179         The following changes to getcwd.c have effect only when used in
30180         gnulib; they have no effect inside glibc proper.
30181         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
30182         as alloca isn't used.
30183         (alloca, __alloca): Likewise.
30184         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
30185         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
30186         unconditionally, as gnulib assumes C89 or better.
30187         Do not include <sys/param.h>.
30188         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
30189         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
30190         better.
30191         (NULL) [!defined NULL]: Remove; we assume C89 or better.
30192         Include <dirent.h> in a way that is compatible with modern Autoconf.
30193         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
30194         New macros, if not already defined.
30195         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
30196         Use "_LIBC", not "defined _LIBC", for consistency.
30197         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
30198         a mempcpy module.
30199         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
30200         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
30201         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
30202         credit only to Jim Meyering and adjust the copyright dates.
30203         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
30204         <stdlib.h>, <unistd.h>, "pathmax.h".
30205         Instead, include "xgetcwd.h" (first) and "getcwd.h".
30206         (INITIAL_BUFFER_SIZE): Remove.
30207         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
30208
30209 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
30210
30211         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
30212         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
30213         Use the _ONCE methods, for efficiency.
30214         Check for fcntl.h.  In test program, include <errno.h>
30215         and <fcntl.h> if available.  Remove old K&R cruft from
30216         test program.  Check for common errors in GNU/Linux,
30217         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
30218         don't do AC_LIBOBJ, as that's getcwd.m4's job.
30219         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
30220         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
30221         name accordingly.
30222         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
30223         accommodate new getcwd.c.
30224         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
30225         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
30226         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
30227         that's all we need now.
30228
30229 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30230
30231         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
30232         argp-parse.c depends on getopt internals, that means we should
30233         always use our getopt, to be on the safe side.
30234         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
30235         order not to spoil the result of an eventual previous invocation
30236         of gl_GETOPT_SUBSTITUTE.
30237
30238 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30239
30240         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
30241         redefinition warnings. To avoid them, include the defines
30242         in `#if !defined __need_getopt ... #endif'. The only place
30243         where __getopt_argv_const is used is in definitions
30244         of getopt_long and getopt_long_only below, which are as well
30245         protected by `#ifndef __need_getopt'.
30246         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
30247         __need_getopt after including <stdio.h> and <unistd.h> These
30248         headers might have defined it.
30249
30250 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
30251
30252         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
30253
30254 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
30255
30256         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
30257         (futimens): New function, which uses futimes if available.
30258         (futimens, utimens): Support timespec==NULL, with same semantics
30259         as utime and utimens.
30260         * lib/utimens.h (futimens): New decl.
30261
30262 2004-11-23  Jim Meyering  <jim@meyering.net>
30263
30264         * lib/getopt_.h: Remove trailing blanks.
30265
30266 2004-11-23  Jim Meyering  <jim@meyering.net>
30267
30268         * lib/__fpending.c: Add comment.
30269
30270 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
30271
30272         * modules/canonicalize (Depends-on): Add xreadlink.
30273         Problem reported by James Youngman.
30274
30275 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
30276
30277         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
30278         New macros.
30279         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
30280         optopt): Use them instead of invoking ## directly; otherwise, the
30281         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
30282
30283 2004-11-19  Bruno Haible  <bruno@clisp.org>
30284
30285         * lib/strtok_r.c: Move comments from here...
30286         * lib/strtok_r.h: ... to here.
30287
30288 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
30289
30290         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
30291         implementations that mishandle size_t overflow.
30292
30293 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
30294
30295         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
30296         might fail.  Problem reported by Yoann Vandoorselaere.
30297         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
30298         implementations that mishandle size_t overflow.
30299
30300 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30301
30302         * modules/canon-host (Depends-on): Add strdup.
30303
30304 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30305
30306         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
30307
30308 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30309
30310         * lib/canon-host.c: Include "strdup.h".
30311         (canon_host): Use getaddrinfo if available, so that IPv6 works.
30312         Use strdup instead of malloc/strcpy to duplicate strings.
30313
30314         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
30315         (human_space_before_unit): New constant.
30316         * lib/human.c (human_readable): Support it.
30317
30318         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
30319         (xgetcwd): Set errno correctly when failing.
30320         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
30321         the failure is actually due to a PATH_MAX problem.
30322
30323         Further getopt changes to make it more likely that glibc will
30324         buy the changes back.
30325         * lib/getopt.c (POSIXLY_CORRECT): New constant.
30326         (getopt): Use it, so to preserve glibc semantic
30327         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
30328         when compiling for libc.
30329         * lib/getopt_.h (__getopt_argv_const): Bring it back.
30330         (getopt_long, getopt_long_only): Use it.
30331
30332         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
30333         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
30334         (getopt): Argv is now char * const *, as per standard.
30335         (_getopt_internal_r, _getopt_internal): Argv is now char **,
30336         not char *__getopt_argv_const *.
30337         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
30338         _getopt_long_only_r): Likewise.
30339         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
30340         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
30341         _getopt_long_r, _getopt_long_only_r): Likewise.
30342         * lib/getopt_.h (__getopt_argv_const): Remove.
30343         (getopt): Argv is now char * const *, as per standard.
30344
30345         * lib/getdate.y (tORDINAL): New token.
30346         (day, relunit): Allow it for relative times.
30347         (relative_time_table): Use tORDINAL for ordinals.
30348
30349 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
30350
30351         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
30352         Document that "second" isn't allowed as an ordinal number.
30353
30354 2004-11-16  Jim Meyering  <jim@meyering.net>
30355
30356         * modules/closeout (Depends-on): Add fpending.
30357
30358 2004-11-15  Jim Meyering  <jim@meyering.net>
30359
30360         * lib/closeout.c: Include "__fpending.h" once again.
30361         Include <stdbool.h>.
30362         (close_stdout): Don't fail just because stdout was closed initially,
30363         since some programs don't write to stdout in the normal course of
30364         operation (other than --version and --help), and we don't want this
30365         function to make e.g. `touch file >&-' fail.
30366         But do fail if it was closed and someone has tried to write to it.
30367         E.g., `printf foo >&-' must fail.
30368
30369 2004-11-13  Jim Meyering  <jim@meyering.net>
30370
30371         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
30372
30373 2004-11-12  Simon Josefsson  <jas@extundo.com>
30374
30375         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
30376         small doc fix is still pending.
30377
30378 2004-11-11  Simon Josefsson  <jas@extundo.com>
30379
30380         * modules/strtok_r: New file.
30381
30382         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30383         strtok_r.
30384
30385 2004-11-11  Simon Josefsson  <jas@extundo.com>
30386
30387         * m4/strtok_r.m4: New file.
30388
30389         * m4/getopt.m4: Replace opterr.
30390
30391 2004-11-11  Simon Josefsson  <jas@extundo.com>
30392
30393         * lib/strtok_r.h, strtok_r.c: New file.
30394
30395 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
30396
30397         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
30398         of replacing opterr, getopt, etc.  This should handle the
30399         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
30400
30401 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
30402
30403         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
30404         we can stop lying to compilers about the constness of argv when we
30405         are compiled outside glibc.
30406         (getopt, getopt_long, getopt_long_only): Use it.
30407         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
30408         _getopt_internal, getopt): Likewise.
30409         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
30410         _getopt_long_only_r): Likewise.
30411         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
30412         _getopt_long_r, _getopt_long_only_r): Likewise.
30413
30414         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
30415         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
30416         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
30417         the other external symbols.
30418         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
30419         declaration, since the above renaming now works around collisions.
30420
30421 2004-11-11  Jim Meyering  <jim@meyering.net>
30422
30423         * lib/linebreak.c: Remove trailing blanks.
30424         * lib/alloca_.h: Likewise.
30425         * lib/acosl.c: Likewise.
30426         * lib/euidaccess.c: Likewise.
30427         * lib/allocsa.h: Likewise.
30428
30429 2004-11-10  Simon Josefsson  <jas@extundo.com>
30430
30431         * m4/getaddrinfo.m4: New file.
30432
30433 2004-11-10  Simon Josefsson  <jas@extundo.com>
30434
30435         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
30436
30437 2004-11-10  Simon Josefsson  <jas@extundo.com>
30438
30439         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30440         getaddrinfo.
30441
30442         * modules/getaddrinfo: New file.
30443
30444 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30445
30446         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
30447
30448 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30449
30450         * lib/mktime.c (SHR): New macro, which is a portable
30451         substitute for >> that should work even on Crays.
30452         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
30453         Problem reported by Mark D. Baushke in
30454         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
30455         * lib/getdate.y (SHR): Likewise.
30456         (tm_diff): Use it.
30457         * lib/strftime.c (SHR): Likewise.
30458         (tm_diff): Use it.
30459         * lib/quotearg.c (struct quoting_options): Use unsigned int for
30460         quote_these_too, so that right shifts are well defined.  All uses
30461         changed.
30462
30463 2004-11-10  Jim Meyering  <jim@meyering.net>
30464
30465         Ensure that no close failure goes unreported.
30466         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
30467         return early when it seems there's nothing to flush.
30468         Don't include __fpending.h.
30469
30470 2004-11-10  Jim Meyering  <jim@meyering.net>
30471
30472         * modules/closeout (Depends-on): Remove fpending.
30473
30474 2004-11-10  Jim Meyering  <jim@meyering.net>
30475
30476         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
30477
30478 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30479
30480         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
30481         gl_FUNC_STRFTIME.
30482         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
30483         and AC_REQUIRE when possible, to avoid duplicate checks.
30484         Check for <wchar.h>.
30485
30486 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30487
30488         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
30489
30490 2004-11-09  Bruno Haible  <bruno@clisp.org>
30491
30492         * m4/sockpfaf.m4: New file.
30493
30494 2004-11-05  Bruno Haible  <bruno@clisp.org>
30495
30496         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
30497         Reported by Mark D. Baushke <mdb@cvshome.org>.
30498
30499 2004-11-04  Bruno Haible  <bruno@clisp.org>
30500
30501         2004-09-11  Bruno Haible  <bruno@clisp.org>
30502                 * allocsa.valgrind: New file.
30503         2004-02-06  Bruno Haible  <bruno@clisp.org>
30504                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
30505                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
30506                 Reported by Christopher Seip <chris.seip@hp.com>.
30507
30508 2004-11-04  Bruno Haible  <bruno@clisp.org>
30509
30510         * modules/allocsa (Files): Add lib/allocsa.valgrind.
30511         (Makefile.am): Distribute it.
30512
30513 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30514
30515         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
30516         with errno == ERANGE if the buffer is too small.
30517         Problem reported by Mark D. Baushke.
30518
30519 2004-11-03  Albert Chin  <china@thewrittenword.com>
30520             Paul Eggert  <eggert@cs.ucla.edu>
30521
30522         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
30523         equivalent, substitute $ac_type for equivalent type rather than
30524         blindly using uint32_t *always* which won't work if uint32_t is not
30525         available.  Define _UINT32_T to work around typedef of uint32_t if
30526         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
30527         2.5.1.
30528
30529 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30530
30531         * m4/jm-macros.m4: Sync from coreutils.
30532         (gl_MACROS): Check for mbrlen, for pathchk.
30533         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
30534
30535 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30536
30537         * lib/xreadlink.c (MAXSIZE): New macro.
30538         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
30539         size does not exceed MAXSIZE.  Avoid cast.
30540         As suggested by Mark D. Baushke in
30541         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
30542         if readlink fails with buffer size just under MAXSIZE, try again
30543         with MAXSIZE.
30544
30545 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30546
30547         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
30548
30549 2004-11-02  Derek R. Price  <derek@ximbiot.com>
30550         and  Paul Eggert  <eggert@cs.ucla.edu>
30551
30552         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
30553         (get_date): Overparenthesize to avoid GCC warning.
30554
30555 2004-11-02  Bruno Haible  <bruno@clisp.org>
30556
30557         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
30558         returns void.
30559
30560 2004-11-02  Bruno Haible  <bruno@clisp.org>
30561
30562         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
30563         function returns void.
30564
30565 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30566
30567         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
30568         fflush_unlocked, flockfile, funlockfile, funlockfile,
30569         fputs_unlocked, putc_unlocked.
30570
30571 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30572
30573         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30574         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
30575         already declared.
30576
30577 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30578
30579         * modules/getdate (Files): Add doc/getdate.texi.
30580         (Depends-on): Add setenv, xalloc.
30581
30582 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30583
30584         * lib/getdate.y: Add support for TZ="foo" within a date string.
30585         Fix some bugs near time_t boundaries.  Reject dates with
30586         out-of-range components, e.g., "Sept 31".
30587         Include <stdlib.h>, "setenv.h", "xalloc.h".
30588         (ISDIGIT_LOCALE): Remove; unused.
30589         Note that the TZ and time functions used here are not reentrant.
30590         (mktime_ok, get_tz): New functions.
30591         (TZBUFSIZE): New constant.
30592         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
30593         This requires that we sometimes generate our own TZ="XXX..." setting.
30594
30595 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30596
30597         * doc/getdate.texi: New file, from coreutils with modifications for
30598         the new TZ parsing.
30599
30600 2004-10-27  Derek R. Price  <derek@ximbiot.com>
30601
30602         * lib/mktime.c (not_equal_tm): Remove redundant check.
30603
30604 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30605
30606         * modules/regex (lib_SOURCES): Add regex.c.
30607         Reported by James Youngman in
30608         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
30609
30610 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30611
30612         * lib/getdate.y: Use Bison 1.875 features, and some minor
30613         code cleanups.  This change does not affect semantics.
30614         Don't include <stdlib.h>; no longer needed.
30615         Don't include unlocked-io.h; only the "#if TEST" code uses
30616         stdio, and performance isn't crucial there.
30617         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
30618         Bison 1.875 features as described below.
30619         All uses of "PC." replaced by "pc->".
30620         (YYSTYPE): Add a forward declaration.
30621         (yylex, yyerror): Use full prototypes in forward decls.
30622         Use "%pure-parser" rather than obsolescent "%pure_parser".
30623         Use %parse-param and %lex-param instead of obsolescent
30624         YYPARSE_PARAM and YYLEX_PARAM.
30625         (meridian_table, month_and_day_table, time_units_table,
30626         relative_time_table, time_zone_table, military_table,
30627         lookup_zone, lookup_word, get_date):
30628         Use NULL instead of 0 where appropriate.
30629         (to_hour): Avoid abort (), to avoid a dependency on
30630         stdlib.h.
30631         (yyerror, yylex): Now accepts parser_control * arg.
30632         (main) [TEST]: Use '\0' rather than 0 for char.
30633
30634 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30635
30636         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
30637
30638 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30639
30640         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
30641         It's now the caller's responsibility to handle the case where
30642         !HAVE_GETPAGESIZE && !defined getpagesize.
30643
30644         * lib/mktime.c (leapyear): Arg is long int, not int.
30645
30646 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30647
30648         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
30649
30650 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30651
30652         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
30653         missing.  Problem reported by James Youngman.
30654
30655 2004-10-16  Simon Josefsson  <jas@extundo.com>
30656
30657         * gnulib-tool: Fix comments.  Fix parse problem.
30658         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
30659
30660 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
30661
30662         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
30663         implementation of getopt_long.  Problem reported by Alexander Taler in:
30664         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
30665
30666 2004-10-15  Bruno Haible  <bruno@clisp.org>
30667
30668         * gnulib-tool: Untabify. Initialize supplied_libname.
30669         (func_usage): More homogenous output.
30670         (func_modules_transitive_closure, func_modules_to_filelist,
30671         func_emit_lib_Makefile_am): New functions.
30672         (func_import): New function, extracted from big case statement. Use
30673         func_get_license, func_modules_transitive_closure,
30674         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
30675         opt_lgpl. Don't use test -a, as it's not portable.
30676         (func_create_testdir): Use func_modules_transitive_closure,
30677         func_modules_to_filelist, func_emit_lib_Makefile_am.
30678
30679 2004-10-15  Bruno Haible  <bruno@clisp.org>
30680
30681         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
30682
30683 2004-10-15  Bruno Haible  <bruno@clisp.org>
30684
30685         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
30686         the portions belonging to each module.
30687         Suggested by Derek Robert Price <derek@ximbiot.com>.
30688
30689 2004-10-12  Simon Josefsson  <jas@extundo.com>
30690
30691         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30692         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
30693         to real functions.
30694
30695 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30696
30697         * modules/vsnprintf: New file.
30698
30699 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30700
30701         * m4/vsnprintf.m4: New file.
30702
30703 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30704
30705         * lib/vsnprintf.h: New file.
30706         * lib/vsnprintf.c: New file.
30707
30708 2004-10-11  Bruno Haible  <bruno@clisp.org>
30709
30710         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
30711         vsnprintf.
30712
30713 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30714
30715         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
30716
30717 2004-10-07  Bruno Haible  <bruno@clisp.org>
30718
30719         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
30720         fits into the provided buffer.
30721
30722 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30723
30724         * lib/diacrit.c, diacrit.h: Add GPL notice.
30725
30726         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
30727         notice.
30728         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
30729         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
30730         This avoids a potential constant-folding bug.
30731
30732 2004-10-05  Bruno Haible  <bruno@clisp.org>
30733
30734         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
30735         for the declaration of strsep.
30736
30737 2004-10-05  Bruno Haible  <bruno@clisp.org>
30738
30739         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
30740
30741 2004-10-04  Simon Josefsson  <jas@extundo.com>
30742
30743         * modules/memmem: New file.
30744         * tests/test-memmem.c: New file.
30745         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
30746
30747 2004-10-04  Simon Josefsson  <jas@extundo.com>
30748
30749         * m4/memmem.m4: New file.
30750
30751 2004-10-04  Simon Josefsson  <jas@extundo.com>
30752
30753         * lib/memmem.h: New file.
30754         * lib/memmem.c: New file, taken from glibc.
30755
30756 2004-10-04  Simon Josefsson  <jas@extundo.com>
30757
30758         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
30759         '#ifdef USE_UNLOCKED_IO'.
30760
30761 2004-10-04  Simon Josefsson  <jas@extundo.com>
30762
30763         * config/srclist.txt: Add memmem from glibc.
30764
30765 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30766
30767         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
30768
30769         * modules/argmatch, modules/argp, modules/closeout, modules/error,
30770         modules/exclude, modules/getdate, modules/getline,
30771         modules/getndelim2, modules/getpass, modules/getpass-gnu,
30772         modules/getusershell, modules/linebuffer, modules/md5,
30773         modules/mountlist, modules/posixtm, modules/readtokens,
30774         modules/readutmp, modules/regex, modules/sha1,
30775         modules/version-etc, modules/yesno:
30776         Remove dependency on unlocked-io.
30777
30778 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30779
30780         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
30781
30782         * m4/unlocked-io.m4: Add copyright notice.
30783         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
30784
30785 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30786
30787         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
30788         * lib/xmalloc.c (xmemdup): Likewise.
30789         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
30790         XFREE): Remove these long-obsolescent macros.
30791         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
30792         * lib/xstrdup.c: Remove.
30793
30794         * lib/regex.c (re_comp): Cast gettext return value to char *,
30795         Problem reported by Martin Neitzel via Mark D. Baushke.
30796
30797 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
30798
30799         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
30800         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
30801         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
30802         regex.c, sha1.c, version-etc.c, yesno.c:
30803         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
30804         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
30805         the includer's responsibility.
30806
30807         Sync from coreutils.
30808
30809         * lib/modechange.c (mode_compile): Don't decrement a pointer that
30810         points to the start of a string, as the C Standard says the
30811         resulting behavior is undefined.
30812
30813         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
30814         simple -> simple_backups, numbered_existing ->
30815         numbered_existing_backups, numbered -> numbered_backups
30816         to avoid shadowing problems.  All uses changed.
30817         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
30818         * lib/backupfile.c (check_extension, numbered_backup):
30819         Rename locals to avoid shadowing 'basename'.
30820         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
30821         once.
30822
30823         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
30824         * lib/.cvsignore: Add getopt.h.
30825
30826 2004-10-04  Bruno Haible  <bruno@clisp.org>
30827
30828         * modules/README: New file.
30829         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
30830         not a module.
30831
30832 2004-10-02  Jim Meyering  <jim@meyering.net>
30833
30834         * lib/dirfd.h, getpagesize.h: Add copyright notice.
30835
30836 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30837
30838         * modules/strsep: New file.
30839
30840 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30841
30842         * m4/strsep.m4: New file.
30843
30844 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30845
30846         * lib/strsep.h: New file.
30847         * lib/strsep.c: New file.
30848
30849 2004-10-01  Simon Josefsson  <jas@extundo.com>
30850
30851         * lib/snprintf.c (snprintf): Handle size==0.
30852
30853 2004-10-01  Simon Josefsson  <jas@extundo.com>
30854             Bruno Haible  <bruno@clisp.org>
30855
30856         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
30857         (snprintf): Declare 'args'.
30858
30859 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
30860
30861         * lib/snprintf.c: Remove comments as to why each header is needed.
30862
30863 2004-10-01  Bruno Haible  <bruno@clisp.org>
30864
30865         * MODULES.html.sh: Add strsep.
30866
30867 2004-09-30  Simon Josefsson  <jas@extundo.com>
30868
30869         * modules/snprintf: New file.
30870
30871 2004-09-30  Simon Josefsson  <jas@extundo.com>
30872
30873         * m4/snprintf.m4: New file.
30874
30875 2004-09-30  Simon Josefsson  <jas@extundo.com>
30876
30877         * lib/snprintf.h, lib/snprintf.c: New files.
30878
30879 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30880
30881         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
30882         (hol_entry_help): Never translate an empty string.
30883         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
30884         * lib/argp.h (OPTION_NO_TRANS): New option.
30885
30886 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30887
30888         * modules/argp (Maintainer): Replace Simon Josefsson
30889         by Sergey Poznyakoff.
30890
30891 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30892
30893         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
30894         changes merged back into glibc.
30895
30896 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
30897
30898         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
30899
30900 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
30901
30902         * lib/xvasprintf.c: Include xalloc.h.
30903         (xvasprintf): Use xalloc_die, not xmalloc_die.
30904
30905 2004-09-29  Bruno Haible  <bruno@clisp.org>
30906
30907         * modules/alloca-opt: New file, derived from modules/alloca.
30908         * modules/allocsa: Depend on alloca-opt instead of alloca.
30909         * modules/setenv: Likewise.
30910         * modules/vasnprintf: Likewise.
30911         * MODULES.html.sh: Add alloca-opt.
30912
30913 2004-09-28  Simon Josefsson  <jas@extundo.com>
30914
30915         * gnulib-tool: New parameter --lgpl, to asseert that modules are
30916         LGPL, and to replace license template from GPL to LGPL.
30917
30918 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
30919
30920         * modules/dummy: Change license to LGPL.
30921
30922 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
30923
30924         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
30925
30926 2004-09-24  Simon Josefsson  <jas@extundo.com>
30927
30928         * modules/minmax (License): Change from GPL to LGPL.
30929
30930 2004-09-23  Simon Josefsson  <jas@extundo.com>
30931
30932         * gnulib-tool (--import): Typo.
30933
30934 2004-09-23  Simon Josefsson  <jas@extundo.com>
30935
30936         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
30937
30938 2004-09-22  Bruno Haible  <bruno@clisp.org>
30939
30940         * modules/*: Add 'License' field.
30941         * gnulib-tool: Accept --extract-license option.
30942         (func_get_license): New function.
30943
30944 2004-09-21  Bruno Haible  <bruno@clisp.org>
30945
30946         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
30947         Reported by Simon Josefsson.
30948
30949 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30950
30951         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
30952         gl_AC_TYPE_LONG_LONG.
30953
30954 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30955
30956         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
30957
30958 2004-09-18  Simon Josefsson  <jas@extundo.com>
30959         and  Paul Eggert  <eggert@cs.ucla.edu>
30960
30961         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
30962         calls with autoreconf.  Define GL_LIB.
30963
30964 2004-09-14  Karl Berry  <karl@gnu.org>
30965
30966         * config/srclist.txt: unsync setenv.c, sigh.
30967
30968 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30969
30970         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
30971         Problem reported by Bruno Haible in:
30972         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
30973
30974 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30975
30976         * config/srclist.txt: Comment out argp-pvh.c.
30977
30978 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
30979
30980         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
30981         in case some system header has #define'd it.  Problem reported by
30982         Soeren D. Schulze in
30983         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
30984
30985 2004-09-09  Karl Berry  <karl@gnu.org>
30986
30987         * regex.[ch]: delete from the root.  These were supposed to be
30988                 synced with emacs cvs, but this has not happened for about
30989                 a year, and anyway nothing else uses emacs regex.[ch].
30990                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
30991                 lib/regex[.ch] is untouched.
30992
30993 2004-09-09  Bruno Haible  <bruno@clisp.org>
30994
30995         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
30996
30997 2004-09-09  Bruno Haible  <bruno@clisp.org>
30998
30999         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
31000         modifications.
31001         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
31002
31003 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
31004
31005         * modules/xvasprintf: New file.
31006         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
31007
31008 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
31009
31010         * lib/xvasprintf.h: New file.
31011         * lib/xvasprintf.c: New file.
31012         * lib/xasprintf.c: New file.
31013
31014 2004-09-08  Bruno Haible  <bruno@clisp.org>
31015
31016         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
31017
31018 2004-09-08  Bruno Haible  <bruno@clisp.org>
31019
31020         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
31021         length is > INT_MAX.
31022         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
31023         more.
31024
31025 2004-09-08  Bruno Haible  <bruno@clisp.org>
31026
31027         * lib/stdint_.h: New file, taken from GNU clisp.
31028
31029 2004-09-08  Bruno Haible  <bruno@clisp.org>
31030             Oskar Liljeblad  <oskar@osk.mine.nu>
31031
31032         * modules/stdint: New file.
31033         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
31034
31035 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31036
31037         Import from coreutils.
31038         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
31039         strings on unbounded length.  alloca's performance benefits aren't
31040         that important here.
31041         (V_STRDUP): Remove.
31042         (parse_with_separator): New function, with most of the internals
31043         of the old parse_user_spec.  Allow user to omit both user and group,
31044         for compatibility with FreeBSD.
31045         Clone only the user name, not the entire spec.
31046         Do not set *uid, *gid unless entirely successful.
31047         Avoid memory leak in some failing cases.
31048         Fix regression for USER.GROUP reported by Dmitry V. Levin in
31049         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
31050         (parse_user_spec): Rewrite to use parse_with_separator.
31051
31052 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31053
31054         * modules/userspec: Don't depend on alloca.
31055
31056 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31057
31058         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
31059
31060 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
31061
31062         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
31063         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
31064         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
31065
31066 2004-08-16  Simon Josefsson  <jas@extundo.com>
31067
31068         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
31069         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
31070         Add --dry-run for --import.
31071         Let user provided command line parameters override configure.ac
31072         settings.
31073
31074 2004-08-12  Simon Josefsson  <jas@extundo.com>
31075
31076         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
31077         as discussed with Paul Eggert in threads rooted at
31078         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
31079         and
31080         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
31081         Before, the test was empty, and relied on ELIDE_CODE in source
31082         code.)
31083         (gl_PREREQ_GETOPT): New macro.
31084         (gl_GETOPT): Use them.
31085
31086 2004-08-12  Simon Josefsson  <jas@extundo.com>
31087
31088         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
31089         * lib/getopt_.h: Renamed from getopt.h.
31090
31091 2004-08-12  Simon Josefsson  <jas@extundo.com>
31092
31093         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
31094         Change default library name from libfoo to libgnu.
31095         Now, if you have a configure.ac that says:
31096                 gl_SOURCE_BASE(gl)
31097                 gl_M4_BASE(gl/m4)
31098                 gl_MODULES(error getopt etcetera)
31099                 gl_INIT
31100         you can import all you need by running:
31101                 ../gnulib/gnulib-tool --import
31102
31103         * modules/getopt (Files): Rename getopt.h to getopt_.h.
31104         (Makefile.am): Rewrite, use logic from argz.
31105         (Include): Use <getopt.h> instead of "getopt.h".
31106
31107 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31108
31109         * modules/argp (Files): Add m4/unlocked-io.m4.
31110         (Depends-on): Add extensions.
31111
31112 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31113
31114         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
31115         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
31116         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
31117         Check for program_invocation_name, program_invocation_short_name,
31118         flockfile, funlockfile, features.h, _getopt_long_only_r.
31119
31120 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31121
31122         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
31123         its complicated substitute.
31124         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
31125         and program_invocation_name.
31126         (__argp_basename) [!_LIBC]: Remove; the only use was
31127         replaced by its body.
31128         (__argp_short_program_name): Change condition from
31129         !defined __argp_short_program_name to
31130         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
31131         to match argp-namefrob.h.
31132         (__argp_failure): Don't assume strerror_r returns char *.
31133         * lib/argp-parse.c (N_): Define unconditionally.
31134         (argp_default_options): Fill out initializers with 0 to avoid
31135         gcc warnings.
31136
31137 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31138
31139         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
31140         getopt1.c.
31141
31142 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31143
31144         Merge from coreutils.
31145
31146         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
31147
31148         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
31149         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
31150
31151 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31152
31153         Merge from coreutils.
31154
31155         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
31156         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
31157         for Reliant Unix 5.43.
31158
31159         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
31160         (union fooround): Use uintmax_t, not long int.
31161         The rest is a merge from libc:
31162         [defined _LIBC]: Include <shlib-compat.h>.
31163         (_obstack) [defined _LIBC]: Remove after 2.3.4.
31164
31165         * lib/settime.c (settime): Recode to avoid warning with
31166         Sun Forte C 6U2.
31167
31168         * lib/strverscmp.c: Convert to UTF-8.
31169
31170 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31171
31172         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
31173         m4/uintmax_t.m4.
31174
31175 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31176
31177         * modules/xalloc-die: New file.
31178         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
31179
31180         * modules/md5 (Files): Add m4/uint32_t.m4.
31181         * modules/sha1: Renamed from modules/sha.
31182         (Files):
31183         Rename lib/sha.h to lib/sha1.h.
31184         Rename lib/sha.c to lib/sha1.c.
31185         Rename m4/sha.m4 to m4/sha1.m4.
31186         (lib_SOURCES): Likewise.
31187         (configure.ac): Rename gl_SHA to gl_SHA1.
31188         (Include): sha.h -> sha1.h.
31189
31190 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31191
31192         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
31193         * m4/sha1.m4: Renamed from sha.m4.
31194         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
31195
31196 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
31197
31198         * lib/obstack.h (obstack_empty_p):
31199         Don't assume that chunk->contents is suitably aligned.
31200         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
31201         Likewise. Problem reported by Benno in
31202         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
31203
31204         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
31205         readable.  This could be improved further but it'd take some work.
31206
31207 2004-08-08  Simon Josefsson  <jas@extundo.com>
31208
31209         * modules/xgethostname (Depends-on): Remove exit and error (not
31210         used).
31211
31212         * modules/getpass-gnu: Add getpass.h.
31213         (Depends-on): Add stdbool.
31214         * modules/getpass: Add getpass.h.
31215
31216 2004-08-08  Simon Josefsson  <jas@extundo.com>
31217
31218         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
31219         Check getpass declaration.
31220
31221 2004-08-08  Simon Josefsson  <jas@extundo.com>
31222
31223         * lib/xgethostname.c: Don't include error.h (not used).
31224
31225         * lib/getpass.h: Add.
31226         * lib/getpass.c: Include getpass.h first.
31227
31228 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
31229
31230         * lib/xalloc-die.c: New file.
31231         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
31232         All uses removed.
31233         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
31234         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
31235         xalloc-die.c.
31236         (_, N_, xalloc_die): Move to xalloc-die.c.
31237         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
31238         so that we needn't mess with xalloc_msg_memory_exhausted.
31239
31240         * lib/sha1.h: Renamed from sha.h.
31241         (SHA1_H): Renamed from _SHA_H.
31242         (sha1_ctx): Renamed from sha_ctx.
31243         (sha1_init_ctx): Renamed from sha_init_ctx.
31244         (sha1_process_block): Renamed from sha_process_block.
31245         (sha1_process_bytes): Renamed from sha_process_bytes.
31246         (sha1_finish_ctx): Renamed from sha_finish_ctx.
31247         (sha1_read_ctx): Renamed from sha_read_ctx.
31248         (sha1_stream): Renamed from sha_stream.
31249         (sha1_buffer): Renamed from sha_buffer.
31250         * lib/sha1.c: Likewise; renamed from sha.c.
31251         Do not include <sys/types.h>.
31252         Include <stddef.h> rather than <stdlib.h>.
31253
31254 2004-08-08  Bruno Haible  <bruno@clisp.org>
31255
31256         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
31257         FILESYSTEM_PREFIX_LEN.
31258         * lib/progreloc.c: Likewise.
31259         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
31260
31261 2004-08-06  Simon Josefsson  <jas@extundo.com>
31262
31263         * modules/progname (Depends-on): Don't depend on stdbool.
31264
31265 2004-08-06  Simon Josefsson  <jas@extundo.com>
31266
31267         * modules/getsubopt: New file.
31268         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31269         getsubopt.
31270
31271 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31272
31273         More merge from coreutils.
31274
31275         * m4/utimens.m4, m4/utimecmp.m4: New files.
31276         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
31277         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
31278         prereq.m4, sha.m4: Import changes from coreutils.
31279
31280 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31281
31282         More merge from coreutils.
31283         * modules/raise, modules/readtokens0, modules/utimens:
31284         * modules/utimecmp, module/xnanosleep: New files.
31285         * modules/strftime: Add lib/strftime.h.
31286         Change include from <time.h> to "strftime.h".
31287         * modules/yesno: Add lib/yesno.h.
31288         * modules/backupfile: Remove lib/addext.c.
31289         * modules/euidaccess: Add stat-macros.h.
31290         * modules/canonicalize, modules/euidaccess,
31291         modules/filemode, modules/lchown, modules/makepath,
31292         modules/rmdir, modules/stat: Likewise.
31293
31294 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31295
31296         Merge from tar.
31297         * lib/argp-help.c (make_hol, hol_append): Don't assume that
31298         SIZE_MAX is a valid preprocessor constant.
31299         (__argp_basename): Change from "#ifndef _LIBC"
31300         to "#ifndef __argp_short_program_name", so that
31301         we don't compile these functions for tar.
31302
31303         More merges from coreutils.
31304         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
31305         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
31306         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
31307         * lib/addext.c: Remove; no longer needed.
31308         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
31309         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
31310         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
31311         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
31312         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
31313         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
31314         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
31315         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
31316         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
31317         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
31318         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
31319         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
31320         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
31321         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
31322         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
31323         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
31324         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
31325         Import changes from coreutils.
31326
31327 2004-08-05  Simon Josefsson  <jas@extundo.com>
31328
31329         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
31330
31331 2004-08-05  Simon Josefsson  <jas@extundo.com>
31332
31333         * m4/getsubopt.m4: New file.
31334
31335 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31336
31337         Merge from coreutils.
31338
31339         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
31340         * m4/getcwd-path-max.m4: New files.
31341
31342         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
31343         FILESYSTEM_PREFIX_LEN ->
31344         FILE_SYSTEM_PREFIX_LEN.
31345         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
31346         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
31347         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
31348         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
31349
31350         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
31351         prerequisite modules now handle the DOS stuff.
31352         Don't check for unistd.h.
31353
31354 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31355
31356         Merge from coreutils.
31357
31358         * lib/.gdb-history: Remove; this doesn't belong here.
31359
31360         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
31361         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
31362         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
31363         * lib/getcwd.c: New files.
31364
31365         * lib/dirname.h: Include <stdbool.h>.
31366         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
31367         for consistency with POSIX terminology.  All uses changed.
31368         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
31369         (strip_trailing_slashes): Use bool for booleans.
31370         * lib/stripslash.c (strip_trailing_slashes): Likewise.
31371
31372         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
31373         sometimes returns a positive errno value even when it succeeds.
31374         (print_errno_message) [!LIBC]: Fall back on strerror if
31375         __strerror_r fails.
31376
31377         * lib/path-concat.c (mempcpy): Don't define if a system header defines
31378         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
31379         (longest_relative_suffix): New function.
31380         (path_concat): Use it.  Assume first argument is not NULL.
31381         Port to DOS.  Omit redundant separators.
31382         Report an error instead of returning NULL.
31383         Use mempcpy instead of memcpy.
31384         (xpath_concat): Remove: not declared or used.
31385
31386         * lib/same.h: Include <stdbool.h>
31387         (same_name): Return bool, not int.
31388         * lib/same.c (same_name): Likewise.
31389         (errno): Don't declare; we assume C89 or better now.
31390
31391         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
31392         if not already defined.
31393
31394         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
31395         * lib/dup-safer.c (errno): Likewise.
31396
31397 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31398
31399         Merge from coreutils.
31400         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
31401         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
31402         * modules/path-concat: Don't depend on strdup.
31403
31404 2004-08-03  Simon Josefsson  <jas@extundo.com>
31405
31406         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
31407         * lib/progname.h: Don't include stdbool.h.
31408
31409 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
31410
31411         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
31412         * MODULES.html.sh (func_all_modules): Remove fatal.
31413
31414 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
31415
31416         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
31417
31418 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
31419
31420         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
31421         working.
31422
31423 2004-08-02  Simon Josefsson  <jas@extundo.com>
31424
31425         * lib/getsubopt.h: New file, with comments from Bruno Haible.
31426         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
31427         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
31428
31429 2004-08-01  Simon Josefsson  <jas@extundo.com>
31430
31431         * lib/xgetdomainname.c: Include stdlib.h, for free().
31432
31433 2004-07-19  Bruno Haible  <bruno@clisp.org>
31434
31435         * MODULES.html.sh (func_all_modules): Add dummy.
31436
31437 2004-07-16  Simon Josefsson  <jas@extundo.com>
31438
31439         * modules/dummy: New file.
31440
31441 2004-07-16  Simon Josefsson  <jas@extundo.com>
31442
31443         * lib/dummy.c: New file.
31444
31445 2004-07-16  Bruno Haible  <bruno@clisp.org>
31446
31447         * lib/backupfile.h: Add extern "C" for C++.
31448         * lib/closeout.h: Likewise.
31449         * lib/copy-file.h: Likewise.
31450         * lib/findprog.h: Likewise.
31451         * lib/full-write.h: Likewise.
31452         * lib/pathname.h: Likewise.
31453         * lib/progname.h: Likewise.
31454         * lib/stpcpy.h: Likewise.
31455         * lib/stpncpy.h: Likewise.
31456         * lib/strcase.h: Likewise.
31457         * lib/strstr.h: Likewise.
31458         * lib/xalloc.h: Likewise.
31459
31460         * lib/mbswidth.h: Add extern "C" for C++.
31461         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
31462
31463 2004-07-13  Robert Millan  <robertmh@gnu.org>
31464
31465         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
31466
31467 2004-07-09  Simon Josefsson  <jas@extundo.com>
31468
31469         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
31470         failed without this.)
31471
31472 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31473
31474         * modules/chown (Files): Add lib/fchown-stub.c, since
31475         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
31476
31477 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31478
31479         * lib/fchown-stub.c: New file.
31480
31481 2004-06-24  Jim Meyering  <jim@meyering.net>
31482
31483         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
31484
31485 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31486
31487         * modules/argz: Omit "#include".
31488
31489         * MODULES.html.sh (func_all_modules): Add calloc, to match
31490         2004-06-01 addition of calloc module.
31491
31492 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31493
31494         * m4/argz.m4: New file, which is autoupdated from libtool.
31495
31496 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31497
31498         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
31499         libtool.
31500
31501 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31502
31503         * config/srclist-update: Don't insist on "USA." before the
31504         close-comment, as libtool omits the period and puts the */ on a
31505         separate line.
31506         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
31507         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
31508
31509 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
31510
31511         * modules/argz: New file.
31512         * MODULES.html.sh (func_all_modules): Add argz.
31513
31514 2004-06-12  Jim Meyering  <jim@meyering.net>
31515         and  Paul Eggert  <eggert@cs.ucla.edu>
31516
31517         * modules/hash (Files): Add lib/xalloc.h.
31518         * modules/pipe (Depends-on): Add wait-process.
31519         * modules/stat (Depends-on): Add xalloc.
31520         * modules/userspec (Files): Add lib/userspec.h.
31521         * modules/xstrto
31522
31523         Upgrade from gettext-0.13.
31524         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
31525         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
31526         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
31527
31528 2004-06-10  Jim Meyering  <jim@meyering.net>
31529
31530         * lib/calloc.c: New file.
31531
31532 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
31533
31534         * lib/getdate.y (yylex): Allow space between sign and number.
31535         Problem reported by Dan Jacobson.
31536
31537 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
31538
31539         Merge from coreutils CVS.
31540
31541         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
31542         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
31543         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
31544         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
31545         xstrtol.m4: Fix copyright date and/or serial number.
31546
31547         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
31548         See if we need an fchown replacement.
31549         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
31550         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
31551         and use the replacement function if we detect either defect.
31552
31553         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
31554         gl_UTIMECMP.
31555
31556 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
31557         and  Jim Meyering  <jim@meyering.net>
31558
31559         Merge from coreutils CVS.
31560
31561         * lib/stat-macros.h: New file, with contents from file-type.h
31562         and coreutils' system.h.
31563         * lib/file-type.c: Include "stat-macros.h".
31564         * lib/file-type.h (file_type): Move all macro definitions to new file,
31565         stat-macros.h.
31566
31567         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
31568         Wrap old code with this conditional.
31569         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
31570         function that does not dereference symlinks.
31571         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
31572
31573         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
31574         dependency problems.
31575         (xreadlink): Accept new arg SIZE, for efficiency.
31576         All decls and uses changed.
31577         * lib/xreadlink.h: Include <stddef.h>, for size_t.
31578
31579         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
31580         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
31581
31582         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
31583         sysexits.h.
31584
31585 2004-06-01  Jim Meyering  <jim@meyering.net>
31586
31587         * m4/calloc.m4: New file.
31588
31589 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
31590
31591         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
31592         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
31593         Also, fix a typo in a diagnostic.
31594
31595 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
31596
31597         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
31598         or AC_FUNC_REALLOC.
31599
31600 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
31601
31602         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
31603         macros to be defined.
31604         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
31605         the allocator returns NULL because the requested size is zero.
31606
31607 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31608
31609         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
31610         var.  Add comment explaining why libc still defines it.  This
31611         merges the following patch from glibc:
31612         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
31613
31614 2004-05-20  Andreas Schwab  <schwab@suse.de>
31615
31616         * m4/free.m4: Replace free if it not known to work, not the other
31617         way round.
31618
31619 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31620
31621         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
31622         present in glibc since revision 1.1 of this file.
31623         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
31624         obstack_alignment_mask, obstack_alloc, obstack_base,
31625         obstack_blank, obstack_blank_fast, obstack_chunk_size,
31626         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
31627         obstack_grow0, obstack_init, obstack_int_grow,
31628         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
31629         obstack_next_free, obstack_object_size, obstack_ptr_grow,
31630         obstack_ptr_grow_fast, obstack_room): Remove declarations of
31631         nonexistent functions.
31632
31633 2004-05-18  Karl Berry  <karl@gnu.org>
31634
31635         * config/srclist.txt: break link for vasnprintf.c.
31636
31637 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31638
31639         Port obstack to the AS/400, where pointers are 16 bytes wide and
31640         you cannot cast an integer to a valid pointer.  This patch is
31641         currently waiting to be integrated into glibc; see
31642         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
31643
31644         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
31645         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
31646         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
31647         (struct obstack): temp member is now a union of a pointer and
31648         an integer, instead of an integer.  All integer uses changed.
31649         This does not affect the physical layout of struct obstack,
31650         except on hosts (like the AS/400) where the size or alignment of
31651         void * is greater than that of ptrdiff_t.
31652         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
31653         __STDC__)]: Store temporary in pointer member of union, not
31654         integer member.
31655         * lib/obstack.c: Include <stddef.h>, for offsetof.
31656         (struct fooalign): Remove; it doesn't need a name.
31657         (union fooround): Change double to long double, and add void *.
31658         (DEFAULT_ALIGNMENT): Use offsetof to compute.
31659         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
31660         not a macro.  Hence the values are always int; so remove all
31661         casts-to-int in uses.
31662
31663 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31664
31665         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
31666         we can get this patch merged into glibc.
31667
31668 2004-05-17  Derek R. Price  <derek@ximbiot.com>
31669             Paul Eggert  <eggert@cs.ucla.edu>
31670
31671         * m4/argp: Depend on alloca.
31672
31673 2004-05-17  Derek R. Price  <derek@ximbiot.com>
31674             Paul Eggert  <eggert@cs.ucla.edu>
31675
31676         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
31677         freecoding.
31678
31679 2004-05-17  Bruno Haible  <bruno@clisp.org>
31680
31681         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
31682         precision that consists of a '.' followed by an empty digit string.
31683         Patch by Tor Lillqvist <tml@iki.fi>.
31684
31685 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31686
31687         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
31688         for backward compatibility with older code.  We need our own
31689         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
31690         it under some other name, and our alloca.h will define it.
31691
31692 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31693             Derek Price  <derek@ximbiot.com>
31694
31695         * lib/alloca.c: Include <alloca.h>, to get our interface.
31696         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
31697         include <alloca.h> first.  Use C89 prototype for alloca; this
31698         requires including <stddef.h> for size_t.  Use extern "C" if C++.
31699         Use #elif for simplicity, since we can assume C89 now.
31700         Don't try to source the system alloca.h since it will not be found
31701         and to prevent recursively including its replacement.
31702         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
31703         * lib/regex.c: Likewise.
31704
31705 2004-05-16  Derek Price  <derek@ximbiot.com>
31706             Paul Eggert  <eggert@cs.ucla.edu>
31707
31708         getline cleanup.  This changes the getndelim2 API: both order of
31709         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
31710         no delimiter).
31711
31712         * lib/getline.c: Don't include stddef.h or stdio.h, since our
31713         interface does that.
31714         (getline): Always use getdelim, so that we don't have two
31715         copies of this code.
31716         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
31717         if available.
31718         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
31719         (GETNDELIM2_MAXIMUM): New macro.
31720         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
31721         instead of the old practice of delim2==0.  All callers changed.
31722         Return -1 on overflow, instead of returning junk.
31723         Do not set *linesize unless allocation succeeds.
31724         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
31725         that we include sys/types.h.
31726         * lib/getnline.h: Likewise.
31727         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
31728         (getndelim2): Reorder arguments.
31729         * lib/getnline.c (getnline, getndelim):
31730         Don't discard the NMAX argument.
31731         (getnline): Invoke getndelim, to avoid code duplication.
31732         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
31733         of (size_t) -1 by callers of the getnline family.
31734
31735 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31736
31737         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
31738         Check for gettimeofday.
31739         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
31740         Check for settimeofday, stime.
31741
31742 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31743
31744         * lib/nanosleep.c (suspended): Change its type from int to
31745         sig_atomic_t volatile.
31746         (first_call): Make it private to rpl_nanosleep, and have it
31747         be zero initially as that's a bit faster.
31748         (my_usleep): Round up fractional times instead of truncating them,
31749         as this is the usual meaning for 'sleep'.
31750
31751         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
31752         doesn't work.
31753         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
31754         (ENOSYS): Define if not defined.
31755         (settime): Fall back on stime if it exists and settimeofday fails.
31756         But don't bother with fallbacks if a method fails with errno == EPERM.
31757
31758 2004-05-11  Jim Meyering  <jim@meyering.net>
31759
31760         Prior to this change, the save_cwd caller required read access to the
31761         current directory on most systems (ones with the fchdir function).
31762
31763         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
31764         fails, try write-only, and finally, resort to using xgetcwd.
31765
31766 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
31767
31768         * lib/obstack.c, obstack.h: Import changes from libc.
31769
31770 2004-04-28  Bruno Haible  <bruno@clisp.org>
31771
31772         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
31773         also implicitly appends .exe to executables.
31774         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
31775         accepts Windows pathnames.
31776         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31777         Treat Cygwin like Windows, since it now accepts Windows pathnames.
31778         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31779         Treat Cygwin like Windows, since it now accepts Windows pathnames.
31780         Reported by Derek Robert Price <derek@ximbiot.com>.
31781
31782 2004-04-21  Karl Berry  <karl@gnu.org>
31783
31784         * config/srclist.txt (localcharset.c): break sync.
31785
31786 2004-04-20  Paul Eggert  <eggert@twinsun.com>
31787
31788         * m4/host-os.m4: Add a copyright notice.
31789
31790 2004-04-20  Jim Meyering  <jim@meyering.net>
31791
31792         Change UTILS_ to gl_ in AC_DEFINE'd names.
31793         Change utils_- and jm_-prefixed variables, too.
31794         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
31795         UTILS_FUNC_MKDIR_TRAILING_SLASH.
31796         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
31797
31798         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
31799         Don't emit trailing blanks.
31800         Also rename jm_-prefixed variables to have gl_ prefix.
31801
31802         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
31803         Also rename jm_-prefixed variables to have gl_ prefix.
31804
31805         * m4/jm-macros.m4: Reflect the renamings.
31806         * m4/prereq.m4: Likewise.
31807
31808 2004-04-20  Jim Meyering  <jim@meyering.net>
31809
31810         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
31811         memory.
31812
31813 2004-04-20  Jim Meyering  <jim@meyering.net>
31814             Bruno Haible  <bruno@clisp.org>
31815
31816         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
31817         memory when realloc fails.
31818
31819 2004-04-19  Jim Meyering  <jim@meyering.net>
31820
31821         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
31822         now that readutmp.c may call `free (0)'.
31823
31824 2004-04-19  Bruno Haible  <bruno@clisp.org>
31825
31826         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
31827         * m4/inttypes_h.m4: Likewise.
31828         * m4/stdint_h.m4: Likewise.
31829         * m4/intmax_t.m4: Likewise.
31830         * m4/uintmax_t.m4: Likewise.
31831
31832 2004-04-18  Jim Meyering  <jim@meyering.net>
31833
31834         * m4/prereq.m4: Don't forbid jm_ prefix.
31835
31836         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
31837         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
31838         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
31839         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
31840         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
31841         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
31842         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
31843         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
31844         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
31845         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
31846         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
31847         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
31848         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
31849         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
31850         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
31851         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
31852         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
31853         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
31854         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
31855
31856 2004-04-18  Jim Meyering  <jim@meyering.net>
31857
31858         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
31859         failure, don't leak memory and do call END_UTMP_ENT.
31860
31861 2004-04-16  Jim Meyering  <jim@meyering.net>
31862
31863         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
31864         coreutils' stat program.
31865         (gl_PREREQ): Don't require jm_PREREQ_STAT.
31866
31867 2004-04-11  Paul Eggert  <eggert@twinsun.com>
31868
31869         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
31870         C89.
31871         (CHAR_BIT): Remove, since we assume C89.
31872         Include <stdint.h> if available, as per current Autoconf CVS advice.
31873
31874 2004-03-31  Jim Meyering  <jim@meyering.net>
31875
31876         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
31877         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
31878         * m4/xalloc.m4: Likewise.
31879
31880 2004-03-30  Paul Eggert  <eggert@twinsun.com>
31881
31882         Merge from coreutils.
31883
31884         * m4/inttostr.m4: New file.
31885         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
31886         Require AM_STDBOOL_H and gl_TIMESPEC instead.
31887         Require gl_CLOCK_TIME.
31888         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
31889
31890 2004-03-30  Paul Eggert  <eggert@twinsun.com>
31891
31892         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
31893         not bool, to be more consistent with Unix conventions.
31894         Suggested by Bruno Haible.
31895
31896         Merge from coreutils.
31897
31898         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
31899         * lib/umaxtostr.c: New files.
31900
31901         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
31902         the usual <time.h> dance.
31903         (get_date): Change signature to support fractional time stamps.
31904         All callers changed.
31905         * lib/getdate.y: Include "getdate.h" first, as we can now
31906         assume C89 and don't need to worry about 'const'.
31907         Similarly, include "unlocked-io.h" near start, not in middle.
31908         Include <limits.h>.
31909         (textint.value): Use long int rather than int.
31910         (textint.digits): Use size_t rather than int.
31911         (BILLION, LOG10_BILLION): New constants.
31912         (parser_control): New member rel_ns.  Members day_ordinal,
31913         time_zone, month, day, hour, minutes, rel_year, rel_month,
31914         rel_day, rel_hour, rel_minutes, rel_seconds
31915         are now long int, not int.  Member seconds is now struct timespec,
31916         not int.  New member timespec_seen.  Members dates_seen, days_seen,
31917         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
31918         not int.
31919         (%union.intval): Now long int, not int.
31920         New member timespec.
31921         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
31922         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
31923         (spec): Now is a timespec or an item list.
31924         (timespec, items): New nonterminals.
31925         (time, rel, relunit, number, get_date):
31926         Add support for fractional seconds.
31927         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
31928         (gmtime, localtime, mktime): Remove decls; not needed with C89.
31929         (to_hour): First arg is now long int, not int.
31930         (to_year): Returns long int, not int.
31931         Don't treat year -70 like 70.
31932         (tm_diff): Returns long int, not int.
31933         (lookup_word): Use bool instead of int when appropriate.
31934         (yylex): Use size_t for count, not int.
31935         Detect overflow when parsing large integer constants.
31936         Add support for fractions.
31937         (get_date): Make pointers 'const' if possible.
31938         Use more-portable code to detect integer overflow.
31939         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
31940         Don't use ctime; it's not reliable if the year has >4 digits.
31941
31942         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
31943         This is for compatibility with BSD.
31944
31945         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
31946         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
31947         From coreutils' system.h.
31948
31949         * lib/userspec.c: Don't include "posixver.h".
31950         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
31951         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
31952         compatible extension.  Simplify code by removing a boolean int
31953         that was always nonzero if a string was nonnull.
31954
31955 2004-03-30  Jim Meyering  <jim@meyering.net>
31956
31957         Merge from coreutils.
31958
31959         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
31960         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
31961         on some systems one must include <grp.h> before it.
31962         Reported by Christian Krackowizer.
31963
31964 2004-03-30  Jim Meyering  <jim@meyering.net>
31965
31966         Merge from coreutils.
31967
31968         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
31969
31970         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
31971         an empty input stream.
31972
31973         * lib/readtokens.c: Include <stdbool.h>.
31974         (readtoken): Use `size_t' rather than int/long.
31975         All callers adjusted.
31976         Use `bool' rather than `int' where appropriate.
31977         Use memset rather than an explicit loop.
31978         Use x2nrealloc rather than xrealloc.
31979         Allow the use of `\0' as a delimiter.
31980         (readtokens): Likewise.
31981         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
31982
31983 2004-03-30  Jim Meyering  <jim@meyering.net>
31984
31985         * m4/realloc.m4: Remove file, since now it does no more than
31986         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
31987         the `configure.ac' section of module/realloc.
31988         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
31989
31990 2004-03-30  Bruno Haible  <bruno@clisp.org>
31991
31992         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
31993         nonnull.
31994
31995 2004-03-29  Paul Eggert  <eggert@twinsun.com>
31996
31997         Merge changes to getloadavg.c from coreutils and Emacs.
31998
31999         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
32000         Define to an expression, not to the empty string.
32001         Include cloexec.h and xalloc.h.
32002         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
32003         Use set_cloexec_flag rather than rolling our own.
32004         * lib/cloexec.c, lib/cloexec.h: New files.
32005
32006 2004-03-29  Paul Eggert  <eggert@twinsun.com>
32007
32008         * m4/cloexec.m4: New file.
32009
32010 2004-03-18  Paul Eggert  <eggert@twinsun.com>
32011
32012         * lib/getopt.h: Sync with libc CVS.
32013
32014 2004-03-18  Paul Eggert  <eggert@twinsun.com>
32015             Bruno Haible  <bruno@clisp.org>
32016
32017         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
32018         mbswidth.
32019
32020 2004-03-18  Paul Eggert  <eggert@twinsun.com>
32021             Bruno Haible  <bruno@clisp.org>
32022
32023         * lib/mbswidth.h: Include <wchar.h> only if
32024         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
32025         <wchar.h>.
32026         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
32027
32028 2004-03-09  Paul Eggert  <eggert@twinsun.com>
32029
32030         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
32031         Sync with libc CVS.
32032         * lib/getopt_int.h: New file, also synced from libc.
32033
32034 2004-03-09  Paul Eggert  <eggert@twinsun.com>
32035
32036         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
32037         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
32038         Bring back getopt.c, getopt.h, getopt1.c.
32039
32040 2004-03-07  Paul Eggert  <eggert@twinsun.com>
32041
32042         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
32043         All uses changed.  Check for sa_sigaction member; this fixes
32044         a bug first reported by Jason Andrade in
32045         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
32046
32047 2004-03-07  Paul Eggert  <eggert@twinsun.com>
32048
32049         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
32050         '#if' expressions.  Unlike the code it replaces, it does not
32051         depend on (defined _SC_PAGESIZE).  However, it does depend on
32052         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
32053         first reported by Jason Andrade in
32054         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
32055
32056 2004-02-25  Simon Josefsson  <jas@extundo.com>
32057
32058         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
32059
32060 2004-02-25  Simon Josefsson  <jas@extundo.com>
32061
32062         * lib/strdup.h: New file.
32063         * lib/strdup.c: Include it.
32064         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
32065         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
32066
32067 2004-02-23  Karl Berry  <karl@gnu.org>
32068
32069         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
32070         (from fencepost.gnu.org:/gd/gnuorg).
32071
32072 2004-02-23  Karl Berry  <karl@gnu.org>
32073
32074         * config/srclistvars.sh (GNUORG) [karl]: redefine.
32075         * config/srclist.txt: add maintain/standards documents.
32076
32077 2004-02-18  Bruno Haible  <bruno@clisp.org>
32078
32079         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
32080         Reported by Derek Robert Price <derek@ximbiot.com>.
32081
32082 2004-02-16  Karl Berry  <karl@gnu.org>
32083
32084         * config/mkinstalldirs, install-sh: update from automake.
32085
32086 2004-02-06  Karl Berry  <karl@gnu.org>
32087
32088         * m4/po.m4: update from gettext 0.14.1.
32089
32090 2004-02-06  Karl Berry  <karl@gnu.org>
32091
32092         * lib/config.charset: update from gettext 0.14.1.
32093
32094 2004-02-05  Paul Eggert  <eggert@twinsun.com>
32095
32096         Add comments and code, prompted by suggestions from Bruno Haible
32097         for sh-quote.
32098         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
32099         describing the enum quoting_style values.
32100         * lib/quotearg.c (quotearg_alloc): New function.
32101         (quotearg_buffer_restyled): Treat lone { and } as special.
32102         Treat = as special.  Work around bug with older shells
32103         that "see" a '\' that is really the 2nd byte of a multibyte char.
32104         Quote empty string with shell_quoting_style.
32105
32106 2004-02-03  Bruno Haible  <bruno@clisp.org>
32107
32108         * m4/pipe.m4: New file, from GNU gettext.
32109
32110 2004-02-03  Bruno Haible  <bruno@clisp.org>
32111
32112         * lib/pipe.h: New file, from GNU gettext.
32113         * lib/pipe.c: New file, from GNU gettext.
32114
32115 2004-01-27  Bruno Haible  <bruno@clisp.org>
32116
32117         * m4/execute.m4: New file, from GNU gettext.
32118
32119 2004-01-27  Bruno Haible  <bruno@clisp.org>
32120
32121         * lib/execute.h: New file, from GNU gettext.
32122         * lib/execute.c: New file, from GNU gettext.
32123         * lib/w32spawn.h: New file, from GNU gettext.
32124
32125 2004-01-24  Paul Eggert  <eggert@twinsun.com>
32126
32127         Merge from diffutils.
32128
32129         * lib/file-type.c (file_type): Add typed memory objects.
32130         * lib/file-type.h (S_TYPEISTMO): New macro.
32131
32132         * lib/c-stack.h (c_stack_action): Remove argv argument.
32133         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
32134         (die): Don't calculate message unless segv_action returns.
32135         (get_stack_location, min_address_from_argv, max_address_from_argv,
32136         volatile stack_base, volatile_stack_size): Remove.
32137         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
32138         that every segmentation violation is a stack overflow.  (Ouch!)
32139         See Debian bug 136249 (still outstanding) for more info about why
32140         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
32141
32142 2004-01-24  Paul Eggert  <eggert@twinsun.com>
32143
32144         Exit-status fix from coreutils.
32145
32146         Use exit_failure consistently in place of EXIT_FAILURE,
32147         so that program exit statuses are consistent on failure.
32148
32149         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
32150         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
32151         * lib/argmatch.h: Comment fix to match the above.
32152         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
32153         Now a macro referring to exit_failure, instead of a separate
32154         variable.  Include "exitfail.h" to get it.
32155         * lib/xstrtol.h: Include "exitfail.h".
32156         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
32157
32158         * lib/long-options.c (parse_long_options): Use prototype
32159         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
32160         for clarity.
32161
32162 2004-01-21  Jim Meyering  <jim@meyering.net>
32163
32164         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
32165         so as not to conflict with a different-sized __mktime_internal
32166         function in GNU libc.
32167         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
32168         Problem building statically-linked `ls' reported by Michael Brunnbauer.
32169
32170 2004-01-20  Karl Berry  <karl@gnu.org>
32171
32172         * config/config.guess: update from config.
32173
32174         * config/srclistvars.sh: GNUWWWLICENSES for karl.
32175
32176 2004-01-20  Bruno Haible  <bruno@clisp.org>
32177
32178         Safer stack allocation.
32179         * lib/setenv.c: Include allocsa.h.
32180         (alloca): Remove fallback definition.
32181         (freea): Remove macro.
32182         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
32183         instead of freea.
32184
32185 2004-01-20  Bruno Haible  <bruno@clisp.org>
32186
32187         * m4/eealloc.m4: New file, from GNU gettext.
32188
32189 2004-01-20  Bruno Haible  <bruno@clisp.org>
32190
32191         * m4/allocsa.m4: New file, from GNU gettext.
32192
32193 2004-01-20  Bruno Haible  <bruno@clisp.org>
32194
32195         * lib/xallocsa.h: New file, from GNU gettext.
32196         * lib/xallocsa.c: New file, from GNU gettext.
32197
32198 2004-01-20  Bruno Haible  <bruno@clisp.org>
32199
32200         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
32201
32202 2004-01-20  Bruno Haible  <bruno@clisp.org>
32203
32204         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
32205         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
32206         specially.
32207
32208 2004-01-20  Bruno Haible  <bruno@clisp.org>
32209
32210         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
32211         patch.
32212
32213 2004-01-20  Bruno Haible  <bruno@clisp.org>
32214
32215         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
32216
32217 2004-01-20  Bruno Haible  <bruno@clisp.org>
32218
32219         * lib/eealloc.h: New file.
32220
32221 2004-01-20  Bruno Haible  <bruno@clisp.org>
32222
32223         * lib/binary-io.h: Avoid warnings on Cygwin.
32224
32225 2004-01-20  Bruno Haible  <bruno@clisp.org>
32226
32227         * lib/allocsa.h: New file, from GNU gettext.
32228         * lib/allocsa.c: New file, from GNU gettext.
32229
32230 2004-01-18  Karl Berry  <karl@gnu.org>
32231
32232         * doc/gpl.texi, doc/lgpl.texi: new files.
32233
32234 2004-01-18  Karl Berry  <karl@gnu.org>
32235
32236         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
32237         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
32238
32239 2004-01-15  Paul Eggert  <eggert@twinsun.com>
32240
32241         Merge from coreutils.
32242
32243         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
32244         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
32245         (gl_DEFAULT_POSIX2_VERSION): Move
32246         the documentation from 'configure' into 'config.hin',
32247         so that 'configure --help' isn't burdened by it and
32248         we don't have to worry about its formatting there.
32249         Reword the documentation so that it's more succinct
32250         and can be run together into a single paragraph.
32251         * m4/same.m4 (gl_SAME): Check for pathconf.
32252
32253 2004-01-15  Paul Eggert  <eggert@twinsun.com>
32254
32255         Merge from coreutils.
32256
32257         * lib/posixver.c: Include posixver.h.
32258
32259         * lib/same.c: Include <stdbool.h>, <limits.h>.
32260         (_POSIX_NAME_MAX): Define if not defined.
32261         (MIN): New macro.
32262         (same_name): If file names are silently truncated, report
32263         that the file names are the same if they are the same after
32264         the silent truncation.
32265
32266         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
32267         conversion function.
32268         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
32269         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
32270         longer needed.
32271
32272 2004-01-15  Jim Meyering  <jim@meyering.net>
32273
32274         Merge from coreutils.
32275
32276         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
32277         if no library is required.
32278         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
32279         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
32280         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
32281         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
32282         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
32283         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
32284         value, $ac_cv_search_crypt, if it's "none required".
32285         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
32286         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
32287         not gl_FUNC_GETLOADAVG.
32288         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
32289         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
32290
32291 2004-01-15  Jim Meyering  <jim@meyering.net>
32292
32293         Merge from coreutils.
32294
32295         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
32296         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
32297         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
32298
32299         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
32300         optional configure-time default.
32301
32302         * lib/version-etc.c (version_etc_copyright): Update copyright date.
32303
32304         * lib/xreadlink.c (xreadlink): Correct outdated comment.
32305
32306 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
32307
32308         Merge from coreutils.
32309
32310         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
32311         value, $ac_cv_search_nanosleep, if it's "none required".
32312
32313 2004-01-14  Paul Eggert  <eggert@twinsun.com>
32314
32315         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
32316         with like-named macro in fnmatch.c.
32317         (EXT): Use an internal constant instead.
32318
32319         Merge fnmatch patches from glibc.
32320         * lib/fnmatch.c (mbsinit): Remove define.
32321         Add libc_hidden_ver (__fnmatch, fnmatch).
32322         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
32323         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
32324
32325 2004-01-14  Karl Berry  <karl@gnu.org>
32326
32327         * config/install-sh: update from automake.
32328
32329 2004-01-13  Karl Berry  <karl@gnu.org>
32330
32331         * config/install-sh: update from automake.
32332
32333 2004-01-09  Karl Berry  <karl@gnu.org>
32334
32335         * config/install-sh: update from automake.
32336
32337 2004-01-05  Karl Berry  <karl@gnu.org>
32338
32339         * config/config.{sub,guess}: update from config.
32340
32341 2003-12-31  Karl Berry  <karl@gnu.org>
32342
32343         * config/depcomp: update from automake.
32344
32345 2003-12-14  Karl Berry  <karl@gnu.org>
32346
32347         * lib/config.charset: update from gettext-runtime.
32348
32349 2003-12-03  Paul Eggert  <eggert@twinsun.com>
32350
32351         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
32352         Bug reported by Alfred M. Szmidt.
32353
32354 2003-12-03  Bruno Haible  <bruno@clisp.org>
32355
32356         * m4/gettext.m4: Upgrade from gettext-0.13.
32357         * m4/po.m4: Upgrade from gettext-0.13.
32358         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
32359         * m4/intmax.m4: New file, from gettext-0.13.
32360         * m4/printf-posix.m4: New file, from gettext-0.13.
32361
32362 2003-11-29  Karl Berry  <karl@gnu.org>
32363
32364         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
32365
32366 2003-11-25  Paul Eggert  <eggert@twinsun.com>
32367             Bruno Haible  <bruno@clisp.org>
32368
32369         * lib/printf-parse.h: Don't include sys/types.h.
32370         (ARG_NONE): New macro.
32371         (char_directive): Change type of *arg_index fields to size_t.
32372         * lib/printf-parse.c: Don't include sys/types.h.
32373         (SSIZE_MAX): Remove macro.
32374         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
32375         Remove unnecessary overflow check.
32376         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
32377         fields.
32378
32379 2003-11-25  Bruno Haible  <bruno@clisp.org>
32380
32381         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
32382
32383 2003-11-25  Bruno Haible  <bruno@clisp.org>
32384
32385         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
32386         gt_TYPE_SSIZE_T.
32387
32388 2003-11-24  Paul Eggert  <eggert@twinsun.com>
32389
32390         * modules/alloca: Remove dependency on xalloc.
32391
32392 2003-11-24  Paul Eggert  <eggert@twinsun.com>
32393
32394         * lib/alloca.c: Remove dependency on xalloc module.
32395         (xalloc_die): Remove.
32396         (memory_full) [!defined emacs]: New macro.
32397         [!defined emacs]: Don't include xalloc.h.
32398         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
32399         address arithmetic overflows.  Change datatypes a bit to avoid
32400         unnecessary casts.
32401
32402 2003-11-22  Jim Meyering  <jim@meyering.net>
32403
32404         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
32405         s/size/size_t/.
32406
32407 2003-11-21  Karl Berry  <karl@gnu.org>
32408
32409         * config/config.{sub,guess}: update from config.
32410
32411 2003-11-18  Karl Berry  <karl@gnu.org>
32412
32413         * config/config.{sub,guess}: update from config.
32414
32415         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
32416
32417 2003-11-17  Paul Eggert  <eggert@twinsun.com>
32418
32419         * README: Mention that S+T cannot overflow if S is the size of
32420         an existing object and T is sufficiently small.
32421
32422 2003-11-17  Jim Meyering  <jim@meyering.net>
32423
32424         On systems without utime and without a utimes function capable of
32425         dealing with a NULL struct utimbuf* argument, this utime replacement
32426         could -- in unusual circumstances -- leak a file descriptor.
32427         * lib/utime.c: Include <unistd.h> and <errno.h>.
32428         (utime_null): Be sure to close `fd' and to preserve errno.
32429         Reported by Geoff Collyer via Arnold Robbins.
32430
32431 2003-11-17  Bruno Haible  <bruno@clisp.org>
32432
32433         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
32434         (Depends-on): Add xsize.
32435
32436 2003-11-17  Bruno Haible  <bruno@clisp.org>
32437
32438         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
32439
32440 2003-11-17  Bruno Haible  <bruno@clisp.org>
32441
32442         * lib/vasnprintf.c (alloca): Remove fallback definition.
32443         (freea): Remove definition.
32444         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
32445         Reported by Paul Eggert.
32446
32447 2003-11-16  Paul Eggert  <eggert@twinsun.com>
32448             Bruno Haible  <bruno@clisp.org>
32449
32450         Protect against address arithmetic overflow.
32451         * lib/printf-args.h: Include stddef.h.
32452         (arguments): Change type of field 'count' to size_t.
32453         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
32454         'unsigned int' where appropriate.
32455         * lib/printf-parse.h: Include sys/types.h.
32456         (char_directive): Change type of *arg_index fields to ssize_t.
32457         (char_directives): Change type of fields 'count', max_*_length to
32458         size_t.
32459         * lib/printf-parse.c: Include sys/types.h and xsize.h.
32460         (SSIZE_MAX): Define fallback value.
32461         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
32462         instead of 'int' where appropriate. Check a_allocated, d_allocated
32463         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
32464         * lib/vasnprintf.c: Include xsize.h.
32465         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
32466         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
32467         overflow. Avoid wraparound when converting a width or precision from
32468         decimal to binary.
32469
32470 2003-11-16  Bruno Haible  <bruno@clisp.org>
32471
32472         Update from GNU gettext.
32473         * lib/printf-parse.c: Generalize to it can be compiled for wide
32474         strings.
32475         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
32476         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
32477         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
32478         SNPRINTF): New macros.
32479         Don't include <alloca.h> if the file is used inside libintl.
32480         (local_wcslen): New function, for Solaris 2.5.1.
32481         (VASNPRINTF): Use it instead of wcslen.
32482
32483 2003-11-16  Bruno Haible  <bruno@clisp.org>
32484
32485         * lib/xsize.h (xmax): New function.
32486         (xsum, xsum3, xsum4): Declare as "pure" functions.
32487
32488 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32489
32490         * modules/xalloc (Files): Undo latest change, since xalloc.h
32491         no longer needs SIZE_MAX or PTRDIFF_MAX.
32492
32493 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32494
32495         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
32496         gl_PTRDIFF_MAX.
32497
32498 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32499
32500         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
32501         "return", to pacify some unknown compiler.  Problem reported
32502         by Joerg Schilling.
32503
32504 2003-11-12  Paul Eggert  <eggert@twinsun.com>
32505
32506         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
32507         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
32508         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
32509         heuristic is just as accurate as far as we know, and it removes a
32510         dependency on size_max.m4 and ptrdiff_max.m4.
32511
32512 2003-11-11  Bruno Haible  <bruno@clisp.org>
32513
32514         * modules/xsize (Files): Add m4/size_max.m4.
32515         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
32516
32517 2003-11-11  Bruno Haible  <bruno@clisp.org>
32518
32519         * m4/size_max.m4: New file.
32520         * m4/ptrdiff_max.m4: New file.
32521         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
32522         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
32523         (gl_XALLOC): Invoke it.
32524
32525 2003-11-11  Bruno Haible  <bruno@clisp.org>
32526
32527         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
32528         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
32529         defined.
32530
32531 2003-11-10  Paul Eggert  <eggert@twinsun.com>
32532
32533         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
32534         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
32535         rejected some allocations of exactly SIZE_MAX - 2 bytes.
32536         From Bruno Haible.
32537         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
32538         not (size_t) -1, since it's defined here.
32539
32540 2003-11-09  Karl Berry  <karl@gnu.org>
32541
32542         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
32543
32544 2003-11-06  Paul Eggert  <eggert@twinsun.com>
32545
32546         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
32547         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
32548         Reject sizes of exactly SIZE_MAX bytes.
32549         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
32550         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
32551
32552 2003-11-05  Bruno Haible  <bruno@clisp.org>
32553
32554         * lib/xsize.h: Include limits.h, to avoid a possible collision with
32555         SIZE_MAX defined in <limits.h> on Solaris.
32556
32557 2003-11-04  Jim Meyering  <jim@meyering.net>
32558
32559         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
32560         variable names, rather than @VAR@.
32561         * modules/poll: Likewise.
32562
32563 2003-11-04  Bruno Haible  <bruno@clisp.org>
32564
32565         * modules/xsize: New file.
32566         * modules/linebreak: Depend on xsize.
32567         * MODULES.html.sh (func_all_modules): Add xsize.
32568
32569 2003-11-04  Bruno Haible  <bruno@clisp.org>
32570
32571         * m4/xsize.m4: New file.
32572
32573 2003-11-04  Bruno Haible  <bruno@clisp.org>
32574
32575         * lib/xsize.h: New file.
32576         * lib/linebreak.c: Include xsize.h.
32577         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
32578         argument for overflow.
32579         Suggested by Paul Eggert.
32580
32581 2003-11-03  Karl Berry  <karl@gnu.org>
32582
32583         * config/config.{guess,sub}: update from config.
32584
32585 2003-11-03  Jim Meyering  <jim@meyering.net>
32586
32587         * modules/userspec (lib_SOURCES): Add userspec.h.
32588         (Include): Add "userspec.h".
32589         Improve description.
32590
32591 2003-11-03  Jim Meyering  <jim@meyering.net>
32592
32593         * lib/userspec.c: Include "userspec.h".
32594         * lib/userspec.h: New file.
32595
32596 2003-11-03  Bruno Haible  <bruno@clisp.org>
32597
32598         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
32599
32600 2003-11-03  Bruno Haible  <bruno@clisp.org>
32601
32602         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
32603         available, to avoid (extremely rare) race condition.
32604         Suggested by Paul Eggert.
32605
32606 2003-11-02  Karl Berry  <karl@gnu.org>
32607
32608         * config/srclist.txt (vasprintf.c): sync broken, sigh.
32609
32610 2003-10-31  Paul Eggert  <eggert@twinsun.com>
32611
32612         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
32613         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
32614         (read_filesystem_list): Set and use me_type_malloced.
32615         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
32616         whatever the type happens to be), for brevity and consistency.
32617         Check for size calculation overflow on Alphas running OSF/1.
32618
32619 2003-10-31  Jim Meyering  <jim@meyering.net>
32620
32621         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
32622
32623         * lib/linebuffer.c: Include <string.h> for declaration of memset.
32624
32625 2003-10-30  Paul Eggert  <eggert@twinsun.com>
32626             Bruno Haible  <bruno@clisp.org>
32627
32628         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
32629         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
32630
32631 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32632
32633         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
32634         netbsd*-gnu*.  Suggested by Robert Millan.
32635
32636 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32637
32638         * modules/group-member: Depend on stdbool.
32639
32640 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32641
32642         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
32643
32644 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32645
32646         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
32647         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
32648         after the 'gnu' in these cases.  This fixes some bugs in the
32649         previous change, and is based on suggestions by Robert Millan.
32650
32651 2003-10-29  Paul Eggert  <eggert@twinsun.com>
32652
32653         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
32654         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
32655         no longer needed.
32656         * lib/quotearg.c (quotearg_n_options): Use it.
32657         * lib/group-member.c: Include <stdbool.h>.
32658         (free_group_info): Arg is now const *; don't free arg.
32659         (get_group_info): Now returns bool and accepts struct group_info *,
32660         rather than returning a malloc'ed struct group_info *.
32661         All uses changed.  Check for overflow in internal size calculation.
32662
32663         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
32664         rather than xmalloc/xrealloc.
32665         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
32666         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
32667         conformance bug: the old code used a pointer after freeing the
32668         storage that it addressed.
32669         * lib/hash.c (hash_initialize): Simplify the code by using
32670         xalloc_oversized rather than doing it by hand.
32671         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
32672         the buffer preserved.  Use free and xmalloc instead.
32673         * lib/quotearg.c (quotearg_n_options): Likewise.
32674         Use a simpler test for size overflow.  Don't use xalloc_oversized
32675         because unsigned int might be wider than size_t (!); this suggests
32676         that we should switch from unsigned int to size_t for slot numbers.
32677
32678 2003-10-28  Paul Eggert  <eggert@twinsun.com>
32679
32680         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
32681         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
32682         NetBSD kernels.  Requested by Richard Stallman.
32683
32684 2003-10-27  Paul Eggert  <eggert@twinsun.com>
32685
32686         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
32687         to allocate the returned structure.  Do not allocate a subarray,
32688         as x2nrealloc will do that.
32689         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
32690         instead of xnrealloc.
32691         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
32692
32693 2003-10-27  Bruno Haible  <bruno@clisp.org>
32694
32695         * lib/stdbool_.h: Better support for BeOS.
32696
32697 2003-10-26  Paul Eggert  <eggert@twinsun.com>
32698
32699         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
32700         now uses inline.
32701
32702 2003-10-26  Paul Eggert  <eggert@twinsun.com>
32703
32704         * lib/xalloc.h (xalloc_oversized): New static inline function, for
32705         callers that want to do their own size-overflow checking.  Include
32706         <stdbool.h>, since xalloc_oversized returns bool.
32707         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
32708         to use xalloc_oversized.
32709
32710         Add two functions x2realloc, x2nrealloc, for programs that grow
32711         arrays dynamically by doubling their sizes.
32712         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
32713         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
32714         New functions.
32715
32716         Port to C99 semantics for 'inline' of external functions.
32717         Bug reported by Bruno Haible.
32718         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
32719         with the old contents of xnmalloc.
32720         (xnmalloc, xmalloc): Use it.
32721         (xnrealloc_inline): New static inline function,
32722         with the old contents of xnrealloc.
32723         (xnrealloc, xrealloc): Use it.
32724
32725         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
32726         that.
32727
32728 2003-10-26  Karl Berry  <karl@gnu.org>
32729
32730         * config/srclist.txt (COPYING.DOC): no longer available from
32731         /gd/gnuorg; don't know where the ultimate source is.
32732
32733 2003-10-25  Paul Eggert  <eggert@twinsun.com>
32734
32735         Fix several address-calculation bugs in the hash modules,
32736         plus some minor code cleanup.
32737
32738         * lib/hash.h: Include <stdbool.h>, for bool.
32739         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
32740         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
32741         hash_get_n_entries, hash_get_max_bucket_length,
32742         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
32743         hash_rehash): Use size_t rather than unsigned.
32744         * lib/hash.c (struct hash_table, hash_get_n_buckets,
32745         hash_get_n_buckets_used, hash_get_n_entries,
32746         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
32747         hash_get_entries, hash_do_for_each, hash_string, is_prime,
32748         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
32749         Likewise.
32750         (SIZE_MAX): Define if not defined.
32751         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
32752         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
32753         hash_print):
32754         Use const * when possible.
32755         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
32756         (check_tuning): Fix bug: if tuning parameters were very close to
32757         0 or 1, rounding errors could have caused subscript violations.
32758         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
32759         (hash_initialize): Add 'fail:' label
32760         to free table and return NULL, and use it to simplify code.
32761         Use calloc rather than clearing the storage ourself.
32762         (hash_initialize, hash_rehash): Check for arithmetic overflow in
32763         buffer size calculations.
32764         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
32765         Include <stddef.h>, for size_t.
32766         * lib/hash-pjw.c (hash_pjw): Likewise.
32767         Switch to method described by Bruno Haible.
32768         Include <limits.h>, for CHAR_BIT.
32769         (SIZE_BITS): New macro.
32770
32771 2003-10-23  Paul Eggert  <eggert@twinsun.com>
32772
32773         * m4/getline.m4 (AM_FUNC_GETLINE):
32774         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
32775         hosts.  Problem reported by Derek Robert Price in
32776         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
32777         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
32778         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
32779
32780 2003-10-21  Paul Eggert  <eggert@twinsun.com>
32781
32782         * lib/getndelim2.c (getndelim2): When size calculation overflows,
32783         ceiling the allocation at NMAX bytes rather than silently
32784         discarding input bytes before NMAX is reached.  This makes
32785         a difference only if NMAX exceeds SIZE_MAX / 2.
32786
32787         * lib/obstack.c: Merge from glibc.
32788         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
32789         Add libc_hidden_def (_obstack_newchunk).
32790         (_obstack_free) [! defined _LIBC]: Remove.
32791         [defined _LIBC]: Make a strong alias from obstack_free, rather than
32792         a clone of the function body.
32793         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
32794         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
32795
32796         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
32797         glibc.
32798         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
32799         arg to memcpy.
32800
32801         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
32802         (obstack_ptr_grow_fast, obstack_int_grow_fast):
32803         Don't use lvalue casts, as GCC plans to remove support for them
32804         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
32805         was also present in the non-GCC version, indicating that this
32806         code had always been buggy and had never been widely used.
32807         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
32808         Use the fast variant of each macro, rather than copying the
32809         definiens of the fast variant; that way, we'll be more likely to
32810         catch future bugs in the fast variants.
32811
32812 2003-10-20  Bruno Haible  <bruno@clisp.org>
32813
32814         * modules/wait-process: New file.
32815         * MODULES.html.sh (func_all_modules): Add wait-process.
32816
32817 2003-10-20  Bruno Haible  <bruno@clisp.org>
32818
32819         * m4/wait-process.m4: New file.
32820
32821 2003-10-20  Bruno Haible  <bruno@clisp.org>
32822
32823         * lib/wait-process.h: New file, from GNU gettext.
32824         * lib/wait-process.c: New file, from GNU gettext.
32825
32826 2003-10-19  Jim Meyering  <jim@meyering.net>
32827
32828         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
32829         HPUX 10.20.
32830
32831 2003-10-18  Karl Berry  <karl@gnu.org>
32832
32833         * config/config.guess: update from config.
32834
32835 2003-10-16  Paul Eggert  <eggert@twinsun.com>
32836
32837         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
32838         (getgroups): First arg is int, not size_t.
32839         Don't let 'free' mangle errno.
32840
32841 2003-10-16  Paul Eggert  <eggert@twinsun.com>
32842
32843         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
32844
32845 2003-10-16  Karl Berry  <karl@gnu.org>
32846
32847         * config/config.{guess,sub}: update from config.
32848
32849 2003-10-16  Jim Meyering  <jim@meyering.net>
32850
32851         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
32852         memcpy.
32853
32854 2003-10-15  Paul Eggert  <eggert@twinsun.com>
32855
32856         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
32857         (SIZE_MAX): Remove.
32858         (new_exclude, add_exclude_file): Initial size no longer needs to
32859         be a power of 2.
32860         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
32861         our own address arithmetic overflow checking.
32862
32863         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
32864         (fnmatch): Do not alloca more than 2000 wide characters;
32865         instead, use malloc for large buffers.
32866         Check for address arithmetic overflow, and return -1
32867         with errno set to ENOMEM in that case.
32868         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
32869         (NEW_PATTERN): Do not alloca more than 8000 bytes;
32870         instead, return -1.  Check for address arithmetic overflow.
32871
32872 2003-10-14  Paul Eggert  <eggert@twinsun.com>
32873
32874         Handle invalid suffixes and overflow independently, so that
32875         callers can treat them independently as needed.  Fix some bugs in
32876         suffix handling, e.g., "100k@" was not diagnosed as an invalid
32877         suffix for a human-readable blocksize.  The major caller-visible
32878         change is the addition of a new
32879         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
32880         that both overflow and suffix chars were found.
32881
32882         * lib/human.c (humblock): Don't check separately for invalid suffix
32883         char; that is xstrtoumax's job (now that its bug is fixed).
32884         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
32885         INTMAX_MAX]: New macros.
32886         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
32887         TYPE_MAXIMUM): New macros.
32888         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
32889         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
32890         if overflow occurs, as it's what __strtol does and it's more useful
32891         in practice.
32892         (__xstrtol): If __strtol reports some error other than ERANGE,
32893         reflect it to the caller as LONGINT_INVALID.  If it reports
32894         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
32895         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
32896         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
32897         value.
32898         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
32899         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
32900         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
32901         [defined UINTMAX_MAX]: New macros.
32902
32903 2003-10-14  Bruno Haible  <bruno@clisp.org>
32904
32905         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
32906
32907 2003-10-14  Bruno Haible  <bruno@clisp.org>
32908
32909         * m4/sig_atomic_t: New file, from GNU gettext.
32910         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
32911
32912 2003-10-14  Bruno Haible  <bruno@clisp.org>
32913
32914         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
32915         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
32916         Also use volatile where needed.
32917
32918 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32919
32920         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
32921         Change maintainer from Bruno Haible to 'all'.
32922
32923 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32924
32925         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
32926
32927 2003-10-12  Paul Eggert  <eggert@twinsun.com>
32928
32929         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
32930         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
32931         and define in terms of the other primitives.
32932         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
32933         (SIZE_MAX): Define if not already defined.
32934         (array_size_overflow): New function.
32935         (xalloc_die): Abort instead of exiting if 'error' returns.
32936         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
32937         (xmalloc, xrealloc): Use them.
32938         (xcalloc): Check for address arithmetic overflow.
32939         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
32940         a bit faster than strcpy.
32941
32942 2003-10-10  Simon Josefsson  <jas@extundo.com>
32943
32944         * modules/argp (Depends-on): Add restrict and strcase.
32945
32946 2003-10-10  Simon Josefsson  <jas@extundo.com>
32947
32948         * m4/argp.m4: Add AC_C_INLINE.
32949
32950 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32951
32952         Merge getpass from libc, plus a few fixes.
32953
32954         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
32955         Include <stdbool.h>.
32956         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
32957         __fsetlocking to empty.
32958         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
32959         do include <bits/libc-lock.h>.
32960         Do not include <fcntl.h>; not needed.
32961         [_LIBC]: Include <wchar.h>.
32962         (NOTCANCEL_MODE): New macro.
32963         (flockfile, funlockfile) [_LIBC]: New macros.
32964         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
32965         [!_LIBC]: New macros.
32966         (call_fclose): New function.
32967         (getpass): Use it.  Save tty stream separately; this simplifies the
32968         code and makes it more reliable if stdin happens to equal stdout.
32969         Invoke __fsetlocking on tty.
32970         Handle thread cancellation if needed.
32971         Namespace cleanup (use __tcgetattr, __getline).
32972         Use bool for Booleans.
32973         [USE_IN_LIBIO]: Handle wide streams.
32974         [!_LIBC]: Unconditionally do the fseek, since we don't know what
32975         stream might go where.
32976
32977         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
32978         doesn't have to include <stdio.h> before us.
32979         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
32980         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
32981         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
32982         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
32983         if not declared, so that we can use getpass.c code from libc without
32984         rewriting it.
32985         (flockfile, ftrylockfile, funlockfile): New macros.
32986
32987 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32988
32989         * modules/getpass: Depend on stdbool.
32990
32991 2003-10-08  Paul Eggert  <eggert@twinsun.com>
32992
32993         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
32994
32995 2003-10-07  Karl Berry  <karl@gnu.org>
32996
32997         * config/config.{guess,sub}: update from config.
32998
32999 2003-10-06  Jim Meyering  <jim@meyering.net>
33000             Bruno Haible  <bruno@clisp.org>
33001
33002         This lets translators provide better translations for the
33003         "Written by ..." part of --version output.
33004         * lib/version-etc.h: Include stdarg.h.
33005         (version_etc_copyright): Declare as readonly.
33006         (version_etc): Make this function variadic with a NULL-terminated list
33007         of author name strings.
33008         (version_etc_va): New declaration.
33009         * lib/version-etc.c: Include stdarg.h, stdlib.h.
33010         (version_etc_copyright): Declare as readonly.
33011         (version_etc_va): New function. Provide a different translatable string
33012         for each possible number of authors < 10. Abbreviate when there are 10
33013         authors or more.
33014         (version_etc): Make this function variadic. Call version_etc_va.
33015         Suggestion from Gary V. Vaughan.
33016
33017         * lib/long-options.h (parse_long_options): Change prototype: the
33018         authors string is moved to the end and becomes variadic.
33019         * lib/long-options.c: Include stdarg.h.
33020         (parse_long_options): Make this function variadic, too.
33021         Call version_etc_va, not version_etc.
33022
33023 2003-10-06  Bruno Haible  <bruno@clisp.org>
33024
33025         * modules/version-etc-2: Remove file.
33026         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
33027
33028 2003-10-06  Bruno Haible  <bruno@clisp.org>
33029
33030         * modules/fatal-signal: New file.
33031         * MODULES.html.sh (func_all_modules): Add fatal-signal.
33032
33033 2003-10-06  Bruno Haible  <bruno@clisp.org>
33034
33035         * m4/fatal-signal.m4: New file.
33036         * m4/signalblocking.m4: New file, from GNU gettext.
33037
33038 2003-10-06  Bruno Haible  <bruno@clisp.org>
33039
33040         * lib/version-etc-2.h: Remove file.
33041         * lib/version-etc-2.c: Remove file.
33042
33043 2003-10-06  Bruno Haible  <bruno@clisp.org>
33044
33045         * lib/fatal-signal.h: New file, from GNU gettext.
33046         * lib/fatal-signal.c: New file, from GNU gettext.
33047
33048 2003-10-05  Paul Eggert  <eggert@twinsun.com>
33049
33050         * README: Rework advice for preventing empty .o files.
33051         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
33052         not <sys/types.h>.
33053
33054 2003-10-04  Karl Berry  <karl@gnu.org>
33055
33056         * lib/argp*: update from libc.
33057
33058 2003-10-04  Karl Berry  <karl@gnu.org>
33059
33060         * config/config.{guess,sub}: update from config.
33061
33062 2003-10-02  Bruno Haible  <bruno@clisp.org>
33063
33064         * modules/lchown (Include): Add lchown.h.
33065         * modules/time_r (Include): Use "..." syntax.
33066         * modules/xgetdomainname (Include): Add xgetdomainname.h.
33067
33068 2003-10-01  Simon Josefsson  <jas@extundo.com>
33069
33070         * MODULES.html.sh (func_all_modules): Move gethostname from section
33071         'based on' to section 'lacking' POSIX:2001.
33072
33073 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
33074
33075         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
33076         to output mode on the same stream.
33077
33078 2003-09-29  Paul Eggert  <eggert@twinsun.com>
33079
33080         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
33081         Fix arg typo in previous patch.
33082
33083 2003-09-28  Jim Meyering  <jim@meyering.net>
33084
33085         * lib/error.c: Correct cpp indentation.
33086
33087 2003-09-27  Paul Eggert  <eggert@twinsun.com>
33088
33089         * modules/free: New file.
33090
33091 2003-09-27  Paul Eggert  <eggert@twinsun.com>
33092
33093         * m4/free.m4: New file.
33094
33095 2003-09-27  Paul Eggert  <eggert@twinsun.com>
33096
33097         * lib/minmax.h (MIN, MAX)
33098         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
33099         Omit the special code that used __typeof__, since we worry that
33100         it could be more trouble than it's worth.  See:
33101         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
33102         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
33103
33104         * lib/free.c: New file.
33105
33106 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
33107
33108         Trivial fixes to Makefile.am parts of module listings.
33109         * modules/strstr: Append strstr.h to lib_SOURCES.
33110         * modules/strcase: Likewise, for strcase.h.
33111
33112 2003-09-27  Karl Berry  <karl@gnu.org>
33113
33114         * config/mkinstalldirs: update from automake.
33115
33116 2003-09-26  Paul Eggert  <eggert@twinsun.com>
33117
33118         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
33119         (error_tail): Do not loop, reallocating temporary buffer, since
33120         the output cannot contain more wide characters than the input
33121         contains bytes, the size must be big enough already.  This avoids
33122         one potential size overflow calculation.  Check for size overflow
33123         when calculating temporary buffer size.  Free temporary buffer
33124         when done, if it was allocated with malloc; this plugs a memory
33125         leak.  Remove casts from void * to pointers, that are no longer
33126         needed now that we're assuming C89 or better.
33127
33128         Merge error changes from glibc.
33129
33130         * lib/error.c, error.h: Update copyright notice header to match glibc.
33131         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
33132         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
33133         Disable cancellation while printing error.
33134         * lib/error.h: Prepend __ to parameter names.
33135
33136 2003-09-26  Jim Meyering  <jim@meyering.net>
33137
33138         * lib/error.c (error_tail): Move some declarations
33139         into inner scope where the local variables are used.
33140
33141 2003-09-26  Bruno Haible  <bruno@clisp.org>
33142
33143         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
33144         stpncpy().
33145         Don't define stpncpy through config.h; it's now done through stpncpy.h.
33146
33147 2003-09-26  Bruno Haible  <bruno@clisp.org>
33148
33149         * lib/stpncpy.h (gnu_stpncpy): New declaration.
33150         (stpncpy): Define as alias for gnu_stpncpy.
33151         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
33152
33153 2003-09-25  Simon Josefsson  <jas@extundo.com>
33154
33155         * lib/xgetdomainname.h: New file.
33156         * lib/xgetdomainname.c: New file.
33157
33158 2003-09-25  Simon Josefsson  <jas@extundo.com>
33159             Bruno Haible  <bruno@clisp.org>
33160
33161         * modules/getdomainname: New file.
33162         * modules/xgetdomainname: New file.
33163         * MODULES.html.sh (func_all_modules): Add getdomainname,
33164         xgetdomainname.
33165
33166 2003-09-25  Simon Josefsson  <jas@extundo.com>
33167             Bruno Haible  <bruno@clisp.org>
33168
33169         * m4/getdomainname.m4: New file.
33170
33171 2003-09-25  Simon Josefsson  <jas@extundo.com>
33172             Bruno Haible  <bruno@clisp.org>
33173
33174         * lib/getdomainname.h: New file.
33175         * lib/getdomainname.c: New file.
33176
33177 2003-09-25  Karl Berry  <karl@gnu.org>
33178
33179         * lib/argp-fmtstream.c, argp-help.c: update from libc.
33180
33181 2003-09-25  Karl Berry  <karl@gnu.org>
33182
33183         * config/install-sh: update from automake.
33184
33185 2003-09-25  Bruno Haible  <bruno@clisp.org>
33186
33187         * modules/version-etc-2: New file, from modules/version-etc with
33188         modifications.
33189         * MODULES.html.sh (func_all_modules): Add version-etc-2.
33190
33191 2003-09-25  Bruno Haible  <bruno@clisp.org>
33192
33193         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
33194         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
33195
33196 2003-09-24  Simon Josefsson  <jas@extundo.com>
33197
33198         * modules/xgethostname: Add xgethostname.h.
33199
33200 2003-09-24  Paul Eggert  <eggert@twinsun.com>
33201
33202         * lib/linebuffer.c (freebuffer): Don't free the argument, just
33203         the buffer associated with the argument.  Bug reported by
33204         Simon Josefsson.
33205
33206 2003-09-24  Paul Eggert  <eggert@twinsun.com>
33207
33208         * README: Document assumptions that 'int' is at least 32 bits
33209         wide, that integer arithmetic is 2's complement without overflow,
33210         that there are no holes in integer values, that adding sizes of
33211         two nonoverlapping objects can't overflow, and that all-bits-zero
33212         yields scalar zero.  Fix spelling and capitalization typos.
33213
33214 2003-09-19  Karl Berry  <karl@gnu.org>
33215
33216         * lib/argp.h: update from libc.
33217
33218 2003-09-17  Paul Eggert  <eggert@twinsun.com>
33219
33220         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
33221         to avoid spurious warnings like "AC_RUN_IFELSE was called before
33222         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
33223
33224 2003-09-17  Paul Eggert  <eggert@twinsun.com>
33225
33226         * gnulib-tool: Use "test -h", not "test -L", for portability
33227         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
33228         (tags_regexp): Remove, since \| doesn't conform to POSIX.
33229         (sed_extract_prog): Issue s commands one-by-one, rather than
33230         using \| in one s command.
33231
33232 2003-09-16  Paul Eggert  <eggert@twinsun.com>
33233
33234         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
33235         input error, instead of returning NULL the next time we are called
33236         (and therefore losing track of errno).
33237
33238 2003-09-16  Bruno Haible  <bruno@clisp.org>
33239
33240         * gnulib-tool (func_create_testdir): Warn about duplicated
33241         dependencies.
33242
33243 2003-09-15  Paul Eggert  <eggert@twinsun.com>
33244
33245         * modules/argmatch, modules/fatal, modules/obstack,
33246         modules/xalloc, modules/xgethostname: Sort dependencies by
33247         importance, not alphabetically.
33248
33249 2003-09-15  Paul Eggert  <eggert@twinsun.com>
33250
33251         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
33252         fails, so that the caller gets the proper errno.
33253
33254         * lib/readutmp.c (read_utmp): Likewise.
33255         Check for fstat error.  Close stream and free storage
33256         when failing.
33257
33258 2003-09-14  Karl Berry  <karl@gnu.org>
33259
33260         * config/srclist.txt (strdup.c): disable for c89 changes.
33261
33262 2003-09-14  Jim Meyering  <jim@meyering.net>
33263
33264         * lib/getloadavg.c: Correct cpp indentation.
33265         * lib/strdup.c: Likewise.
33266         * lib/vasnprintf.c: Likewise.
33267
33268 2003-09-14  Bruno Haible  <bruno@clisp.org>
33269
33270         * modules/fwriteerror: New file.
33271         * MODULES.html.sh (func_all_modules): Add fwriteerror.
33272
33273 2003-09-14  Bruno Haible  <bruno@clisp.org>
33274
33275         * lib/fwriteerror.h: New file.
33276         * lib/fwriteerror.c: New file.
33277
33278 2003-09-12  Paul Eggert  <eggert@twinsun.com>
33279
33280         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
33281         modules/xgethostname, modules/xalloc: Depend on exit.
33282
33283 2003-09-12  Paul Eggert  <eggert@twinsun.com>
33284
33285         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
33286
33287         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
33288         and AC_MINIX, too, so that their extensions are available.
33289
33290         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
33291         This macro has been superseded by gl_BACKUPFILE.
33292
33293         More patches to assume C89 or better.
33294
33295         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
33296
33297         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
33298         unconditionally.
33299         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
33300         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
33301         Include <string.h>, <stdlib.h> unconditionally.
33302         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
33303         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
33304         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
33305         headers or for string.h.
33306         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
33307         or strtoul.
33308
33309         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
33310         headers.
33311         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
33312         * m4/userspec.m4 (gl_USERSPEC): Likewise.
33313         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
33314         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
33315         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33316         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
33317         memcpy, memset.
33318         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
33319         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
33320         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
33321         strtol.
33322         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
33323         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
33324         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
33325         strtoul.
33326
33327 2003-09-12  Paul Eggert  <eggert@twinsun.com>
33328
33329         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
33330         * lib/obstack.c [!defined _LIBC]: Likewise.
33331         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
33332         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
33333         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
33334
33335         More changes to assume C89 or better.
33336
33337         * lib/error.c (error_tail): Assume vprintf.
33338
33339         * lib/argmatch.c (getenv): Remove decl.
33340         * lib/progreloc.c (get_full_program_name): Define via prototype.
33341         * lib/setenv.c (clearenv): Likewise.
33342         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
33343         needed.
33344         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
33345         (malloc, memcpy): Remove decls.
33346         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
33347         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
33348         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
33349         (memcpy): Remove macro.
33350         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
33351         (__P): Remove.  All uses removed.
33352         (PTR): Remove.  All uses changed to void *.
33353         (CHAR_BIT, NULL): Remove.
33354         (spaces, zeros, memset_space, memset_zero)
33355         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
33356         Remove.
33357         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
33358         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
33359         Define with prototype.
33360         Remove now-unnecessary prototype decl.
33361         (extra_args_spec): Assume ANSI C.  All uses changed.
33362         (extra_args_spec_iso): Remove.
33363         (my_strftime, emacs_strftimeu): Define via prototype.
33364         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
33365         unconditionally.
33366         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
33367         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
33368         (strtoul, strtol): Remove decls.
33369         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
33370         LONG_MAX): Remove.
33371         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
33372         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
33373         (LOCALE_PARAM_PROTO): New macro.
33374         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
33375         (INTERNAL (strtol), strtol): Define with a prototype.
33376         (PARAMS): Remove.  All uses removed.
33377         * lib/tempname.c: Include <string.h> unconditionally.
33378         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
33379         * lib/xgethostname.c (main): Define with a prototype.
33380         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
33381         Include <stdlib.h> unconditionally.
33382         (calloc, malloc, realloc, free): Remove decls.
33383         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
33384         Include <stdlib.h> unconditionally.  Sort include file names.
33385         (strtod): Remove.
33386         (xstrtod): Define with a prototype.
33387         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
33388         (strtol, strtoul): Remove decls.
33389
33390 2003-09-11  Paul Eggert  <eggert@twinsun.com>
33391
33392         More patches to assume C89 or better.
33393         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
33394         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
33395         string.h, memchr, STDC_HEADERS.
33396
33397 2003-09-11  Paul Eggert  <eggert@twinsun.com>
33398
33399         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
33400         Include <stdlib.h>, <string.h> unconditionally.
33401         Remove now-unnecessary cast to char *.
33402         * lib/strnlen.c: Include <string.h> unconditionally.
33403         * lib/yesno.c (yesno): Define with a prototype.
33404
33405 2003-09-11  Bruno Haible  <bruno@clisp.org>
33406
33407         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
33408
33409 2003-09-10  Jim Meyering  <jim@meyering.net>
33410
33411         * lib/error.c: Correct indentation of cpp directives.
33412
33413 2003-09-10  Bruno Haible  <bruno@clisp.org>
33414
33415         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
33416         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
33417         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
33418         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
33419         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
33420         <stdlib.h> and <string.h> checks.
33421         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
33422         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
33423
33424 2003-09-10  Bruno Haible  <bruno@clisp.org>
33425
33426         * lib/strcspn.c: Include <string.h> unconditionally.
33427         * lib/strpbrk.c: Include <string.h> unconditionally.
33428         * lib/strstr.c: Include <string.h> unconditionally.
33429         * lib/unicodeio.c: Include <string.h> unconditionally.
33430         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
33431         * lib/unsetenv.c: Likewise.
33432         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
33433         * lib/yesno.c: Include <stdlib.h> unconditionally.
33434         (rpmatch): Add prototype.
33435
33436 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33437
33438         More patches to assume C89 or better.
33439         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
33440         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
33441         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
33442         or for string.h.
33443         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
33444         stdlib.h.
33445         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
33446         C headers.
33447         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
33448         string.h.
33449         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
33450         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
33451         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
33452         or for string.h.
33453         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
33454         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
33455         C headers.
33456         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
33457         memcpy.
33458         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
33459         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
33460         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
33461         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
33462         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
33463         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
33464         string.h, free.
33465         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
33466         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
33467         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
33468         C headers, or for string.h.
33469         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
33470         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
33471         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
33472         headers, memory.h, stdlib.h, string.h, strings.h.
33473         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
33474         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
33475         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
33476         strchr.
33477         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
33478         headers, memory.h, string.h.
33479         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
33480         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
33481         free.
33482         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
33483         headers.
33484         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
33485         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
33486         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
33487         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
33488         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
33489
33490 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33491
33492         More K&R removal.
33493
33494         * lib/acosl.c (main): Use a prototype.
33495         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
33496         tanl.c: Likewise.
33497
33498         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
33499
33500         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
33501         (getopt, etopt_long, getopt_long_only, _getopt_internal)
33502         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
33503         with a prototype.
33504         * lib/getopt.c (const): Remove macro.
33505         Include <string.h> unconditionally.
33506         (my_index): Remove; all uses changed to strchr.
33507         (strlen): Remove decl.
33508         (exchange): Remove forward decl; no longer needed.
33509         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
33510         Define with prototype.
33511         * lib/getopt1.c (const): Remove macro.
33512         (getopt_long, getopt_long_only, main): Define with prototype.
33513
33514         * lib/getugroups.c: Include <string.h> unconditionally.
33515
33516         * lib/getusershell.c: Include <stdlib.h> unconditionally.
33517         (getusershell, setusershell, endusershell, readname, main):
33518         Define with prototypes.
33519
33520         * lib/group-member.c: Include group-member.h first.
33521         Include <stdlib.h> unconditionally.
33522
33523         * lib/hard-locale.c: Include hard-locale.h first.
33524         Include <stdlib.h>, <string.h> unconditionally.
33525
33526         * lib/hash.c (free, malloc): Remove decls.
33527         Include <stdlib.h> unconditionally.
33528
33529         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
33530         (getenv): Do not declare.
33531
33532         * lib/idcache.c: Include <string.h> unconditionally.
33533
33534         * lib/long-options.c: Include long-options.h first, to test interface.
33535         Include <stdlib.h> unconditionally.
33536
33537         * lib/makepath.c: Include makepath.h first, to test interface.
33538         Include <stdlib.h> and <string.h> unconditionally.
33539
33540         * lib/linebuffer.c: Include <stdlib.h>.
33541         (free): Remove decl.
33542
33543         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
33544         stddef.h. rpl_malloc returns void *, not char *.
33545         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
33546         prototype.
33547
33548         * lib/md5.h: Include <limits.h> unconditionally.
33549         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
33550         (__P): Remove; all uses removed.
33551         * lib/md5.c: Include "md5.h" first.
33552         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
33553         md5_buffer, md5_process_bytes, md5_process_block):
33554         Define with prototypes.
33555         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
33556         * lib/sha.c: Include "sha.h" first.
33557         Include <stdlib.h>, <string.h> unconditionally.
33558
33559         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
33560         * lib/memcmp.c (__ptr_t): Likewise.
33561         * lib/memrchr.c (__ptr_t): Likewise.
33562         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
33563         Include <string.h> unconditionally.
33564         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
33565         * lib/memchr.c: Include <stdlib.h> unconditionally.
33566         * lib/memchr.c (LONG_MAX): Remove.
33567         * lib/memrchr.c (LONG_MAX): Likewise.
33568         * lib/memchr.c (__memchr): Define via a prototype.
33569         * lib/memrchr.c (__memrchr): Likewise.
33570         * lib/memcmp.c (__P): Remove, and remove all uses.
33571         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
33572         Remove forward decls; no longer needed.
33573         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
33574         Use types required by C89 in prototype.
33575
33576         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
33577         * lib/savedir.c: Likewise.
33578         * lib/mkdir.c (free): Remove decl.
33579         * lib/rmdir.c (rmdir): Define with a prototype.
33580         * lib/savedir.c: Include savedir.h first, to test interface.
33581
33582         * lib/mktime.c (STDC_HEADERS): Remove.
33583         Include <stdlib.h>, <string.h> unconditionally.
33584
33585         * lib/modechange.c: Include <stdlib.h> unconditionally.
33586         (malloc): Remove decl.
33587
33588         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
33589         (free): Remove decl.
33590
33591         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
33592         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
33593         (This type really should be intptr_t, but that's a C99ism.)
33594         (_obstack_memcpy): Remove: all uses changed to memcpy.
33595         Include <string.h> unconditionally.
33596         (struct obstack): Assume __STDC__ for types of members
33597         chunkfun, freefun, extra_arg.
33598         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
33599         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
33600         obstack_begin, obstack_specify_allocation,
33601         obstack_specify_allocation_with_arg, obstack_chunkfun,
33602         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
33603         Remove unprototyped decls and the macros that use them.
33604         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
33605         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
33606         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
33607         (defined __STDC__ && __STDC__)]:
33608         Remove nonprototyped code.
33609         Include <stdlib.h> unconditionally.
33610         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
33611         _obstack_allocated_p, _obstack_free, obstack_free,
33612         _obstack_memory_used, print_and_abort):
33613         Define using prototypes.
33614         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
33615         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
33616         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
33617         obstack_next_free, obstack_object_size, obstack_room) [0]:
33618         Remove unused, unprototyped code.
33619
33620         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
33621
33622         * lib/physmem.c (physmem_total, physmem_available, main): Define
33623         with prototypes.
33624
33625         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
33626         (main): Define with a prototype.
33627
33628         * lib/posixver.c (getenv): Remove decl.
33629
33630         * lib/putenv.c (malloc): Returns void *, not char *.
33631         Include <string.h> unconditionally.
33632         (strchr, memcpy, NULL): Do not define.
33633
33634         * lib/readtokens.c: Include readtokens.h first, to test interface.
33635         Include <stdlib.h>, <string.h> unconditionally.
33636         (init_tokenbuffer): Define with a prototype.
33637
33638         * lib/regex.c (PARAMS): Remove.  All uses removed.
33639         All uses of _RE_ARGS removed, too.
33640         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33641         unconditionally.
33642         (bzero): Assume memset exists.
33643         (memcmp, memcpy, NULL): Remove.
33644         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
33645         char, or assignments to local vars of type signed char.
33646         (init_syntax_once, PREFIX(extract_number_and_incr),
33647         PREFIX(print_partial_compiled_pattern),
33648         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
33649         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
33650         PREFIX(regex_grow_registers), PREFIX(regex_compile),
33651         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
33652         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
33653         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
33654         wcs_compile_range, byte_compile_range, truncate_wchar,
33655         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
33656         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
33657         count_mbs_length, wcs_re_match_2_internal,
33658         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
33659         PREFIX(alt_match_null_string_p),
33660         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
33661         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
33662         regfree, PREFIX(extract_number)): Define with prototype.  Remove
33663         now-unnecessary declaration, if any.
33664         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
33665         regcomp, regexec):
33666         Remove now-unnecessary casts among pointer types.
33667         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
33668
33669         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
33670         (free): Remove decl.
33671
33672         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
33673
33674         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
33675         (free): Remove decl.
33676
33677         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
33678         * lib/xgetcwd.c: Likewise.
33679
33680         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
33681         (free): Remove decl.
33682
33683         * lib/strchrnul.c (strchrnul): Define with a prototype.
33684         Fix bug: c_in was not converted to char before searching.
33685
33686         The following changes are not K&R related:
33687
33688         * lib/group-member.h: Include <sys/types.h>, so that this file is
33689         self-contained.
33690         * lib/makepath.h: Likewise.
33691
33692         * lib/getusershell.c (readname, default_index, line_size, readname):
33693         Use size_t, not int, for sizes.
33694         (readname): If the size overflows, report an error instead of
33695         looping forever.
33696
33697 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33698
33699         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
33700         libc.
33701
33702 2003-09-09  Paul Eggert  <eggert@twinsun.com>
33703
33704         * README: New section: portability guidelines.
33705
33706 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
33707
33708         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
33709         C89 spec.
33710
33711 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
33712
33713         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
33714
33715 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33716
33717         Assume C89 or better; remove K&R cruft.
33718         A few of these changes were first proposed by Derek Robert Price
33719         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
33720
33721         * lib/addext.c: Include <string.h> unconditionally.
33722         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
33723         Don't declare getenv or malloc.
33724
33725         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
33726         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
33727         (NULL): Remove.
33728         (find_stack_direction, alloca): Use prototypes.
33729
33730         * lib/atexit.c (atexit): Define using a prototype.
33731
33732         * lib/basename.c, dirname.c, stripslash.c:
33733         Include <string.h> unconditionally.
33734
33735         * lib/bcopy.c: Include <stddef.h>.
33736         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
33737
33738         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
33739
33740         * lib/error.h (error, error_at_line, error_print_progname)
33741         [! (defined (__STDC__) && __STDC__)]: Remove decls.
33742         * lib/error.c: Include error.h first, to check interface.
33743         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33744         (VA_START): Remove; all uses changeed to va_start.
33745         (exit, strerror): Remove decls.
33746         (error_print_progname): Prototype uncondionally.
33747         Don't include <errno.h>; no longer needed.
33748         (private_strerror): Remove.
33749         (error_tail): Always define.
33750         (error, error_at_line): Assume C89 or better; always use prototypes.
33751         * lib/fatal.c: Include "fatal.h" first, to test interface.
33752         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33753         (VA_START): Remove; all uses changed to va_start.
33754         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
33755         this case.
33756         (exit): Remove decl.
33757         (fatal): Prototype unconditionally.  Assume va_start works.
33758         Abort at end, to pacify gcc.
33759
33760         * lib/euidaccess.c (main): Define with a prototype.
33761
33762         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
33763
33764         * lib/exitfail.c: Include <stdlib.h> unconditionally.
33765
33766         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
33767         prototypes.
33768         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
33769         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
33770         (getenv): Remove decl.
33771         (fnmatch): Define using a prototype.
33772         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
33773         (FCT): Define using a prototype.
33774
33775         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
33776
33777         * lib/gethostname.c: Include <stddef.h>.
33778         (gethostname): Define with prototype.  Length is size_t, not int.
33779
33780 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33781
33782         Assume C89 or better; remove K&R cruft.
33783         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
33784         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
33785         string.h, getenv, malloc.
33786         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
33787         headers.
33788         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
33789         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
33790         do not check for strerror.
33791         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
33792         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
33793         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
33794         do not check for doprnt or vprintf.
33795         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
33796         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
33797
33798 2003-09-08  Paul Eggert  <eggert@twinsun.com>
33799
33800         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
33801         getversion.c should have been removed then, but was accidentally
33802         preserved.
33803
33804         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
33805         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
33806
33807 2003-09-08  Karl Berry  <karl@gnu.org>
33808
33809         * config/config.sub, config.guess, srclistvars.sh: update from savannah
33810                 config, forget about prep.
33811
33812         * config/depcomp, missing: update from automake.
33813
33814 2003-09-07  Paul Eggert  <eggert@twinsun.com>
33815
33816         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
33817         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33818
33819 2003-09-07  Paul Eggert  <eggert@twinsun.com>
33820
33821         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
33822         copy_tm_result.  Bug reported by Simon Josefsson in
33823         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33824
33825 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33826
33827         * m4/time_r.m4: New file.
33828         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
33829         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
33830         is. Check for timegm declaration.
33831         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
33832         Do not check for gmtime_r.
33833         Replace mktime if __mktime_internal does not exist and if mktime
33834         hasn't been replaced already.
33835
33836 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33837
33838         * lib/time_r.c, lib/time_r.h: New files.
33839
33840         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
33841         __localtime_r.
33842         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
33843         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
33844
33845         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
33846         __gmtime_r.
33847         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
33848         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
33849         Include <time_r.h>.
33850
33851         * lib/timegm.c: Switch to glibc implementation, with the following
33852         changes:
33853         [defined HAVE_CONFIG_H]: Include <config.h>.
33854         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
33855         (__mktime_internal) [!defined _LIBC]: New decl.
33856         (__gmtime_r) [!defined _LIBC]: New macro and function.
33857         (timegm): Use a prototype, since gnulib assumes C89.
33858         Do not bother declaring tmp to be const, as it's not really usefu.
33859         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
33860         (timegm): Declare only if HAVE_DECL_TIMEGM.
33861
33862 2003-09-06  Paul Eggert  <eggert@twinsun.com>
33863
33864         * MODULES.html.sh (func_all_modules): Add time_r.
33865         * modules/time_r: New file.
33866         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
33867         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
33868
33869 2003-09-03  Paul Eggert  <eggert@twinsun.com>
33870
33871         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
33872         Bug reported by Lute Kamstra in
33873         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
33874
33875         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
33876         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
33877         course with correspondingly smaller numbers for tomorrow and
33878         yesterday.  From Tadayoshi Funaba.  Originally installed into
33879         sh-utils on 1999-08-07, but the patch got lost (I guess during the
33880         coreutils merge?).
33881
33882 2003-08-31  Simon Josefsson  <jas@extundo.com>
33883
33884         * modules/timegm: New file.
33885         * MODULES.html.sh (func_all_modules): Add timegm.
33886
33887 2003-08-31  Simon Josefsson  <jas@extundo.com>
33888
33889         * m4/timegm.m4: New file.
33890
33891 2003-08-31  Simon Josefsson  <jas@extundo.com>
33892
33893         * lib/timegm.h: New file.
33894         * lib/timegm.c: New file.  Based on
33895         wget-1.8.2/src/http.c:mktime_from_utc.
33896
33897 2003-08-31  Karl Berry  <karl@gnu.org>
33898
33899         * lib/argp.h: update from libc.
33900
33901 2003-08-28  Bruno Haible  <bruno@clisp.org>
33902
33903         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
33904         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
33905         followed by '#define fnmatch fnmatch_posix' gives an error.
33906
33907 2003-08-28  Bruno Haible  <bruno@clisp.org>
33908
33909         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
33910         warning on QNX, which defines O_BINARY to 000000.
33911
33912 2003-08-27  Jim Meyering  <jim@meyering.net>
33913
33914         * m4/mkstemp.m4: Require that the system mkstemp be able to create
33915         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
33916         would fail after 32.  Reported by Danny Levinson.  Details here:
33917         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
33918
33919 2003-08-24  Bruno Haible  <bruno@clisp.org>
33920
33921         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
33922         MSVC7 <stdio.h> is included later.
33923
33924 2003-08-22  Simon Josefsson  <jas@extundo.com>
33925
33926         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
33927
33928 2003-08-20  Karl Berry  <karl@gnu.org>
33929
33930         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
33931
33932 2003-08-20  Bruno Haible  <bruno@clisp.org>
33933
33934         * modules/progname: New file.
33935         * MODULES.html.sh (func_all_modules): Add progname.
33936
33937 2003-08-20  Bruno Haible  <bruno@clisp.org>
33938
33939         * lib/progname.h: New file, from GNU gettext.
33940         * lib/progname.c: New file, from GNU gettext.
33941         * lib/progreloc.c: New file, from GNU gettext.
33942
33943 2003-08-19  Jim Meyering  <jim@meyering.net>
33944
33945         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
33946         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
33947
33948 2003-08-19  Bruno Haible  <bruno@clisp.org>
33949
33950         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
33951         more.
33952
33953 2003-08-19  Bruno Haible  <bruno@clisp.org>
33954
33955         * lib/xstrdup.c: Assume <string.h> exists.
33956
33957 2003-08-18  Paul Eggert  <eggert@twinsun.com>
33958
33959         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
33960         in makefile rules.
33961
33962 2003-08-18  Jim Meyering  <jim@meyering.net>
33963
33964         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
33965         * m4/lib-ld.m4: Likewise.
33966
33967 2003-08-18  Jim Meyering  <jim@meyering.net>
33968
33969         * lib/setenv.h: Indent nested cpp directive.
33970         * lib/vasnprintf.c: Remove trailing blanks.
33971
33972 2003-08-17  Simon Josefsson  <jas@extundo.com>
33973
33974         * modules/xstrndup: New file.
33975         * MODULES.html.sh (func_all_modules): Add xstrndup.
33976
33977 2003-08-17  Simon Josefsson  <jas@extundo.com>
33978
33979         * modules/argp: Fix autoconf macro name. Add more dependencies.
33980
33981 2003-08-17  Simon Josefsson  <jas@extundo.com>
33982
33983         * m4/xstrndup.m4: New file.
33984
33985 2003-08-17  Simon Josefsson  <jas@extundo.com>
33986
33987         * m4/argp.m4: New file.
33988
33989 2003-08-17  Simon Josefsson  <jas@extundo.com>
33990             Bruno Haible  <bruno@clisp.org>
33991
33992         * lib/xstrndup.h: New file.
33993         * lib/xstrndup.c: New file.
33994
33995 2003-08-17  Bruno Haible  <bruno@clisp.org>
33996
33997         * modules/strndup (Files, Include): Add lib/strndup.h.
33998
33999 2003-08-17  Bruno Haible  <bruno@clisp.org>
34000
34001         * modules/euidaccess (Files): Add lib/euidaccess.h.
34002
34003 2003-08-17  Bruno Haible  <bruno@clisp.org>
34004
34005         * lib/strndup.h: New file.
34006
34007 2003-08-17  Bruno Haible  <bruno@clisp.org>
34008
34009         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
34010         like AC_GNU_SOURCE.
34011         * modules/extensions (configure.ac): Comment out the invocation of
34012         gl_USE_SYSTEM_EXTENSIONS.
34013
34014 2003-08-16  Paul Eggert  <eggert@twinsun.com>
34015
34016         Merges from coreutils, etc.
34017         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
34018         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
34019         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
34020         fixing a typo.
34021         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
34022         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
34023
34024 2003-08-16  Paul Eggert  <eggert@twinsun.com>
34025
34026         Document merge from coreutils.
34027         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
34028         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
34029         * modules/utime: Add m4/utimes-null.m4.
34030
34031 2003-08-16  Paul Eggert  <eggert@twinsun.com>
34032
34033         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
34034         space, undoing this 2003-08-12 change:
34035         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
34036
34037 2003-08-16  Paul Eggert  <eggert@twinsun.com>
34038
34039         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
34040         strtoul.c from libc, undoing this 2003-08-12 change:
34041         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
34042
34043 2003-08-16  Jim Meyering  <jim@meyering.net>
34044
34045         Merges from coreutils.
34046         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
34047         prefix.  Adjust cache variables similarly.  Create 500 rather than
34048         just 300 files, to exercise bug on Darwin6.5, too.
34049         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
34050         $missing_dir.
34051         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
34052         AM_SYS_POSIX_TERMIOS.
34053         Reported by mkc@mathdogs.com.
34054         Also change use of $am_cv_sys_posix_termios
34055         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
34056         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
34057         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
34058         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
34059         in /proc/mounts until it finds one with matching device number.  This
34060         is unnecessary when the FILE argument *is* a mount point.  No stat call
34061         is necessary in that case.  So, disable the statvfs-testing code on
34062         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
34063         as RedHat bug# 84846.
34064         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
34065         to 1MB, so as not to render systems with no stack size limit (e.g.,
34066         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
34067         Include <unistd.h>.  On some systems,
34068         it is required for the definition of _SC_PAGESIZE.
34069
34070 2003-08-16  Jim Meyering  <jim@meyering.net>
34071
34072         Merge from coreutils.
34073         * lib/xstrtoimax.c: #else #if -> #elif.
34074         * lib/xstrtoumax.c: Likewise.
34075
34076 2003-08-16  Jim Meyering  <jim@meyering.net>
34077
34078         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
34079         * m4/utimes.m4: Removed.
34080         * m4/utimes-null.m4: Renamed from utimes.m4.
34081
34082         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
34083         to 1MB, so as not to render systems with no stack size limit (e.g.,
34084         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
34085         Include <unistd.h>.  On some systems,
34086         it is required for the definition of _SC_PAGESIZE.
34087
34088 2003-08-16  Jim Meyering  <jim@meyering.net>
34089         and Paul Eggert  <eggert@cs.ucla.edu>
34090
34091         Merges from coreutils, etc.
34092
34093         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
34094         using the latest version from cvs.  This avoids problems with #line
34095         directives using a vendor (Sun) compiler.
34096         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
34097         Don't set GETGROUPS_LIB here; now it's
34098         done via getgroups.m4's wrapper function.
34099         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
34100         rather than just in sh-util/configure.in, so that the
34101         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
34102         same.
34103         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
34104         AC_FUNC_GETLOADAVG where to find getloadavg.c.
34105         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
34106         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
34107         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
34108         Remove code that is now done by the newly-required macros.
34109         Append $(EXEEXT) to DF_PROG.
34110         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
34111         Do not invoke or require the following here,
34112         since prereq.m4 or some gnulib .m4 now does this for us:
34113         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
34114         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
34115         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
34116         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
34117         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
34118         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
34119         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
34120         AC_FUNC_OBSTACK.
34121         Do not replace the following functions, as this is now the job
34122         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
34123         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
34124         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
34125         atexit getpass, strdup, getpagesize.
34126         Replace 'raise'.
34127         Do not check for the following functions, as this is now the job
34128         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
34129         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
34130         setregid.
34131         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
34132         Check for sys/sysctl.h.
34133         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
34134         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
34135         of checking for ssize_t ourselves.
34136
34137         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
34138         Require every macro that gnulib/modules/* suggests for us.
34139         (jm_PREREQ_ADDEXT): New macro.
34140         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
34141         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
34142
34143         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
34144         (gl_PHYSMEM): Use it.
34145         Also check for `table' function.
34146         Check for new headers and functions.
34147         Add check for sys/sysmp.h.
34148         With suggestions from Kaveh Ghazi.
34149         Ignore headers that are present but cannot be compiled.  This
34150         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
34151         C 5.4.
34152
34153 2003-08-15  Paul Eggert  <eggert@twinsun.com>
34154
34155         Document merge from coreutils.
34156         * modules/userspec: Depend on posixver.
34157         * modules/strftime: Depend on tzset.
34158
34159 2003-08-15  Paul Eggert  <eggert@twinsun.com>
34160
34161         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
34162         rather than tab, after '#' in shell-script copyright notices.
34163         Suggested by Bruno Haible.
34164
34165 2003-08-15  Paul Eggert  <eggert@twinsun.com>
34166
34167         * config/srclist-update: Use three spaces, rather than tab, after '#'
34168         in shell-script copyright notices.  Suggested by Bruno Haible.
34169         Remove unnecessary parenthesization in regular expression.
34170
34171 2003-08-15  Jim Meyering  <jim@meyering.net>
34172
34173         Merge from coreutils.
34174         * lib/xgethostname.c: Include <stdlib.h>.
34175         (xghostname): Don't exit for anything other than memory-related
34176         failure; just return NULL.
34177         * lib/userspec.c: Include "posixver.h".
34178         (parse_user_spec): Accept `.' as a separator only
34179         in pre-POSIX-200112 mode.
34180         * lib/strtoimax.c: Use #elif rather than #else #if.
34181         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
34182         Remove function, now that we can rely on a working tzset function.
34183         [!_LIBC]: Ensure that the required autoconf test has been run.
34184         [!defined _NL_CURRENT && HAVE_STRFTIME]:
34185         Use underlying_strftime for %r.
34186         * lib/sha.c: Merge in some clean-up and optimization changes from
34187         glibc.
34188         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
34189         Ensure that it is a multiple of 64.
34190         Rearrange loop exit tests so as to avoid performing an
34191         additional fread after encountering an error or EOF.
34192         * lib/realloc.c: Update copyright date.
34193
34194 2003-08-15  Jim Meyering  <jim@meyering.net>
34195         and Paul Eggert  <eggert@twinsun.com>
34196
34197         Merge from coreutils.
34198         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
34199         member but strut utmpx does not.  Needed for AIX 4.3.3.
34200         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
34201
34202 2003-08-15  Jim Meyering  <jim@meyering.net>
34203         and Paul Eggert  <eggert@cs.ucla.edu>
34204
34205         Merges from coreutils, etc.
34206         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
34207         Require gl_FUNC_TZSET_CLOBBER.
34208         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
34209         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
34210         members.
34211
34212 2003-08-14  Paul Eggert  <eggert@twinsun.com>
34213
34214         Help the merge from coreutils.
34215         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
34216         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
34217         * m4/tzset.m4: Use it too.
34218
34219 2003-08-14  Paul Eggert  <eggert@twinsun.com>
34220
34221         * modules/tzset: New file.
34222
34223 2003-08-14  Jim Meyering  <jim@meyering.net>
34224
34225         Merges from coreutils.
34226         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
34227         variable names, rather than @FNMATCH_H@.
34228         * modules/alloca: Likewise for $(ALLOCA_H).
34229
34230         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
34231         the three copies of the literal target, `fnmatch.h'.
34232         * modules/alloca (alloca.h): Likewise.
34233
34234 2003-08-14  Jim Meyering  <jim@meyering.net>
34235
34236         Merge from coreutils.
34237         * m4/tzset.m4: New file.
34238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
34239         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
34240         otherwise, AIX 5.1 systems would end up using the latter.
34241         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
34242         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
34243         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
34244         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
34245
34246 2003-08-14  Jim Meyering  <jim@meyering.net>
34247
34248         Merge from coreutils.
34249         * lib/obstack.h: Whitespace changes.
34250         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
34251         and xcalloc return values.
34252         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
34253         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
34254         hang on OSF/1 5.1 for DIR on both local and remote file systems.
34255         Reported by (and fix confirmed by) Nelson H. F. Beebe.
34256         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
34257         error from mntctl.
34258         Use mntctl's return value to drive the entry-processing loop, since
34259         we can't rely on the value of the vmt_length member in the last
34260         entry.  On some systems doing so could result in exhausting
34261         virtual memory.  Based in part on a patch from Mike Jetzer.
34262
34263 2003-08-14  Jim Meyering  <jim@meyering.net>
34264         and Paul Eggert  <eggert@twinsun.com>
34265
34266         Merges from coreutils, plus other fixes.
34267         * lib/physmem.c: Merge in portability changes from gcc/libiberty
34268         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
34269         for credits and details.  Thanks to Kaveh Ghazi for helping
34270         to keep these files in sync.
34271         (ARRAY_SIZE): Define it.
34272         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
34273         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
34274         (memcasecmp): Don't assume size_t fits in unsigned int.
34275         Remove casts and duplicate code.
34276         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
34277         (memcpy): Remove definition.
34278         Merge in some clean-up and optimization changes from glibc.
34279         [BLOCKSIZE]: Move definition to top of file.
34280         Ensure that it is a multiple of 64.
34281         Rearrange loop exit tests so as to avoid performing an
34282         additional fread after encountering an error or EOF.
34283         * lib/md5.h (md5_uintptr): Define.
34284         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
34285         return to the initial working directory.  Preserve errno
34286         for caller.
34287         * lib/idcache.c: Include "xalloc.h".
34288         (xmalloc, xrealloc): Remove decls.
34289         (getuser): Remove casts no longer required in C89.
34290         * lib/human.c: Include stdio.h, for sprintf.
34291         * lib/group-member.c: Include "xalloc.h".
34292         (xmalloc, xrealloc): Remove decls.
34293         (get_group_info): Remove casts no longer required in C89.
34294         * lib/getusershell.c (readname): Remove casts no longer required in
34295         C89.
34296         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
34297         * lib/getline.c: Whitespace fix, from coreutils.
34298
34299 2003-08-13  Paul Eggert  <eggert@twinsun.com>
34300
34301         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
34302         Check for isascii.
34303
34304         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
34305         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
34306         Undo previous (whitespace-only) change.
34307
34308 2003-08-13  Paul Eggert  <eggert@twinsun.com>
34309
34310         * lib/exclude.c: Include <ctype.h>
34311         (IN_CTYPE_DOMAIN): New macro.
34312         (is_space): New fn.
34313         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
34314         and empty lines.
34315
34316         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
34317         Undo previous (whitespace-only) change.
34318
34319 2003-08-13  Paul Eggert  <eggert@twinsun.com>
34320
34321         * config/srclist-update: Change update back to the old behavior,
34322         leaving whitespace alone.  Use one 'sed' command rather than a
34323         pipeline.
34324         (fixlicense): Now a variable, not a function.
34325         (remove_trailing_blanks): Remove.
34326         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
34327         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
34328         Undo previous (whitespace-only) change.
34329
34330 2003-08-12  Paul Eggert  <eggert@twinsun.com>
34331
34332         Merge from coreutils.
34333         * modules/euidaccess: Add lib_SOURCES, include for new
34334         file euidaccess.h
34335
34336 2003-08-12  Paul Eggert  <eggert@twinsun.com>
34337
34338         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
34339         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
34340         Normalize leading white space and remove trailing white space.
34341
34342         Merge from coreutils
34343         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
34344
34345         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
34346         0.12.1.  These files are now being upgraded automatically by
34347         ../config/srclist-update.
34348
34349 2003-08-12  Paul Eggert  <eggert@twinsun.com>
34350
34351         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
34352         Normalize leading white space and remove trailing white space.
34353         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
34354         notice, as per ../config/srclist-update.
34355
34356         Merge from coreutils.
34357         * lib/euidaccess.h: New file.
34358         * lib/euidaccess.c: Include it.
34359         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
34360         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
34361         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
34362
34363 2003-08-12  Paul Eggert  <eggert@twinsun.com>
34364
34365         * config/srclist-update: Add copyright notice.
34366         (remove_id_lines, remove_trailing_blanks): New constants.
34367         (fixfile): Use them to normalize spacing a bit in copied files.
34368         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
34369         Normalize leading white space and remove trailing white space.
34370
34371         * config/texinfo.tex: Sync with texinfo.
34372
34373         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
34374         strtoul.c from libc, to merge coreutils whitespace changes.
34375
34376         * config/srclist.txt: Get the following m4 files from gettext:
34377         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
34378         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
34379         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
34380         wint_t.m4.
34381
34382 2003-08-12  Karl Berry  <karl@gnu.org>
34383
34384         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
34385         been made.
34386
34387 2003-08-11  Paul Eggert  <eggert@twinsun.com>
34388
34389         * modules/gnu-source, m4/gnu-source.m4:
34390         Remove; we're assuming Autoconf 2.54 or later now.
34391         Suggested by Bruno Haible.
34392         * MODULES.html.sh (func_all_modules): Remove gnu-source.
34393
34394 2003-08-11  Bruno Haible  <bruno@clisp.org>
34395
34396         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
34397
34398 2003-08-11  Bruno Haible  <bruno@clisp.org>
34399
34400         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
34401         (vasnprintf): Use it instead of wcslen.
34402
34403 2003-08-11  Bruno Haible  <bruno@clisp.org>
34404
34405         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
34406         value to ensure that _Bool promotes to int. Use #define for _Bool when
34407         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
34408
34409 2003-08-10  Karl Berry  <karl@gnu.org>
34410
34411         * lib/regex.h: update from libc (whitespace fix).
34412
34413 2003-08-09  Paul Eggert  <eggert@twinsun.com>
34414
34415         Merge some files from coreutils.  These changes were
34416         originally made by Jim Meyering.
34417         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
34418         many older Unixes require this.
34419         * lib/alloca.c (alloca): Remove cast to argument of free;
34420         no longer needed in C89.
34421         * lib/alloca_.h, regex.h: Fix white space to match
34422         what GNU indent does.
34423
34424 2003-08-09  Paul Eggert  <eggert@twinsun.com>
34425
34426         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
34427         apparently Emacs's Unicode mode got confused before my 2003-08-05
34428         checkin.
34429
34430 2003-08-08  Paul Eggert  <eggert@twinsun.com>
34431
34432         * m4/extensions.m4: New file.
34433         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
34434         Require gl_USE_SYSTEM_EXTENSIONS.
34435         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
34436         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
34437
34438 2003-08-08  Paul Eggert  <eggert@twinsun.com>
34439
34440         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
34441         * modules/extensions, modules/gnu-source: New files.
34442         * modules/timespec, modules/unlocked-io: Depend on extensions.
34443
34444 2003-08-07  Paul Eggert  <eggert@twinsun.com>
34445
34446         * modules/restrict: New file.
34447         * MODULES.html.sh (func_all_modules): Add restrict.
34448         * modules/regex: Depend on restrict.
34449
34450 2003-08-07  Paul Eggert  <eggert@twinsun.com>
34451
34452         * m4/restrict.m4: New file.
34453         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
34454
34455 2003-08-07  Bruno Haible  <bruno@clisp.org>
34456
34457         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
34458         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
34459
34460 2003-08-07  Bruno Haible  <bruno@clisp.org>
34461
34462         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
34463         makes the module 'getndelim2' compatible with the module 'getline'.
34464
34465 2003-08-05  Paul Eggert  <eggert@twinsun.com>
34466
34467         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
34468         byte with "\201" to avoid glitches when editing that source file
34469         with multi-gnome-terminal.
34470
34471 2003-08-05  Paul Eggert  <eggert@twinsun.com>
34472
34473         * lib/bumpalloc.h: Remove.
34474
34475 2003-08-05  Paul Eggert  <eggert@twinsun.com>
34476
34477         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
34478         * modules/bumpalloc: Remove.
34479
34480 2003-08-04  Paul Eggert  <eggert@twinsun.com>
34481
34482         * lib/getloadavg.c: Change copyright notice and spacing to conform to
34483         GNU coding style.
34484
34485         Merge from coreutils.
34486         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
34487         1. From glibc.
34488         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
34489         from Karl Berry, implemented by Jim Meyering.
34490         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
34491         from Dmitry V. Levin.
34492         Remove anachronistic cast of xrealloc.
34493         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
34494         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
34495         type. Otherwise, it wouldn't compile with at least /bin/cc on
34496         ymp-cray-unicos9.0.2.X.
34497         Combine two mostly-identical uses of alloca into one.
34498         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
34499
34500 2003-08-04  Dave Love  <d.love@dl.ac.uk>
34501
34502         [From Emacs.]
34503
34504         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
34505         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
34506         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
34507         obsolete NLIST_NAME_UNION.
34508         [__GNU__]: Undef BSD and FSCALE.
34509         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
34510
34511 2003-08-03  Paul Eggert  <eggert@twinsun.com>
34512
34513         * lib/stdbool_.h (_Bool): Make it signed char, instead of
34514         an enum type, so that it's guaranteed to promote to int.  See:
34515         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
34516
34517 2003-08-03  Karl Berry  <karl@gnu.org>
34518
34519         * config/depcomp: update from automake.
34520
34521 2003-07-31  Paul Eggert  <eggert@twinsun.com>
34522
34523         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
34524         (strerror): Don't assume that a printable int fits in 14 bytes.
34525
34526 2003-07-31  Bruno Haible  <bruno@clisp.org>
34527
34528         * modules/getpass-gnu: New file.
34529         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
34530
34531 2003-07-31  Bruno Haible  <bruno@clisp.org>
34532
34533         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
34534
34535 2003-07-24  Karl Berry  <karl@gnu.org>
34536
34537         * config/missing: update from automake.
34538
34539 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
34540             Bruno Haible  <bruno@clisp.org>
34541
34542         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
34543         * lib/getline.c (getline, getdelim): Likewise.
34544         Remove _GNU_SOURCE define; now it's defined in config.h through
34545         m4/getline.m4.
34546
34547 2003-07-23  Karl Berry  <karl@gnu.org>
34548
34549         * config/config.sub: update from prep.
34550
34551 2003-07-22  Paul Eggert  <eggert@twinsun.com>
34552
34553         * modules/xalloc (Depends-on): Add exitfail.
34554         * modules/xmemcoll: Likewise.
34555
34556 2003-07-22  Paul Eggert  <eggert@twinsun.com>
34557
34558         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
34559         over-parenthesization in macros.
34560
34561         Sync with coreutils.
34562
34563         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
34564         required by C99.
34565
34566         Use `exit_failure' for xalloc and xmemcoll instead of their own
34567         private exit-failure variables.
34568         * lib/xalloc.h (xalloc_exit_failure): Remove.
34569         * lib/xmalloc.c: Likewise.  Include exitfail.h.
34570         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
34571         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
34572         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
34573         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
34574
34575 2003-07-20  Jim Meyering  <jim@meyering.net>
34576
34577         * modules/closeout (Depends-on): Add exitfail.
34578         Suggestion from Bruno Haible.
34579
34580 2003-07-19  Karl Berry  <karl@gnu.org>
34581
34582         * config/config.sub: update from prep.
34583
34584 2003-07-18  Paul Eggert  <eggert@twinsun.com>
34585
34586         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
34587         Remove.
34588         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
34589         to test that it can stand by itself.  Include "exitfail.h".
34590         Clients should set exit_failure instead.
34591         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
34592
34593 2003-07-18  Bruno Haible  <bruno@clisp.org>
34594
34595         * modules/getndelim2: New file.
34596         * modules/getline: Share files with module getndelim2.
34597         * modules/getnline: Depend on getndelim2 instead of sharing files with
34598         it. Add getnline.c to lib_SOURCES.
34599         * MODULES.html.sh (func_all_modules): Add getndelim2.
34600
34601 2003-07-18  Bruno Haible  <bruno@clisp.org>
34602
34603         * m4/getndelim2.m4: New file.
34604         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
34605         invoke gl_PREREQ_GETNDELIM2.
34606         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
34607         gl_PREREQ_GETNDELIM2.
34608         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
34609         gl_GETNDELIM2.
34610
34611 2003-07-18  Bruno Haible  <bruno@clisp.org>
34612
34613         * lib/getndelim2.h: New file.
34614         * lib/getndelim2.c: Make into a module of its own. Include config.h,
34615         getndelim2.h.
34616         (getndelim2): Make non-static. Change return type to ssize_t.
34617         * lib/getline.h: Change argument names.
34618         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
34619         * lib/getnline.c: Include getndelim2.h.
34620
34621 2003-07-18  Andreas Schwab  <schwab@suse.de>
34622
34623         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
34624
34625 2003-07-17  Karl Berry  <karl@gnu.org>
34626
34627         * config/config.sub: update from prep.
34628
34629 2003-07-17  Bruno Haible  <bruno@clisp.org>
34630
34631         * modules/getnline: New file.
34632         * modules/getline: Add lib/getndelim2.c to source file list.
34633         * MODULES.html.sh (func_all_modules): Add getnline.
34634
34635 2003-07-17  Bruno Haible  <bruno@clisp.org>
34636
34637         * m4/getnline.m4: New file.
34638
34639 2003-07-17  Bruno Haible  <bruno@clisp.org>
34640
34641         * m4/Makefile.am.in: Remove file.
34642         * m4/Makefile.am: Remove file.
34643         * m4/Makefile.in: Remove file.
34644
34645 2003-07-17  Bruno Haible  <bruno@clisp.org>
34646
34647         * lib/getnline.h: New file.
34648         * lib/getnline.c: New file.
34649         * lib/getndelim2.c: New file, extracted from getline.c.
34650         (getndelim2): Renamed from getdelim2, with added nmax argument.
34651         * lib/getline.c: Include getndelim2.c.
34652         (getdelim2): Moved out to getndelim2.c.
34653         (getline, getdelim): Update.
34654
34655 2003-07-17  Bruno Haible  <bruno@clisp.org>
34656
34657         * lib/Makefile.am: Remove file.
34658         * lib/Makefile.in: Remove file.
34659
34660 2003-07-17  Bruno Haible  <bruno@clisp.org>
34661
34662         * configure.in: Remove file.
34663         * Makefile.in: Remove file.
34664
34665 2003-07-17  Bruno Haible  <bruno@clisp.org>
34666
34667         * MODULES.html.sh: Put the </BODY> right before </HTML>.
34668
34669 2003-07-16  Karl Berry  <karl@gnu.org>
34670
34671         * config/srclist-update: was running fixlicense twice, which caused
34672                 texinfo.tex to be nullified for some reason.  Simplify,
34673                 $gplsrc is no longer needed as far as I can see?
34674
34675 2003-07-16  Jim Meyering  <jim@meyering.net>
34676
34677         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
34678
34679 2003-07-15  Paul Eggert  <eggert@twinsun.com>
34680
34681         * config/srclist.txt: Get the following files from gettext-runtime/intl
34682         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
34683         ref-del.sin.  From Bruno Haible.
34684         * config/srclist-update (fixfile): Change grep pattern again, since the
34685         previous fix didn't work (there was another trailing $).  Use
34686         '[$]' to escape the $s.
34687
34688 2003-07-15  Karl Berry  <karl@gnu.org>
34689
34690         * lib/vasnprintf.c: update from gettext.
34691
34692 2003-07-15  Karl Berry  <karl@gnu.org>
34693
34694         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
34695         gets expanded when surrounded by '$'.
34696
34697 2003-07-15  Jim Meyering  <jim@meyering.net>
34698
34699         * modules/save-cwd: Don't depend on error.  From Derek Price.
34700
34701 2003-07-15  Jim Meyering  <jim@meyering.net>
34702
34703         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
34704
34705 2003-07-14  Simon Josefsson  <jas@extundo.com>
34706
34707         * modules/mempcpy: New file.
34708         * MODULES.html.sh (func_all_modules): Add mempcpy.
34709
34710 2003-07-14  Simon Josefsson  <jas@extundo.com>
34711
34712         * m4/mempcpy.m4: New file.
34713
34714 2003-07-14  Simon Josefsson  <jas@extundo.com>
34715
34716         * lib/mempcpy.h: New file.
34717         * lib/mempcpy.c: New file.
34718
34719 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34720
34721         * modules/getdate, modules/posixtm: Depend on mktime.
34722
34723 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34724
34725         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
34726         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
34727         unicodeio.c, unicodeio.h, unlocked-io.h:
34728         Switch from LGPL to GPL.
34729
34730 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34731
34732         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
34733         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
34734         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
34735         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
34736         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
34737         updated automatically by ../config/srclist-update.  This changes
34738         their license from LPGL to GPL.
34739
34740 2003-07-14  Paul Eggert  <eggert@twinsun.com>
34741
34742         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
34743         assumed to refer to the root of the most recent stable gettext version.
34744         * config/srclistvars.sh: Add defaults for eggert.
34745         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
34746         Match "This program" as well as "The program".  This is needed
34747         for gettext.
34748
34749 2003-07-14  Jim Meyering  <jim@meyering.net>
34750
34751         Don't emit diagnostics.  Let callers do that.
34752         * lib/save-cwd.c: Don't include "error.h".
34753         (save_cwd): Don't call error.  Ensure that errno is valid
34754         when returning nonzero.
34755
34756         * lib/save-cwd.h (restore_cwd): Update prototype.
34757         * lib/save-cwd.c (restore_cwd): Remove two parameters.
34758         Simplify.  Don't call error upon failure.  Let callers do that.
34759         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
34760         when auditing is enabled.  But don't bother updating the #if.
34761
34762 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
34763
34764         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
34765         it breaks C++ compilation.
34766         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
34767
34768 2003-07-10  Simon Josefsson  <jas@extundo.com>
34769
34770         * modules/strchrnul (Makefile.am): Add strchrnul.h.
34771
34772 2003-07-10  Jim Meyering  <jim@meyering.net>
34773
34774         * m4/clock_time.m4: Remove trailing blank.
34775         * m4/intmax_t.m4: Likewise.
34776
34777 2003-07-10  Jim Meyering  <jim@meyering.net>
34778
34779         * lib/vasnprintf.c: Remove trailing blanks.
34780         Make cpp indentation consistent.
34781
34782 2003-07-09  Paul Eggert  <eggert@twinsun.com>
34783
34784         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
34785         posixver.c, strftime.c, strnlen.c, strverscmp.c:
34786         Switch from LGPL to GPL.
34787
34788 2003-07-09  Paul Eggert  <eggert@twinsun.com>
34789
34790         * config/srclist.txt: Sort sublists.  Add
34791         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
34792         that differ from gnulib for one reason or another; we'd like this list
34793         to be smaller but for now let's document what we have.
34794
34795 2003-07-08  Paul Eggert  <eggert@twinsun.com>
34796
34797         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
34798         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
34799         and sweeter "eval x=$x".
34800         * config/srclist.txt: Get lib/argp* from glibc.
34801
34802 2003-07-07  Paul Eggert  <eggert@twinsun.com>
34803
34804         * lib/mktime.c: Fix some boundary cases and remove need for floating
34805         point.
34806
34807         Issue a compile-time diagnostic if time_t is floating point, or if
34808         two's complement arithmetic is not in effect, or if arithmetic
34809         right shift does not propagate the sign.  These assumptions were
34810         all in the original code but they weren't checked.
34811
34812         (TIME_T_MIDPOINT, verify): New macros.
34813         (__isleap): Remove; it has integer overflow problems.
34814         (leapyear): New function, without those problems.
34815         (ydhms_tm_diff): Remove; splitting into two parts.
34816         (ydhms_diff): New function, containing the arithmetic part of
34817         the old ydhms_tm_diff function.  Issue a compile-time
34818         diagnostic if we are not using C99 integer division.
34819         Avoid casts when possible.
34820         (guess_time_tm): New function, containing the checking part of
34821         the old ydhms_tm_diff function.  Return the new value, rather than
34822         the difference between it and the old.  Accept a new argument T
34823         so that *T specifies the old value.  Check for overflow in the result.
34824
34825         (__mktime_internal): Use a time_t offset, not a long int offset.
34826         This undoes the 2003-06-04 change, which is no longer needed now
34827         that we have better overflow checking.
34828         (localtime_offset): Likewise.
34829
34830         (__mktime_internal): Avoid harmful overflow on hosts where time_t
34831         and long are 64-bit but int is only 32-bit.
34832         (ydhms_diff): Use long int to store year1 and yday1.
34833         Issue a compile-time diagnostic if long int is not wide enough.
34834
34835         (__mktime_internal): Use long int to store adjusted year and yday.
34836         Use plain C rather than preprocessor commands, if that doesn't
34837         affect efficiency.
34838         Check for overflow (and try to repair) after each probe
34839         rather than checking only at the very end.  This avoids some bugs
34840         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
34841         does not equal GMT offset at maximum time).
34842         Use integer to check for overflow rather than floating point; this
34843         is more portable to non-IEEE hosts, and is a tad faster.
34844         When we detect that we are oscillating between two values,
34845         don't check whether tm_isdst has the requested value, since
34846         we already know the answer.  When tm_isdst has the wrong value,
34847         use a different heuristic to find the right one, based on the
34848         extreme values actually observed in practice in tz2003a,
34849         rather than the (overly optimistic) "previous 3 calendar quarters".
34850
34851         (not_equal_tm, print_tm, check_result): Use "const T" rather than
34852         "T const" to accommodate glibc style.
34853         (check_result): Use less-confusing report format.  "long" -> "long int.
34854         (main): Likewise.
34855         Don't loop if the iteration overflows time_t.
34856         Allow a negative step in the iteration.
34857
34858 2003-07-06  Karl Berry  <karl@gnu.org>
34859
34860         * config/depcomp: update from automake.
34861         * config/config.sub: update from prep.
34862
34863 2003-07-03  Karl Berry  <karl@gnu.org>
34864
34865         * config/config.guess: update from prep.
34866
34867 2003-07-01  Paul Eggert  <eggert@twinsun.com>
34868
34869         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
34870         xreadlink.c now includes it unconditionally.
34871
34872 2003-07-01  Paul Eggert  <eggert@twinsun.com>
34873
34874         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
34875         having it depend on HAVE_SYS_TYPES_H.
34876
34877 2003-07-01  Bruno Haible  <bruno@clisp.org>
34878
34879         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
34880         <sys/types.h> should be sufficient.
34881         Reported by Paul Eggert.
34882
34883 2003-06-26  Karl Berry  <karl@gnu.org>
34884
34885         * config/depcomp: update from automake.
34886
34887 2003-06-26  Bruno Haible  <bruno@clisp.org>
34888
34889         * modules/human: Depend on module stdbool.
34890
34891 2003-06-25  Bruno Haible  <bruno@clisp.org>
34892
34893         * modules/readlink: New file.
34894         * modules/xreadlink: Depend on it.
34895         * MODULES.html.sh (func_all_modules): Add readlink.
34896
34897 2003-06-25  Bruno Haible  <bruno@clisp.org>
34898
34899         * m4/readlink.m4: New file.
34900
34901 2003-06-25  Bruno Haible  <bruno@clisp.org>
34902
34903         * lib/readlink.c: New file.
34904
34905 2003-06-22  Karl Berry  <karl@gnu.org>
34906
34907         * config/srclist.txt: update mkinstalldirs from automake.
34908         * config/mkinstalldirs: update.
34909
34910 2003-06-22  Bruno Haible  <bruno@clisp.org>
34911
34912         Portability to mingw32.
34913         * m4/ssize_t.m4: New file, from GNU gettext.
34914         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
34915         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
34916
34917 2003-06-22  Bruno Haible  <bruno@clisp.org>
34918
34919         * modules/safe-read: Add m4/ssize_t.m4.
34920         * modules/xreadlink: Add m4/ssize_t.m4.
34921
34922 2003-06-20  Bruno Haible  <bruno@clisp.org>
34923
34924         Assume C89, so PARAMS isn't needed.
34925         * lib/unicodeio.h (PARAMS): Remove.
34926         * lib/unicodeio.c: Don't use PARAMS.
34927
34928 2003-06-18  Karl Berry  <karl@gnu.org>
34929
34930         * config/config.{guess,sub}: update from prep.
34931
34932 2003-06-18  Jim Meyering  <jim@meyering.net>
34933
34934         Merge changes from coreutils.
34935         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
34936         Remove explicit declarations of xmalloc and realloc.
34937         Include xalloc.h.
34938         (read_utmp): Remove anachronistic cast of xmalloc.
34939
34940 2003-06-17  Paul Eggert  <eggert@twinsun.com>
34941
34942         Assume C89, so PARAMS isn't needed.
34943         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
34944         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
34945         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
34946         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
34947         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
34948         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
34949         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
34950         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
34951         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
34952         lib/xstrtod.h, lib/xstrtol.h: Likewise.
34953         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
34954         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
34955         no longer needed. Anyway, config.h should always be included before any
34956         other file.
34957
34958 2003-06-11  Simon Josefsson  <jas@extundo.com>
34959
34960         * modules/sysexits: New file.
34961         * MODULES.html.sh (func_all_modules): Add sysexits.
34962
34963 2003-06-11  Simon Josefsson  <jas@extundo.com>
34964
34965         * lib/sysexit_.h: New file.
34966
34967 2003-06-11  Derek Price  <derek@ximbiot.com>
34968
34969         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
34970         necessary.
34971
34972 2003-06-11  Bruno Haible  <bruno@clisp.org>
34973
34974         * m4/sysexits.m4: New file.
34975
34976 2003-06-10  Simon Josefsson  <jas@extundo.com>
34977
34978         * lib/argp.h: New file, from glibc.
34979         * lib/argp-ba.c: New file, from glibc.
34980         * lib/argp-eexst.c: New file, from glibc.
34981         * lib/argp-fmtstream.c: New file, from glibc.
34982         * lib/argp-fmtstream.h: New file, from glibc.
34983         * lib/argp-fs-xinl.c: New file, from glibc.
34984         * lib/argp-help.c: New file, from glibc.
34985         * lib/argp-namefrob.h: New file, from glibc.
34986         * lib/argp-parse.c: New file, from glibc.
34987         * lib/argp-pv.c: New file, from glibc.
34988         * lib/argp-pvh.c: New file, from glibc.
34989         * lib/argp-xinl.c: New file, from glibc.
34990
34991 2003-06-10  Simon Josefsson  <jas@extundo.com>
34992
34993         * modules/strchrnul: New file.
34994
34995 2003-06-10  Simon Josefsson  <jas@extundo.com>
34996
34997         * modules/argp: New file.
34998
34999 2003-06-10  Simon Josefsson  <jas@extundo.com>
35000
35001         * m4/strchrnul.m4: New file.
35002
35003 2003-06-10  Simon Josefsson  <jas@extundo.com>
35004
35005         * lib/strchrnul.h: New file.
35006         * lib/strchrnul.c: New file.
35007
35008 2003-06-10  Bruno Haible  <bruno@clisp.org>
35009
35010         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
35011
35012 2003-06-07  Karl Berry  <karl@gnu.org>
35013
35014         * config/config.{guess,sub}: update from prep.
35015
35016 2003-06-07  Jim Meyering  <jim@meyering.net>
35017
35018         * modules/strtod: Use $(...) notation, not @...@ for
35019         AC_REPLACE'd variables.
35020         * modules/localcharset: Likewise.
35021
35022 2003-06-07  Jim Meyering  <jim@meyering.net>
35023
35024         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
35025         in place of my name in the copyright comment.
35026         Remove definition and uses of __P.
35027
35028         From coreutils.
35029         * lib/stat.c: Don't declare xmalloc explicitly.
35030         Instead, include "xalloc.h".
35031         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
35032         xrealloc, and xcalloc return values.
35033         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
35034         Improve comment.
35035         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
35036
35037 2003-06-07  Bruno Haible  <bruno@clisp.org>
35038
35039         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
35040         avoid AC_CONFIG_LINKS.
35041         * modules/fnmatch (Makefile.am): Use explicit creation rule for
35042         fnmatch.h, to avoid AC_CONFIG_LINKS.
35043         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
35044
35045 2003-06-07  Bruno Haible  <bruno@clisp.org>
35046
35047         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
35048         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
35049         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
35050         directory.
35051         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
35052         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
35053         directory.
35054
35055 2003-06-06  Jim Meyering  <jim@meyering.net>
35056
35057         Merge from coreutils.
35058         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
35059         Consolidate declarations and initializations of *_base* locals.
35060
35061         Merge from coreutils.
35062         This avoids a core dump on systems without GNU putenv,
35063         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
35064         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
35065         (unsetenv): New static function, from GNU libc.
35066         (rpl_putenv): Use it.
35067
35068         * lib/modechange.c: Remove trailing blanks.
35069
35070         Merge from coreutils.
35071         * lib/fsusage.c: Remove declaration of statfs.
35072         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
35073
35074         * lib/posixtm.c: Include <stdbool.h> unconditionally.
35075
35076 2003-06-06  Jim Meyering  <jim@meyering.net>
35077
35078         * lib/stdbool_.h: Renamed from stdbool.h.in.
35079
35080 2003-06-06  Jim Meyering  <jim@meyering.net>
35081             Bruno Haible  <bruno@clisp.org>
35082
35083         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
35084         Adjust Makefile.am snippet not to redirect directly to target.
35085         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
35086
35087 2003-06-05  Paul Eggert  <eggert@twinsun.com>
35088
35089         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
35090         mismatch, look in future quarters as well as past.  This fixes a
35091         bug when processing fall-backwards gaps immediately after a long
35092         period of daylight-saving time.
35093
35094         * lib/mktime.c: Assume freestanding C89 or better.
35095         (HAVE_LIMITS_H): Remove.  Assume it's 1.
35096         (__P): Remove; not used.
35097         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
35098         (mktime, not_equal_tm, print_tm, check_result,
35099         main): Use prototypes.  Use const * where appropriate.
35100         (main): Fix typo in testing code that uncovered by above changes.
35101         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
35102
35103 2003-06-04  Paul Eggert  <eggert@twinsun.com>
35104
35105         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
35106         locale.h, localeconv.  This merges changes from coreutils.
35107
35108         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
35109         It can be removed after the next Autoconf is released.
35110         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
35111         needed.
35112
35113 2003-06-04  Paul Eggert  <eggert@twinsun.com>
35114
35115         * lib/mktime.c: Fix Debian bug 177940
35116         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
35117         (localtime_offset): Now long int, not time_t, because we want it
35118         to be guaranteed to be signed.  All uses changed.
35119         (__mktime_internal): If overflow would occur when adding offset,
35120         don't add it.
35121
35122         Merge 'human' changes from coreutils.  Rewrite to support
35123         locale-specific notations like thousands separators.
35124         * lib/human.c: Simplify authorship notice.
35125         Include human.h immediately after config.h.
35126         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
35127         <limits.h>: Do not include, since human.h does.
35128         (SIZE_MAX, UINTMAX_MAX): New macros.
35129         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
35130         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
35131         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
35132         (power_letter): Renamed from suffixes.
35133         (generate_suffix_backwards): Remove.
35134         (adjust_value): Now takes int style (because of human.h changes)
35135         and long double value (for greater precision on some platforms).
35136         (group_number): New function.
35137         (human_readable): Use it.  Use integer options, not enum.
35138         Put the options before the sizes in the arg list.
35139         Support all the new options.
35140         The old human_readable function has been removed;
35141         use inttostr.h instead.
35142         (human_readable, default_block_size, humblock):
35143         Use uintmax_t, not int, for block sizes.
35144         (human_readable_inexact, block_size_types): Remove.
35145         (block_size_opts): New constant.
35146         (human_options): Renamed from human_block_size, with new signature
35147         that allows block sizes up to UINTMAX_MAX.  All callers changed.
35148         * lib/human.h: Add copyright and authorship notice.
35149         Include <limits.h> and <stdbool.h> unconditionally.
35150         (PARAMS): Remove.  All uses removed.
35151         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
35152         (enum human_inexact_style): Remove tag; now a nameless enum.
35153         (human_floor, human_ceiling, human_round_to_even): Now have
35154         values 2, 0, 1 rather than -1, 1, 0.
35155         (human_group_digits, human_suppress_point_zero, human_autoscale,
35156         human_base_1024, human_SI, human_B): New constants.
35157         (human_readable_inexact, human_block_size): Remove.
35158         (human_readable): Size args are now uintmax_t, not int.
35159         (human_options): New decl.
35160
35161         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
35162         unnecessary now that we assume C89 or better.  This change
35163         imported from coreutils.
35164
35165         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
35166         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
35167         in the 2003-05-30 sync from glibc.
35168
35169         .h files should stand alone, but we shouldn't include <sys/types.h>
35170         if we can get away with just <stddef.h>.
35171
35172         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
35173         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
35174         rather than <sys/types.h>, as we merely need size_t.
35175         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
35176         to get size_t.
35177         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
35178         Include <stdio.h>, to get FILE.
35179         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
35180         memcasecmp.h has included <stddef.h> and all we need is size_t.
35181         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
35182         our interface, instead of including <sys/types.h>
35183
35184 2003-06-04  Paul Eggert  <eggert@twinsun.com>
35185
35186         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
35187         now, as glibc mktime is buggy on non-glibc systems.
35188
35189 2003-06-03  Karl Berry  <karl@gnu.org>
35190
35191         * config/config.sub: update from prep.
35192
35193 2003-06-02  Paul Eggert  <eggert@twinsun.com>
35194
35195         [from coreutils]
35196         Fix some minor time-related bugs with POSIX time arguments.
35197         Some valid time stamps were being rejected (notably -1, and
35198         time stamps before 1900 on 64-bit hosts).  And some invalid
35199         time stamps were being accepted, e.g. September 31.
35200
35201         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
35202         that we can return (time_t) -1 successfully.
35203         * lib/posixtm.c: Likewise.
35204         [HAVE_STDBOOL_H]: Include <stdbool.h>.
35205         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
35206         (t): Remove static var.
35207         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
35208         of static var.  All uses changed.
35209         (year): Do not reject years before 1900; they can occur with
35210         64-bit time_t.
35211         (posix_time_parse): Do not check for out-of-range components;
35212         that is now the caller's responsibility, since our checks were
35213         only approximations.
35214         (posixtime): Use mktime to check for out-of-range components,
35215         since it knows them exactly.
35216         If mktime returns (time_t) -1, check whether an error actually occurred
35217         by invoking localtime on -1.
35218         (main) [TEST_POSIXTIME]: Check for input data errors, and report
35219         posixtime failures better.
35220         Improve the test data (in comments only).
35221
35222 2003-06-02  Karl Berry  <karl@gnu.org>
35223
35224         * config/mkinstalldirs (version): new variable.
35225         (--version): new option.
35226         (usage): improve message.
35227
35228 2003-05-30  Karl Berry  <karl@gnu.org>
35229
35230         * lib/mktime.c: update from libc.
35231
35232 2003-05-30  Bruno Haible  <bruno@clisp.org>
35233
35234         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
35235         * config/config.rpath: Upgrade to gettext-0.12.1.
35236
35237 2003-05-30  Bruno Haible  <bruno@clisp.org>
35238
35239         * m4/gettext.m4: Upgrade to gettext-0.12.1.
35240         * m4/nls.m4: New file, from gettext-0.12.1.
35241         * m4/po.m4: New file, from gettext-0.12.1.
35242         * m4/progtest.m4: Upgrade to gettext-0.12.1.
35243
35244 2003-05-30  Bruno Haible  <bruno@clisp.org>
35245
35246         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
35247         * lib/localcharset.h: Likewise.
35248         * lib/localcharset.c: Likewise.
35249
35250 2003-05-29  Karl Berry  <karl@gnu.org>
35251
35252         * config/config.rpath: update from gettext.
35253
35254 2003-05-28  Paul Eggert  <eggert@twinsun.com>
35255
35256         Assume the headers required for C89 freestanding compilers.
35257         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
35258         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
35259         * m4/human.m4 (gl_HUMAN): Likewise.
35260         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
35261         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
35262         * m4/userspec.m4 (gl_USERSPEC): Likewise.
35263         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
35264         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35265         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
35266
35267 2003-05-28  Paul Eggert  <eggert@twinsun.com>
35268
35269         Assume the headers required for C89 freestanding compilers.
35270         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
35271         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
35272         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
35273         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
35274         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
35275         define, since <limits.h> is guaranteed to do that.
35276         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
35277         * lib/exclude.c: Include <stdbool.h> unconditionally.
35278         * lib/tempname.c: Include <stddef.h> unconditionally.
35279         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
35280         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
35281         <stddef.h> does that.
35282         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
35283         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
35284         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
35285         needed.
35286         * lib/xstrtol.c: Likewise.
35287         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
35288         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
35289
35290         * lib/addext.c (addext): Use assignment rather than cast, to avoid
35291         warnings on some platforms.
35292
35293         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
35294         arbitrarily.
35295
35296 2003-05-26  Jim Meyering  <jim@meyering.net>
35297
35298         Merge in a change from coreutils:
35299         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
35300         that is guaranteed to be `no'.  Use `no_such_member' to indicate
35301         that condition, rather than `-1' which is slightly misleading.
35302         Change the name of the cache variable to have the gl_ prefix.
35303         Prompted by a patch from Richard Dawe for DJGPP.
35304
35305 2003-05-24  Karl Berry  <karl@gnu.org>
35306
35307         * config/config.guess: update from prep.
35308
35309 2003-05-22  Karl Berry  <karl@gnu.org>
35310
35311         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
35312
35313 2003-05-20  Karl Berry  <karl@gnu.org>
35314
35315         * config/config.guess: update from prep.
35316
35317 2003-05-18  Karl Berry  <karl@gnu.org>
35318
35319         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
35320         might actually be set by the user.
35321
35322         * config/depcomp, install-sh, mdate-sh: update from automake.
35323
35324 2003-05-17  Bruno Haible  <bruno@clisp.org>
35325
35326         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
35327         invalid expansion for AC_EGREP_CPP.
35328         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
35329         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
35330         Suggested by Akim Demaille <akim@epita.fr> in
35331         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
35332
35333 2003-05-12  Jim Meyering  <jim@meyering.net>
35334
35335         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
35336         the space-padded-by-default conversion specifiers, %e, %k, %l.
35337
35338 2003-05-12  Bruno Haible  <bruno@clisp.org>
35339
35340         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
35341         the string is longer than 4 KB.
35342
35343 2003-05-11  Karl Berry  <karl@gnu.org>
35344
35345         * config/config.{guess,sub}: update from prep.
35346
35347 2003-05-09  Bruno Haible  <bruno@clisp.org>
35348
35349         * modules/error: Add m4/strerror_r.m4 to file list.
35350
35351 2003-05-03  Bruno Haible  <bruno@clisp.org>
35352
35353         Upgrade to Unicode-4.0.
35354         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
35355         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
35356         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
35357         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
35358         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
35359         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
35360         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
35361         Change width of U+E0100..U+E01EF from 1 to 0.
35362
35363 2003-04-25  Jim Meyering  <jim@meyering.net>
35364
35365         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
35366         of type size_t, not int.
35367
35368 2003-04-25  Bruno Haible  <bruno@clisp.org>
35369
35370         * lib/copy-file.c: Include <stddef.h>, for size_t.
35371
35372 2003-04-21  Paul Eggert  <eggert@twinsun.com>
35373
35374         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
35375         code which expansion is under static control.  Patch imported from
35376         Akim Demaille's patch to Bison; see
35377         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
35378
35379 2003-04-14  Bruno Haible  <bruno@clisp.org>
35380
35381         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
35382
35383 2003-04-11  Jim Meyering  <jim@meyering.net>
35384
35385         Merge changes from Coreutils.
35386
35387         2003-03-22  Jim Meyering  <jim@meyering.net>
35388
35389         * lib/strftime.c (widen): Cast alloca return value to proper type.
35390
35391         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
35392
35393         From GNU libc.
35394         * lib/strftime.c (my_strftime): Handle very large width
35395         specifications for numeric values correctly.  Improve checks for
35396         overflow.
35397
35398         2003-01-19  Jim Meyering  <jim@meyering.net>
35399
35400         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
35401         definitions.
35402         (nl_get_alt_digit) [! defined my_strftime]: Define.
35403         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
35404         _nl_get_alt_digit and _nl_get_walt_digit.
35405
35406         * lib/strftime.c (my_strftime): Merge in locale-related changes from
35407         libc. These changes have no effect outside of _LIBC.
35408
35409 2003-04-10  Bruno Haible  <bruno@clisp.org>
35410
35411         * modules/findprog: New file.
35412         * MODULES.html.sh (func_all_modules): Add it.
35413
35414 2003-04-10  Bruno Haible  <bruno@clisp.org>
35415
35416         * m4/findprog.m4: New file.
35417         * m4/eaccess.m4: New file.
35418
35419 2003-04-10  Bruno Haible  <bruno@clisp.org>
35420
35421         * lib/findprog.h: New file, from GNU gettext.
35422         * lib/findprog.c: New file, from GNU gettext.
35423
35424 2003-04-05  Jim Meyering  <jim@meyering.net>
35425
35426         Merge changes from Coreutils.
35427
35428         * lib/exclude.h (PARAMS): Remove definition and uses.
35429         * lib/exclude.c: Remove uses of `PARAMS'.
35430
35431         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
35432         Add test-cases for DOS filenames. Declare program_name.
35433         (main): Set up program_name.  Patch by Rich Dawe.
35434
35435         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
35436         error from mntctl.
35437         Use mntctl's return value to drive the entry-processing loop, since
35438         we can't rely on the value of the vmt_length member in the last
35439         entry.  On some systems doing so could result in exhausting
35440         virtual memory.  Based in part on a patch from Mike Jetzer.
35441
35442 2003-04-04  Bruno Haible  <bruno@clisp.org>
35443
35444         * modules/linebreak: New file.
35445         * MODULES.html.sh (func_all_modules): Add it.
35446
35447 2003-04-04  Bruno Haible  <bruno@clisp.org>
35448
35449         * m4/linebreak.m4: New file.
35450
35451 2003-04-04  Bruno Haible  <bruno@clisp.org>
35452
35453         * lib/linebreak.h: New file, from GNU gettext.
35454         * lib/linebreak.c: New file, from GNU gettext with slight
35455         modifications.
35456         * lib/lbrkprop.h: New file, from GNU gettext.
35457
35458 2003-04-03  Bruno Haible  <bruno@clisp.org>
35459
35460         * modules/utf8-ucs4: New file.
35461         * modules/utf16-ucs4: New file.
35462         * modules/ucs4-utf8: New file.
35463         * modules/ucs4-utf16: New file.
35464         * MODULES.html.sh (func_all_modules): Add them.
35465
35466 2003-04-03  Bruno Haible  <bruno@clisp.org>
35467
35468         * m4/utf-ucs4.m4: New file.
35469         * m4/ucs4-utf.m4: New file.
35470
35471 2003-04-03  Bruno Haible  <bruno@clisp.org>
35472
35473         * lib/utf8-ucs4.h: New file, from GNU gettext.
35474         * lib/utf16-ucs4.h: New file, from GNU gettext.
35475         * lib/ucs4-utf8.h: New file, from GNU gettext.
35476         * lib/ucs4-utf16.h: New file, from GNU gettext.
35477
35478 2003-04-02  Bruno Haible  <bruno@clisp.org>
35479
35480         * modules/binary-io: New file.
35481         * MODULES.html.sh (func_all_modules): Add it.
35482
35483 2003-04-02  Bruno Haible  <bruno@clisp.org>
35484
35485         * lib/binary-io.h: New file, from GNU gettext.
35486
35487 2003-04-01  Bruno Haible  <bruno@clisp.org>
35488
35489         * modules/pathname: New file.
35490         * MODULES.html.sh (func_all_modules): Add it.
35491
35492 2003-04-01  Bruno Haible  <bruno@clisp.org>
35493
35494         * lib/pathname.h: New file, from GNU gettext.
35495         * lib/concatpath.c: New file, from GNU gettext.
35496
35497 2003-03-30  Bruno Haible  <bruno@clisp.org>
35498
35499         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
35500
35501 2003-03-30  Bruno Haible  <bruno@clisp.org>
35502
35503         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
35504         function chown() doesn't exist.
35505
35506 2003-03-28  Bruno Haible  <bruno@clisp.org>
35507
35508         * modules/copy-file: New file.
35509         * MODULES.html.sh (func_all_modules): Add it.
35510
35511 2003-03-28  Bruno Haible  <bruno@clisp.org>
35512
35513         * m4/copy-file.m4: New file.
35514
35515 2003-03-28  Bruno Haible  <bruno@clisp.org>
35516
35517         * lib/copy-file.h: New file, from GNU gettext.
35518         * lib/copy-file.c: New file, from GNU gettext.
35519
35520 2003-03-18  Jim Meyering  <jim@meyering.net>
35521
35522         * lib/quote.c (quote_n): Fix typo in comment.
35523
35524 2003-03-18  Bruno Haible  <bruno@clisp.org>
35525
35526         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
35527         checking.
35528         * m4/onceonly_2_57.m4: Likewise.
35529
35530 2003-03-17  Bruno Haible  <bruno@clisp.org>
35531
35532         * m4/onceonly.m4: Require autoconf 2.54 or newer.
35533         (m4_quote): Remove macro.
35534         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
35535
35536 2003-03-14  Jim Meyering  <jim@meyering.net>
35537
35538         Merge changes from Coreutils.
35539         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
35540         to be const, in order to avoid warnings.
35541         (obstack_room): Likewise.
35542         (obstack_empty_p): Likewise.
35543
35544 2003-03-14  Bruno Haible  <bruno@clisp.org>
35545
35546         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
35547         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
35548
35549 2003-03-13  Paul Eggert  <eggert@twinsun.com>
35550
35551         Merge changes from Bison.
35552         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
35553         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
35554         when compiling Bison 1.875's `bitset bset = obstack_alloc
35555         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
35556         * lib/hash.c: Include <stdbool.h> unconditionally.
35557
35558 2003-03-13  Paul Eggert  <eggert@twinsun.com>
35559
35560         * m4/onceonly.m4 (m4_quote): New macro.
35561         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
35562         Quote AC_FOREACH variable-expansions properly.
35563
35564 2003-03-13  Paul Eggert  <eggert@twinsun.com>
35565
35566         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
35567
35568 2003-03-09  Paul Eggert  <eggert@twinsun.com>
35569
35570         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
35571         Reported by Bruce Becker; see:
35572         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
35573
35574 2003-03-03  Paul Eggert  <eggert@twinsun.com>
35575             Bruno Haible  <bruno@clisp.org>
35576
35577         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
35578         Reported by John Hughes, see
35579         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
35580
35581 2003-02-20  Bruno Haible  <bruno@clisp.org>
35582
35583         * MODULES.html.sh (func_all_modules): Add poll.
35584
35585 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35586
35587         * modules/poll: New file.
35588
35589 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35590
35591         * lib/poll_.h: New file.
35592         * lib/poll.c: New file.
35593
35594 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
35595
35596         * m4/poll.m4: New file.
35597
35598 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35599
35600         * modules/mathl: New file.
35601
35602 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35603
35604         * lib/mathl.h: New file.
35605         * lib/acosl.c: New file.
35606         * lib/asinl.c: New file.
35607         * lib/atanl.c: New file.
35608         * lib/ceill.c: New file.
35609         * lib/cosl.c: New file.
35610         * lib/expl.c: New file.
35611         * lib/floorl.c: New file.
35612         * lib/frexpl.c: New file.
35613         * lib/ldexpl.c: New file.
35614         * lib/logl.c: New file.
35615         * lib/sincosl.c: New file.
35616         * lib/sinl.c: New file.
35617         * lib/sqrtl.c: New file.
35618         * lib/tanl.c: New file.
35619         * lib/trigl.c: New file.
35620         * lib/trigl.h: New file.
35621
35622 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
35623
35624         * m4/mathl.m4: New file.
35625
35626 2003-02-18  Bruno Haible  <bruno@clisp.org>
35627
35628         * MODULES.html.sh (func_all_modules): Add mathl.
35629
35630 2003-02-17  Bruno Haible  <bruno@clisp.org>
35631
35632         * modules/mkdtemp: New module.
35633         * MODULES.html.sh (func_all_modules): Add it.
35634
35635 2003-02-17  Bruno Haible  <bruno@clisp.org>
35636
35637         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
35638
35639 2003-02-17  Bruno Haible  <bruno@clisp.org>
35640
35641         * lib/mkdtemp.h: New file, from GNU gettext.
35642         * lib/mkdtemp.c: New file, from GNU gettext.
35643
35644 2003-02-02  Jim Meyering  <jim@meyering.net>
35645
35646         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
35647         e.g. glibc-2.2.93.
35648
35649 2003-01-31  Bruno Haible  <bruno@clisp.org>
35650
35651         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
35652         'rpl_rename'.
35653         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
35654         'rpl_strnlen'.
35655         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
35656         'rpl_strtod'.
35657         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
35658         'rpl_utime'.
35659
35660 2003-01-31  Bruno Haible  <bruno@clisp.org>
35661
35662         * lib/rename.c: #undef rename before defining rpl_rename.
35663         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
35664
35665 2003-01-30  Bruno Haible  <bruno@clisp.org>
35666
35667         * modules/vasnprintf, modules/vasprintf: New modules.
35668         * MODULES.html.sh (func_all_modules): Add them.
35669
35670 2003-01-30  Bruno Haible  <bruno@clisp.org>
35671
35672         * m4/signed.m4: New file, from GNU gettext.
35673         * m4/longdouble.m4: New file, from GNU gettext.
35674         * m4/wchar_t.m4: New file, from GNU gettext.
35675         * m4/wint_t.m4: New file, from GNU gettext.
35676         * m4/vasnprintf.m4: New file.
35677         * m4/vasprintf.m4: New file.
35678
35679 2003-01-30  Bruno Haible  <bruno@clisp.org>
35680
35681         * lib/printf-args.h: New file, from GNU gettext.
35682         * lib/printf-args.c: New file, from GNU gettext.
35683         * lib/printf-parse.h: New file, from GNU gettext.
35684         * lib/printf-parse.c: New file, from GNU gettext.
35685         * lib/vasnprintf.h: New file, from GNU gettext.
35686         * lib/vasnprintf.c: New file, from GNU gettext.
35687         * lib/asnprintf.c: New file, from GNU gettext.
35688         * lib/vasprintf.h: New file, from GNU gettext with modifications.
35689         * lib/vasprintf.c: New file, from GNU gettext.
35690         * lib/asprintf.c: New file, from GNU gettext.
35691
35692 2003-01-29  Bruno Haible  <bruno@clisp.org>
35693
35694         * modules/stpncpy: New module.
35695         * MODULES.html.sh (func_all_modules): Add it.
35696
35697 2003-01-29  Bruno Haible  <bruno@clisp.org>
35698
35699         * m4/stpncpy.m4: New file.
35700
35701 2003-01-29  Bruno Haible  <bruno@clisp.org>
35702
35703         * lib/stpncpy.h: New file, from GNU gettext with modifications.
35704         * lib/stpncpy.c: New file, from GNU gettext with modifications.
35705
35706 2003-01-28  Bruno Haible  <bruno@clisp.org>
35707
35708         * modules/c-ctype: New module.
35709         * MODULES.html.sh (func_all_modules): Add it.
35710
35711 2003-01-28  Bruno Haible  <bruno@clisp.org>
35712
35713         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
35714         Paul Eggert.
35715         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
35716         Paul Eggert.
35717
35718 2003-01-27  Bruno Haible  <bruno@clisp.org>
35719
35720         * modules/xsetenv: New module.
35721         * MODULES.html.sh (func_all_modules): Add it.
35722
35723 2003-01-27  Bruno Haible  <bruno@clisp.org>
35724
35725         * lib/xsetenv.h: New file, from GNU gettext.
35726         * lib/xsetenv.c: New file, from GNU gettext.
35727
35728 2003-01-23  Jim Meyering  <jim@meyering.net>
35729
35730         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
35731         from working on systems without dirfd (at least Irix and OSF1/Tru64).
35732
35733 2003-01-23  Bruno Haible  <bruno@clisp.org>
35734
35735         * modules/minmax: New module.
35736         * MODULES.html.sh (func_all_modules): Add it.
35737
35738 2003-01-23  Bruno Haible  <bruno@clisp.org>
35739
35740         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
35741         Eggert.
35742
35743 2003-01-22  Bruno Haible  <bruno@clisp.org>
35744
35745         * modules/exit: New module.
35746         * MODULES.html.sh (func_all_modules): Add it.
35747
35748 2003-01-22  Bruno Haible  <bruno@clisp.org>
35749
35750         * lib/exit.h: New file, from GNU gettext.
35751
35752 2003-01-19  Bruno Haible  <bruno@clisp.org>
35753
35754         * gnulib-tool: Recognize option --extract-maintainer.
35755         (func_get_maintainer): New function.
35756         * modules/*: Add Maintainer entry.
35757
35758 2003-01-16  Jim Meyering  <jim@meyering.net>
35759
35760         * m4/regex.m4: The `regex' struct is both input and output.
35761         Initialize it before each use.  Patch by Tim Waugh.
35762
35763 2003-01-16  Bruno Haible  <bruno@clisp.org>
35764
35765         * MODULES.html.sh: Add a table of contents. Add the module name as
35766         leftmost column. Add hyperlinks.
35767
35768 2003-01-15  Bruno Haible  <bruno@clisp.org>
35769
35770         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
35771
35772 2003-01-15  Bruno Haible  <bruno@clisp.org>
35773
35774         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
35775         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
35776         suffix.
35777
35778 2003-01-15  Bruno Haible  <bruno@clisp.org>
35779
35780         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
35781
35782 2003-01-15  Bruno Haible  <bruno@clisp.org>
35783
35784         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
35785         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
35786
35787 2003-01-14  Jim Meyering  <jim@meyering.net>
35788
35789         * lib/same.c (same_name): Tweak a comment.
35790
35791 2003-01-14  Bruno Haible  <bruno@clisp.org>
35792
35793         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
35794         when a string comparison is sufficient.
35795
35796 2003-01-14  Bruno Haible  <bruno@clisp.org>
35797
35798         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
35799         'unsigned int'.
35800
35801 2003-01-14  Bruno Haible  <bruno@clisp.org>
35802
35803         * lib/hash-pjw.c: Add comment about low quality of this function.
35804
35805 2003-01-13  Bruno Haible  <bruno@clisp.org>
35806
35807         * modules/stpcpy: Distribute lib/stpcpy.h.
35808         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
35809
35810 2003-01-13  Bruno Haible  <bruno@clisp.org>
35811
35812         * modules/*: Add a description.
35813         * modules/strpbrk: Fix Makefile.am snippet.
35814         * modules/strtoimax: Fix dependencies.
35815         * modules/strtoumax: Likewise.
35816
35817 2003-01-13  Bruno Haible  <bruno@clisp.org>
35818
35819         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
35820         * modules/alloca (Makefile.am): All object files depend on alloca.h.
35821         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
35822
35823 2003-01-13  Bruno Haible  <bruno@clisp.org>
35824
35825         * gnulib-tool (func_create_testdir): Store config/* files in the main
35826         directory.
35827         * config.rpath: Move to ...
35828         * config/config.rpath: ... here.
35829         * modules/gettext: Contains config/config.rpath, not config.rpath.
35830         * modules/iconv: Likewise.
35831
35832 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35833
35834         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35835         to avoid collisions with libcurses and libreadline.
35836
35837         * m4/getstr.m4: Remove.
35838         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
35839
35840 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35841
35842         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35843         to avoid collisions with libcurses and libreadline.
35844
35845         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
35846         * lib/getstr.h, getstr.c: Remove.
35847         * lib/getline.c: Include "getline.h", to check interface.
35848         Move body of old getstr.c here: this defines MIN_CHUNK and
35849         declares getdelim2, which is renamed from getstr.
35850         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
35851
35852         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
35853         All uses changed.
35854         * lib/linebuffer.h: Likewise.
35855         (readline): Remove backward-compatibility macro.
35856
35857 2003-01-12  Paul Eggert  <eggert@twinsun.com>
35858
35859         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35860         to avoid collisions with libcurses and libreadline.
35861         * getstr: Remove.
35862         * MODULES.html.sh: Remove getstr.
35863         * modules/getline: Depend on unlocked-io, not getstr.
35864
35865 2003-01-12  Jim Meyering  <jim@meyering.net>
35866
35867         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
35868
35869 2003-01-10  Bruno Haible  <bruno@clisp.org>
35870
35871         * modules/alloca: Change Makefile.am requirements. Simplify Include
35872         requirements. Add lib/alloca_.h to file list.
35873
35874 2003-01-10  Bruno Haible  <bruno@clisp.org>
35875
35876         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
35877
35878 2003-01-10  Bruno Haible  <bruno@clisp.org>
35879
35880         * lib/alloca_.h: New file.
35881         * lib/getdate.y: Unconditionally include alloca.h.
35882         * lib/makepath.c: Likewise.
35883         * lib/setenv.c: Likewise.
35884         * lib/userspec.c: Likewise.
35885
35886 2003-01-09  Karl Berry  <karl@gnu.org>
35887
35888         * MODULES.html.sh: include `dirname $0` in PATH, to find
35889         gnulib-tool.
35890
35891 2003-01-09  Bruno Haible  <bruno@clisp.org>
35892
35893         * modules/stdbool: Change configure.ac, Makefile.am requirements.
35894         Simplify Include requirements. Add lib/stdbool.h.in to file list.
35895
35896 2003-01-09  Bruno Haible  <bruno@clisp.org>
35897
35898         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
35899
35900 2003-01-09  Bruno Haible  <bruno@clisp.org>
35901
35902         * lib/stdbool.h.in: New file.
35903
35904 2003-01-09  Bruno Haible  <bruno@clisp.org>
35905
35906         * gnulib-tool (func_all_modules): Ignore files ending in ~.
35907         * MODULES.html.sh: Likewise.
35908
35909 2003-01-08  Jim Meyering  <jim@meyering.net>
35910
35911         * lib/full-write.c: Undefine and define-away `const' after inclusion
35912         of errno.h, not before.  Suggestion from Bruno Haible.
35913
35914 2003-01-08  Bruno Haible  <bruno@clisp.org>
35915
35916         * modules/full-read: Depend on full-write.
35917
35918 2003-01-08  Bruno Haible  <bruno@clisp.org>
35919
35920         * lib/safe-read.c: Include specification header first, to ensure its
35921         selfcontainedness.
35922         * lib/full-write.c: Likewise.
35923
35924 2003-01-07  Jim Meyering  <jim@meyering.net>
35925
35926         * lib/full-write.c: Rework so that it may serve to define full_read,
35927         too.
35928         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
35929
35930 2003-01-07  Bruno Haible  <bruno@clisp.org>
35931
35932         * lib/strtoimax.c: Include <stdint.h> as an alternative to
35933         <inttypes.h>.
35934         * lib/xstrtol.h: Likewise.
35935         * lib/xstrtoimax.c: Likewise.
35936         * lib/xstrtoumax.c: Likewise.
35937         * lib/human.h: Likewise.
35938
35939         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
35940         on systems that have <inttypes.h> but not <stdint.h>.
35941
35942 2003-01-07  Bruno Haible  <bruno@clisp.org>
35943
35944         * MODULES.html.sh: Add copyright notice.
35945         (missed_files): Omit CVS directory entries.
35946         (func_module): Make it work with sed-3.02.
35947         * MODULES.txt: Remove file.
35948
35949 2003-01-06  Jim Meyering  <jim@meyering.net>
35950
35951         * lib/version-etc.c: Update year in translatable copyright string.
35952
35953 2003-01-03  Karl Berry  <karl@gnu.org>
35954
35955         * config/config.{guess,sub}: update from prep.
35956
35957 2003-01-02  Karl Berry  <karl@gnu.org>
35958
35959         * doc/COPYING.DOC: belatedly updated to 1.2.
35960
35961 2003-01-01  Karl Berry  <karl@gnu.org>
35962
35963         * gnulib-tool (func_verify_module): report module name $module in
35964         error message, not $1.
35965         * gnulib-tool (create-testdir): don't complain if destdir couldn't
35966         be created, only if it doesn't exist.
35967         * gnulib-tool (last_checkin_date): don't expand the $Date here.
35968
35969 2002-12-31  Paul Eggert  <eggert@twinsun.com>
35970
35971         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
35972
35973 2002-12-31  Paul Eggert  <eggert@twinsun.com>
35974
35975         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
35976         memcmp if strcoll doesn't work.
35977
35978 2002-12-31  Bruno Haible  <bruno@clisp.org>
35979
35980         * lib/utime.c (utime_null): No need to call ftruncate if the file was
35981         nonempty.
35982
35983 2002-12-31  Bruno Haible  <bruno@clisp.org>
35984
35985         * lib/memcoll.c (STRCOLL): New macro.
35986         (memcoll): Use it.
35987
35988 2002-12-31  Bruno Haible  <bruno@clisp.org>
35989
35990         * lib/localcharset.h: New file.
35991         * lib/localcharset.c: Include it.
35992         * lib/unicodeio.c: Likewise.
35993
35994 2002-12-31  Bruno Haible  <bruno@clisp.org>
35995
35996         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
35997         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
35998
35999 2002-12-31  Bruno Haible  <bruno@clisp.org>
36000
36001         * lib/getline.h: Include <stddef.h>, for size_t.
36002
36003         * lib/unicodeio.h: Include <stddef.h>, for size_t.
36004         * lib/unicodeio.c: Don't include <stddef.h>.
36005
36006 2002-12-31  Bruno Haible  <bruno@clisp.org>
36007
36008         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
36009         HAVE_TM_ZONE.
36010
36011 2002-12-24  Karl Berry  <karl@gnu.org>
36012
36013         * config/config.guess: update from prep.
36014
36015 2002-12-24  Bruno Haible  <bruno@clisp.org>
36016
36017         General infrasructure.
36018         * m4/README: Rewritten.
36019         * m4/onceonly.m4: New file.
36020         * m4/onceonly_2_57.m4: New file.
36021
36022         Module atexit.
36023         * m4/atexit.m4: New file.
36024
36025         Module strtod.
36026         * m4/strtod.m4: New file.
36027
36028         Module strtol.
36029         * m4/strtol.m4: New file.
36030
36031         Module strtoul.
36032         * m4/strtoul.m4: New file.
36033
36034         Module memchr.
36035         * m4/memchr.m4: New file.
36036
36037         Module memcmp.
36038         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
36039         (jm_FUNC_MEMCMP): Invoke it.
36040
36041         Module memcpy.
36042         * m4/memcpy.m4: New file.
36043
36044         Module memmove.
36045         * m4/memmove.m4: New file.
36046
36047         Module memset.
36048         * m4/memset.m4: New file.
36049
36050         Module strcspn.
36051         * m4/strcspn.m4: New file.
36052
36053         Module strpbrk.
36054         * m4/strpbrk.m4: New file.
36055
36056         Module strstr.
36057         * m4/strstr.m4: New file.
36058
36059         Module strerror.
36060         * m4/strerror.m4: New file.
36061
36062         Module mktime.
36063         * m4/mktime.m4: Renamed from jm-mktime.m4.
36064         (gl_PREREQ_MKTIME): New macro.
36065         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
36066
36067         Module malloc.
36068         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
36069         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
36070         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
36071
36072         Module realloc.
36073         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
36074         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
36075         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
36076
36077         Module strftime.
36078         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
36079         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
36080         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
36081         gl_TM_GMTOFF.
36082         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
36083
36084         Module xalloc.
36085         * m4/xalloc.m4: New file.
36086
36087         Module alloca.
36088         * m4/alloca.m4: New file.
36089
36090         Module putenv.
36091         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
36092         (jm_FUNC_PUTENV): Invoke it.
36093
36094         Module setenv.
36095         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
36096         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
36097         when invoked twice.
36098         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
36099         gt_FUNC_SETENV.
36100
36101         Module memrchr.
36102         * m4/memrchr.m4: New file.
36103
36104         Module stpcpy.
36105         * m4/stpcpy.m4: New file.
36106
36107         Module strcase.
36108         * m4/strcase.m4: New file.
36109
36110         Module strdup.
36111         * m4/strdup.m4: New file.
36112
36113         Module strnlen.
36114         * m4/strnlen.m4: New file.
36115
36116         Module strndup.
36117         * m4/strndup.m4: New file.
36118
36119         Module xstrtod.
36120         * m4/xstrtod.m4: New file.
36121
36122         Module xstrtol.
36123         * m4/xstrtol.m4: New file.
36124
36125         Module getdate.
36126         * m4/getdate.m4: New file.
36127
36128         Module unlocked-io.
36129         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
36130         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
36131         * m4/jm-glibc-io.m4n: Remove file.
36132
36133         Module long-options.
36134         * m4/long-options.m4: New file.
36135
36136         Module md5.
36137         * m4/md5.m4: New file.
36138
36139         Module sha.
36140         * m4/sha.m4: New file.
36141
36142         Module getstr.
36143         * m4/getstr.m4: New file.
36144
36145         Module getline.
36146         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
36147         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
36148         <sys/types.h>, for size_t. Use the function name gnu_getline, not
36149         simply getline. Infoke gl_PREREQ_GETLINE.
36150
36151         Module obstack.
36152         * m4/obstack.m4: New file.
36153
36154         Module hash.
36155         * m4/hash.m4: New file.
36156
36157         Module readtokens.
36158         * m4/readtokens.m4: New file.
36159
36160         Module strverscmp.
36161         * m4/strverscmp.m4: New file.
36162
36163         Module stdbool.
36164         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
36165         OSF/1.
36166
36167         Module strtoll.
36168         * m4/strtoll.m4: New file.
36169
36170         Module strtoull.
36171         * m4/strtoull.m4: New file.
36172
36173         Module strtoimax.
36174         * m4/strtoimax.m4: New file.
36175
36176         Module strtoumax.
36177         * m4/strtoumax.m4: New file.
36178
36179         Module xstrtoimax.
36180         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
36181         jm_AC_PREREQ_XSTRTOIMAX.
36182         Moved the strtol prerequisites to strtol.m4.
36183         Moved the strtoll prerequisites to strtoll.m4.
36184         Moved the strtoimax prerequisites to strtoimax.m4.
36185
36186         Module xstrtoumax.
36187         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
36188         jm_AC_PREREQ_XSTRTOUMAX.
36189         Moved the strtoul prerequisites to strtoul.m4.
36190         Moved the strtoull prerequisites to strtoull.m4.
36191         Moved the strtoumax prerequisites to strtoumax.m4.
36192
36193         Module chown.
36194         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
36195         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
36196
36197         Module dup2.
36198         * m4/dup2.m4: New file.
36199
36200         Module ftruncate.
36201         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
36202         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
36203
36204         Module getgroups.
36205         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
36206         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
36207
36208         Module gettimeofday.
36209         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
36210         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
36211         gl_PREREQ_GETTIMEOFDAY.
36212
36213         Module mkdir.
36214         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
36215         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
36216
36217         Module mkstemp.
36218         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
36219         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
36220         jm_AC_TYPE_UINTMAX_T.
36221         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
36222
36223         Module stat.
36224         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
36225         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
36226
36227         Module lstat.
36228         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
36229         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
36230
36231         Module timespec.
36232         * m4/timespec.m4 (gl_TIMESPEC): New macro.
36233         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
36234         * m4/st_mtim.m4: Indentation.
36235
36236         Module nanosleep.
36237         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
36238         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
36239         gl_PREREQ_NANOSLEEP.
36240
36241         Module regex.
36242         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
36243         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
36244         (gl_REGEX): New macro.
36245
36246         Module rename.
36247         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
36248         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
36249
36250         Module rmdir.
36251         * m4/rmdir.m4: New file.
36252
36253         Module utime.
36254         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
36255         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
36256         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
36257
36258         Module dirname.
36259         * m4/dirname.m4: New file.
36260
36261         Module getopt.
36262         * m4/getopt.m4: New file.
36263
36264         Module unistd-safer.
36265         * m4/unistd-safer.m4: New file.
36266
36267         Module fnmatch.
36268         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
36269         declaration.
36270         (gl_PREREQ_FNMATCH_EXTRA): New macro.
36271         (gl_FUNC_FNMATCH_POSIX): New macro.
36272         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
36273         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
36274         simply fnmatch.
36275
36276         Module exclude.
36277         * m4/exclude.m4: New file.
36278
36279         Module human.
36280         * m4/human.m4: New file.
36281
36282         Module acl.
36283         * m4/acl.m4: Nop.
36284
36285         Module backupfile.
36286         * m4/backupfile.m4: New file.
36287         * m4/d-ino.m4: Indentation.
36288
36289         Module fsusage.
36290         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
36291         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
36292         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
36293
36294         Module dirfd.
36295         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
36296         requirements.
36297
36298         Module euidaccess.
36299         * m4/euidaccess.m4: New file.
36300
36301         Module file-type.
36302         * m4/file-type.m4: New file.
36303
36304         Module fileblocks.
36305         * m4/fileblocks.m4: New file.
36306
36307         Module filemode.
36308         * m4/filemode.m4: New file.
36309
36310         Module isdir.
36311         * m4/isdir.m4: New file.
36312
36313         Module lchown.
36314         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
36315         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
36316
36317         Module makepath.
36318         * m4/makepath.m4: New file.
36319
36320         Module modechange.
36321         * m4/modechange.m4: New file.
36322
36323         Module mountlist.
36324         * m4/mountlist.m4: New file.
36325         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
36326         Indentation.
36327
36328         Module path-concat.
36329         * m4/path-concat.m4: New file.
36330
36331         Module pathmax.
36332         * m4/pathmax.m4: New file.
36333
36334         Module same.
36335         * m4/same.m4: New file.
36336
36337         Module save-cwd.
36338         * m4/save-cwd.m4: New file.
36339
36340         Module savedir.
36341         * m4/savedir.m4: New file.
36342
36343         Module xgetcwd.
36344         * m4/xgetcwd.m4: New file.
36345         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
36346
36347         Module xreadlink.
36348         * m4/xreadlink.m4: New file.
36349
36350         Module safe-read.
36351         * m4/safe-read.m4: New file.
36352
36353         Module safe-write.
36354         * m4/safe-write.m4: New file.
36355
36356         Module closeout.
36357         * m4/closeout.m4: New file.
36358
36359         Module stdio-safer.
36360         * m4/stdio-safer.m4: New file.
36361
36362         Module getpass.
36363         * m4/getpass.m4: New file.
36364
36365         Module getugroups.
36366         * m4/getugroups.m4: New file.
36367
36368         Module group-member.
36369         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
36370         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
36371
36372         Module idcache.
36373         * m4/idcache.m4: New file.
36374
36375         Module userspec.
36376         * m4/userspec.m4: New file.
36377
36378         Module gettime.
36379         * m4/clock_time.m4: New file.
36380         * m4/gettime.m4: New file.
36381
36382         Module settime.
36383         * m4/settime.m4: New file.
36384
36385         Module posixtm.
36386         * m4/posixtm.m4: New file.
36387
36388         Module gethostname.
36389         * m4/gethostname.m4: New file.
36390
36391         Module canon-host.
36392         * m4/canon-host.m4: New file.
36393
36394         Module gettext.
36395         * m4/codeset.m4: New file, from gettext-0.11.5.
36396         * m4/gettext.m4: New file, from gettext-0.11.5.
36397         * m4/glibc21.m4: New file, from gettext-0.11.5.
36398         * m4/iconv.m4: New file, from gettext-0.11.5.
36399         * m4/intdiv0.m4: New file, from gettext-0.11.5.
36400         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
36401         * m4/inttypes.m4: New file, from gettext-0.11.5.
36402         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
36403         * m4/isc-posix.m4: New file, from gettext-0.11.5.
36404         * m4/lcmessage.m4: New file, from gettext-0.11.5.
36405         * m4/lib-ld.m4: New file, from gettext-0.11.5.
36406         * m4/lib-link.m4: New file, from gettext-0.11.5.
36407         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
36408         * m4/progtest.m4: New file, from gettext-0.11.5.
36409         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
36410         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
36411         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
36412
36413         Module localcharset.
36414         * m4/localcharset.m4: New file.
36415
36416         Module hard-locale.
36417         * m4/hard-locale.m4: New file.
36418
36419         Module mbswidth.
36420         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
36421         onceonly macros.
36422         * m4/mbrtowc.m4: Add comment.
36423
36424         Module memcasecmp.
36425         * m4/memcasecmp.m4: New file.
36426
36427         Module memcoll.
36428         * m4/memcoll.m4: New file.
36429
36430         Module unicodeio.
36431         * m4/unicodeio.m4: New file.
36432
36433         Module rpmatch.
36434         * m4/rpmatch.m4: New file.
36435
36436         Module yesno.
36437         * m4/yesno.m4: New file.
36438
36439         Module exitfail.
36440         * m4/exitfail.m4: New file.
36441
36442         Module c-stack.
36443         * m4/c-stack.m4 (gl_C_STACK): New macro.
36444         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
36445
36446         Module error.
36447         * m4/error.m4 (gl_ERROR): New macro.
36448         (jm_PREREQ_ERROR): Use onceonly macros.
36449
36450         Module fatal.
36451         * m4/fatal.m4: New file.
36452
36453         Module getloadavg.
36454         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
36455         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
36456
36457         Module getpagesize.
36458         * m4/getpagesize.m4: New file.
36459
36460         Module getusershell.
36461         * m4/getusershell.m4: New file.
36462
36463         Module physmem.
36464         * m4/physmem.m4: New file.
36465
36466         Module posixver.
36467         * m4/posixver.m4: New file.
36468
36469         Module quotearg.
36470         * m4/quotearg.m4: New file.
36471
36472         Module quote.
36473         * m4/quote.m4: New file.
36474
36475         Module readutmp.
36476         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
36477
36478         Module sig2str.
36479         * m4/sig2str.m4: New file.
36480
36481         Other.
36482         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
36483         ulonglong.m4.
36484         * m4/intmax_t.m4: New file.
36485         * m4/d-type.m4: Indentation.
36486         * m4/jm-macros.m4: Update.
36487         * m4/prereq.m4 (jm_PREREQ): Update.
36488         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
36489         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
36490         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
36491         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
36492         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
36493         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
36494         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
36495         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
36496         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
36497         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
36498         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
36499         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
36500         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
36501         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
36502         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
36503         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
36504         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
36505         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
36506         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
36507
36508 2002-12-24  Bruno Haible  <bruno@clisp.org>
36509
36510         * MODULES.txt: Update according to m4/ changes.
36511
36512         Module gettext.
36513         * config.rpath: New file, from gettext-0.11.5.
36514
36515         * modules/*: New module descriptions.
36516         * gnulib-tool: New file.
36517         * MODULES.html.sh: New file.
36518
36519 2002-12-21  Karl Berry  <karl@gnu.org>
36520
36521         * doc/fdl.texi: update to version 1.2.
36522
36523 2002-12-19  Karl Berry  <karl@gnu.org>
36524
36525         * config/config.guess: update from prep.
36526
36527 2002-12-18  Bruno Haible  <bruno@clisp.org>
36528
36529         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
36530         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
36531
36532 2002-12-17  Bruno Haible  <bruno@clisp.org>
36533
36534         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
36535         stdlib.h, string.h.
36536
36537 2002-12-17  Bruno Haible  <bruno@clisp.org>
36538
36539         * lib/canon-host.c (strdup): Remove unused declaration.
36540
36541         * lib/fsusage.c: Include full_read.h.
36542         (get_fs_usage): Use full_read instead of safe_read.
36543
36544         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
36545
36546 2002-12-12  Karl Berry  <karl@gnu.org>
36547
36548         * config/config.guess: update from prep.
36549
36550 2002-12-11  Bruno Haible  <bruno@clisp.org>
36551
36552         * m4/setenv.m4: New file, from gettext-0.11.5.
36553
36554 2002-12-11  Bruno Haible  <bruno@clisp.org>
36555
36556         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
36557         not unsetenv().
36558         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
36559         modifications:
36560
36561         2002-12-11  Bruno Haible  <bruno@clisp.org>
36562
36563                 * setenv.c (alloca): Fall back to malloc.
36564                 (freea): New macro.
36565                 (setenv): Use freea() to free memory allocated with alloca().
36566
36567         2002-11-13  Bruno Haible  <bruno@clisp.org>
36568
36569                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
36570                 function declarations.
36571                 * unsetenv.c (unsetenv): Likewise.
36572
36573         2002-03-04  Bruno Haible  <bruno@clisp.org>
36574
36575                 Portability to AIX 4.3.3.
36576                 * unsetenv.c: New file, extracted from setenv.c.
36577                 * setenv.c: Move the unsetenv() function to unsetenv.c.
36578
36579         2001-12-20  Bruno Haible  <bruno@clisp.org>
36580
36581                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
36582                 use malloc instead. For SunOS 4.
36583
36584         2001-12-11  Bruno Haible  <bruno@clisp.org>
36585
36586                 * setenv.c: Declare alloca.
36587                 (compar_fn_t): New typedef.
36588                 (KNOWN_VALUE, STORE_VALUE): Use it.
36589
36590         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
36591         setenv.h.
36592
36593 2002-12-10  Paul Eggert  <eggert@twinsun.com>
36594
36595         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
36596         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
36597         Choose values that are less likely to collide with system fnmatch
36598         options.
36599         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
36600         defined (e.g., a pure POSIX system).
36601         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
36602         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
36603
36604 2002-12-06  Paul Eggert  <eggert@twinsun.com>
36605
36606         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
36607         a pain in practice to deal with generated m4 files.  This change
36608         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
36609
36610         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
36611         and jm-glibc-io.m4, as they are no longer a special case.
36612         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
36613         kludge and the auto-generation stuff.  Check only whether the
36614         functions are declared, not whether they exist, since older hosts
36615         that don't declare the functions can't use the optimization anyway.
36616
36617 2002-12-06  Jim Meyering  <jim@meyering.net>
36618
36619         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
36620
36621         Merge in changes from libc's misc/error.c, in preparation
36622         for the merge of gnulib's changes back into libc.
36623
36624         * lib/error.c (_): Define only if not already defined.
36625         Move definition to follow all #include directives.
36626         Include unlocked-io.h only if !_LIBC.
36627         [_LIBC]: Include <libio/libioP.h>.
36628         [USE_IN_LIBIO]: Include <libio/iolibio.h>
36629         (fflush): Tweak definition to use INTUSE.
36630         (putc): Define.
36631
36632 2002-12-05  Paul Eggert  <eggert@twinsun.com>
36633
36634         * lib/alloca.c [defined emacs]: Include "lisp.h".
36635         (xalloc_die) [defined emacs]: New macro.
36636         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
36637         [! defined emacs]: Include <xalloc.h>.
36638         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
36639         (pointer): Typedef to POINTER_TYPE *.
36640         (malloc): Remove decl; we now always use xmalloc.
36641         (alloca): Use old-style definition, since Emacs needs this.
36642         Check for arithmetic overflow when computing combined size.
36643
36644 2002-12-04  Paul Eggert  <eggert@twinsun.com>
36645
36646         Do not generate unlocked-io.h automatically, since it's easier to
36647         maintain it by hand.
36648
36649         * lib/unlocked-io.h: New file, from GNU diffutils,
36650         but with proper copyright notice and attribution.
36651         * lib/gen-uio: Remove.
36652         * lib/Makefile.am: Add copyright notice.
36653         (libfetish_a_SOURCES): Add unlocked-io.h.
36654         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
36655         (DISTCLEANFILES, io_functions): Remove macros.
36656         (EXTRA_DIST): Remove gen_uio.
36657         (unlocked-io.h): Remove rule.
36658
36659 2002-12-04  Jim Meyering  <jim@meyering.net>
36660
36661         Reflect the fact that stat.c and lstat.c are no longer generated.
36662         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
36663         (DISTCLEANFILES): Likewise.
36664         (EXTRA_DIST): Likewise.
36665         (all_local): Don't depend on stat.c or lstat.c.
36666         (stat.c, lstat.c): Remove rules.
36667         (EXTRA_DIST): Remove xstat.in.
36668
36669         * lib/xstat.in: Remove file.  Contents moved into stat.c.
36670         * lib/stat.c: New file.  Contents mostly from xstat.in.
36671         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
36672         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
36673
36674         * lib/safe-read.c: Rework so that it may serve to define safe_write,
36675         too.
36676         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
36677
36678 2002-12-03  Jim Meyering  <jim@meyering.net>
36679
36680         * lib/safe-read.c, safe-write.c: Change variable names and comments,
36681         but not semantics, to minimize the differences between these two files.
36682         (safe_read): Change comment to mention SAFE_READ_ERROR.
36683
36684         * lib/safe-read.c (IS_EINTR): Define.
36685         (safe_read): Use IS_EINTR in place of in-function cpp directives.
36686
36687 2002-12-02  Jim Meyering  <jim@meyering.net>
36688
36689         * lib/safe-read.c (EINTR): Define.
36690         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
36691         (INT_MAX): Provide fallback.
36692         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
36693
36694         * lib/safe-read.h (SAFE_READ_ERROR): Define.
36695
36696 2002-12-02  Bruno Haible  <bruno@clisp.org>
36697
36698         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
36699         Define, taken from safe-read.c.
36700         (INT_MAX): Provide fallback.
36701         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
36702         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
36703
36704         * lib/safe-read.c (EINTR): Remove definition.
36705         (safe_read): Don't use EINTR if it is absent.
36706
36707 2002-12-01  Jim Meyering  <jim@meyering.net>
36708
36709         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
36710         zero.
36711         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
36712
36713 2002-11-27  Paul Eggert  <eggert@twinsun.com>
36714
36715         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
36716         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
36717         with `if (! (value < limit)) abort ();', for readability.
36718
36719 2002-11-26  Karl Berry  <karl@gnu.org>
36720
36721         * lib/strdup.c: copy from libc again, with jim's ok.
36722         * lib/.cppi-disable: re-add strdup.c
36723
36724 2002-11-25  Karl Berry  <karl@gnu.org>
36725
36726         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
36727         instead of "strtol.c".
36728
36729 2002-11-25  Karl Berry  <karl@gnu.org>
36730
36731         * config/install-sh: update from automake for variable quoting, $0 in
36732         error msgs, etc.
36733
36734         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
36735         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
36736         entry.
36737
36738 2002-11-25  Jim Meyering  <jim@meyering.net>
36739
36740         * lib/mktime.c: Sync from libc, now that it has the latest fix.
36741
36742 2002-11-24  Karl Berry  <karl@gnu.org>
36743
36744         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
36745         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
36746
36747 2002-11-24  Jim Meyering  <jim@meyering.net>
36748
36749         Update from coreutils:
36750
36751         * lib/mktime.c: Merge in changes from libc.
36752
36753         Avoid a link-time failure on some Linux systems.
36754         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
36755         (otherwise).
36756         (__mon_yday): Declare with the STATIC attribute.
36757         (__mktime_internal): Likewise.
36758         Based on a report from Greg Schafer.
36759
36760 2002-11-23  Jim Meyering  <jim@meyering.net>
36761
36762         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
36763         Use `unsigned', not `int', as type of index.
36764
36765         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
36766
36767         * lib/fsusage.c: Remove unneeded parentheses around operands of
36768         `defined'.
36769
36770 2002-11-22  Paul Eggert  <eggert@twinsun.com>
36771
36772         * lib/quotearg.h: Allow multiple inclusion by surrounding with
36773         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
36774         so that we can be included first.
36775         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
36776         * lib/quotearg.c: Include quotearg.h immediately after config.h.
36777         No need to include stddef.h or sys/types.h any more.
36778         Surround local include files with "", not "<>".
36779         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
36780         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
36781         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
36782         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
36783         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
36784         (ISPRINT): Remove; no longer needed now that we assume C89.
36785
36786         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
36787         Preserve errno.
36788
36789         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
36790         quotearg_char): Use SIZE_MAX rather than
36791         (size_t) -1 when we are talking about "infinity".
36792
36793         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
36794
36795 2002-11-22  Paul Eggert  <eggert@twinsun.com>
36796
36797         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
36798         hint that one should use `if (! x) abort ();' rather than `assert
36799         (x);', and anyway it's one less thing to worry about configuring.
36800         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
36801         hash_rehash, hash_insert): Use abort rather than assert.
36802
36803 2002-11-22  Bruno Haible  <bruno@clisp.org>
36804
36805         * lib/safe-read.h: Assume C89. Add comments.
36806         (safe_read): Change return type to size_t.
36807         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
36808         byte counts > SSIZE_MAX correctly.
36809         * lib/safe-write.h: New file.
36810         * lib/safe-write.c: New file.
36811         * lib/full-read.h: New file.
36812         * lib/full-read.c: New file.
36813         * lib/full-write.h: Assume C89. Add comments.
36814         * lib/full-write.c: Include safe-write.h.
36815         (full_write): Rewritten to use safe_write.
36816         Suggested by Jim Meyering and Paul Eggert.
36817
36818 2002-11-21  Jim Meyering  <jim@meyering.net>
36819
36820         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
36821
36822         Merge in changes from the coreutils.
36823
36824         2002-09-25  Paul Eggert  <eggert@twinsun.com>
36825         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
36826         <stdint.h>.
36827         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
36828         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
36829         int.  Work more efficiently if X is the same width as uintmax_t.
36830         Do not compare X to -1, to avoid bogus compiler warning.
36831         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
36832         Don't assume that f_frsize and f_bsize are the same type.
36833
36834         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
36835         warning on FreeBSD.
36836
36837         * lib/makepath.c (make_path): Restore umask *before* creating the final
36838         component.
36839         (make_path): Minor reformatting.
36840
36841         * lib/xmalloc.c: Adjust to work with new autoconf macros,
36842         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
36843         HAVE_MALLOC/HAVE_REALLOC.
36844
36845         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
36846         dummy ones.  At least on GNU/Linux systems, `auto' means something
36847         else.
36848         From Michael Stone.
36849
36850 2002-11-21  Bruno Haible  <bruno@clisp.org>
36851
36852         Remove case insensitive option matching.
36853         * lib/argmatch.h (argcasematch): Remove declaration.
36854         (ARGCASEMATCH): Remove macro.
36855         (__xargmatch_internal): Remove case_sensitive argument.
36856         (XARGMATCH): Update.
36857         (XARGCASEMATCH): Remove macro.
36858         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
36859         case_sensitive argument.
36860         (argcasematch): Remove function.
36861         (__xargmatch_internal): Remove case_sensitive argument.
36862         (main): Use XARGMATCH instead of XARGCASEMATCH.
36863
36864         * lib/xmalloc.c: Change compile-time error message. Add comment about
36865         required autoconf version.
36866
36867 2002-11-20  Paul Eggert  <eggert@twinsun.com>
36868
36869         Merge argmatch cleanups from Bison.  Assume C89.
36870
36871         * lib/argmatch.c: Include config.h here, not in argmatch.h.
36872         Include stdlib.h, for EXIT_FAILURE.
36873         Always include <string.h>, since we assume C89.
36874         (EXIT_FAILURE): Remove pre-C89 bug workaround.
36875         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
36876         Include <stddef.h> instead, since it's all we need for size_t.
36877         (PARAMS): Remove.  All uses removed.
36878         (ARRAY_CARDINALITY): Do not bother to #undef.
36879         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
36880         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36881         Remove unnecessary parentheses.
36882         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36883         Insert necessary parentheses.
36884         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
36885         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
36886
36887 2002-11-19  Bruno Haible  <bruno@clisp.org>
36888
36889         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
36890         * lib/mbswidth.h: Include <stddef.h>, for size_t.
36891
36892         * lib/mbswidth.h (PARAMS): Remove macro.
36893         (mbswidth, mbsnwidth): Use ANSI C function declarations.
36894         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
36895
36896         * lib/gcd.h (PARAMS): Remove macro.
36897         (gcd): Use ANSI C function declarations.
36898         * lib/gcd.c (gcd): Likewise.
36899
36900 2002-11-15  Bruno Haible  <bruno@clisp.org>
36901
36902         * lib/strcspn.c: Include <stddef.h>.
36903         (strcspn): Use ANSI C function declaration. Change return type to
36904         size_t. Use NULL.
36905         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
36906         (strpbrk): Use NULL.
36907         * lib/strpbrk.h (PARAMS): Remove macro.
36908         (strpbrk): Use ANSI C function declaration.
36909         * lib/strstr.c: Don't include <sys/types.h>.
36910         * lib/strstr.h (PARAMS): Remove macro.
36911         (strstr): Use ANSI C function declarations.
36912
36913 2002-11-14  Karl Berry  <karl@gnu.org>
36914
36915         * config/mkinstalldirs: `do' on separate line, instead of
36916         `for var; do'.
36917
36918 2002-11-06  Bruno Haible  <bruno@clisp.org>
36919
36920         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
36921         * lib/gcd.c (gcd): Likewise.
36922
36923 2002-11-05  Bruno Haible  <bruno@clisp.org>
36924
36925         * lib/gcd.h: New file, from gettext-0.11.5.
36926         * lib/gcd.c: New file, from gettext-0.11.5.
36927
36928 2002-11-05  Bruno Haible  <bruno@clisp.org>
36929
36930         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36931         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36932         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36933         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36934
36935         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
36936         <libintl.h>.
36937         * lib/makepath.c: Include gettext.h instead of <locale.h> and
36938         <libintl.h>.
36939
36940         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
36941         * lib/human.c: Include gettext.h instead of <libintl.h>.
36942         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
36943         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
36944         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
36945         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
36946         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
36947         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
36948         (textdomain): Remove definition.
36949         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
36950
36951         * lib/long-options.c: Remove include of <libintl.h> and definition of
36952         _.
36953         * lib/same.c: Remove include of <libintl.h> and definition of _.
36954
36955 2002-11-04  Owen Taylor  <otaylor@redhat.com>
36956
36957         * lib/config.charset: A few additions for Solaris.
36958
36959 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
36960
36961         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
36962         * lib/localcharset.c (locale_charset): Declare as extern "C".
36963
36964 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
36965
36966         * lib/config.charset: msdos in uk_UA uses CP1125.
36967
36968 2002-11-04  Bruno Haible  <bruno@clisp.org>
36969
36970         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
36971         * lib/strcase.h: New file, from GNU gettext-0.11.5.
36972         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
36973         * lib/strstr.h: New file, from GNU gettext-0.11.5.
36974         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
36975
36976 2002-11-04  Bruno Haible  <bruno@clisp.org>
36977
36978         * lib/localcharset.c (locale_charset): Don't return an empty string.
36979
36980 2002-11-04  Bruno Haible  <bruno@clisp.org>
36981
36982         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
36983         aliases.
36984
36985 2002-11-04  Bruno Haible  <bruno@clisp.org>
36986
36987         * lib/config.charset: Update for newest glibc. Add canonical names
36988         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
36989
36990 2002-11-04  Bruno Haible  <bruno@clisp.org>
36991
36992         * lib/config.charset: Add support for NetBSD.
36993
36994 2002-11-04  Bruno Haible  <bruno@clisp.org>
36995
36996         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
36997
36998 2002-11-01  Bruno Haible  <bruno@clisp.org>
36999
37000         * configure.in: Add AC_CONFIG_AUX_DIR call.
37001         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
37002         test/Makefile.
37003         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
37004
37005 2002-09-28  Karl Berry  <karl@gnu.org>
37006
37007         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
37008         installed automake until the next release, since changes have been
37009         made.
37010
37011 2002-09-25  Karl Berry  <karl@gnu.org>
37012
37013         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
37014         * lib/getopt*: copy from libc/posix.
37015         * lib/gettext.h: copy from gettext.
37016         * lib/.cppi-disable: add strdup.c, gettext.h.
37017
37018 2002-09-25  Karl Berry  <karl@gnu.org>
37019
37020         * config/srclist.txt: enable gettext.h check.
37021         * config/config.{guess,sub}: update from prep.
37022         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
37023                 from automake 1.6.3.
37024         See srclist*.
37025
37026 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
37027
37028         * regex.c (PATFETCH): Remove the translating fetch.
37029         (PATFETCH_RAW): Rename to PATFETCH.
37030         (set_image_of_range): New fun.
37031         (SET_RANGE_TABLE_WORK_AREA): Use it.
37032         (regex_compile): Don't translate the pattern chars so eagerly.
37033         Only do it when inserting an `exactn' bytecode or when handling
37034         a char-range.
37035         (mutually_exclusive_p): Avoid empty statement.
37036
37037 2002-07-06  Jim Meyering  <meyering@lucent.com>
37038
37039         * m4/README: Don't mention Makefile.am.in.
37040         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
37041
37042 2002-07-01  Jim Meyering  <meyering@lucent.com>
37043
37044         * lib/c-stack.c: Include sys/time.h.
37045         From Volker Borchert.
37046
37047 2002-06-26  Paul Eggert  <eggert@twinsun.com>
37048
37049         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
37050
37051 2002-06-26  Paul Eggert  <eggert@twinsun.com>
37052
37053         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
37054         New macro.  Use it uniformly instead of
37055         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
37056         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
37057         reported by Vin Shelton.
37058
37059 2002-06-22  Paul Eggert  <eggert@twinsun.com>
37060
37061         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
37062         Do not assume SA_SIGINFO behavior.
37063         Bug reported by Jim Meyering on NetBSD 1.5.2.
37064
37065 2002-06-22  Jim Meyering  <meyering@lucent.com>
37066
37067         * m4/c-stack.m4: New file, from diffutils-2.8.2.
37068         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
37069
37070         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
37071         now that configure.ac uses AC_GNU_SOURCE.
37072         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
37073         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
37074
37075         Update to latest tools.  Suggestions from Paul Eggert.
37076         * m4/stdbool.m4: New file, from diffutils-2.8.2.
37077         * m4/gnu-source.m4: Update from diffutils-2.8.2.
37078         * m4/fnmatch.m4: Likewise.
37079         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
37080         to AC_HEADER_STDBOOL
37081
37082 2002-06-22  Jim Meyering  <meyering@lucent.com>
37083
37084         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
37085         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
37086
37087 2002-06-22  Jim Meyering  <meyering@lucent.com>
37088
37089         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
37090
37091         * lib/exitfail.c, exitfail.h: Likewise.
37092         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
37093
37094         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
37095         of fnmatch.h.
37096         (EXTRA_DIST): Add fnmatch_loop.c.
37097         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
37098
37099         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
37100         * lib/fnmatch.c: Update from diffutils-2.8.2.
37101         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
37102         * lib/fnmatch.h: Remove file.
37103
37104 2002-06-21  Jim Meyering  <meyering@lucent.com>
37105
37106         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
37107         * m4/mbrtowc.m4: Likewise.
37108
37109         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
37110         * m4/mbswidth.m4: Reflect name change:
37111         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
37112         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
37113
37114         * m4/lib-link.m4: Update from gettext-0.11.2.
37115         * m4/gettext.m4: Likewise.
37116
37117         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
37118         From Alfred M. Szmidt.
37119
37120 2002-06-18  Paul Eggert  <eggert@twinsun.com>
37121
37122         * lib/file-type.h: Report an error if neither S_ISREG nor
37123         S_IFREG is defined, instead of using a test specific to glibc
37124         2.2.  This should be safe, since POSIX requires S_ISREG and
37125         Unix Version 7 had S_IFREG.  We don't need to check for
37126         <sys/types.h> since we don't use any symbols that it defines.
37127
37128 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
37129
37130         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
37131         $@-t, so that each temporary file name is unique and valid in the first
37132         8 characters, for operation under DOS.
37133
37134 2002-06-15  Paul Eggert  <eggert@twinsun.com>
37135
37136         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
37137
37138 2002-06-15  Jim Meyering  <meyering@lucent.com>
37139
37140         Work even with DJGPP 2.03, which lacks support for symlinks.
37141         From Richard Dawe.
37142         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
37143         is defined.
37144         * lib/lchown.c (S_ISLNK): Likewise.
37145
37146 2002-06-15  Jim Meyering  <meyering@lucent.com>
37147
37148         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
37149         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
37150         have been included before this file.
37151
37152 2002-06-14  Jim Meyering  <meyering@lucent.com>
37153
37154         * lib/file-type.h: Use the version from diffutils-2.8.2.
37155         * lib/file-type.c: Likewise.
37156
37157 2002-06-07  Jim Meyering  <meyering@lucent.com>
37158
37159         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
37160         They're needed at least for NetBSD 1.5.2.
37161         ($statxfs_includes): Include those same headers.
37162         ($statxfs_includes): Include sys/vfs.h if available.
37163         ($statxfs_includes): Likewise for sys/statvfs.h.
37164         Check for the following members in both structs statfs and statvfs:
37165         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
37166
37167 2002-06-01  Jim Meyering  <meyering@lucent.com>
37168
37169         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
37170         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
37171
37172 2002-05-28  Jim Meyering  <meyering@lucent.com>
37173
37174         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
37175         Reported by Volker Borchert.
37176
37177 2002-05-27  Jim Meyering  <meyering@lucent.com>
37178
37179         Fix a problem seen only on nonconforming systems whereby ls.c's
37180         use of localtime, and then of gettimeofday would cause trouble:
37181         the localtime call used to initialize rpl_gettimeofday's save
37182         mechanism would clobber ls's current local time information so
37183         that in any long listing the first file would always be listed
37184         with date 1970-01-01.  Analysis by Volker Borchert.
37185
37186         * lib/gettimeofday.c (localtime): Undefine.
37187         (rpl_localtime): New function.
37188
37189 2002-05-27  Jim Meyering  <meyering@lucent.com>
37190
37191         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
37192         localtime.
37193
37194         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
37195         use the replacement function; it wouldn't resolve at link time.
37196         Reported by Volker Borchert.
37197
37198 2002-05-22  Jim Meyering  <meyering@lucent.com>
37199
37200         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
37201         file-type.h.
37202         * lib/file-type.h: New file.
37203         * lib/file-type.c (file_type): New file/function.  Extracted from
37204         diffutils.
37205
37206 2002-04-30  Jim Meyering  <meyering@lucent.com>
37207
37208         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
37209
37210 2002-04-29  Paul Eggert  <eggert@twinsun.com>
37211
37212         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
37213
37214 2002-04-29  Paul Eggert  <eggert@twinsun.com>
37215
37216         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
37217         Do not check for alloca.h (no longer used) or stdbool.h (was never
37218         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
37219
37220 2002-04-29  Paul Eggert  <eggert@twinsun.com>
37221
37222         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
37223
37224 2002-04-29  Jim Meyering  <meyering@lucent.com>
37225
37226         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
37227         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
37228         Use AC_FUNC_STRNLEN here instead.
37229
37230         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
37231         With autoconf-2.53a, it's part of AC_PROG_CC.
37232
37233 2002-04-28  Paul Eggert  <eggert@twinsun.com>
37234
37235         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
37236         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
37237
37238 2002-04-28  Paul Eggert  <eggert@twinsun.com>
37239
37240         * lib/sig2str.h, lib/sig2str.c: New files.
37241         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
37242
37243 2002-04-28  Paul Eggert  <eggert@twinsun.com>
37244
37245         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
37246         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
37247         of 127, since 64 is the largest conceivable number for ancient
37248         nonstandard hosts.
37249         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
37250
37251 2002-04-28  Jim Meyering  <meyering@lucent.com>
37252
37253         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
37254
37255 2002-04-24  Jim Meyering  <meyering@lucent.com>
37256
37257         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
37258         (jm_PREREQ): Use it.
37259
37260         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
37261         mach/mach.h fcntl.h.
37262         Check for this function: setlocale.
37263
37264 2002-04-24  Jim Meyering  <meyering@lucent.com>
37265
37266         * lib/gettext.h: New file, from Gettext.
37267         * lib/Makefile.am (INCLUDES): Remove -I../intl.
37268         (libfetish_a_SOURCES): Add gettext.h.
37269
37270 2002-04-16  Jim Meyering  <meyering@lucent.com>
37271
37272         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
37273         ut_pid, ut_id, ut_exit.
37274
37275 2002-04-16  Jim Meyering  <meyering@lucent.com>
37276
37277         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
37278         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
37279         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
37280
37281 2002-04-12  Jim Meyering  <meyering@lucent.com>
37282
37283         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
37284         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
37285         existence of the getmntinfo function.  Needed for Darwin 5.3.
37286
37287         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
37288         This is necessary at least on Darwin 5.3.
37289
37290         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
37291         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
37292         strnlen.o in the library, and that makes some versions of ranlib
37293         object.
37294
37295 2002-04-12  Jim Meyering  <meyering@lucent.com>
37296
37297         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
37298
37299 2002-04-09  Jim Meyering  <meyering@lucent.com>
37300
37301         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
37302         to be more precise.  Rather than saying we're checking whether the
37303         function `works', say what we're testing.
37304         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
37305         Reported by Bruno Haible.
37306
37307 2002-03-10  Jim Meyering  <meyering@lucent.com>
37308
37309         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
37310         Suggestion from Santiago Vila.
37311
37312 2002-03-08  Jim Meyering  <meyering@lucent.com>
37313
37314         * lib/rename.c: Mention that this wrapper is needed also on
37315         mips-dec-ultrix4.4 systems.
37316
37317 2002-03-02  Jim Meyering  <meyering@lucent.com>
37318
37319         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
37320         not HAVE_CLOCK_SETTIME.
37321
37322 2002-02-27  Paul Eggert  <eggert@twinsun.com>
37323
37324         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
37325         Check for clock_settime.
37326
37327 2002-02-27  Paul Eggert  <eggert@twinsun.com>
37328
37329         * lib/nanosleep.h: Rename to....
37330         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
37331
37332         * lib/gettime.c: New file.
37333         * lib/settime.c: New file.
37334         * lib/stime.c: Remove.
37335
37336         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
37337         timespec.h.  Remove nanosleep.h.
37338
37339 2002-02-25  Paul Eggert  <eggert@twinsun.com>
37340
37341         * m4/acl.m4: New file.
37342         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
37343         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
37344
37345 2002-02-25  Paul Eggert  <eggert@twinsun.com>
37346
37347         * lib/acl.c, lib/acl.h: New files.
37348         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
37349
37350 2002-02-24  Jim Meyering  <meyering@lucent.com>
37351
37352         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
37353         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
37354         cause trouble.  Reported by Nelson Beebe.
37355
37356 2002-02-23  Paul Eggert  <eggert@twinsun.com>
37357
37358         * lib/path-concat.c (xpath_concat): Reorder code to pacify
37359         compilers that don't know that xalloc_die never returns.
37360
37361 2002-02-20  Jim Meyering  <meyering@lucent.com>
37362
37363         * lib/getdate.c: Regenerate using bison-1.33.
37364
37365 2002-02-17  Jim Meyering  <meyering@lucent.com>
37366
37367         * config/config.guess (main): Don't use `head -1'; it's no longer
37368         portable. Use `sed 1q' instead.
37369
37370 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
37371
37372         * m4/codeset.m4: Upgrade to gettext-0.11.
37373         * m4/gettext.m4: Upgrade to gettext-0.11.
37374         * m4/glibc21.m4: Upgrade to gettext-0.11.
37375         * m4/iconv.m4: Upgrade to gettext-0.11.
37376         * m4/isc-posix.m4: Upgrade to gettext-0.11.
37377         * m4/lcmessage.m4: Upgrade to gettext-0.11.
37378         * m4/lib-ld.m4: New file, from gettext-0.11.
37379         * m4/lib-link.m4: New file, from gettext-0.11.
37380         * m4/lib-prefix.m4: New file, from gettext-0.11.
37381         * m4/progtest.m4: Upgrade to gettext-0.11.
37382
37383 2002-02-15  Paul Eggert  <eggert@twinsun.com>
37384
37385         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
37386         (jm_PREREQ): Use it.
37387
37388 2002-02-15  Paul Eggert  <eggert@twinsun.com>
37389
37390         * lib/posixver.c, lib/posixver.h: New files.
37391         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
37392
37393 2002-02-02  Paul Eggert  <eggert@twinsun.com>
37394             Bruno Haible  <bruno@clisp.org>
37395
37396         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
37397         (fwrite_success_callback): New declaration.
37398         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
37399         print_unicode_char. Call failure callback instead of error.
37400         (fwrite_success_callback): New function.
37401         (exit_failure_callback): New function.
37402         (fallback_failure_callback): New function.
37403         (print_unicode_char): Call unicode_to_mb.
37404
37405 2002-01-26  Jim Meyering  <meyering@lucent.com>
37406
37407         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
37408         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
37409
37410 2002-01-26  Jim Meyering  <meyering@lucent.com>
37411
37412         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
37413
37414 2002-01-22  Paul Eggert  <eggert@twinsun.com>
37415
37416         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
37417
37418 2002-01-22  Jim Meyering  <meyering@lucent.com>
37419
37420         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
37421         Otherwise, some versions of automake would omit the rule that makes
37422         Makefile from Makefile.in.
37423
37424 2002-01-21  Paul Eggert  <eggert@twinsun.com>
37425
37426         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
37427         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
37428         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
37429         (memcoll): Set errno to zero if there is no error.
37430
37431         * lib/quotearg.c (quotearg_buffer_restyled):
37432         Fix bug with quoting buffers containing NUL when backslashing escapes.
37433         This bug was exposed by the other changes in this patch.
37434         (quotearg_n_options): New arg ARGSIZE.
37435         All callers changed.
37436         (quoting_options_from_style): New function.
37437         (quotearg_n_style): Use it.
37438         (quotearg_n_style_mem): New function.
37439
37440         * lib/quotearg.h (quotearg_n_style_mem): New function.
37441
37442 2002-01-19  Jim Meyering  <meyering@lucent.com>
37443
37444         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
37445         Remove useless quotes: DF_PROG="df".
37446         * m4/strnlen.m4: New file.
37447
37448 2002-01-16  Paul Eggert  <eggert@twinsun.com>
37449
37450         * lib/backupfile.c (ISDIGIT): Comment fix.
37451         * lib/getdate.y (ISDIGIT): Likewise.
37452         * lib/posixtm.c (ISDIGIT, year): Likewise.
37453         * lib/strverscmp.c (ISDIGIT): Likewise.
37454         * lib/userspec.c (ISDIGIT): Likewise.
37455
37456 2002-01-16  Jim Meyering  <meyering@lucent.com>
37457
37458         * lib/getdate.y: Add three semicolons, each just before a closing
37459         brace. Bison (as of version 1.31) no longer papers over that mistake.
37460
37461 2002-01-05  Jim Meyering  <meyering@lucent.com>
37462
37463         * lib/version-etc.c (version_etc_copyright): Update copyright year.
37464
37465 2001-12-19  Paul Eggert  <eggert@twinsun.com>
37466
37467         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
37468         not silently exit merely because the output buffer happens to
37469         have nothing pending.
37470
37471 2001-12-18  Paul Eggert  <eggert@twinsun.com>
37472
37473         See the big note in ../ChangeLog.
37474         * lib/human.c (suffixes): Prefer K to k for 1024.
37475         (generate_suffix_backwards): New function.
37476         (human_readable_inexact): Use it.
37477         * lib/xstrtol.c (__xstrtol): If there is no number but there
37478         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
37479         Accept 'K' as well as 'k'.
37480
37481 2001-12-15  Jim Meyering  <meyering@lucent.com>
37482
37483         * lib/regex.h (__restrict_arr): Update from libc.
37484
37485         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
37486         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
37487         (STREQ): Define.
37488
37489 2001-12-14  Jim Meyering  <meyering@lucent.com>
37490
37491         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
37492         Suggestion from Bruno Haible.
37493
37494 2001-12-10  Jim Meyering  <meyering@lucent.com>
37495
37496         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
37497         xrealloc, Instead, include "xalloc.h".
37498         (initbuffer): Don't cast xmalloc return value to char*.
37499         (readline): Reword comment.
37500         Don't cast xrealloc return value to char*
37501         Return NULL, not 0.
37502
37503 2001-12-09  Jim Meyering  <meyering@lucent.com>
37504
37505         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
37506         about `signed and unsigned type in conditional expression'.
37507         * lib/posixtm.c (posix_time_parse): Likewise.
37508
37509         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
37510
37511         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
37512         to avoid a pedantic warning.
37513
37514         * lib/getstr.c: Don't include assert.h.
37515         (getstr): Remove warning-evoking assertions.
37516         Return -1 if offset parameter is out of bounds.
37517         Change the type of a local from int to size_t.
37518
37519         * lib/strftime.c (my_strftime_localtime_r): Include this function
37520         definition in the `#if ! HAVE_TM_GMTOFF' block.
37521
37522         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
37523         Include xalloc.h instead.
37524
37525 2001-12-02  Jim Meyering  <meyering@lucent.com>
37526
37527         * lib/tempname.c: Don't declare getenv, thus reverting the change of
37528         2001-11-18.  It's no longer necessary, now that stdlib.h is always
37529         included.
37530
37531         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
37532         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
37533
37534 2001-11-30  Akim Demaille  <akim@epita.fr>
37535
37536         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
37537         before being defined.
37538
37539 2001-11-27  Paul Eggert  <eggert@twinsun.com>
37540
37541         * lib/quotearg.h (quotearg_n, quotearg_n_style):
37542         First arg is int, not unsigned.
37543         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
37544         (SIZE_MAX, UINT_MAX): New macros.
37545         (quotearg_n_options): Abort if N is negative.
37546         Avoid overflow check on hosts where size_t is 64 bits and int
37547         is 32 bits, as overflow is impossible there.
37548         Fix off-by-one typo that caused unnecessary reallocation.
37549
37550 2001-11-27  Jim Meyering  <meyering@lucent.com>
37551
37552         * lib/tempname.c: Merge with version from libc.
37553         * lib/regex.c: Likewise.
37554
37555         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
37556         systems for which STDC_HEADERS is 0, it was not included, resulting in
37557         a warning about an integer-to-pointer conversion problem with getenv.
37558         Reported by Volker Borchert.
37559
37560 2001-11-26  Jim Meyering  <meyering@lucent.com>
37561
37562         * lib/gtod.h: Remove file.
37563         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
37564         * lib/gettimeofday.c: Don't include gtod.h.
37565         (GTOD_init): Remove function.
37566         (rpl_gettimeofday): Do its job here instead, rather than aborting.
37567         Suggestion from Volker Borchert.
37568
37569 2001-11-23  Jim Meyering  <meyering@lucent.com>
37570
37571         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
37572         it.
37573         * lib/hash.c (struct hash_table): Define it here instead.
37574
37575 2001-11-22  Jim Meyering  <meyering@lucent.com>
37576
37577         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
37578
37579 2001-11-20  Jim Meyering  <meyering@lucent.com>
37580
37581         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
37582         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
37583
37584 2001-11-19  Jim Meyering  <meyering@lucent.com>
37585
37586         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
37587         directory.  Use "conftestXXXXXX" as the template.
37588         Suggestion from Paul Eggert.
37589
37590         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
37591         immediately, so the test doesn't mistakenly hit the max-open-files
37592         limit.
37593
37594 2001-11-18  Paul Eggert  <eggert@twinsun.com>
37595
37596         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
37597         (TEMPORARIES): New macro.
37598         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
37599         removes an artificial limitation (e.g. HP-UX 10.20, where
37600         TMP_MAX is 17576).
37601
37602 2001-11-18  Jim Meyering  <meyering@lucent.com>
37603
37604         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
37605
37606 2001-11-18  Jim Meyering  <meyering@lucent.com>
37607
37608         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
37609         on SunOS 4.
37610
37611         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
37612         files will be created before anything else.
37613
37614 2001-11-17  Paul Eggert  <eggert@twinsun.com>
37615
37616         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
37617         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
37618
37619 2001-11-17  Jim Meyering  <meyering@lucent.com>
37620
37621         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
37622         Prompted by a report from Bob Proulx.
37623
37624         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
37625         Instead, require UTILS_FUNC_MKSTEMP.
37626
37627 2001-11-17  Jim Meyering  <meyering@lucent.com>
37628
37629         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
37630         Now, that's done as part of AC_FUNC_STRTOD.
37631
37632 2001-11-17  Jim Meyering  <meyering@lucent.com>
37633
37634         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
37635         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
37636         rather than group writable.  Patch by Juan F. Codagnone.
37637
37638         * lib/readtokens.c: Remove explicit declarations of xmalloc and
37639         xrealloc, Instead, include "xalloc.h".
37640
37641         * lib/mountlist.c: Include unlocked-io.h after all system headers.
37642         Remove explicit declarations of xmalloc, xrealloc,
37643         and xstrdup.  Instead, include "xalloc.h".
37644
37645         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
37646         unlocked-io.h.
37647         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
37648         Likewise.
37649         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
37650
37651         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
37652         Reported by Padraig Brady.
37653
37654         * lib/mkstemp.c: #undef mkstemp.
37655         Include config.h.
37656         (rpl_mkstemp): Rename from mkstemp.
37657         Protoize.
37658
37659 2001-11-16  Jim Meyering  <meyering@lucent.com>
37660
37661         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
37662         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
37663         determine the amount of total physical memory, use pstat_getstatic.
37664         HPUX-11 doesn't define _SC_PHYS_PAGES.
37665         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
37666         If sysconf couldn't be used to determine the amount of available
37667         physical memory, use both pstat_getstatic and pstat_getdynamic.
37668         Based on a patch from Bob Proulx.
37669
37670 2001-11-10  Jim Meyering  <meyering@lucent.com>
37671
37672         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
37673         (jm_PREREQ): Use it.
37674
37675 2001-11-09  Jim Meyering  <meyering@lucent.com>
37676
37677         * m4/jm-macros.m4: Require autoconf-2.52f.
37678         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
37679         Use these AC_-prefixed names, not the AM_-prefixed ones.
37680
37681         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
37682
37683 2001-11-05  Jim Meyering  <meyering@lucent.com>
37684
37685         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
37686
37687 2001-11-04  Jim Meyering  <meyering@lucent.com>
37688
37689         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
37690         $DEFS.
37691
37692 2001-11-03  Jim Meyering  <meyering@lucent.com>
37693
37694         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
37695         of AC_DEFUN.
37696
37697         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
37698         know the name of the variable in the macro definition.
37699
37700 2001-11-03  Jim Meyering  <meyering@lucent.com>
37701
37702         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
37703         in argmatch_to_argument call.
37704
37705         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
37706         argument.
37707
37708         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
37709         e.g., a fault due to an attempt to free a NULL pointer.
37710
37711 2001-11-01  Jim Meyering  <meyering@lucent.com>
37712
37713         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
37714         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
37715
37716 2001-11-01  Jim Meyering  <meyering@lucent.com>
37717
37718         * lib/dirfd.c, lib/dirfd.h: New files.
37719         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
37720
37721         * lib/hash.c (hash_print) [TESTING]: Clean up.
37722
37723 2001-10-22  Paul Eggert  <eggert@twinsun.com>
37724
37725         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
37726         to avoid a warning if -Wall.
37727
37728 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
37729
37730         * README: New file
37731         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
37732         (per RMS's instructions, this is now the canonical source)
37733         * lgpl/, gpl/: New directories.
37734
37735 2001-10-21  Paul Eggert  <eggert@twinsun.com>
37736
37737         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
37738
37739 2001-10-21  Jim Meyering  <meyering@lucent.com>
37740
37741         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
37742         this code would end up calling gettext even in packages built
37743         with --disable-nls.
37744         * lib/getopt.c (_): Likewise.
37745         * lib/regex.c (_): Likewise.
37746
37747 2001-10-20  Paul Eggert  <eggert@twinsun.com>
37748
37749         * m4/error.m4 (jm_PREREQ_ERROR):
37750         Do not invoke AC_CHECK_FUNCS with strerror_r, as
37751         AC_FUNC_STRERROR_R does that.
37752         Check for strerror declaration.
37753
37754         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
37755         are supposed to have them these days.
37756         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
37757         Merge changes from latest Autoconf CVS.
37758         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
37759         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
37760         POSIX decided to standardize on the int flavor of strerror_r.
37761
37762 2001-10-20  Paul Eggert  <eggert@twinsun.com>
37763
37764         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
37765         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
37766         Use strerror_r that is only a macro, even if it is not a function.
37767         (strerror): Check for HAVE_DECL_STRERROR before declaring.
37768         (private_strerror): Use prototypes, not old-style function definition.
37769         (print_errno_message): New function.
37770         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
37771         char*-flavored one.
37772         (error_tail, error, error_at_line): Use it.
37773
37774 2001-10-11  Jim Meyering  <meyering@lucent.com>
37775
37776         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
37777         and quote_n (1, ... to avoid clobbering a buffer.
37778
37779 2001-10-05  Jim Meyering  <meyering@lucent.com>
37780
37781         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
37782         hash-pjw.h.
37783         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
37784         * lib/hash-pjw.h: New file.
37785
37786 2001-09-30  Jim Meyering  <meyering@lucent.com>
37787
37788         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
37789         `struct fsstat' has the `f_fstypename' member.
37790         Use that to define FS_TYPE, which is now used to make
37791         the getfsstat link test tighter.
37792
37793 2001-09-30  Jim Meyering  <meyering@lucent.com>
37794
37795         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
37796         Include <sys/ucred.h>, for Apple Darwin.
37797         Include sys/mount.h and sys/fs_types.h only if available.
37798         (FS_TYPE): Define.
37799         (read_filesystem_list): Use FS_TYPE.
37800
37801 2001-09-29  Paul Eggert  <eggert@twinsun.com>
37802
37803         * lib/exclude.c (excluded_filename): 0 -> false, since it's
37804         a boolean context.
37805
37806 2001-09-29  Jim Meyering  <meyering@lucent.com>
37807
37808         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37809         [one-argument getmntent function]): Include stdio.h before mntent.h.
37810         SunOS 4.1.x needs it for the declaration of `FILE'.
37811         Patch by Volker Borchert.
37812
37813         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37814         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
37815         sys/fs_types.h, and make the link-test for getfsstat guard #include
37816         directives with appropriate #if HAVE_*_H tests so that we can
37817         detect getfsstat on Apple Darwin1.3.7 systems.
37818         Reported by Nelson Beebe.
37819         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
37820
37821 2001-09-28  Paul Eggert  <eggert@twinsun.com>
37822
37823         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37824         #defines strtoimax.  Also treat the other strto* functions
37825         like strtoimax.
37826
37827         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
37828         Check for strtoul and strtoumax,
37829         as those declarations are made even in the signed case.
37830         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
37831         Likewise, for strtol and strtoimax.
37832
37833 2001-09-28  Paul Eggert  <eggert@twinsun.com>
37834
37835         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37836         #defines strtoimax.  Also treat the other strto* functions
37837         like strtoimax.
37838
37839         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
37840         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
37841         (strtoimax, strtoumax): Do not declare if already defined as a macro.
37842
37843 2001-09-26  Jim Meyering  <meyering@lucent.com>
37844
37845         Most macros in unlocked-io.h had the wrong number of arguments.
37846         * lib/gen-uio: New script.
37847         (USE_UNLOCKED_IO): Define to 1 if not already defined.
37848         * lib/unlocked-io.hin: Remove file.
37849         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
37850         rather than trying to embed it here.
37851         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
37852         Reported by Padraig Brady.
37853
37854 2001-09-25  Volker Borchert  <bt@teknon.de>
37855
37856         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
37857         `result'.
37858
37859 2001-09-24  Jim Meyering  <meyering@lucent.com>
37860
37861         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
37862
37863 2001-09-23  Jim Meyering  <meyering@lucent.com>
37864
37865         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
37866         instead of the mere test for existence of mntent.h.  The latter
37867         would get a false-positive on AIX 3.4 systems.
37868         In the outer getmntent if-block, don't die if neither of the getmntent
37869         tests succeeds.  Instead, just fall through and continue with the
37870         remaining tests.
37871
37872 2001-09-23  Jim Meyering  <meyering@lucent.com>
37873
37874         * lib/mountlist.c: Remove useless parentheses in #if directives.
37875         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
37876         the deprecated MOUNTED symbol is no longer defined in mntent.h.
37877
37878 2001-09-22  Jim Meyering  <meyering@lucent.com>
37879
37880         * m4/gettext.m4: New file.  From gettext.
37881         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
37882         * m4/progtest.m4: Likewise
37883         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
37884         * m4/glibc21.m4: Likewise.
37885
37886         * m4/libintl.m4: Remove.  No longer used.
37887
37888 2001-09-22  Jim Meyering  <meyering@lucent.com>
37889
37890         * lib/localcharset.c: Update from latest gettext.
37891         * lib/config.charset: Likewise.
37892
37893 2001-09-20  Jim Meyering  <meyering@lucent.com>
37894
37895         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
37896         strtoimax.
37897         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
37898         strtoumax.
37899
37900 2001-09-20  Jim Meyering  <meyering@lucent.com>
37901
37902         * lib/xstrtol.c (strtoimax): Guard declaration with
37903         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
37904         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
37905         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
37906         (strtoumax): Likewise, for completeness (it wasn't necessary).
37907
37908 2001-09-17  Paul Eggert  <eggert@twinsun.com>
37909
37910         * lib/strtoimax.c (HAVE_LONG_LONG):
37911         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
37912         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
37913         to work around bug in IBM C compiler.
37914
37915 2001-09-17  Jim Meyering  <meyering@lucent.com>
37916
37917         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
37918         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
37919         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
37920         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
37921         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
37922         whenever the right hand side need not be expanded by the shell.
37923
37924 2001-09-16  Paul Eggert  <eggert@twinsun.com>
37925
37926         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
37927         library.  It's not correct, as some older glibcs are buggy.
37928         fnmatch wasn't fixed until glibc 2.2.
37929
37930         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
37931         special shell magic here.
37932
37933 2001-09-16  Jim Meyering  <meyering@lucent.com>
37934
37935         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
37936         * m4/jm-macros.m4: Require it.
37937
37938 2001-09-16  Jim Meyering  <meyering@lucent.com>
37939
37940         * lib/mkdir.c: New file.
37941
37942 2001-09-15  Jim Meyering  <meyering@lucent.com>
37943
37944         * m4/jm-macros.m4: Check for help2man.
37945
37946 2001-09-11  Jim Meyering  <meyering@lucent.com>
37947
37948         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
37949         The body, by Paul Eggert, was moved here from configure.in.
37950         * m4/jm-macros.m4: Require UTILS_HOST_OS.
37951
37952 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37953
37954         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
37955         (jm_PREREQ): Use it.
37956
37957 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37958
37959         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
37960         Use ssize_t, not int, to store result of readlink.
37961         Check for ssize_t overflow as well as size_t overflow,
37962         as POSIX says the result of readlink is implementation-defined
37963         when ssize_t overflows.
37964         Remove unnecessary cast to char*.
37965         Use free+malloc instead of realloc, as the storage doesn't need
37966         to be preserved and it's clearer and can be more efficient that way.
37967         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
37968         * lib/xreadlink.h (xreadlink): Update prototype.
37969
37970 2001-09-04  Paul Eggert  <eggert@twinsun.com>
37971
37972         * lib/xgetcwd.c: Revert some of the previous change; intead,
37973         fix the HAVE_GETCWD_NULL code to behave more like the
37974         !HAVE_GETCWD_NULL code used to.
37975
37976         Include "xalloc.h".
37977         (xgetcwd): Do not return NULL when memory is exhausted; instead,
37978         invoke xalloc_die.
37979
37980 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37981
37982         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
37983         sys/param.h, as pathmax.h includes them.
37984
37985 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37986
37987         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
37988         (jm_PREREQ_XGETCWD): New macro.
37989
37990         * m4/getcwd.m4: New file.
37991
37992 2001-09-03  Paul Eggert  <eggert@twinsun.com>
37993
37994         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
37995         like the HAVE_GETCWD_NULL code.
37996         Include pathmax.h if not HAVE_GETCWD.
37997         Do not include xalloc.h.
37998         (INITIAL_BUFFER_SIZE): New symbol.
37999         Do not use xmalloc / xrealloc, since the caller is responsible for
38000         handling errors.  Preserve errno around `free' during failure.
38001         Do not overrun buffer when using getwd.
38002
38003 2001-09-03  Paul Eggert  <eggert@twinsun.com>
38004
38005         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
38006         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
38007         getcwd (NULL, 0).
38008
38009 2001-09-03  Paul Eggert  <eggert@twinsun.com>
38010
38011         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
38012         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
38013         spotted by Jim Meyering.
38014
38015 2001-09-03  Jim Meyering  <meyering@lucent.com>
38016
38017         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
38018         failure.
38019
38020 2001-09-02  Jim Meyering  <meyering@lucent.com>
38021
38022         * lib/error.c: Update from GNU libc.
38023
38024 2001-09-01  Jim Meyering  <meyering@lucent.com>
38025
38026         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
38027         Used by df.
38028
38029 2001-09-01  Jim Meyering  <meyering@lucent.com>
38030
38031         * lib/xreadlink.c: New file.
38032         * lib/xreadlink.h: New file.
38033         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
38034         xreadlink.h.
38035
38036         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
38037         doesn't conflict with sparc Solaris 7's definition in
38038         /usr/include/sys/int_types.h.
38039
38040         * lib/exclude.c: Use `""', not `<>' to #include non-system header
38041         files.
38042         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
38043         and strncasecmp as r-values.  Unixware didn't have declarations.
38044
38045 2001-08-31  Paul Eggert  <eggert@twinsun.com>
38046
38047         * lib/xstrtol.h: Add copyright notice.
38048         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
38049         LONGINT_INVALID_SUFFIX_CHAR.
38050
38051 2001-08-31  Paul Eggert  <eggert@twinsun.com>
38052
38053         * lib/xstrtol.c (strtoimax): New decl.
38054
38055 2001-08-31  Paul Eggert  <eggert@twinsun.com>
38056
38057         * lib/xgetcwd.c: Don't include pathmax.h.
38058         Include stdlib.h and unistd.h if available.
38059         Include xalloc.h.
38060         (xmalloc, xstrdup, free): Remove decls.
38061         (xgetcwd): Don't assume sizes fit in unsigned.
38062         Check for overflow when computing sizes.
38063         Simplify reallocation code.
38064
38065 2001-08-31  Paul Eggert  <eggert@twinsun.com>
38066
38067         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
38068         a directory's st_size can have an arbitrary value, so the old
38069         usage could waste an arbitrary amount of memory.  All uses
38070         changed.
38071         * lib/savedir.h: Update prototype.
38072
38073 2001-08-31  Paul Eggert  <eggert@twinsun.com>
38074
38075         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
38076
38077         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
38078         old strtoimax.c.
38079
38080         Also, make the following further changes to make this file's
38081         configuration more similar to that of strtol.c:
38082         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
38083         (strtoumax, uintmax_t, strtoull, strtol): Remove.
38084         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
38085         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
38086         changed to signed values.
38087
38088         And make the following changes as well:
38089         Fix copyright notice, as 1999 was missing.
38090         (verify): New macro.
38091         (strtoimax): Check sizes at compile-time, not run-time.
38092         Prefer strtol to strtoll if both work.
38093         (main): Remove; it was not that useful and was a pain to maintain.
38094
38095         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
38096
38097 2001-08-31  Jim Meyering  <meyering@lucent.com>
38098
38099         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
38100         Use an initial, malloc'd, buffer of length 128 rather than
38101         a statically allocated one of length 1024.
38102
38103 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38104
38105         Simplify code, partly by assuming autoconf 2.52 semantics.
38106
38107         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
38108
38109         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
38110         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
38111         All uses removed.
38112         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
38113         Move AC_REQUIRE to next-to-top level, to avoid confusion.
38114         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
38115         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
38116         jm_AC_HEADER_INTTYPES_H.
38117         * m4/jm-macros.m4 (jm_MACROS): Likewise.
38118
38119         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
38120
38121         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
38122         Quote first arg of AC_DEFUN.
38123         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
38124         since they are needed to parse the include file even if we need
38125         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
38126         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
38127         but with opposite signedness.
38128
38129 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38130
38131         Merge 'exclude' changes from tar 1.13.22.
38132         This fixes one or two unlikely storage allocation overflow bugs,
38133         but doesn't change user-visible behavior otherwise.
38134
38135 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38136
38137         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
38138         (jm_PREREQ_EXCLUDE): New macro.
38139
38140 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38141
38142         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
38143         tm to be declared.
38144
38145 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38146
38147         * lib/hash.c: Remove '2001' from copyright notice.
38148
38149 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38150
38151         * lib/full-write.h: New file.
38152         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
38153         * lib/full-write.c: Correct credits, as cccp.c no longer
38154         exists and anyway it was so heavily changed from the old cccp
38155         code as to be unrecognizable.  Include full-write.h.
38156         (full_write) Return size_t, with short writes meaning failure.
38157         All callers changed.  This fixes a bug with large buffers
38158         on 64-bit hosts.
38159         * lib/utime.c: Include full-write.h.
38160
38161 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38162
38163         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
38164         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
38165         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
38166         Include if available.
38167         (<xalloc.h>): Include
38168         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
38169         (verify): New macro.  Use it to verify that EXCLUDE macros do not
38170         collide with FNM macros.
38171         (struct patopts): New struct.
38172         (struct exclude): Use it, as exclude patterns now come with options.
38173         (new_exclude): Support above changes.
38174         (new_exclude, add_exclude_file):
38175         Initial size must now be a power of two to simplify overflow checking.
38176         (free_exclude, fnmatch_no_wildcards): New function.
38177         (excluded_filename): No longer requires options arg, as the options
38178         are determined by add_exclude.  Now returns bool, not int.
38179         (excluded_filename, add_exclude):
38180         Add support for the fancy new exclusion options.
38181         (add_exclude, add_exclude_file): Now takes int options arg.
38182         Check for arithmetic overflow when computing sizes.
38183         (add_exclude_file): xrealloc might modify errno, so don't
38184         realloc until after errno might be used.
38185
38186         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
38187         New macros.
38188         (free_exclude): New decl.
38189         (add_exclude, add_exclude_file): Now takes int options arg.
38190         (excluded_filename): No longer requires options arg, as the options
38191         are determined by add_exclude.  Now returns bool, not int.
38192
38193 2001-08-30  Paul Eggert  <eggert@twinsun.com>
38194
38195         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
38196
38197 2001-08-27  Jim Meyering  <meyering@lucent.com>
38198
38199         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
38200
38201         * lib/version-etc.c (N_): Remove definition.
38202         Revert most of last change.
38203         Instead, simply don't mark the `Copyright...' string for translation.
38204         Based on advice from Paul Eggert.
38205
38206         * lib/strtoxmax.c: Tweak comment.
38207
38208 2001-08-26  Jim Meyering  <meyering@lucent.com>
38209
38210         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
38211
38212         * m4/xstrtoimax.m4: New file.
38213         * m4/xstrtoumax.m4: Add comments explaining why we
38214         AC_REPLACE_FUNCS(strtol).
38215
38216 2001-08-26  Jim Meyering  <meyering@lucent.com>
38217
38218         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
38219         of copyright with `%s' so translators don't get an untranslated
38220         message in 2002.
38221         (COPYRIGHT_YEAR): Define.
38222         (version_etc): Use fprintf rather than fputs.
38223         Suggestion from Ulrich Drepper.
38224
38225         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
38226
38227         * lib/strtoll.c: New file, from GNU libc.
38228         * lib/xstrtoimax.c: New file.
38229
38230         * lib/xstrtol.h: Add xstrtoimax.
38231         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
38232         * lib/strtoimax.c: New file.  Likewise, but first define
38233         STRTOUXMAX_SIGNED.
38234
38235         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
38236         ...
38237         * lib/strtoxmax.c: ... then renamed to this.
38238
38239 2001-08-18  Paul Eggert  <eggert@twinsun.com>
38240
38241         * m4/inttypes.m4: Add AC_PREREQ(2.13).
38242         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
38243         (jm_AC_TYPE_INTMAX_T): New macro.
38244         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
38245
38246         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
38247
38248         * m4/longlong.m4: Renamed from ulonglong.m4.
38249         * m4/inttypes.m4: Renamed from inttypes_h.m4.
38250         * m4/uintmax_t.m4: Removed.
38251
38252 2001-08-13  Paul Eggert  <eggert@twinsun.com>
38253
38254         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
38255         Port to Solaris 8, where 'sed' requires a space after the 'r'
38256         command, and where sh dislikes "$/".  Clean up the spacing a bit.
38257         Redirect output to $tmp just once.
38258
38259 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
38260
38261         * lib/addext.c (<errno.h>): Include.
38262         (errno): Declare if not defined.
38263         (addext): Work correctly when pathconf returns -1 and leaves
38264         errno alone because there is no limit.  Also, work even if
38265         pathconf returns a value greater than SIZE_MAX.
38266
38267 2001-08-12  Jim Meyering  <meyering@lucent.com>
38268
38269         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
38270         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
38271         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
38272         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
38273         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
38274         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
38275         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
38276         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
38277         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
38278         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
38279         utime.m4, utimes.m4, xstrtoumax.m4:
38280         Quote the first argument in each use of AC_DEFUN.
38281
38282 2001-08-12  Jim Meyering  <meyering@lucent.com>
38283
38284         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
38285         Simply `return getcwd (NULL, 0);'.
38286         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
38287         Use 1300 as initial value for length, not PATH_MAX.
38288
38289         * lib/pathmax.h: Clean up cpp syntax.
38290
38291 2001-08-12  Jim Meyering  <meyering@lucent.com>
38292
38293         * lib/gettimeofday.c: New file.
38294         * lib/gtod.h: New file.
38295         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
38296
38297 2001-08-05  Jim Meyering  <meyering@lucent.com>
38298
38299         * m4/jm-macros.m4: Require autoconf-2.52.
38300
38301 2001-08-04  Jim Meyering  <meyering@lucent.com>
38302
38303         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
38304         stmt, to get in sync with glibc.
38305
38306 2001-08-03  Paul Eggert  <eggert@twinsun.com>
38307
38308         The following changes are from gettext 0.10.39 as maintained by
38309         Bruno Haible.
38310
38311         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
38312         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
38313         with inverted sense.  All uses changed.
38314
38315         * lib/mbswidth.c: Don't include <limits.h>.
38316         Include <stdlib.h> and <string.h> unconditionally.
38317         (iswcntrl, mbsinit, ISCNTRL): New macros.
38318         (mbsnwidth): Use K&R style function declarations.
38319         Don't bother checking for MB_LEN_MAX == 1, since the compiler
38320         can optimize it when MB_CUR_MAX == 1.
38321         The width of control characters is zero, not 1.
38322
38323 2001-08-03  Paul Eggert  <eggert@twinsun.com>
38324
38325         The following changes are from gettext 0.10.39 as maintained by
38326         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
38327
38328         * m4/codeset.m4: Upgrade to serial AM1.
38329         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
38330         all uses changed.  Quote first arg of AC_DEFUN.
38331         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
38332
38333         * m4/iconv.m4: Upgrade to serial AM2.
38334         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
38335         Add --with-libconv-prefix.
38336         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
38337         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
38338         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
38339         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
38340         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
38341
38342         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
38343         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
38344         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
38345         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
38346         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
38347         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
38348         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38349         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
38350         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
38351
38352         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
38353         string.h any more.
38354
38355         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
38356         not the default value.
38357
38358         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
38359         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
38360         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
38361         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
38362         Also check for iswcntrl, used for wcwidth fallback.
38363         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
38364         to Autoconf 2.13.
38365
38366 2001-08-03  Jim Meyering  <meyering@lucent.com>
38367
38368         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
38369         as it was in the original.  Reported by Paul Eggert.
38370
38371 2001-07-16  Jim Meyering  <meyering@lucent.com>
38372
38373         * m4/gettimeofday.m4: New file.
38374         Prompted by a report from Bernhard Baehr.
38375
38376 2001-07-15  Jim Meyering  <meyering@lucent.com>
38377
38378         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
38379         stuff. Now it's in ../Makefile.cfg.
38380
38381 2001-07-15  Jim Meyering  <meyering@lucent.com>
38382
38383         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
38384         (BUILT_SOURCES): Add unlocked-io.h.
38385         (io_functions): Define.
38386         (unlocked-io.h): New rule.
38387         (DISTCLEANFILES): Add unlocked-io.h.
38388         (all-local): Depend on unlocked-io.h, to ensure it is created.
38389
38390         * lib/unlocked-io.hin: New file
38391
38392         * lib/regex.c: Update from glibc.
38393
38394 2001-07-05  Jim Meyering  <meyering@lucent.com>
38395
38396         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
38397         recommendation.
38398         (libfetish_a_SOURCES): Put all .h files here instead.
38399         Remove a thus-exposed (better checks in automake) duplicate and
38400         two unnecessary .h files.
38401
38402 2001-07-04  Jim Meyering  <meyering@lucent.com>
38403
38404         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
38405         that generates jm-glibc-io.m4 so that it doesn't trigger any make
38406         distcheck failure.
38407
38408 2001-07-02  Jim Meyering  <meyering@lucent.com>
38409
38410         The following changes were prompted by suggestions from Bruno Haible.
38411
38412         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
38413         is now generated.
38414         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
38415         definition of EXTRA_DIST.
38416         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
38417         ensure that the generated file is created/updated whenever the list
38418         of $(unlocked_functions) is changed.
38419         (jm-glibc-io.m4): New rule.
38420         (unlocked-io.h): New rule -- currently unused.
38421
38422 2001-06-24  Jim Meyering  <meyering@lucent.com>
38423
38424         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
38425         unmatched right bracket, rather than kludging it with an extra,
38426         falsely-matching quote in a comment.  Patch by Akim Demaille.
38427
38428 2001-06-11  Jim Meyering  <meyering@lucent.com>
38429
38430         * lib/regex.c: Update from GNU libc.
38431
38432 2001-05-27  Jim Meyering  <meyering@lucent.com>
38433
38434         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
38435         Check for ut_type in struct utmp.
38436
38437 2001-05-27  Jim Meyering  <meyering@lucent.com>
38438
38439         * lib/readutmp.h (UT_TYPE): Define.
38440
38441 2001-05-24  Jim Meyering  <meyering@lucent.com>
38442
38443         * lib/argmatch.c: Include "quote.h".
38444         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
38445         quote function.  Reported by Göran Uddeborg.
38446
38447 2001-05-22  Jim Meyering  <meyering@lucent.com>
38448
38449         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
38450         now that we use the package-supplied version unconditionally.
38451         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
38452
38453 2001-05-21  Jim Meyering  <meyering@lucent.com>
38454
38455         * m4/regex.m4: Change a couple backticks to single quotes to avoid
38456         shell syntax errors.
38457
38458 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
38459
38460         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
38461
38462 2001-05-20  Paul Eggert  <eggert@twinsun.com>
38463
38464         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
38465         Don't bother to check library strftime, since
38466         we'll be using our own my_strftime function anyway.
38467         Define my_strftime instead of strftime.
38468
38469 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
38470
38471         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
38472         which is not yet declared.
38473
38474 2001-05-15  Jim Meyering  <meyering@lucent.com>
38475
38476         * m4/regex.m4: Use proper quoting so brackets appear in the test
38477         program.
38478         Reported by, and with help from, Bruno Haible.
38479
38480 2001-05-13  Jim Meyering  <meyering@lucent.com>
38481
38482         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
38483         undefined.
38484
38485 2001-05-11  Paul Eggert  <eggert@twinsun.com>
38486
38487         dirname code cleanup.  base_name now behaves more compatibly
38488         with POSIX basename when given file names that have trailing
38489         slashes, and similarly for dir_name.  Add new primitives
38490         base_len and dir_len.  Put the directory-name-related decls
38491         into dirname.h.
38492
38493         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
38494         * lib/backupfile.c (base_name): Likewise.
38495         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
38496         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
38497         * lib/makepath.c (strip_trailing_slashes): Likewise.
38498         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
38499         ISSLASH): Likewise.
38500         * lib/rename.c (strip_trailing_slashes): Likewise.
38501         * lib/same.c (base_name): Likewise.
38502         * lib/stripslash.c (ISSLASH): Likewise.
38503
38504         * lib/addext.c: Include <dirname.h> after size_t is defined.
38505         * lib/backupfile.c: Likewise.
38506
38507         * lib/addext.c (addext): Use base_len to trim redundant
38508         trailing slashes instead of doing it ourselves.
38509         But do not trim the last slash if it is not redundant.
38510
38511         * lib/backupfile.c (find_backup_file_name,
38512         max_backup_version): Use base_len instead of rolling it ourselves.
38513         Handle the case of "" and (on DOS) "C:" correctly.
38514
38515         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
38516         needed. Include <string.h>, <dirname.h>.
38517         (base_name): Allow file names ending in slashes, other than names
38518         that are all slashes.  In this case, return the basename followed
38519         by the slashes.  This is more general, and can be used in places
38520         where the original base_name purposely had an assertion failure.
38521         (base_len): New function.
38522
38523         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
38524         Do not include <assert.h>; no longer needed.
38525         Include xalloc.h.
38526         (memrchr): Remove decl.
38527         (dir_name_r): Remove.
38528         (dir_len): Renamed from dirlen.  All callers changed.
38529         Rewrite in terms of base_name, for simplicity and consistency.
38530         (dir_name): Never return NULL.  All callers changed.
38531         Do not include <stdlib.h> in test program; no longer needed.
38532         return 0; is fine for test program.
38533
38534         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
38535         New macros.
38536         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
38537
38538         * lib/path-concat.c (path_concat): Use base_len to compute
38539         base length, not strlen; this means we cannot rely on memcpy
38540         to null-terminate.
38541
38542         * lib/same.c (STREQ): Remove.
38543         (same_name): Handle the case where the basename ends in trailing '/'.
38544
38545         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
38546         a slash was stripped.  Do not strip the last slash after a
38547         file system prefix.
38548
38549 2001-05-11  Paul Eggert  <eggert@twinsun.com>
38550
38551         * lib/Makefile.am (libfetish_a_SOURCES):
38552         Add strftime.c, since we now compile it on all hosts.
38553
38554         * lib/strftime.c (my_strftime):
38555         Define to nstrftime if emacs, but only if my_strftime is not defined.
38556         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
38557         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
38558         Add one more extra argument: a nanoseconds value.
38559         All uses changed.
38560         (ns): New macro.
38561         (my_strftime function): Add %N format.
38562         (emacs_strftimeu): Renamed from emacs_strftime,
38563         with extra ut argument.
38564
38565 2001-05-09  Paul Eggert  <eggert@twinsun.com>
38566
38567         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
38568
38569 2001-04-21  Jim Meyering  <meyering@lucent.com>
38570
38571         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
38572         doesn't interfere.
38573
38574 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
38575
38576         * m4/ftruncate.m4: Check for chsize.
38577         Link with ftruncate.o unconditionally if ftruncate is missing.
38578         This was required when cross-compiling to i586-mingw32msvc.
38579
38580 2001-04-08  Jim Meyering  <meyering@lucent.com>
38581
38582         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
38583         recomputed; that's necessary when the offset spans a DST transition.
38584         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
38585
38586 2001-04-02  Jim Meyering  <meyering@lucent.com>
38587
38588         * lib/regex.h, regex.c: Update from GNU libc.
38589
38590 2001-03-24  Jim Meyering  <meyering@lucent.com>
38591
38592         * m4/jm-macros.m4: Require autoconf-2.49d.
38593
38594 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
38595
38596         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
38597
38598 2001-03-19  Paul Eggert  <eggert@twinsun.com>
38599
38600         * lib/version-etc.c (version_etc_copyright): Update to 2001.
38601
38602 2001-03-17  Jim Meyering  <meyering@lucent.com>
38603
38604         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
38605         now that the version in autoconf is equivalent.
38606         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
38607
38608         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
38609         Suggestion from Akim Demaille.
38610
38611         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
38612         (jm_PREREQ_TEMPNAME): New function.
38613
38614 2001-03-16  Paul Eggert  <eggert@twinsun.com>
38615
38616         * lib/tempname.c (uint64_t): Define to uintmax_t if
38617         not defined, and if UINT64_MAX is not defined.
38618         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
38619         Reported by John David Anglin.
38620
38621 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
38622
38623         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
38624         resolve alias if codeset is empty.
38625         * lib/config.charset (BeOS): Use wildcard syntax.
38626
38627 2001-03-13  Jim Meyering  <meyering@lucent.com>
38628
38629         * lib/path-concat.c (path_concat)
38630         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
38631         concatenating e.g., `C:' and `foo'.
38632         From Bruno Haible.
38633
38634 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
38635
38636         * lib/localcharset.c (locale_charset): Don't use
38637         setlocale(LC_CTYPE,NULL). Don't return NULL.
38638         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
38639
38640 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
38641
38642         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
38643         support for DOS/DJGPP.
38644
38645 2001-03-01  Paul Eggert  <eggert@twinsun.com>
38646
38647         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
38648         lacks mkstemp.  Compile our own tempname.c if we compile our own
38649         mkstemp.c, as mkstemp relies on tempname.
38650
38651 2001-03-01  Jim Meyering  <meyering@lucent.com>
38652
38653         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
38654         AH_VERBATIM really does output its argument verbatim.
38655
38656 2001-02-28  Paul Eggert  <eggert@twinsun.com>
38657
38658         * lib/Makefile.am (libfetish_a_SOURCES):
38659         Add dup-safer.c, fopen-safer.c.
38660         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
38661
38662         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
38663         * lib/unistd-safer.h: New files.
38664
38665 2001-02-25  Paul Eggert  <eggert@twinsun.com>
38666
38667         The mkstemp replacement is taken from glibc 2.2.2, with some
38668         portability fixes for use outside glibc, as follows:
38669
38670         * lib/tempname.c (struct_stat64): New macro.
38671         (direxists, __gen_tempname): Use it.
38672         This avoids a portability problem with Solaris 8.
38673
38674         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
38675         (<stddef.h>, <stdint.h>, <string.h>):
38676         Include only if STDC_HEADERS || _LIBC.
38677         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
38678         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
38679         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
38680         (__set_errno): Define this macro if <errno.h> doesn't.
38681         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
38682         Define these macros if <stdio.h> doesn't.
38683         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
38684         Define these macros if <sys/stat.h>
38685         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
38686         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
38687         __xstat64): Define if not _LIBC.
38688         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
38689         (__gen_tempname): Invoke gettimeofday only if
38690         HAVE_GETTIMEOFDAY || _LIBC;
38691         otherwise, fall back on plain "time".
38692         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
38693
38694         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
38695
38696         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
38697
38698 2001-02-18  Paul Eggert  <eggert@twinsun.com>
38699
38700         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
38701
38702 2001-02-17  Paul Eggert  <eggert@twinsun.com>
38703
38704         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
38705         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
38706         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
38707         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38708
38709 2001-02-17  Paul Eggert  <eggert@twinsun.com>
38710
38711         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
38712         Remove workaround macros for hosts that have mbrtowc but not
38713         mbstate_t, as we now insist on proper declarations for both
38714         before using mbrtowc.
38715
38716 2001-02-17  Jim Meyering  <meyering@lucent.com>
38717
38718         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
38719         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
38720         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
38721         UnixWare 7.1.1.
38722
38723         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
38724         rather than AC_CACHE_VAL.
38725
38726 2001-02-17  Jim Meyering  <meyering@lucent.com>
38727
38728         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
38729         around included file name.
38730
38731         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
38732
38733         * lib/strftime.c: Update from GNU libc (the only changes were to
38734         comments).
38735
38736 2001-02-17  Jim Meyering  <meyering@lucent.com>
38737
38738         * lib/regex.c: Update from libc.
38739
38740 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
38741
38742         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
38743         clash.
38744
38745 2001-02-16  Paul Eggert  <eggert@twinsun.com>
38746
38747         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
38748         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
38749         Reported by Mark Hounschell via Paul Eggert.
38750
38751 2001-02-07  Jim Meyering  <meyering@lucent.com>
38752
38753         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
38754
38755 2001-02-05  Jim Meyering  <meyering@lucent.com>
38756
38757         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
38758         it includes the patch required for `large file' support with at least
38759         HP-UX's 10.20 /bin/cc.
38760
38761 2001-02-03  Jim Meyering  <meyering@lucent.com>
38762
38763         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
38764         AS_IF, now that it works once again (mysteriously).
38765         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38766
38767 2001-01-30  Jim Meyering  <meyering@lucent.com>
38768
38769         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
38770         * m4/chown.m4: Rename conftestchown to conftest.chown.
38771         * m4/rename.m4: s/conftestdir/conftest.d1/ and
38772         s/conftestdir2/conftest.d2/.
38773         * m4/utimes.m4: s/conftestdata/conftest.data/
38774         Inspired by Pavel Roskin's change in autoconf.
38775
38776 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
38777
38778         * lib/config.charset: Update for FreeBSD 4.2.
38779
38780 2001-01-27  Jim Meyering  <meyering@lucent.com>
38781
38782         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
38783         a use of AS_IF.
38784         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38785
38786 2001-01-26  Jim Meyering  <meyering@lucent.com>
38787
38788         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
38789         quotearg.c includes it.
38790
38791 2001-01-26  Jim Meyering  <meyering@lucent.com>
38792
38793         * lib/quotearg.c: Include stddef.h.
38794         * lib/quote.c: Include stddef.h.
38795         Reported by Axel Kittenberger.
38796
38797         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
38798         line in double quotes so that it evokes a better diagnostic.
38799         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
38800         Reported by Axel Kittenberger.
38801
38802 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
38803
38804         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
38805         as if it was a `charset'.
38806
38807 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
38808
38809         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
38810         has const.
38811
38812 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
38813
38814         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
38815         to avoid a warning.  Add back 'const' to inptr.
38816
38817 2001-01-20  Jim Meyering  <meyering@lucent.com>
38818
38819         Be sure that headers are checked before used in code compiled
38820         for the type checks.
38821         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
38822         In place of that, invoke jm_CHECK_ALL_TYPES.
38823         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
38824         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
38825         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
38826         The check for ssize_t was mistakenly run before the test for unistd.h.
38827
38828         The configure-time check for stdbool.h was missing.
38829         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
38830         (jm_PREREQ_HASH): New function.
38831
38832 2001-01-17  Jim Meyering  <meyering@lucent.com>
38833
38834         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
38835         for autoconf-2.49c.
38836         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
38837
38838 2001-01-16  Jim Meyering  <meyering@lucent.com>
38839
38840         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
38841         From Bruno Haible.
38842
38843 2001-01-14  Jim Meyering  <meyering@lucent.com>
38844
38845         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
38846         foo and bar.  Create conftestdir/ in the script, not in the C code.
38847         Remove directories in the script, not in the C code.
38848         Remove conftestdir{,2} before trying to create the directory.
38849         Make the entire configure script fail if the mkdir fails.
38850
38851 2001-01-14  Jim Meyering  <meyering@lucent.com>
38852
38853         * lib/rename.c: New file.  From Volker Borchert.
38854         Include stdlib.h, string.h or strings.h, and xalloc.h.
38855         Use strip_trailing_slashes rather than open-coding it.
38856
38857 2001-01-03  Paul Eggert  <eggert@twinsun.com>
38858
38859         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
38860
38861 2001-01-03  Jim Meyering  <meyering@lucent.com>
38862
38863         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
38864         of local `inptr' to avoid warning with some system declarations of
38865         iconv.
38866
38867 2001-01-02  Volker Borchert  <bt@teknon.de>
38868
38869         * m4/rename.m4: New file.
38870         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
38871
38872 2001-01-01  Jim Meyering  <meyering@lucent.com>
38873
38874         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
38875         even on systems with utmpx.h.  It's necessary for the declaration of
38876         utmp's ut_user member.  Reported by Andreas Jaeger.
38877
38878         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
38879         available. They are required for the declarations of getgrgid and
38880         getpwuid resp.
38881         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
38882         Reported by Andreas Jaeger.
38883
38884 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
38885
38886         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
38887         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
38888         so `make install' also works in VPATH builds.
38889
38890 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
38891
38892         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
38893         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
38894         can be used in subdirectories.
38895
38896 2000-12-29  Paul Eggert  <eggert@twinsun.com>
38897
38898         * lib/modechange.c: Do not assume that mode_t uses the
38899         traditional octal encoding.  E.g. "chmod 1 FOO" should set
38900         the other-execute bit of FOO even if S_IXOTH != 1.
38901
38902         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
38903         WOTH, XOTH, ALLM): New macros.
38904         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
38905          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
38906         Use them.
38907         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
38908         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
38909         (mode_compile):
38910         No need to use uintmax_t; unsigned long is long enough.
38911         Don't bother to get suffix since we don't use it.
38912
38913 2000-12-26  Jim Meyering  <meyering@lucent.com>
38914
38915         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
38916         better with autoheader.
38917
38918 2000-12-24  Jim Meyering  <meyering@lucent.com>
38919
38920         * lib/hash.c (is_prime): Return explicit boolean values.
38921         (hash_get_first): Return NULL to appease Irix5.6's 89.
38922         Reported by Nelson Beebe.
38923
38924 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
38925
38926         * lib/localcharset.c (locale_charset): Add support for Win32.
38927
38928 2000-12-18  Paul Eggert  <eggert@twinsun.com>
38929
38930         * lib/physmem.h, lib/physmem.c: New files.
38931
38932         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
38933         (noinst_HEADERS): Add physmem.h.
38934
38935         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
38936         't' for compatibility with Solaris 8 sort.
38937
38938 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
38939
38940         * lib/config.charset: Add support for BeOS.
38941
38942 2000-12-17  Jim Meyering  <meyering@lucent.com>
38943
38944         * m4/dos.m4 (jm_AC_DOS): New file and macro.
38945         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
38946
38947 2000-12-16  Jim Meyering  <meyering@lucent.com>
38948
38949         This bug had a serious impact on chown: `chown N:M FILE' (for integer
38950         N and M) would have treated it like `chown N:N FILE'.
38951
38952         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
38953
38954 2000-12-16  Jim Meyering  <meyering@lucent.com>
38955
38956         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
38957         SHELLS_FILE to a file name that's useful on djgpp systems.
38958         Include stdlib.h.
38959         (ADDITIONAL_DEFAULT_SHELLS): Define.
38960         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
38961         Based mostly on a patch from Prashant TR.
38962
38963 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
38964
38965         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
38966         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
38967         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
38968
38969 2000-12-08  Andreas Schwab  <schwab@suse.de>
38970
38971         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
38972         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
38973
38974 2000-12-07  Jim Meyering  <meyering@lucent.com>
38975
38976         * lib/stripslash.c (ISSLASH): Define.
38977         (strip_trailing_slashes): Use ISSLASH rather than comparing against
38978         `/'.
38979         From Prashant TR.
38980
38981         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
38982         (dir_name_r): Declare this function as static.
38983         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
38984         manifest itself on a name containing a mix of slashes and
38985         backslashes.
38986         Make this function work with names starting with a DOS-style
38987         drive letter and colon prefix.
38988         (dir_name): Append `.' if necessary.
38989         Based mostly on patches from Prashant TR and Eli Zaretskii.
38990
38991         * lib/dirname.h (dir_name_r): Remove prototype.
38992
38993 2000-12-06  Paul Eggert  <eggert@twinsun.com>
38994
38995         * m4/off_t-format.m4: Remove this file.
38996         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
38997
38998 2000-12-06  Jim Meyering  <meyering@lucent.com>
38999
39000         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
39001         replacement strtoull, we may well need the replacement strtoul, too.
39002         Check for declarations of strtoul and strtoull.
39003         Check for strtol.  Mainly as a cue to cause automake to include
39004         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
39005         Check for limits.h -- strtol.c needs it.
39006
39007 2000-12-05  Jim Meyering  <meyering@lucent.com>
39008
39009         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
39010
39011 2000-12-04  Jim Meyering  <meyering@lucent.com>
39012
39013         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
39014         Also include memory.h, stdlib.h, unistd.h if appropriate.
39015         Reported by Andreas Jaeger (conflicting declaration of malloc).
39016
39017 2000-12-02  Jim Meyering  <meyering@lucent.com>
39018
39019         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
39020         * m4/jm-macros.m4 (jm_MACROS): require it.
39021
39022 2000-12-02  Jim Meyering  <meyering@lucent.com>
39023
39024         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
39025
39026 2000-12-01  Paul Eggert  <eggert@twinsun.com>
39027
39028         * lib/memrchr.c: Include <config.h> before any system include file.
39029
39030 2000-11-30  Jim Meyering  <meyering@lucent.com>
39031
39032         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
39033
39034 2000-11-30  Jim Meyering  <meyering@lucent.com>
39035
39036         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
39037
39038 2000-11-29  Paul Eggert  <eggert@twinsun.com>
39039
39040         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
39041
39042 2000-11-26  Jim Meyering  <meyering@lucent.com>
39043
39044         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
39045
39046 2000-11-22  Paul Eggert  <eggert@twinsun.com>
39047
39048         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
39049         size of (size_t) -1; it's not portable.
39050
39051 2000-11-17  Jim Meyering  <meyering@lucent.com>
39052
39053         * lib/strstr.c: Update from GNU libc.
39054
39055 2000-11-17  Akim Demaille  <akim@epita.fr>
39056
39057         * lib/obstack.h: Formatting changes.
39058         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
39059         prevent type checking.
39060         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
39061         cast the value to (void *): assigning a `foo *' to a `void *'
39062         variable is valid.
39063         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
39064
39065 2000-11-16  Jim Meyering  <meyering@lucent.com>
39066
39067         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
39068
39069 2000-11-11  Jim Meyering  <meyering@lucent.com>
39070
39071         * lib/error.c: Add a couple #includes, merging from GNU libc version.
39072
39073 2000-11-10  Jim Meyering  <meyering@lucent.com>
39074
39075         * lib/obstack.h: Update from GNU libc.
39076         * lib/obstack.c: Likewise.
39077
39078 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
39079
39080         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
39081
39082 2000-11-06  Paul Eggert  <eggert@twinsun.com>
39083
39084         * lib/getusershell.c (setusershell): Use rewind rather than
39085         fseek/fseeko, to avoid configuration hassles with fseeko.
39086         Don't bother opening SHELLS_FILE if shellstream is NULL;
39087         it's not necessary.
39088
39089 2000-11-05  Jim Meyering  <meyering@lucent.com>
39090
39091         * lib/makepath.h (make_dir): Declare.
39092         * lib/makepath.c (make_dir): Remove `static' attribute.
39093         Tweak a comment.
39094
39095 2000-11-04  Jim Meyering  <meyering@lucent.com>
39096
39097         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
39098
39099 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
39100
39101         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
39102         last one in a bucket, advance to the next bucket.
39103
39104 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
39105
39106         * lib/fnmatch.c: Do not comment out all the code if we are using
39107         the GNU C library, because in some cases we are replacing buggy
39108         code in the GNU C library itself.
39109
39110 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
39111
39112         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
39113         (regex_compile): Catch bogus \(\1\).
39114
39115 2000-10-30  Paul Eggert  <eggert@twinsun.com>
39116
39117         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
39118         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
39119         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
39120
39121 2000-10-30  Paul Eggert  <eggert@twinsun.com>
39122
39123         * lib/error.h, getline.h, modechange.h:
39124         Remove "2000" from Copyright line, as the file hasn't been
39125         changed this year other than in the copyright notice.
39126
39127         * lib/xalloc.h: Add "2000" to Copyright line, as this file
39128         was changed this year.
39129
39130 2000-10-29  Jim Meyering  <meyering@lucent.com>
39131
39132         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
39133         renaming.
39134         * m4/ls-mntd-fs.m4: Likewise
39135
39136 2000-10-29  Jim Meyering  <meyering@lucent.com>
39137
39138         * lib/xstat.in: Fix grammar in comment.
39139
39140 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
39141
39142         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
39143         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
39144         doesn't define __restrict_arr.
39145
39146 2000-10-28  Jim Meyering  <meyering@lucent.com>
39147
39148         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
39149         (jm_PREREQ_MEMCHR): New function.
39150
39151 2000-10-28  Jim Meyering  <meyering@lucent.com>
39152
39153         * lib/memchr.c: Update from libc.
39154         Adjust for portability:
39155         [HAVE_STDLIB_H]: Include stdlib.h.
39156         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
39157         Undef __memchr, too.
39158         [!weak_alias]: Define __memchr to memchr.
39159
39160         * lib/regex.c: Update from libc.
39161         * lib/regex.h: Likewise.
39162         * lib/getopt1.c: Likewise.
39163         * lib/memcmp.c: Likewise.
39164
39165         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
39166         Avoid using fseek, when possible -- it's broken by design.
39167         Patch by Ulrich Drepper.
39168
39169 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
39170
39171         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
39172         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
39173         Giving in to popular pressure to shut up the compiler with casts.
39174
39175 2000-10-26  Jim Meyering  <meyering@lucent.com>
39176
39177         * lib/strftime.c: Update from libc.
39178
39179 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
39180
39181         * regex.c: More `unsigned char' -> `re_char' changes.
39182         Also change several `int' into `re_wchar_t'.
39183         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
39184         (PUSH_FAILURE_POINTER): Don't cast any more.
39185         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
39186         We want GCC to complain, since this piece of code makes
39187         re_match non-reentrant, which *should* be fixed.
39188         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
39189         (EXTEND_BUFFER): Use RETALLOC.
39190         (SET_LIST_BIT): Don't cast.
39191         (re_wchar_t): New type.
39192         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
39193         that those two functions will always properly return.
39194         (IMMEDIATE_QUIT_CHECK): Cast to void.
39195         (analyse_first): Use recursion rather than an explicit stack.
39196         (re_compile_fastmap): Can't fail anymore.
39197         (re_search_2): Don't check re_compile_fastmap for failure.
39198         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
39199         Now also sets the new value (passed in a new argument).
39200         (re_match_2_internal): Use it.
39201         Also, use a new var `reg' of type size_t when looping through regs
39202         rather than reuse the inappropriate `mcnt'.
39203
39204 2000-10-25  Jim Meyering  <meyering@lucent.com>
39205
39206         * lib/obstack.c: Update from libc.
39207
39208 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
39209
39210         * regex.c (regex_compile): Change the way of handling a range from
39211         a char less than 256 to a char not less than 256.
39212
39213 2000-10-24  Andrew Innes  <andrewi@gnu.org>
39214
39215         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
39216         NT-Emacs only.
39217         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
39218         so that re_search functions only quit when callers expect them to.
39219
39220 2000-10-23  Jim Meyering  <meyering@lucent.com>
39221
39222         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
39223         wrong.  That set_locale call must not have any side effects.
39224         From Paul Eggert.
39225
39226 2000-10-22  Jim Meyering  <meyering@lucent.com>
39227
39228         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
39229         [CYCLIC]: Remove now-unused definition.
39230
39231         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
39232         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
39233         Suggestion from Ulrich Drepper.
39234
39235 2000-10-21  Jim Meyering  <meyering@lucent.com>
39236
39237         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
39238         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
39239         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
39240
39241 2000-10-21  Jim Meyering  <meyering@lucent.com>
39242
39243         * lib/dirname.c (memrchr): Declare if necessary.
39244         (dir_name): Remove the restriction that there be no
39245         trailing slashes.  Now, this code skips past them, effectively
39246         ignoring them.
39247         [TEST_DIRNAME] (main): New unit tests.
39248
39249         * lib/memrchr.c: New file from GNU libc.
39250         Undef __memrchr, too.
39251         [!weak_alias]: Define __memrchr to memrchr.
39252         Guard weak_alias use with `#ifdef weak_alias'.
39253
39254 2000-10-21  Jim Meyering  <meyering@lucent.com>
39255
39256         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
39257         (dir_name): Use dir_name_r.
39258         * lib/dirname.h (dir_name_r): Declare it.
39259
39260 2000-10-17  Jim Meyering  <meyering@lucent.com>
39261
39262         * lib/quote.h (PARAMS): Define and use.
39263         Reported by Akim Demaille.
39264
39265         * lib/getopt.c: Update from libc.
39266
39267 2000-10-16  Jim Meyering  <meyering@lucent.com>
39268
39269         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
39270         setlocale.
39271         From Jan Fedak.
39272
39273 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
39274
39275         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
39276
39277 2000-09-25  Jim Meyering  <meyering@lucent.com>
39278
39279         * lib/md5.h (rol): Define (from GnuPG).
39280
39281         * lib/sha.c: Give credit (GnuPG) where due.
39282         (M): Use rol rather than open-coding it.
39283         Add a FIXME comment.
39284
39285 2000-09-21  Jim Meyering  <meyering@lucent.com>
39286
39287         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
39288         Reported by Michael Stone.
39289
39290 2000-09-20  Jim Meyering  <meyering@lucent.com>
39291
39292         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
39293         (noinst_HEADERS): Add sha.h.
39294         Based on code from Scott G. Miller and from GnuPG.
39295
39296 2000-09-18  Jim Meyering  <meyering@lucent.com>
39297
39298         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
39299         LIBS. Otherwise, everyone ends up linking with -lelf for some
39300         configurations.
39301         Reported by Mike Stone.
39302
39303 2000-09-15  Jim Meyering  <meyering@lucent.com>
39304
39305         * lib/regex.c: Update from libc.
39306
39307 2000-09-10  Jim Meyering  <meyering@lucent.com>
39308
39309         * lib/getopt.c (_getopt_internal): Update from glibc.
39310
39311 2000-09-09  Jim Meyering  <meyering@lucent.com>
39312
39313         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
39314         think it should be used as a general replacement for isascii.
39315         * lib/fnmatch.c: Likewise.
39316         * lib/mbswidth.c: Likewise
39317         * lib/regex.c: Likewise.
39318
39319         Don't use atoi.
39320         * lib/userspec.c: Include sys/param.h and limits.h.
39321         Include xstrtol.h.
39322         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
39323         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
39324         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
39325         UID, GID.  Check range.
39326
39327 2000-09-06  Jim Meyering  <meyering@lucent.com>
39328
39329         * lib/getopt.c (_getopt_internal): Update from glibc.
39330
39331 2000-08-30  Jim Meyering  <meyering@lucent.com>
39332
39333         * lib/strftime.c: Merge in changes from GNU libc.
39334
39335 2000-08-26  Jim Meyering  <meyering@lucent.com>
39336
39337         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
39338         * m4/fpending.m4: New file.
39339
39340 2000-08-26  Jim Meyering  <meyering@lucent.com>
39341
39342         * lib/closeout.c: Include "__fpending.h".
39343         (close_stdout_status): Return right away if there's nothing to flush.
39344
39345         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
39346         * lib/__fpending.c: New file.
39347         * lib/__fpending.h: New file.
39348
39349 2000-08-20  Jim Meyering  <meyering@lucent.com>
39350
39351         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
39352         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
39353         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
39354
39355 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
39356
39357         Improve fileutils installation on systems where running
39358         programs (like install) can't be unlinked.
39359         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
39360         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
39361
39362 2000-08-07  Paul Eggert  <eggert@twinsun.com>
39363
39364         Standardize on "memory exhausted" instead of "Memory exhausted"
39365         or "virtual memory exhausted".
39366         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
39367         "virtual memory exhausted".
39368         * lib/same.c (same_name): Invoke xalloc_die instead of printing
39369         our own message.
39370         * lib/userspec.c (parse_user_spec): Likewise.
39371         * lib/bumpalloc.h: comment fix
39372         * lib/same.c, userspec.c: Include xalloc.h.
39373
39374         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
39375         not char *const and pointing to a constant array.
39376         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
39377         (xrealloc): Comment fix.
39378
39379         * lib/userspec.c (parse_user_spec):
39380         Don't translate a message until just before returning,
39381         to avoid unnecessary translation.
39382
39383 2000-08-07  Jim Meyering  <meyering@lucent.com>
39384
39385         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
39386         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
39387         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
39388         getgroups.c, gethostname.c, getopt.h, group-member.c,
39389         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
39390         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
39391         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
39392         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
39393         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
39394         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
39395         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
39396         yesno.c: Back out Copyright date changes for each file with no change
39397         this year.  This eases coordination with other programs using the same
39398         source code modules.  From Paul Eggert.
39399
39400 2000-08-06  Paul Eggert  <eggert@twinsun.com>
39401
39402         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
39403         not char, for compatibility with glibc 2.1.3 strftime.c.
39404
39405 2000-08-03  Greg McGary  <greg@mcgary.org>
39406
39407         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
39408         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
39409         (EXTEND_BUFFER): Use them.
39410
39411 2000-08-01  Jim Meyering  <meyering@lucent.com>
39412
39413         * lib/dirname.c (ISSLASH): Define.
39414         (BACKSLASH_IS_PATH_SEPARATOR): Define.
39415         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
39416         both `\' and `/' may be use as path separators.
39417         Based on a patch from Prashant TR.
39418
39419 2000-07-31  Paul Eggert  <eggert@twinsun.com>
39420
39421         * lib/quotearg.c (quotearg_n_options): Don't make the initial
39422         slot vector a constant, since it might get modified.
39423
39424 2000-07-31  Jim Meyering  <meyering@lucent.com>
39425
39426         * lib/xmalloc.c: Use `virtual memory exhausted', not
39427         `Memory exhausted'.
39428         * lib/obstack.c (print_and_abort): Likewise.
39429
39430 2000-07-30  Paul Eggert  <eggert@twinsun.com>
39431
39432         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
39433         buffer, so that the caller can always quote one small
39434         component of a "memory exhausted" message in slot 0.
39435         From a suggestion by Jim Meyering.
39436
39437 2000-07-30  Jim Meyering  <meyering@lucent.com>
39438
39439         * lib/makepath.c (make_path): Quote the other instance, too.
39440
39441         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
39442         (STATIC_BUF_SIZE): Define.
39443         (quotearg_n_options): Use only statically allocated storage when
39444         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
39445         than STATIC_BUF_SIZE.
39446
39447 2000-07-29  Jim Meyering  <meyering@lucent.com>
39448
39449         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
39450         * lib/dirname.c (dir_name): Likewise.
39451
39452         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
39453         `/'.
39454
39455         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
39456         (dir_name): Assert that there are no trailing slashes.
39457
39458 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
39459
39460         * lib/mbswidth.h (mbswidth): Add a flags argument.
39461         (mbswidth): New declaration.
39462         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
39463         * lib/mbswidth.c (mbswidth): Add a flags argument.
39464         (mbsnwidth): New function.
39465
39466 2000-07-24  Jim Meyering  <meyering@lucent.com>
39467
39468         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
39469
39470 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39471
39472         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
39473
39474 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39475
39476         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
39477         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
39478         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
39479         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
39480         invoke multibyte primitives.
39481
39482 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39483
39484         * lib/quotearg.c:
39485         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
39486         so that mbstate_t is always defined.
39487
39488         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
39489         be 1 in at least one GCC installation, and this configuration
39490         error is likely to be common.  Ignoring MB_LEN_MAX hurts
39491         performance on hosts that have mbrtowc but have only unibyte
39492         locales, but I assume these hosts are rare.
39493
39494 2000-07-23  Paul Eggert  <eggert@twinsun.com>
39495
39496         * lib/mbswidth.c (_XOPEN_SOURCE):
39497         Don't define; this causes problems on Solaris 7.
39498         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
39499
39500 2000-07-23  Jim Meyering  <meyering@lucent.com>
39501
39502         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
39503         too: getgrgid, getpwuid, getuid.
39504
39505 2000-07-23  Jim Meyering  <meyering@lucent.com>
39506
39507         * lib/basename.c (base_name): Add an assertion.
39508
39509 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
39510
39511         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
39512         shadow its mbsinit function.
39513
39514 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
39515
39516         * lib/mbswidth.h: New file.
39517         * lib/mbswidth.c: New file.
39518         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
39519         (noinst_HEADERS): Add mbswidth.h.
39520
39521 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
39522
39523         * lib/config.charset: Add support for FreeBSD. Improve support for
39524         HP-UX and IRIX 6.
39525
39526 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
39527
39528         * m4/mbswidth.m4: New file.
39529         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
39530
39531 2000-07-15  Jim Meyering  <meyering@lucent.com>
39532
39533         * lib/makepath.c: Include quote.h.
39534         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
39535         corresponding argument in a `quote (...)' call.
39536         Give better diagnostics.
39537
39538         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
39539         (noinst_HEADERS): Add quote.h.
39540
39541         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
39542         from tar's src/misc.c.
39543         * lib/quote.h: New file.  Prototypes for same.
39544
39545 2000-07-14  Paul Eggert  <eggert@twinsun.com>
39546
39547         From a suggestion by Bruno Haible.
39548         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
39549         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
39550         to decide whether to define the BeOS workaround macro;
39551         this adjusts to the change to AC_MBSTATE_T.
39552
39553 2000-07-14  Jim Meyering  <meyering@lucent.com>
39554
39555         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
39556         jm_AC_TYPE_UINTMAX_T.
39557
39558 2000-07-13  Paul Eggert  <eggert@twinsun.com>
39559
39560         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
39561
39562         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
39563         quotearg_buffer_restyled): Add support for
39564         clocale_quoting_style.  Undo previous change to
39565         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
39566         and "{RIGHT QUOTATION MARK}" msgids.
39567
39568 2000-07-10  Paul Eggert  <eggert@twinsun.com>
39569
39570         From a suggestion by Bruno Haible.
39571         * m4/mbstate_t.m4 (AC_MBSTATE_T):
39572         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
39573         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
39574         and mbstate_t, to a single-part test that simply defines mbstate_t.
39575         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
39576         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
39577
39578 2000-07-10  Jim Meyering  <meyering@lucent.com>
39579
39580         * m4/strerror_r.m4: Mirror the correction made in autoconf.
39581
39582         * m4/gnu-source.m4: Output to confdefs.h directly.
39583         Suggestion from Akim Demaille.
39584
39585 2000-07-09  Paul Eggert  <eggert@twinsun.com>
39586
39587         The old behavior of quoting `like this' doesn't look good with
39588         newer, ISO-style fonts.  See:
39589         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
39590
39591         Instead, quote "like this" by default.  Let the translator
39592         tailor the locale-specific quoting behavior by providing
39593         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
39594
39595         * lib/quotearg.c (N_): New macro.
39596         (gettext_default): New function.
39597         (quotearg_buffer_restyled): Use
39598         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
39599         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
39600
39601 2000-07-09  Jim Meyering  <meyering@lucent.com>
39602
39603         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
39604         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
39605
39606         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
39607         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
39608
39609 2000-07-09  Jim Meyering  <meyering@lucent.com>
39610
39611         * lib/Most files: Update copyright dates to include 2000.
39612
39613 2000-07-08  Jim Meyering  <meyering@lucent.com>
39614
39615         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
39616         if not defined.
39617         (xgethostname): Remove now-unnecessary #ifdef.
39618         Move declaration of `err' into loop where it's used.
39619
39620 2000-07-05  Paul Eggert  <eggert@twinsun.com>
39621         and Bruno Haible  <haible@clisp.cons.org>
39622
39623         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
39624         only if the test for an object-type mbstate_t fails.  This
39625         prevents us from mistakenly reporting that mbstate_t is a
39626         system object type after we "#define mbstate_t int" to work
39627         around its lack.
39628
39629 2000-07-05  Paul Eggert  <eggert@twinsun.com>
39630         and Bruno Haible  <haible@clisp.cons.org>
39631
39632         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
39633
39634 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39635
39636         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
39637         to strerror_r.
39638         Include <ctype.h> for use of isalpha.
39639
39640 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39641
39642         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
39643         by allocating a larger buffer. Test the gethostname return value for
39644         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
39645         returns an error and ENAMETOOLONG isn't defined.
39646
39647 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
39648
39649         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
39650         dimension.
39651
39652 2000-07-04  Jim Meyering  <meyering@lucent.com>
39653
39654         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
39655         of the deprecated AC_CHECKING.
39656
39657 2000-07-04  Jim Meyering  <meyering@lucent.com>
39658
39659         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
39660         Reported by Bruno Haible.
39661
39662 2000-07-04  Jim Meyering  <meyering@lucent.com>
39663
39664         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
39665         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
39666         lacks mbrtowc.
39667
39668 2000-07-03  Paul Eggert  <eggert@twinsun.com>
39669
39670         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
39671         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
39672
39673 2000-07-03  Paul Eggert  <eggert@twinsun.com>
39674         and Bruno Haible  <haible@clisp.cons.org>
39675
39676         * lib/quotearg.c (mbrtowc):
39677         Assign to *pwc, and return 1 only if result is nonzero.
39678         (iswprint): Use ISPRINT when substituting our own mbrtowc.
39679
39680 2000-07-03  Jim Meyering  <meyering@lucent.com>
39681
39682         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
39683
39684 2000-07-03  Jim Meyering  <meyering@lucent.com>
39685
39686         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
39687         This is necessary to get a definition of e.g., UTMP_FILE on
39688         HP-UX 10.20.
39689         From Bob Proulx.
39690
39691 2000-07-02  Jim Meyering  <meyering@lucent.com>
39692
39693         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
39694
39695         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
39696         AC_LIBOBJ(function_name).
39697         * m4/chown.m4: Likewise.
39698         * m4/fnmatch.m4: Likewise.
39699         * m4/ftruncate.m4: Likewise.
39700         * m4/getgroups.m4: Likewise.
39701         * m4/getline.m4: Likewise.
39702         * m4/group-member.m4: Likewise.
39703         * m4/jm-macros.m4: Likewise.
39704         * m4/lstat.m4: Likewise.
39705         * m4/malloc.m4: Likewise.
39706         * m4/memcmp.m4: Likewise.
39707         * m4/nanosleep.m4: Likewise.
39708         * m4/putenv.m4: Likewise.
39709         * m4/realloc.m4: Likewise.
39710         * m4/regex.m4: Likewise.
39711         * m4/stat.m4: Likewise.
39712         * m4/strftime.m4: Likewise.
39713
39714 2000-07-02  Jim Meyering  <meyering@lucent.com>
39715
39716         * lib/quotearg.c (mbstate_t): Don't define here.
39717
39718 2000-07-02  Jim Meyering  <meyering@lucent.com>
39719
39720         * lib/nanosleep.c (SIGCONT): Define if not already defined.
39721
39722 2000-07-01  Jim Meyering  <meyering@lucent.com>
39723
39724         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
39725
39726 2000-07-01  Jim Meyering  <meyering@lucent.com>
39727
39728         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
39729         problem.
39730
39731 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
39732
39733         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
39734         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
39735
39736 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
39737
39738         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
39739         per change in ../m4/ls-mntd-fs.m4.
39740         (read_filesystem_list): Ignore symbolic links.
39741
39742 2000-06-29  Jim Meyering  <meyering@lucent.com>
39743
39744         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
39745         for declaration of strcmp.
39746
39747         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
39748
39749         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
39750         Avoid warning by casting result to `char *' to remove `const'.
39751
39752 2000-06-28  Jim Meyering  <meyering@lucent.com>
39753
39754         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
39755         included by quotearg.c, for which we perform this test.  From
39756         Bruno Haible.
39757
39758 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
39759
39760         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
39761         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
39762         <utmpx.h> exists, put readutmp.o into LIBOBJS.
39763
39764 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
39765
39766         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
39767
39768 2000-06-26  Paul Eggert  <eggert@twinsun.com>
39769
39770         savedir now sets errno on failure and invokes xmalloc to get memory.
39771         Fix a couple of other minor bugs while we're at it.
39772
39773         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
39774         (NAMLEN): Remove macro.
39775         (malloc, realloc): Remove decls.
39776         (stpcpy): Likewise.
39777         ("xalloc.h"): Include.
39778         (NAME_SIZE_DEFAULT): New macro.
39779         (savedir): Use xmalloc / xrealloc to allocate memory.
39780         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
39781         Skip "" directory entries.
39782         Use strlen to calculate directory entry length, since the old method
39783         is rarely used these days and isn't worth supporting.
39784         Don't use a pointer after freeing it.
39785         Check for integer overflow when calculating allocation size.
39786         Use memcpy to copy entries, instead of stpcpy.
39787         Set errno properly when returning NULL.
39788         Check for readdir error.
39789
39790 2000-06-26  Jim Meyering  <meyering@lucent.com>
39791
39792         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
39793
39794 2000-06-25  Jim Meyering  <meyering@lucent.com>
39795
39796         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
39797         Linux header bug when _XOPEN_SOURCE is defined to 500.
39798
39799 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
39800
39801         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
39802         deficiency.
39803
39804 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
39805
39806         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
39807         Include xalloc.h.
39808         Don't include <stdlib.h>.  Don't declare malloc, realloc.
39809
39810 2000-06-24  Jim Meyering  <meyering@lucent.com>
39811
39812         * m4/strerror_r.m4: Revive this file -- to try out an experimental
39813         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
39814         for which strerror does return char*, but which lacks a conveniently
39815         accessible declaration of the function.  If the compile-test says
39816         strerror_r doesn't work, then resort to a `run'-test that works on
39817         BeOS and segfaults on DEC Unix.
39818
39819 2000-06-24  Jim Meyering  <meyering@lucent.com>
39820
39821         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
39822
39823 2000-06-23  Paul Eggert  <eggert@twinsun.com>
39824
39825         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
39826         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
39827
39828 2000-06-23  Paul Eggert  <eggert@twinsun.com>
39829
39830         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
39831         (mbrtowc, mbstate_t): Define substitutes if
39832         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
39833         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
39834         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
39835
39836 2000-06-23  Jim Meyering  <meyering@lucent.com>
39837
39838         * m4/afs.m4: Add missing AC_MSG_RESULT.
39839         Reported by Bruno Haible.
39840
39841         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
39842         Suggestion from Bruno Haible.
39843
39844 2000-06-23  Jim Meyering  <meyering@lucent.com>
39845
39846         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
39847
39848 2000-06-21  Jim Meyering  <meyering@lucent.com>
39849
39850         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
39851
39852 2000-06-21  Jim Meyering  <meyering@lucent.com>
39853
39854         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
39855         (noinst_HEADERS): Add getstr.h.
39856
39857         * lib/getline.c (getstr): Move into a separate file.
39858         * lib/getstr.c (getstr): New file, extracted from getline.c, with
39859         the following changes: new parameter, delim2; both delim[12]
39860         parameters have type `int', not `char'.  The latter would lose
39861         with 8-bit delimiters.
39862         * lib/getstr.h: New file.
39863
39864 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39865
39866         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
39867         than 1024, return a memory chunk of least possible size, instead
39868         of size PATH_MAX + 2. In the loop, increment the size proportionally.
39869         Use free/xmalloc instead of xrealloc to avoid copying for very long
39870         paths.
39871
39872 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39873
39874         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
39875         the empty string.
39876
39877 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
39878
39879         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
39880         address, not strdup.  Include <stdlib.h> and don't declare free().
39881
39882 2000-06-19  Jim Meyering  <meyering@lucent.com>
39883
39884         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
39885
39886 2000-06-18  Jim Meyering  <meyering@lucent.com>
39887
39888         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
39889
39890         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
39891         `checking whether...' message to be consistent with that of the
39892         lstat test.
39893
39894 2000-06-18  Jim Meyering  <meyering@lucent.com>
39895
39896         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
39897         Besides, these days every porting target provides a mkdir function.
39898
39899         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
39900         needed. (this snippet comes from src/system.h).
39901
39902 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
39903
39904         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
39905
39906 2000-06-15  Paul Eggert  <eggert@twinsun.com>
39907
39908         * lib/human.c (adjust_value): New function.
39909         (human_readable_inexact): Apply rounding style even when
39910         printing approximate values.
39911
39912 2000-06-14  Paul Eggert  <eggert@twinsun.com>
39913
39914         * lib/human.c (human_readable_inexact): Allow an input block
39915         size that is not a multiple of the output block size, and vice versa.
39916         Reported by Piergiorgio Sartor.
39917
39918 2000-06-14  Paul Eggert  <eggert@twinsun.com>
39919
39920         * lib/getdate.y (get_date): Apply relative times after time
39921         zone indicator, not before.  Reported by Todd A. Jacobs.
39922
39923 2000-06-13  Jim Meyering  <meyering@lucent.com>
39924
39925         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
39926
39927         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
39928
39929 2000-06-12  Paul Eggert  <eggert@twinsun.com>
39930
39931         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
39932
39933 2000-06-12  Jim Meyering  <meyering@lucent.com>
39934
39935         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
39936         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
39937         optional argument.
39938         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
39939         the optional argument, `lib'.
39940
39941 2000-06-08  Jim Meyering  <meyering@lucent.com>
39942
39943         * m4/largefile.m4: Remove file (now that it's part of autoconf).
39944
39945 2000-06-04  Paul Eggert  <eggert@twinsun.com>
39946
39947         Rewrite largefile configuration so that we don't need to run
39948         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
39949         AC_CANONICAL_HOST in configure.in -- jmm]
39950
39951         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
39952         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
39953         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
39954         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
39955         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
39956         All uses changed.
39957         Instead of inspecting the output of getconf, try to compile the
39958         test program without and with the macro definition.
39959         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
39960         for getconf.  Instead, check for the needed flags by compiling
39961         test programs.
39962
39963 2000-06-04  Paul Eggert  <eggert@twinsun.com>
39964
39965         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
39966
39967 2000-06-04  Jim Meyering  <meyering@lucent.com>
39968
39969         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
39970         SunOS 4.1.4 for which gid_t is an unsigned type.
39971
39972 2000-06-03  Jim Meyering  <meyering@lucent.com>
39973
39974         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
39975         now that autoconf requires that.
39976
39977         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
39978         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
39979         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
39980
39981 2000-06-03  Jim Meyering  <meyering@lucent.com>
39982
39983         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
39984
39985 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
39986
39987         * m4/glibc21.m4: New file.
39988         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
39989
39990 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
39991
39992         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
39993         newer, don't install charset.alias.
39994         * lib/config.charset: Change the Linux/glibc rules so they become empty
39995         on glibc-2.1 or newer.
39996
39997 2000-06-02  Jim Meyering  <meyering@lucent.com>
39998
39999         * lib/mountlist.c: Back out last change.  Instead, do this...
40000         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
40001         me_dummy member using the same `ignore'-testing code.
40002         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
40003         fs_type strings.
40004         From Mark D. Roth.
40005
40006 2000-05-29  Jim Meyering  <meyering@lucent.com>
40007
40008         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
40009         mounts with the `ignore' attribute.  Based on a patch from
40010         Mark D. Roth.
40011
40012 2000-05-28  Jim Meyering  <meyering@lucent.com>
40013
40014         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
40015         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40016         * m4/stat.m4: Likewise.
40017         * m4/lstat.m4: Likewise.
40018         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
40019
40020         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
40021         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
40022
40023 2000-05-26  Jim Meyering  <meyering@lucent.com>
40024
40025         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
40026
40027 2000-05-24  Jim Meyering  <meyering@lucent.com>
40028
40029         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
40030         autoconf requires that.
40031         * m4/lib-check.m4: Likewise.
40032         * m4/jm-macros.m4: Likewise.
40033         * m4/strftime.m4: Likewise.
40034
40035         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
40036         AC_CHECK_DECLS, now that autoconf requires that.
40037
40038 2000-05-22  Jim Meyering  <meyering@lucent.com>
40039
40040         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40041         * m4/lstat.m4: Likewise.
40042
40043 2000-05-22  Jim Meyering  <meyering@lucent.com>
40044
40045         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
40046
40047 2000-05-20  Jim Meyering  <meyering@lucent.com>
40048
40049         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
40050         (jm_PREREQ): Use it.
40051
40052 2000-05-18  Jim Meyering  <meyering@lucent.com>
40053
40054         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
40055         back, too, since it may have been modified by allocate_entry.
40056         (hash_delete): Rewrite to use neither the assignment operator
40057         nor the comma operator in an if-expression.
40058
40059 2000-05-15  Paul Eggert  <eggert@twinsun.com>
40060
40061         * lib/closeout.c:
40062         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
40063         Remove; no longer needed.
40064         "quotearg.h": Add include.
40065         (file_name): Do not bother to explicitly initialize to NULL; it's less
40066         efficient on some hosts.
40067         (close_stdout_status): Remove test as to whether stdout was already
40068         closed; it breaks for the case "echo x | sort >&-".
40069         Quote file name colons.
40070         Do not assume that _("write error") lacks format strings.
40071
40072 2000-05-15  Jim Meyering  <meyering@lucent.com>
40073
40074         * lib/version-etc.c (version_etc_copyright): Update the copyright
40075         string used in all --version output.
40076
40077 2000-05-14  Jim Meyering  <meyering@lucent.com>
40078
40079         * lib/closeout.c (close_stdout_set_file_name): New function.
40080         (close_stdout_status): Use new file-scoped global.
40081         Return right away if fstat says the stdout file descriptor is invalid.
40082         * lib/closeout.h (close_stdout_set_file_name): Declare.
40083
40084 2000-05-10  Jim Meyering  <meyering@lucent.com>
40085
40086         * lib/closeout.c [default_exit_status]: New file-scoped variable.
40087         (close_stdout_set_status): New function.
40088         * lib/closeout.h (close_stdout_set_status): Declare.
40089
40090 2000-05-09  Jim Meyering  <meyering@lucent.com>
40091
40092         * m4/gettext.m4: Rename this...
40093         * m4/libintl.m4: ...to this.
40094
40095 2000-05-08  Jim Meyering  <meyering@lucent.com>
40096
40097         * lib/long-options.c: Don't include closeout.h.
40098         (parse_long_options): Don't call close_stdout for --version.
40099
40100 2000-05-06  Paul Eggert  <eggert@twinsun.com>
40101
40102         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
40103         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
40104         2.1.3 bug.  This avoids a clash when files like regex.c define
40105         _GNU_SOURCE.
40106
40107 2000-05-06  Jim Meyering  <meyering@lucent.com>
40108
40109         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
40110         (AC_REPLACE_FUNCS): Add strnlen.
40111
40112         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
40113         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
40114
40115         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
40116         AC_SEARCH_LIBS call for nanosleep.
40117         (LIB_NANOSLEEP): Set and AC_SUBST.
40118
40119 2000-05-06  Jim Meyering  <meyering@lucent.com>
40120
40121         * lib/strnlen.c: Undefine __strnlen and strnlen.
40122         [!weak_alias]: Define __strnlen to strnlen.
40123
40124         * lib/atexit.c: New file, from libiberty.
40125
40126 2000-05-06  Jim Meyering  <meyering@lucent.com>
40127
40128         * lib/closeout.c (close_stdout_status): Also check for errors on the
40129         stderr stream.
40130
40131 2000-05-05  Jim Meyering  <meyering@lucent.com>
40132
40133         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
40134         AC_SEARCH_LIBS call for clock_gettime.
40135         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
40136
40137         * m4/search-libs.m4: Update from autoconf.
40138
40139         su doesn't work on Solaris 2.6.
40140         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
40141         <shadow.h>.  Reported by Dragos Harabor.
40142
40143 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
40144
40145         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
40146         memcpy instead of xmalloc, xrealloc, path_concat.
40147         (locale_charset): Treat empty environment variables as absent.
40148         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
40149
40150 2000-05-04  Jim Meyering  <meyering@lucent.com>
40151
40152         * lib/getopt.c: Update from glibc.
40153         * lib/obstack.c: Likewise.
40154         * lib/obstack.h: Likewise.
40155         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
40156         file
40157
40158         * lib/regex.h: Likewise.
40159         * lib/strndup.c: Likewise.
40160         * lib/strnlen.c: New file, from glibc.
40161
40162 2000-05-03  Jim Meyering  <meyering@lucent.com>
40163
40164         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
40165
40166 2000-05-02  Paul Eggert  <eggert@twinsun.com>
40167
40168         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
40169         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
40170         compile-time test, rather than inspecting host and OS, to
40171         decide whether to define _LARGEFILE_SOURCE.
40172
40173 2000-05-01  Jim Meyering  <meyering@lucent.com>
40174
40175         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
40176
40177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
40178         Based on a patch from Bruno Haible.
40179
40180 2000-05-01  Jim Meyering  <meyering@lucent.com>
40181
40182         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
40183
40184 2000-04-29  Jim Meyering  <meyering@lucent.com>
40185
40186         * lib/path-concat.c: Declare strdup only if it's not defined.
40187         * lib/canon-host.c: Likewise.
40188
40189 2000-04-28  Jim Meyering  <meyering@lucent.com>
40190
40191         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
40192         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
40193         is included first, then limits.h is included by locale.h by libintl.h.
40194         From John David Anglin.
40195
40196 2000-04-25  Jim Meyering  <meyering@lucent.com>
40197
40198         * lib/makepath.c (S_IRWXUGO): Define.
40199         (make_path): Always perform explicit chmod if MODE specifies any
40200         of the `special' permission bits.  Prompted by a bug report against
40201         install from Mate Wierdl and Joost van Baal.
40202
40203 2000-04-18  Jim Meyering  <meyering@lucent.com>
40204
40205         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
40206         (jm_PREREQ): Use it.
40207
40208 2000-04-18  Jim Meyering  <meyering@lucent.com>
40209
40210         * lib/README: New file.
40211
40212         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
40213         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
40214
40215 2000-04-17  Jim Meyering  <meyering@lucent.com>
40216
40217         Get it right :-)
40218         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
40219         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
40220         Suggestion from Akim Demaille.
40221
40222 2000-04-17  Jim Meyering  <meyering@lucent.com>
40223
40224         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
40225         the definition of it to rpl_strftime also defined-away the system's
40226         declaration.
40227
40228 2000-04-15  Jim Meyering  <meyering@lucent.com>
40229
40230         Use `C' to denote so-called `contiguous' files, the same way
40231         that tar does.
40232         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
40233         (ftypelet): Use S_ISCTG.
40234         From Michael Deutschmann.
40235
40236 2000-04-14  Jim Meyering  <meyering@lucent.com>
40237
40238         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
40239         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
40240         clobbered.
40241
40242 2000-04-14  Jim Meyering  <meyering@lucent.com>
40243
40244         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
40245
40246 2000-04-13  Jim Meyering  <meyering@lucent.com>
40247
40248         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
40249         AH_VERBATIM to insert required #ifndef into config.h.in.
40250         Suggestion from Akim Demaille.
40251
40252 2000-04-12  Jim Meyering  <meyering@lucent.com>
40253
40254         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
40255         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
40256         Christian Krackowizer.
40257
40258         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
40259         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
40260         (AC_SYS_LARGEFILE): Require.
40261         (AM_C_PROTOTYPES): Require.
40262
40263 2000-04-08  Jim Meyering  <meyering@lucent.com>
40264
40265         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
40266         names don't conflict.  Reported by Eli Zaretskii.
40267
40268 2000-04-07  Jim Meyering  <meyering@lucent.com>
40269
40270         * lib/putenv.c: Move inclusion of errno.h so it follows that of
40271         sys/types.h, to work around system header problems on AIX 3.2.5.
40272         From Bruno Haible.
40273
40274 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
40275
40276         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
40277         bug.  Deal with the different error behavior of Irix iconv.
40278
40279 2000-04-05  Paul Eggert  <eggert@twinsun.com>
40280
40281         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
40282         IRIX if the installer said otherwise.
40283
40284 2000-04-05  Jim Meyering  <meyering@lucent.com>
40285
40286         Portability tweaks required for ultrix4.3.
40287         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
40288         (jm_CHECK_DECLS): Add getutent to the list of functions.
40289         (_jm_DECL_HEADERS): Add utmpx.h.
40290         From John David Anglin.
40291
40292         * m4/strftime.m4: Back out the 2000-04-02 change.
40293         Instead of that change, simply undefine putenv in the test program.
40294
40295 2000-04-05  Jim Meyering  <meyering@lucent.com>
40296
40297         Portability tweaks required for ultrix4.3.
40298         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
40299         getutent.
40300         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
40301         * lib/canon-host.c: Declare strdup.
40302         * lib/path-concat.c: Likewise.
40303         From John David Anglin.
40304
40305 2000-04-04  Jim Meyering  <meyering@lucent.com>
40306
40307         Be more DOS 8.3-friendly.
40308         * lib/ref-add.sin: Renamed from ref-add.sed.in.
40309         * lib/ref-del.sin: Renamed from ref-del.sed.in.
40310         * lib/Makefile.am: Reflect renaming.
40311         Reported by Eli Zaretskii.
40312
40313         Use a temporary file name that won't clash with `charset.alias'
40314         in the DOS 8.3 name space.
40315         * lib/Makefile.am (charset_tmp): Define.
40316         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
40317         (uninstall-local): Likewise.
40318         Reported by Eli Zaretskii.
40319
40320 2000-04-03  Jim Meyering  <meyering@lucent.com>
40321
40322         * m4/gettext.m4: Fix typo in comment.
40323
40324         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
40325         textutils/configure.in).  Suggestion from Paul Eggert.
40326         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
40327
40328 2000-04-02  Paul Eggert  <eggert@twinsun.com>
40329
40330         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
40331         variable in the shell rather than using putenv, which isn't
40332         portable.  This avoids the configure-time inter-test dependency
40333         on the potentially-renamed putenv function.
40334
40335 2000-03-30  Paul Eggert  <eggert@twinsun.com>
40336
40337         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
40338         before checking struct stat.st_blksize, so that
40339         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
40340
40341 2000-03-29  Paul Eggert  <eggert@twinsun.com>
40342
40343         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
40344         since strftime.c uses HAVE_STRFTIME to decide whether to use
40345         the underlying strftime.
40346
40347 2000-03-29  Paul Eggert  <eggert@twinsun.com>
40348
40349         * lib/time/strftime.c (my_strftime): Make sure we call the system
40350         strftime, not ourselves, when invoking the underlying strftime.
40351
40352 2000-03-24  Jim Meyering  <meyering@lucent.com>
40353
40354         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
40355         (charset_alias): Define.
40356         (install-exec-local): Factor out common code.
40357         (uninstall-local): Split lines longer than 80.
40358         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
40359         (SUFFIXES): Define.
40360         (.sed.in.sed): New rule.  Don't redirect directly to $@.
40361         (CLEANFILES): Add ref-add.sed and ref-del.sed.
40362
40363 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
40364
40365         * lib/config.charset: Output a line containing "Packages using this
40366         file".
40367         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
40368         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
40369         ref-del.sed): New rules.
40370
40371 2000-03-17  Jim Meyering  <meyering@lucent.com>
40372
40373         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
40374         Otherwise, include <strings.h>
40375
40376 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
40377
40378         * lib/unicodeio.c (utf8_wctomb): New function.
40379         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
40380         format instead of in UCS-4 with platform dependent endianness.
40381
40382 2000-03-10  Jim Meyering  <meyering@lucent.com>
40383
40384         * m4/lib-check.m4: Look for getspnam in -lgen, too.
40385         From Marco Franzen.
40386
40387 2000-03-07  Paul Eggert  <eggert@twinsun.com>
40388
40389         * lib/savedir.c (savedir): Work even if directory size is
40390         negative; this can happen with some screwy NFS configurations.
40391
40392 2000-03-06  Jim Meyering  <meyering@lucent.com>
40393
40394         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
40395         if it's NULL (because we ran out of memory).  From Bruno Haible.
40396
40397 2000-03-05  Jim Meyering  <meyering@lucent.com>
40398
40399         * lib/localcharset.c ("path-concat.h"): Include.
40400         (get_charset_aliases): Use path_concat instead of ANSI string
40401         concatenation.
40402
40403         * lib/unicodeio.h (PARAMS): Define.
40404         Use it to guard prototype.
40405
40406 2000-03-04  Jim Meyering  <meyering@lucent.com>
40407
40408         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
40409         for lib/localcharset.c.
40410
40411 2000-03-04  Jim Meyering  <meyering@lucent.com>
40412
40413         * lib/Makefile.am (install-exec-local): Create $(libdir) before
40414         installing into it.
40415         (uninstall-local): Uncomment this rule so `make distcheck' works
40416         once again.
40417
40418         * lib/unicodeio.c (<errno.h>): Include it.
40419         (errno): Declare if not defined.
40420
40421         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
40422
40423         * lib/config.charset: New version, incorporating remarks from a linux
40424         i18n mailing list.  From Bruno Haible.
40425
40426 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
40427
40428         * m4/codeset.m4: New file.
40429         * m4/iconv.m4: New file.
40430         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
40431
40432 2000-03-03  Jim Meyering  <meyering@lucent.com>
40433
40434         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
40435
40436 2000-03-02  Jim Meyering  <meyering@lucent.com>
40437
40438         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
40439         the messages come out on separate lines.
40440
40441         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
40442         rather than jm_CHECK_DECLARATIONS.
40443         * m4/decl.m4: Remove now-unused file.
40444
40445         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
40446         geteuid.
40447
40448 2000-03-02  Jim Meyering  <meyering@lucent.com>
40449
40450         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
40451
40452 2000-03-01  Jim Meyering  <meyering@lucent.com>
40453
40454         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
40455         * lib/unicodeio.c: Likewise.
40456
40457 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
40458
40459         * lib/config.charset: New file.
40460         * lib/localcharset.c: New file.
40461         * lib/unicodeio.h, lib/unicodeio.c: New files.
40462         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
40463         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
40464         (noinst_HEADERS): Add unicodeio.h.
40465         (all-local, install-exec-local, charset.alias): New targets.
40466
40467 2000-02-28  Paul Eggert  <eggert@twinsun.com>
40468
40469         * lib/quotearg.c (ALERT_CHAR): New macro.
40470         (quotearg_buffer_restyled): Use it.
40471
40472 2000-02-27  Jim Meyering  <meyering@lucent.com>
40473
40474         * m4/check-decl.m4: Add getenv to the list.
40475
40476 2000-02-27  Jim Meyering  <meyering@lucent.com>
40477
40478         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
40479         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
40480
40481         * lib/backupfile.c: Guard inclusion of stdlib.h with
40482         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
40483         Declare malloc if needed.
40484
40485         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
40486         `#ifndef HAVE_DECL..'
40487         now that autoconf always defines the HAVE_DECL_ symbols.
40488         * lib/human.c: Likewise.
40489         * lib/same.c: Likewise.
40490         * lib/strtoumax.c: Likewise.
40491
40492         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
40493         declaration check was not run.
40494         * lib/hash.c: Likewise.
40495         * lib/human.c: Likewise.
40496         * lib/same.c: Likewise.
40497         * lib/strtoumax.c: Likewise.
40498
40499         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
40500         `.', then first look up the entire `.'-containing string as a login
40501         name.
40502
40503 2000-02-23  Jim Meyering  <meyering@lucent.com>
40504
40505         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
40506         in place of my hack.
40507
40508 2000-02-18  Paul Eggert  <eggert@twinsun.com>
40509
40510         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
40511         (textint): New typedef.
40512         (parser_control): Member year changed from int to textint.
40513         All uses changed.
40514         (YYSTYPE): Removed; replaced by %union with int and textint members.
40515         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
40516         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
40517         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
40518         (tSNUMBER, tUNUMBER): Now of type <textintval>.
40519         (date, number, to_year): Use width of number in digits, not its value,
40520         to determine whether it's a 2-digit year, or a 2-digit time.
40521         (yylex): Store number of digits of numeric tokens.
40522         Reported by John Kendall.
40523
40524         (parser_control): Changed from struct parser_control to typedef (for
40525         consistency).  All uses changed.
40526
40527         (tID): Removed; not used.
40528         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
40529
40530 2000-02-14  Paul Eggert  <eggert@twinsun.com>
40531
40532         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
40533         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
40534
40535 2000-02-12  Jim Meyering  <meyering@lucent.com>
40536
40537         * lib/userspec.c (ISDIGIT): Define it.
40538         (isdigit): Remove definition.
40539         (is_number): Use ISDIGIT, not isdigit.
40540         <libintl.h>: Include.
40541         (_ and N_): Define.
40542         (parse_user_spec): Mark translatable strings.
40543
40544 2000-02-10  Jim Meyering  <meyering@lucent.com>
40545
40546         With these changes, nanosleep.[ch] are finally enough like the other
40547         lib/* replacement files to compile on a few more losing systems.
40548
40549         * lib/nanosleep.h: Don't include config.h.
40550         Remove prototype from declaration of nanosleep.
40551         (PARAMS): Remove now-unneeded definition.
40552         * lib/nanosleep.c: #undef nanosleep.
40553         (rpl_nanosleep): Rename from nanosleep.
40554
40555 2000-02-10  Jim Meyering  <meyering@lucent.com>
40556
40557         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
40558         gnu_nanosleep to rpl_nanosleep.
40559
40560 2000-02-09  Jim Meyering  <meyering@lucent.com>
40561
40562         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
40563         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
40564
40565 2000-02-08  Akim Demaille  <akim@epita.fr>
40566
40567         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
40568         `[' and `]' and remove uses of `changequote'.
40569         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
40570         (AC_SYS_LARGEFILE): Likewise.
40571         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40572         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
40573         of changequote.
40574         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
40575         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
40576         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
40577         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
40578
40579 2000-02-05  Jim Meyering  <meyering@lucent.com>
40580
40581         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
40582         Remove explicit use of AC_HEADER_TIME.  It is required by
40583         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
40584         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
40585         in autoconf whereby the expansion of the latter ended up preceding
40586         the expansion of its prerequisite, AC_HEADER_TIME.
40587         Reported by Volker Borchert.
40588
40589 2000-02-03  Jim Meyering  <meyering@lucent.com>
40590
40591         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
40592
40593 2000-02-03  Jim Meyering  <meyering@lucent.com>
40594
40595         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
40596         rather than with `#if HAVE_UTMPNAME'.
40597
40598 2000-02-02  Jim Meyering  <meyering@lucent.com>
40599
40600         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
40601         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
40602         Reported by Eli Zaretskii.
40603
40604 2000-02-01  Jim Meyering  <meyering@lucent.com>
40605
40606         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
40607
40608 2000-01-31  Jim Meyering  <meyering@lucent.com>
40609
40610         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
40611         functions.  Add the time.h and sys/time.h headers along with the
40612         AC_REQUIRE'ment of AC_HEADER_TIME.
40613
40614 2000-01-31  Jim Meyering  <meyering@lucent.com>
40615
40616         * lib/nanosleep.h (nanosleep): Guard declaration with
40617         `#if ! HAVE_DECL_NANOSLEEP'.
40618         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
40619         the declaration in that vendor's sys/timers.h.
40620         Reported by Christian Krackowizer.
40621
40622         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
40623         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
40624         (ISPRINT): Likewise.
40625         Reported by Tom Tromey.
40626
40627 2000-01-30  Jim Meyering  <meyering@lucent.com>
40628
40629         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
40630
40631         * m4/prereq.m4 (utmp_includes): Define.
40632         Check for ut_user and ut_name members in both struct utmpx
40633         and struct utmp.
40634
40635 2000-01-30  Jim Meyering  <meyering@lucent.com>
40636
40637         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
40638         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
40639         header files where only utmpx.ut_user is declared.
40640
40641         * lib/readutmp.h (UT_USER): Define.
40642
40643 2000-01-29  Jim Meyering  <meyering@lucent.com>
40644
40645         * m4/lib-check.m4: New file containing library-related checks from
40646         fileutils and sh-utils (textutils had none).
40647
40648 2000-01-28  Jim Meyering  <meyering@lucent.com>
40649
40650         * m4/perl.m4: Change format of warning message to look more like that
40651         from the missing script.  Suggestion from François Pinard.
40652
40653 2000-01-25  Jim Meyering  <meyering@lucent.com>
40654
40655         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
40656         well as time.h in the compile check.
40657         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
40658         Fix typo in cross-compiling case: s/yes/no/.
40659
40660 2000-01-23  Jim Meyering  <meyering@lucent.com>
40661
40662         * m4/jm-macros.m4: Move df-related tests here from
40663         fileutils/configure.in
40664
40665         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
40666         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
40667
40668         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
40669         s/space/ac_fsusage_space/.
40670         (jm_FILE_SYSTEM_USAGE): Take two parameters.
40671
40672         * m4/ftruncate.m4: New file (derived from part of
40673         fileutils/configure.in).
40674         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
40675         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
40676
40677         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
40678         AC_SUBST these here, rather than just in sh-util/configure.in, so
40679         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
40680         all the same.
40681         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
40682         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
40683         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
40684         (AC_SUBST(POW_LIBM)): Likewise.
40685         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
40686
40687 2000-01-23  Jim Meyering  <meyering@lucent.com>
40688
40689         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
40690         obstack.c.
40691
40692 2000-01-22  Jim Meyering  <meyering@lucent.com>
40693
40694         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
40695
40696         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
40697
40698         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
40699         configure.in
40700         (AC_CHECK_HEADERS): Likewise for sh-utils.
40701         (AC_CHECK_HEADERS): Likewise for textutils.
40702         Merge the three lists of headers.
40703
40704         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
40705         from fileutils' configure.in.
40706
40707         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
40708         code. Moved tests into their own function (_jm_DECL_HEADERS) in
40709         check-decl.m4.
40710
40711         * m4/check-decl.m4: Use #if rather than #ifdef.
40712         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
40713         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
40714         (_jm_DECL_HEADERS): Define new function.
40715         (jm_CHECK_DECLARATIONS): Require it.
40716
40717 2000-01-22  Jim Meyering  <meyering@lucent.com>
40718
40719         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
40720         [! HAVE_DECL_STRTOULL]: Declare strtoull.
40721         Required for some AIX systems.  Reported by Christian Krackowizer.
40722         [TESTING] (main): New function.
40723
40724         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
40725         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
40726         letters.
40727
40728         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
40729         iswprint.
40730
40731         * lib/strverscmp.c (ISDIGIT): Define.
40732         (strverscmp): Use ISDIGIT, not isdigit.
40733
40734 2000-01-19  Jim Meyering  <meyering@lucent.com>
40735
40736         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
40737         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
40738         defines `struct timespec' in <sys/time.h>
40739
40740         * m4/c-bs-a.m4: Remove uses of changequote altogether.
40741         Thanks to Akim for explaining.
40742
40743 2000-01-17  Paul Eggert  <eggert@twinsun.com>
40744
40745         * lib/nanosleep.c (nanosleep):
40746         Don't use SA_INTERRUPT to decide whether to call sigaction, as
40747         POSIX.1 doesn't require SA_INTERRUPT and some systems
40748         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
40749         it's been part of POSIX.1 since day 1 (in 1988).
40750
40751 2000-01-17  Jim Meyering  <meyering@lucent.com>
40752
40753         * lib/interlock: Remove unused file.  Reported by François Pinard.
40754
40755 2000-01-16  Paul Eggert  <eggert@twinsun.com>
40756
40757         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
40758         alert, backslash, formfeed, and vertical tab unnecessarily in
40759         shell quoting style.
40760
40761 2000-01-16  Jim Meyering  <meyering@lucent.com>
40762
40763         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
40764         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
40765         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
40766         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
40767
40768 2000-01-16  Jim Meyering  <meyering@lucent.com>
40769
40770         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
40771         because the latter didn't work.
40772
40773 2000-01-15  Jim Meyering  <meyering@lucent.com>
40774
40775         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
40776         (AC_REPLACE_FUNCS): Add memcpy and memset.
40777         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
40778         Add strpbrk.
40779         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
40780
40781 2000-01-12  Jim Meyering  <meyering@lucent.com>
40782
40783         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
40784         (jm_PREREQ): Use it.
40785         (jm_PREREQ_READUTMP): New macro.
40786         (jm_PREREQ): Use it.
40787
40788 2000-01-11  Paul Eggert  <eggert@twinsun.com>
40789
40790         Quote multibyte characters correctly.
40791         * m4/c-bs-a.m4: New file.
40792         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
40793         (jm_PREREQ): Use it.
40794
40795 2000-01-11  Paul Eggert  <eggert@twinsun.com>
40796
40797         * m4/uintmax_t.m4: Port to autoconf 2.13.
40798
40799 2000-01-08  Jim Meyering  <meyering@ascend.com>
40800
40801         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
40802         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
40803
40804 2000-01-04  Jim Meyering  <meyering@ascend.com>
40805
40806         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
40807         jm_STRUCT_DIRENT_D_TYPE.
40808         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
40809         jm_STRUCT_DIRENT_D_INO.
40810         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
40811         jm_STRUCT_UTIMBUF.
40812         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
40813         renamings.
40814         * m4/utime.m4: Likewise.
40815
40816         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
40817         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
40818
40819 2000-01-03  Paul Eggert  <eggert@twinsun.com>
40820
40821         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
40822         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
40823
40824 2000-01-02  Jim Meyering  <meyering@ascend.com>
40825
40826         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
40827         remember if this is necessary.
40828
40829 1999-12-26  Jim Meyering  <meyering@ascend.com>
40830
40831         * m4/jm-macros.m4: Use it here.
40832         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
40833
40834 1999-12-23  Jim Meyering  <meyering@ascend.com>
40835
40836         * m4/jm-macros.m4: Check for clock_gettime (moved from
40837         fileutils/configure.in)
40838         Check for gettimeofday.
40839
40840 1999-12-20  Jim Meyering  <meyering@ascend.com>
40841
40842         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
40843         autoconf-2.14a-1999-12-20.
40844
40845 1999-12-19  Jim Meyering  <meyering@ascend.com>
40846
40847         * m4/lstat-slash.m4: New file.
40848         * m4/jm-macros.m4: Use the new macro:
40849         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40850
40851 1999-12-07  Jim Meyering  <meyering@ascend.com>
40852
40853         * m4/perl.m4: Require that File::Compare be available, too.
40854         Too many systems seem to lack it.
40855
40856         * m4/strftime.m4: Add checks for most of the cpp macros tested in
40857         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
40858
40859 1999-11-18  Paul Eggert  <eggert@twinsun.com>
40860
40861         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
40862         problem with the QNX 4.25 shell, which doesn't propagate exit
40863         status of failed commands inside shell assignments.
40864
40865 1999-11-17  Jim Meyering  <meyering@ascend.com>
40866
40867         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
40868
40869 1999-11-07  Jim Meyering  <meyering@ascend.com>
40870
40871         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
40872
40873 1999-11-06  Jim Meyering  <meyering@ascend.com>
40874
40875         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
40876         * m4/jm-macros.m4 (jm_MACROS): Use it here.
40877
40878 1999-11-05  Jim Meyering  <meyering@ascend.com>
40879
40880         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
40881         configure.in of textutils, fileutils, and sh-utils into this one
40882         (shared between those packages) file.
40883         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
40884         AC_STRUCT_ST_BLKSIZE.
40885
40886 1999-11-03  Jim Meyering  <meyering@ascend.com>
40887
40888         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
40889         of AC_CHECK_TYPE checks includes unistd.h.
40890         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
40891         Suggestion from Akim Demaille.
40892
40893 1999-10-30  Jim Meyering  <meyering@ascend.com>
40894
40895         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
40896         m4-quoted string.
40897         * m4/ls-mntd-fs.m4: Likewise.
40898         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
40899         * m4/jm-winsz1.m4: Likewise.
40900
40901         * m4/const.m4: Remove file, since the fix made it into the experimental
40902         version of autoconf.
40903         * m4/mktime.m4: Likewise.
40904
40905         * m4/check-type.m4: Remove file, now that the latest version of
40906         AC_CHECK_TYPE takes a third arg to specify additional #includes.
40907
40908         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
40909         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
40910         AC_CHECK_TYPE.
40911
40912 1999-10-04  Jim Meyering  <meyering@ascend.com>
40913
40914         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
40915
40916 1999-09-22  Paul Eggert  <eggert@twinsun.com>
40917
40918         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
40919         2.95.1 bug with HP-UX 10.20.
40920
40921 1999-09-17  Jim Meyering  <meyering@ascend.com>
40922
40923         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
40924         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
40925         due to missing strdup (against sh-utils-2.0).
40926
40927 1999-08-29  Jim Meyering  <meyering@ascend.com>
40928
40929         * m4/jm-macros.m4: Require jm_BISON.
40930         * m4/bison.m4: New file.
40931
40932 1999-08-17  Paul Eggert  <eggert@twinsun.com>
40933
40934         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
40935         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
40936
40937 1999-08-05  Jim Meyering  <meyering@ascend.com>
40938
40939         * m4/getline.m4: Rename test file from conftestdata to conftest.data
40940         to avoid conflicts with `conftest' on 8+3 filesystems.
40941         Suggestion from Eli Zaretskii.
40942
40943 1999-08-04  Jim Meyering  <meyering@ascend.com>
40944
40945         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
40946         fileutils and sh-utils (textutils's getline test was inadequate).
40947         (AM_FUNC_GETLINE): Run this test.
40948         (AC_CHECK_FUNCS): Check for getdelim.
40949         Reported by Bob Proulx.
40950
40951 1999-08-02  Jim Meyering  <meyering@ascend.com>
40952
40953         * m4/jm-macros.m4: Add a comment.
40954
40955 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40956
40957         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
40958         <inttypes.h> defines strtoumax as a macro (and not as a
40959         function).
40960
40961 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40962
40963         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
40964         that we can shift, multiply and divide unsigned long long
40965         values; Ultrix cc can't do it.
40966
40967 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40968
40969         * m4/mktime.m4: New file, which is a preview of what should appear
40970         in the next public autoconf release.
40971
40972 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40973
40974         * m4/lfs.m4: Remove this file.
40975         * m4/largefile.m4: New file.  It contains the old contents of
40976         lfs.m4, except that all names with prefix AC_LFS have been
40977         changed to use the prefix AC_SYS_LARGEFILE instead, to be
40978         compatible with future autoconf versions.  Also, some minor m4
40979         quoting problems have been fixed.
40980
40981 1999-08-01  Paul Eggert  <eggert@twinsun.com>
40982
40983         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
40984         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
40985         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
40986         and simplify the shell code.
40987
40988 1999-08-01  Jim Meyering  <meyering@ascend.com>
40989
40990         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
40991         m4.
40992
40993 1999-07-20  Jim Meyering  <meyering@ascend.com>
40994
40995         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
40996
40997 1999-07-15  Jim Meyering  <meyering@ascend.com>
40998
40999         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
41000
41001 1999-05-22  Jim Meyering  <meyering@ascend.com>
41002
41003         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
41004
41005 1999-05-20  Jim Meyering  <meyering@ascend.com>
41006
41007         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
41008         Add a colon after each `then' in case $4 is empty.
41009
41010 1999-05-16  Jim Meyering  <meyering@ascend.com>
41011
41012         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
41013
41014 1999-05-10  Jim Meyering  <meyering@ascend.com>
41015
41016         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
41017
41018         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
41019         AC_FUNC_MKTIME.
41020
41021 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
41022
41023         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
41024
41025 1999-05-04  Paul Eggert  <eggert@twinsun.com>
41026
41027         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
41028         not CPPFLAGS, so that linking works correctly in IRIX.
41029
41030 1999-04-30  Paul Eggert  <eggert@twinsun.com>
41031
41032         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
41033
41034 1999-04-20  Paul Eggert  <eggert@twinsun.com>
41035
41036         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
41037         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
41038         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
41039         jm_AC_TYPE_UNSIGNED_LONG_LONG.
41040         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
41041
41042         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
41043
41044 1999-04-20  Jim Meyering  <meyering@ascend.com>
41045
41046         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
41047         AC_REPLACE xstroull if necessary.  From Paul Eggert.
41048         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
41049
41050 1999-04-18  Jim Meyering  <meyering@ascend.com>
41051
41052         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
41053         * m4/jm-macros.m4: Use it.
41054
41055 1999-04-06  Jim Meyering  <meyering@ascend.com>
41056
41057         * m4/strftime.m4: Remove test for %f.
41058
41059 1999-03-29  Jim Meyering  <meyering@ascend.com>
41060
41061         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
41062         superset of the AC_TYPE_* checks in the textutils, fileutils,
41063         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
41064         AC_TYPE_PID_T.
41065
41066 1999-03-28  Jim Meyering  <meyering@ascend.com>
41067
41068         * m4/jm-macros.m4: Define GNU_PACKAGE here.
41069         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
41070         replaced e.g., in the *.sh files of the sh-utils.
41071
41072 1999-03-20  Jim Meyering  <meyering@ascend.com>
41073
41074         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
41075         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
41076         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
41077
41078 1999-03-19  Jim Meyering  <meyering@ascend.com>
41079
41080         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
41081
41082 1999-03-12  Jim Meyering  <meyering@ascend.com>
41083
41084         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
41085
41086 1999-03-07  Jim Meyering  <meyering@ascend.com>
41087
41088         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
41089         declared.
41090
41091 1999-02-17  Jim Meyering  <meyering@ascend.com>
41092
41093         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
41094         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
41095
41096 1999-02-07  Jim Meyering  <meyering@ascend.com>
41097
41098         * m4/group-member.m4: New file -- extracted from sh-utils'
41099         configure.in.
41100
41101         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
41102         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
41103
41104 1999-02-06  Jim Meyering  <meyering@ascend.com>
41105
41106         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
41107         * m4/fnmatch.m4: Likewise.
41108         * m4/getgroups.m4: Likewise.
41109         * m4/lstat.m4: Likewise.
41110         * m4/malloc.m4: Likewise.
41111         * m4/putenv.m4: Likewise.
41112         * m4/realloc.m4: Likewise.
41113         * m4/regex.m4: Likewise.
41114         * m4/stat.m4: Likewise.
41115         * m4/strftime.m4: Likewise.
41116         Suggestion from Alain Magloire.
41117
41118         * m4/chown.m4: Use `.$ac_objext', not `.o'.
41119         * m4/fnmatch.m4: Likewise.
41120         * m4/getgroups.m4: Likewise.
41121         * m4/getline.m4: Likewise.
41122         * m4/lstat.m4: Likewise.
41123         * m4/malloc.m4: Likewise.
41124         * m4/memcmp.m4: Likewise.
41125         * m4/putenv.m4: Likewise.
41126         * m4/realloc.m4: Likewise.
41127         * m4/regex.m4: Likewise.
41128         * m4/stat.m4: Likewise.
41129         * m4/strftime.m4: Likewise.
41130         Suggestion from Alain Magloire.
41131
41132         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
41133         an argument.
41134
41135         * m4/regex.m4: Add a run-time Test for proper operation of
41136         re_compile_pattern.
41137
41138 1999-01-31  Jim Meyering  <meyering@ascend.com>
41139
41140         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
41141
41142 1999-01-30  Jim Meyering  <meyering@ascend.com>
41143
41144         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
41145
41146         * m4/jm-mktime.m4: Make this a wrapper around the official
41147         AM_FUNC_MKTIME rather than my private copy, now that the official one
41148         is up to date.
41149         * m4/mktime.m4: Remove file.
41150
41151         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
41152         * m4/uptime.m4: Likewise.
41153         * m4/uintmax_t.m4: Likewise.
41154
41155 1999-01-28  Jim Meyering  <meyering@ascend.com>
41156
41157         * m4/jm-macros.m4: Use jm_AFS.
41158         * m4/afs.m4: New file (from fileutils' configure.in).
41159
41160         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
41161         * m4/chown.m4: Likewise.
41162         * m4/d-ino.m4: Likewise.
41163         * m4/d-type.m4: Likewise.
41164         * m4/fnmatch.m4: Likewise.
41165         * m4/getgroups.m4: Likewise.
41166         * m4/gettext.m4: Likewise.
41167         * m4/jm-mktime.m4: Likewise.
41168         * m4/jm-winsz2.m4: Likewise.
41169         * m4/lcmessage.m4: Likewise.
41170         * m4/ls-mntd-fs.m4: Likewise.
41171         * m4/malloc.m4: Likewise.
41172         * m4/memcmp.m4: Likewise.
41173         * m4/putenv.m4: Likewise.
41174         * m4/realloc.m4: Likewise.
41175         * m4/st_mtim.m4: Likewise.
41176         * m4/strftime.m4: Likewise.
41177
41178 1999-01-16  Jim Meyering  <meyering@ascend.com>
41179
41180         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
41181         (ARGMATCH_DIE_DECL): Define.
41182
41183 1999-01-12  Jim Meyering  <meyering@ascend.com>
41184
41185         * m4/Makefile.am.in: Rewrite to avoid using fmt.
41186         Reported by Lars Hecking.
41187
41188 1999-01-10  Jim Meyering  <meyering@ascend.com>
41189
41190         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
41191         gross kludge.
41192         * m4/inttypes_h.m4: Likewise.
41193         * m4/lstat.m4: Likewise.
41194         * m4/malloc.m4: Likewise.
41195         * m4/readdir.m4: Likewise.
41196         * m4/realloc.m4: Likewise.
41197         * m4/st_dm_mode.m4: Likewise.
41198         * m4/stat.m4: Likewise.
41199         * m4/utimbuf.m4: Likewise.
41200         * m4/utimes.m4: Likewise.
41201
41202         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
41203         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
41204         comments in config.h.in are meaningful.
41205
41206         * m4/jm-macros.m4: Require autoconf-2.13 here.
41207
41208         * m4/regex.m4: By default, don't use the included regex.c on systems
41209         with glibc 2.  Suggestion from Uli Drepper.
41210
41211 1999-01-02  Jim Meyering  <meyering@ascend.com>
41212
41213         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
41214
41215 1998-12-18  Jim Meyering  <meyering@ascend.com>
41216
41217         * m4/Makefile.am.in (Makefile.am): Simplify rule.
41218         Based on a suggestion from Lars Hecking.
41219
41220 1998-11-16  Paul Eggert  <eggert@twinsun.com>
41221
41222         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
41223
41224 1998-11-16  Jim Meyering  <meyering@ascend.com>
41225
41226         * m4/lfs.m4: Double-quote the `uname...` expression.
41227
41228 1998-11-14  Jim Meyering  <meyering@ascend.com>
41229
41230         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
41231         * m4/stat.m4: Likewise.
41232
41233 1998-11-03  Jim Meyering  <meyering@ascend.com>
41234
41235         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
41236         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
41237
41238 1998-10-18  Jim Meyering  <meyering@ascend.com>
41239
41240         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
41241
41242 1998-10-17  Jim Meyering  <meyering@ascend.com>
41243
41244         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
41245         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
41246         calls for those previously hard-coded headers.  Instead, take a new
41247         parameter.
41248         (jm_CHECK_DECLARATIONS): Reflect interface change.
41249         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
41250         (jm_CHECK_DECL_LOCALTIME_R): New macro.
41251
41252         * m4/mktime.m4: Test for spring-forward gap before long-running test.
41253
41254 1998-10-14  Jim Meyering  <meyering@ascend.com>
41255
41256         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
41257         instead of "TZ=America/Vancouver".  From Paul Eggert.
41258
41259 1998-10-11  Jim Meyering  <meyering@ascend.com>
41260
41261         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
41262         This adds a test for a recently added compatibility fix for mktime.c.
41263         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
41264
41265 1998-09-27  Jim Meyering  <meyering@ascend.com>
41266
41267         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
41268
41269         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
41270         ../configure.in, including a change from Gordon Matzigkeit to allow
41271         cross-compiling for the Hurd.
41272
41273         * m4/glibc.m4: New file/macro to test for the GNU C Library
41274         versions 1 and 2.  From Gordon Matzigkeit.
41275         Indent.
41276
41277 1998-09-21  Jim Meyering  <meyering@ascend.com>
41278
41279         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
41280
41281 1998-08-18  Paul Eggert  <eggert@twinsun.com>
41282
41283         Port nanosecond-resolution times to UnixWare 2.1.2 and
41284         pedantic Solaris 2.6.
41285
41286         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
41287         AC_STRUCT_ST_MTIM.
41288         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
41289         Generate name of ns member, instead of just 1 or undef.
41290         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
41291
41292 1998-08-15  Jim Meyering  <meyering@ascend.com>
41293
41294         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
41295         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
41296         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
41297         instead of jm_TYPE_SSIZE_T.
41298
41299 1998-08-12  Jim Meyering  <meyering@ascend.com>
41300
41301         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
41302
41303 1998-08-02  Jim Meyering  <meyering@ascend.com>
41304
41305         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
41306         in acconfig.h manually.
41307
41308 1998-07-31  Paul Eggert  <eggert@twinsun.com>
41309
41310         * m4/st_mtim.m4: New file.
41311
41312 1998-07-28  Jim Meyering  <meyering@ascend.com>
41313
41314         * m4/utimes.m4: Undef stat.
41315
41316 1998-07-25  Jim Meyering  <meyering@ascend.com>
41317
41318         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
41319         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
41320
41321 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
41322
41323         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
41324         uid and gid actually remain unchanged.
41325
41326 1998-07-07  Jim Meyering  <meyering@ascend.com>
41327
41328         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
41329
41330 1998-07-04  Jim Meyering  <meyering@ascend.com>
41331
41332         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
41333         to prove that this macro can be used in packages without regex.c.
41334
41335 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
41336
41337         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
41338         is to be used.
41339
41340 1998-07-03  Jim Meyering  <meyering@ascend.com>
41341
41342         * m4/gettext.m4: Add -lintl if it's found to be necessary.
41343
41344         * m4/gettext.m4: New file -- from gettext-0.10.35.
41345         * m4/lcmessage.m4: Likewise.
41346         * m4/progtest.m4: Likewise.
41347
41348         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
41349         * m4/jm-macros.m4: Require the new macro.
41350
41351 1998-06-29  Jim Meyering  <meyering@ascend.com>
41352
41353         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
41354         for the definition of NGROUPS (used in a system header included
41355         by sys/mount.h).
41356
41357 1998-06-28  Jim Meyering  <meyering@ascend.com>
41358
41359         * m4/ls-mntd-fs.m4: New file.
41360         * m4/fstypename.m4: New file.
41361
41362         * m4/jm-macros.m4: Require the new macro.
41363         * m4/jm-glibc-io.m4: New file.
41364
41365 1998-05-19  Jim Meyering  <meyering@ascend.com>
41366
41367         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
41368         * m4/lchown.m4: New file.
41369
41370         * m4/Makefile.am.in: New file.
41371         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
41372
41373 1998-05-14  Jim Meyering  <meyering@ascend.com>
41374
41375         * m4/Makefile.am (EXTRA_DIST): Add them.
41376         * m4/jm-macros.m4: New file.
41377         * m4/utimbuf.m4: New file.
41378
41379 1998-05-12  Jim Meyering  <meyering@ascend.com>
41380
41381         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
41382
41383 1998-05-11  Jim Meyering  <meyering@ascend.com>
41384
41385         * m4/isc-posix.m4: New file.
41386
41387 1998-05-10  Jim Meyering  <meyering@ascend.com>
41388
41389         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
41390
41391 1998-05-09  Jim Meyering  <meyering@ascend.com>
41392
41393         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
41394         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
41395         with automake.
41396
41397         * m4/ssize_t.m4: New file.
41398         * m4/mktime.m4: Remove file -- the new automake has this now.
41399
41400 1998-04-26  Jim Meyering  <meyering@ascend.com>
41401
41402         * m4/assert.m4: New file.
41403         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
41404
41405 1998-04-05  Jim Meyering  <meyering@ascend.com>
41406
41407         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
41408         (jm_PREREQ): Use it here.
41409
41410 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
41411
41412         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
41413         in acconfig.h.
41414
41415 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
41416
41417         * m4/prereq.m4: New file.
41418         * m4/error.m4: New file.
41419         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
41420
41421 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
41422
41423         * m4/getline.m4: Don't set am_cv_func_working_getline before the
41424         cache-check for the same variable -- that defeated the purpose of
41425         the test; the test program was never run.  This was a problem only
41426         on systems with losing getline functions -- HP-UX 10.20 is one.
41427         Reported by Bjorn Helgaas.
41428
41429 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
41430
41431         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
41432
41433 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
41434
41435         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
41436
41437         * m4/const.m4: New file.  Use an initializer in this declaration
41438         typedef int charset[2]; const charset x;
41439         Reported by Bob Glickstein.
41440
41441 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
41442
41443         * m4/chown.m4: Fix reversed types on -1 args to chown.
41444         From Kaveh Ghazi.
41445
41446 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
41447
41448         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
41449         Add lseek and memchr.
41450
41451         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
41452         T.E.Dickey <dickey@clark.net> said that some older preprocessors
41453         have a 20-character limit on names.
41454
41455 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
41456
41457         * m4/inttypes_h.m4: New file.
41458         * m4/uintmax_t.m4: New file.
41459         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
41460
41461
41462         -----
41463
41464         Local Variables:
41465         coding: utf-8
41466         End:
41467
41468         Copyright (C) 1997-2008 Free Software Foundation, Inc.
41469
41470         Copying and distribution of this file, with or without
41471         modification, are permitted provided the copyright notice
41472         and this notice are preserved.